Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Chris - am awaiting a response  RSS feed

 
PNS Subramanian
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am facing an issue of NoClassDefFoundError - the following is the scenario.

Have a component A which calls (through a lookup) component B. The client jar at B's side has been changed to a new version, while A continues to use the old version of the client jar itself. Both the versions have a certain class (unchanged) which needs to be loaded during lookup of B. The message i get to see is NoClassDefFoundError xxxException while looking up for B.
1) The server used here is Weblogic - is it server specific ?
2) Should a serial version uid problem occur - why does a NoClassDefFound Error occur ?
 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by PNS Subramanian:
I am facing an issue of NoClassDefFoundError - the following is the scenario.

Have a component A which calls (through a lookup) component B. The client jar at B's side has been changed to a new version, while A continues to use the old version of the client jar itself. Both the versions have a certain class (unchanged) which needs to be loaded during lookup of B. The message i get to see is NoClassDefFoundError xxxException while looking up for B.
1) The server used here is Weblogic - is it server specific ?
2) Should a serial version uid problem occur - why does a NoClassDefFound Error occur ?


Please check the class is available in the classpath.
 
Bruce Sheng
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the problem in weblogic7.0 before but I didn't work out the reason. I recompiled all sources including client part,redeployed the application and the problem disappeard. The version difference of the client side class(stub) and server side class (skelton) may be the cause.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!