javax.naming.NamingException

oracle/oc4j/sql/CommonDataSource [Root exception is java.lang.NoClassDefFoundError: oracle/oc4j/sql/CommonDataSource] [Root exception is javax.naming.NamingException: oracle/oc4j/sql/CommonDataSource [Root exception is java.lang.NoClassDefFoundError: oracle/oc4j/sql/CommonDataSource]]

Samebug tips2

org.apache.http.config.Lookup class is in httpcore-4.3.jar not in httpclient-4.3.1.jar


rafaelrafael

Look if your classpath is correct, and check if the versions of your libraries match the version you described in your pom.xml


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3580

  • via Unknown by Unknown author,
  • via Unknown by 513155,
  • Stack trace

    • javax.naming.NamingException: oracle/oc4j/sql/CommonDataSource [Root exception is java.lang.NoClassDefFoundError: oracle/oc4j/sql/CommonDataSource] [Root exception is javax.naming.NamingException: oracle/oc4j/sql/CommonDataSource [Root exception is java.lang.NoClassDefFoundError: oracle/oc4j/sql/CommonDataSource]] at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:81) at javax.naming.InitialContext.lookup(InitialContext.java:351) at com.antegra.base.core.logic.bean.FactoryBean.main(FactoryBean.java:75) Caused by: javax.naming.NamingException: oracle/oc4j/sql/CommonDataSource [Root exception is java.lang.NoClassDefFoundError: oracle/oc4j/sql/CommonDataSource] at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:103) at com.evermind.server.rmi.RMIClientConnection.waitForJndiResponse(RMIClientConnection.java:437) at com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.java:240) at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:302) at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:64) ... 2 more Caused by: java.lang.NoClassDefFoundError: oracle/oc4j/sql/CommonDataSource at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at com.evermind.io.ClassLoaderObjectInputStream.resolveClass(ClassLoaderObjectInputStream.java:40) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339) at com.evermind.server.rmi.RMIClientConnection.handleLookupResponse(RMIClientConnection.java:901) at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:345) at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:304) at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:286) at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:150) at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:126) at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:105) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) at com.evermind.server.rmi.RMICall.warningExceptionOriginatesFromTheRemoteServer(RMICall.java:112) at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:94) ... 6 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    pulse00pulse00
    6 times, last one
    guizmaiiguizmaii
    2 times, last one
    andyglickandyglick
    Once,
    serious2monkeysserious2monkeys
    60 times, last one
    189 more bugmates