• 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

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have written a sample Java client to access a connection from a connection pool. This is using the JDBC/RMI type-2 driver for Oracle. I have defined the connection pool & the datasource in the weblogic.properties file. The program uses JNDI to do the lookup. Though the program compiles, it is giving a run-time error. I've pasted the error code below. Basically, it is stating that it's not able to find com/sun/java/util/collections/map package.
Does anyone have an idea about the cause for this run-time error? Please help.
Regards,
Chidananda.

"Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/java/util/col
lections/Map
at weblogic.common.internal.ThreadStorage.<clinit>(ThreadStorage.java:19
)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java, Compiled Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java:148)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
72)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250
)
at javax.naming.InitialContext.init(InitialContext.java:226)
at javax.naming.InitialContext.<init>(InitialContext.java:202)
 
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Map interface that your program can't find should be found in weblogicaux.jar, the full path of which should be on your CLASSPATH.
Check that the correct weblogic jar files are correctly placed on your classpath.
 
reply
    Bookmark Topic Watch Topic
  • New Topic