• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NoClassDefFoundError - XmlException + weblogic 10

 
Ranch Hand
Posts: 485
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All,
We are using weblogic 10 for our application. And we generated the web service client jars using clientgen task.

When i tried to invoke the webservice using the generated jar i got the below exception.


The error seems to be simple, the class "com.bea.xml.XmlException" is not in CLASSPATH. But the problem is i donno which jar file has the above mentioned class.

When i searched the net, i found couple of sites mentioning about xbean.jar having the above specified class. But weblogic 10 doesn't have one.

Does anybody came across similar situation. Where can i find the xbean.jar file.

Thanks
Param
 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We came across similar problems when we migrated from weblogic8.1 to weblogic10. We were using xbean.jar in weblogic8.1 to do XML to Object conversion and vice versa. If you read the e-docs of weblogic it says that they do not support the weblogic's xml beans with version 10. So we had to change all the code to use apache's xml beans version 2.3 and use the xbean.jar shipped along with the bundle. You can download the xml beans bundle from here
 
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,
Thanks for your reply.

As i mentioned the client jar files are generated using the ANT task clientgen.
The clientgen task version is for weblogic 10

<taskdef name="clientgen"
classname="weblogic.wsee.tools.anttasks.ClientGenTask" />

In that case i am not sure why clientgen referring to the XmlException which weblogic 10 is no more supporting? or Am i using wrong ClientGenTask.

If my above question doesn't make sense please let me know.

Thanks
param
 
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
We used the following class for clientgen "weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask". You can try using this task and see if it works for you. Also it might be that you have xbean.jar in your application library which you are including in the ant script for doing client gen.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
for related questions you might also want to try out the www.findJAR.com service. works at least for the 2 million most popular java classes
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this this
wlserver_10.0\server\lib\webservices.jar\weblogic\ant\taskdefs\webservices\clientgen\
 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Amit,

I am also getting the same error when I am migrating my application from 8.1 SP6 to 9.2 MP3.

I get the same error when I am building the app through ant 1.7.

any inputs on this error?


thanks
Jyothsna
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have stumbled upon an old thread. The problem could be a complicated class loader problem or a simple one where you simply missed to add something to the class path. Provide more details about the problem to help us understand it better
 
Jyothsna Panchagnula
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Deepak,


I am trying to build my application in 9.2 weblogic through ant script.



I have the following jars in the ant build path:
1. weblogic.jar
2. webserrvices.jar
3. ant.jar
4. webserviceclient.jar
5. xbean.jar
6. webserviceclient+ssl.jar
7. wlxbean.jar
8. weblogic-container-binding.jar
9. tools.jar
10. rt.jar

My ant version is 1.7 , jdk 1.5 , weblogic 9.2 MP3

Am I missing something here?

Appreciate your inputs on this.

thanks,
Jyothsna
 
Deepak Bala
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oh a compilation problem ? Include api.jar in your compilation classpath. And try to check which jar file this class exists in. If you are lucky, a 'find in' search from a window explorer can reveal the jar file to import, even if the search is made on a binary jar file.
reply
    Bookmark Topic Watch Topic
  • New Topic