• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Weblogic 10 Issue with Java 1.4

 
Ranch Hand
Posts: 485
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
In our application we are referring to a webservice.

I have a WSDL and i need to generate the client stub.
we are using weblogic 10 and Tomcat as our application / web server.

I am using weblogic 10 Ant task "clientgen" to generate the client stubs.

Client stubs / jar files are generated with out any issues.
But all the generated class files are java 1.5 compatible (version 49).


But when we are building war / ear file we are compiling our application code (which uses above mentioned
client stubs) in java 1.4.

Since our tomcat is running in java 1.4 we need to compile our application in java 1.4.

When i am compiling i am getting the below error..

[javac] class file has wrong version 49.0, should be 48.0

I am not sure why i am getting this error.

Any help would be greatly appreciated....
 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thats because the client classes generated from weblogic clientgen were in 1.5 and not in 1.4. You might want to run the clientgen using weblogic.jar and webservices.jar shipped with weblogic8.1 and get the client jar. It might work. Let me know if it works.
 
Parameswaran Thangavel
Ranch Hand
Posts: 485
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Amit,
It did works when i refer to weblogic8.

Thanks
 
Amit M Tank
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cool. Enjoy!
 
He puts the "turd" in "saturday". Speaking of which, have you smelled this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic