• 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
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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!
 
I'm thinking about a new battle cry. Maybe "Not in the face! Not in the face!" Any thoughts tiny ad?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic