my dog learned polymorphism*
The moose likes BEA/Weblogic and the fly likes NoClassDefFoundError - XmlException + weblogic 10 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "NoClassDefFoundError - XmlException + weblogic 10" Watch "NoClassDefFoundError - XmlException + weblogic 10" New topic
Author

NoClassDefFoundError - XmlException + weblogic 10

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
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
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
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


Amit Tank
Linked In
Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
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

Joined: Mar 28, 2004
Posts: 257
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.
alox3
Greenhorn

Joined: Jun 26, 2008
Posts: 1
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
metro pol
Greenhorn

Joined: Aug 27, 2008
Posts: 1
this this
wlserver_10.0\server\lib\webservices.jar\weblogic\ant\taskdefs\webservices\clientgen\
Jyothsna Panchagnula
Ranch Hand

Joined: Jul 11, 2005
Posts: 113
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
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

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


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Jyothsna Panchagnula
Ranch Hand

Joined: Jul 11, 2005
Posts: 113
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

Joined: Feb 24, 2006
Posts: 6661
    
    5

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.
 
GeeCON Prague 2014
 
subject: NoClassDefFoundError - XmlException + weblogic 10