javax.naming.NamingException: Could not dereference object [Root exception is java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader@112b0e5]

coderanch.com | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    problem: Deployment of same EJB components with different JNDI name. (JBoss/WildFly forum at Coderanch)

    coderanch.com | 5 months ago
    javax.naming.NamingException: Could not dereference object [Root exception is java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader@112b0e5]
  2. 0

    problem: Deployment of same EJB components with different JNDI name.

    Coderanch | 7 years ago | Shayan Shah
    javax.naming.NamingException: Could not dereference object [Root exception is java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader@112b0e5]
  3. 0

    Dynamic classloading issue | JBoss Developer

    jboss.org | 7 months ago
    javax.naming.NamingException: Could not dereference object [Root exception is java.lang.RuntimeException: Can not find interface declared by Proxy in our CL + sun.misc.Launcher$AppClassLoader@1a16869]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I've pointed pom.xml to the preinstalled V3 b74b. I've configured appserver with mysql and created correspondent resources in appserver. In pom.xml was useed dbVendorName=mssql and createTables=true. I've tried to deploy cmpcustomer sample. But I saw SQL exceptions during the deployment: java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource See all messages bellow. To reproduce the issue. 1) Install appserver, create S1AS_HOME 2) cvs co appserver-sqe/bootstrap.xml, create SPS_HOME 3) ant -f bootstrap.xml co-ejb 4) cd to appserver-sqe/pe/ejb/ejb30/persistence/datatypes 5) ant mysql-setup (it will setup appserver with mysql) 6) In buildJava2DB.xml replace resources names with your names. For cmpcusomer.ear: cmpcustomer-pool/jdbc/cmpcustomer. I've attached buildJava2DB.xml with these names. 7) ant -f buildJava2DB.xml setup (it will create jdbc resources in appserver) 8) execute through maven cmpcustomer.ear deployment with dbVendorName=mssql and createTables=true, pointing to preinstalled appserver. I've attached an archive INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver. Dec 16, 2009 1:59:13 PM com.sun.gjc.common.DataSourceObjectBuilder getDataSourceObject SEVERE: jdbc.exc_cnfe_ds java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.sun.gjc.common.DataSourceObjectBuilder.getDataSourceObject(DataSourceObjectBuilder.java:279) at com.sun.gjc.common.DataSourceObjectBuilder.constructDataSourceObject(DataSourceObjectBuilder.java:108) at com.sun.gjc.spi.ManagedConnectionFactory.getDataSource(ManagedConnectionFactory.java:1167) at com.sun.gjc.spi.DSManagedConnectionFactory.getDataSource(DSManagedConnectionFactory.java:135) at com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(DSManagedConnectionFactory.java:90) at com.sun.enterprise.resource.allocator.LocalTxConnectorAllocator.createResource(LocalTxConnectorAllocator.java:72) at com.sun.enterprise.resource.pool.ConnectionPool.createSingleResource(ConnectionPool.java:834) at com.sun.enterprise.resource.pool.ConnectionPool.createResource(ConnectionPool.java:1087) at com.sun.enterprise.resource.pool.datastructure.ListDataStructure.addResource(ListDataStructure.java:121) at com.sun.enterprise.resource.pool.ConnectionPool.addResource(ConnectionPool.java:268) at com.sun.enterprise.resource.pool.ConnectionPool.createResourceAndAddToPool(ConnectionPool.java:1381) at com.sun.enterprise.resource.pool.ConnectionPool.createResources(ConnectionPool.java:862) at com.sun.enterprise.resource.pool.ConnectionPool.initPool(ConnectionPool.java:220) at com.sun.enterprise.resource.pool.ConnectionPool.internalGetResource(ConnectionPool.java:446) at com.sun.enterprise.resource.pool.ConnectionPool.getResource(ConnectionPool.java:360) at com.sun.enterprise.resource.pool.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:227) at com.sun.enterprise.resource.pool.PoolManagerImpl.getResource(PoolManagerImpl.java:151) at com.sun.enterprise.connectors.ConnectionManagerImpl.getResource(ConnectionManagerImpl.java:321) at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:280) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:172) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:149) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:144) at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:105) at org.glassfish.persistence.common.Java2DBProcessorHelper.getConnection(Java2DBProcessorHelper.java:636) at org.glassfish.persistence.common.Java2DBProcessorHelper.executeDDLStatement(Java2DBProcessorHelper.java:572) at org.glassfish.persistence.common.Java2DBProcessorHelper.createOrDropTablesInDB(Java2DBProcessorHelper.java:267) at com.sun.jdo.spi.persistence.support.ejb.ejbc.CMPProcessor.process(CMPProcessor.java:128) at com.sun.jdo.spi.persistence.support.ejb.codegen.CMPDeployerImpl.deploy(CMPDeployerImpl.java:225) at org.glassfish.ejb.startup.EjbDeployer.generateArtifacts(EjbDeployer.java:321) at org.glassfish.javaee.core.deployment.JavaEEDeployer.prepare(JavaEEDeployer.java:209) at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:644) at org.glassfish.javaee.full.deployment.EarDeployer.prepareBundle(EarDeployer.java:269) at org.glassfish.javaee.full.deployment.EarDeployer.access$200(EarDeployer.java:79) at org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:131) at org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:129) at org.glassfish.javaee.full.deployment.EarDeployer.doOnBundles(EarDeployer.java:197) at org.glassfish.javaee.full.deployment.EarDeployer.doOnAllTypedBundles(EarDeployer.java:206) at org.glassfish.javaee.full.deployment.EarDeployer.doOnAllBundles(EarDeployer.java:232) at org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:129) at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:644) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:296) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:214) at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:144) at org.glassfish.maven.DeployMojo.execute(DeployMojo.java:75) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:301) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Dec 16, 2009 1:59:13 PM com.sun.enterprise.resource.allocator.LocalTxConnectorAllocator createResource WARNING: poolmgr.create_resource_error Dec 16, 2009 1:59:13 PM com.sun.enterprise.connectors.ConnectionManagerImpl internalGetConnection WARNING: poolmgr.get_connection_failure Dec 16, 2009 1:59:13 PM com.sun.gjc.spi.base.DataSource getConnection WARNING: jdbc.exc_get_conn Dec 16, 2009 1:59:13 PM org.glassfish.persistence.common.Java2DBProcessorHelper logI18NWarnMessage WARNING: Cannot connect to database via JNDI name 'jdbc/cmpcustomer': java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : com.mysql.jdbc.jdbc2.optional.MysqlDataSource.

    Java.net JIRA | 7 years ago | easarina
    java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
  6. 0

    Glassfish 3.1.2 OSE on IBM J9 JVM

    Oracle Community | 5 years ago | petino
    java.lang.ClassNotFoundException: com.ibm.ws.security.jaspi.ProviderRegistry

  1. andyglick 8 times, last 1 week ago
  2. tyson925 3 times, last 1 week ago
  3. Adrien 8 times, last 2 weeks ago
  4. SteVio1989 4 times, last 3 weeks ago
  5. jstrayer 1 times, last 3 weeks ago
58 more registered users
37 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.MyBeanLocal

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:303)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    6. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
    7. java.lang.Class.forName0(Native Method)
    8. java.lang.Class.forName(Class.java:247)
    8 frames
  3. org.jboss.ejb3
    ProxyObjectFactory.getObjectInstance
    1. org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.redefineProxyInTcl(ProxyObjectFactory.java:339)
    2. org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:134)
    3. org.jboss.ejb3.proxy.impl.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)
    4. org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:158)
    4 frames
  4. Java RT
    NamingManager.getObjectInstance
    1. javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    1 frame
  5. org.jnp.interfaces
    NamingContext.lookup
    1. org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1479)
    2. org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1496)
    3. org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1504)
    4. org.jnp.interfaces.NamingContext.lookup(NamingContext.java:822)
    5. org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
    5 frames
  6. Java RT
    InitialContext.lookup
    1. javax.naming.InitialContext.lookup(InitialContext.java:392)
    1 frame
  7. finagle-core
    MyBean.lookupLocationC2MyBean
    1. com.MyBean.lookupLocationC2MyBean(MyBean.java:53)
    1 frame
  8. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame