Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

noclassdeffounderror - what am I missing?

Status
Not open for further replies.

dendenners

Programmer
Jul 17, 2001
110
IE

Hi there,
I'm trying to test a class that will eventually run by a servlet on its own. I'm using weblogic to pick up the database connections the class needs from one of its pools. The class runs fine on my win2000 pc, but when I try to run it on an aix machine it gives me a NoClassDefFoundError for LogOutputStream. I can't understand this, because when I do a grep on rt.jar, there is indeed a LogOutputStream class within the jar. Is there some other LogoutputStream class that should be included? ( It is looking for weblogic/logging/LogOutputStream', but the LogOutputStream in rt.jar is in sum.rmi.log package)

my classpath is:
/jdbc/lib/classes12.zip:/jdbc/lib/nls_charset12.zip:/usr/local/java_classes/lib/jakarta-oro-2.0.6.jar:/usr/local/java_classes/lib/log4j-1.2.jar:/usr/local/java_classes/lib/xalan.jar:/usr/local/java_classes/lib/xerces.jar:/usr/local/java_classes/lib/xml-apis.jar:/usr/local/java_classes/lib/xsltc.jar:/home/dmccarthy/weblogic/myserver/serverclasses:/home/dmccarthy/weblogic/lib/weblogic510sp10.jar:/home/dmccarthy/weblogic/lib/weblogicaux.jar:/usr/java_dev2/jre/lib/rt.jar


thank you


Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/logging/LogOutputStream
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:134)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:118)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
at javax.naming.InitialContext.init(InitialContext.java:218)
at javax.naming.InitialContext.<init>(InitialContext.java:194)
at com.omnipay.ram.dataAccess.DataBaseMgr.getContext(DataBaseMgr.java:146)

 
sorry, I found that problem. In my fixation with jar files I forget to check if a free class existed with that name; it does under weblogic.classes
Thanks anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top