Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

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

  2. ,
    Expert tip

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

Solutions on the web

via Oracle Community by 513155, 1 year ago
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]]
via hivmr.com by Unknown author, 2 years ago
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]]
via Oracle Community by 521069, 1 year ago
Lookup error: javax.naming.NamingException [Root exception is java.lang.ExceptionInInitializerError]; nested exception is: javax.naming.NamingException [Root exception is java.lang.ExceptionInInitializerError] [Root exception is javax.naming.NamingException [Root exception is java.lang.ExceptionInInitializerError]]
via Oracle Community by 452919, 9 months ago
Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
via Oracle Community by 754905, 1 year ago
Lookup error: javax.naming.NamingException: oracle/security/jazn/realm/RealmPrincipal [Root exception is java.lang.NoClassDefFoundError: oracle/security/jazn/realm/RealmPrincipal]; nested exception is: javax.naming.NamingException: oracle/security
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 moreCaused 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