Announcement Announcement Module
Collapse
No announcement yet.
java.lang.NoClassDefFoundError: weblogic/rmi/extensions/server/Stub Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.lang.NoClassDefFoundError: weblogic/rmi/extensions/server/Stub

    When I'm reloading an application installed on Tomcat 5.5.20 that acceses Weblogic EJBs I get the following exception, any ideas why is this happening? (The wl*.jar and spring*.jar libraries are only inside $CATALINA_HOME/common/lib and If I restart Tomcat works fine)

    Thanks,

    Johann

    Code:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reportes' defined in class path resource [cl-sii-sdi-oicc-reportes-bd-appCtx.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: weblogic/rmi/extensions/server/Stub
    Caused by: 
    java.lang.NoClassDefFoundError: weblogic/rmi/extensions/server/Stub
    	at java.lang.ClassLoader.defineClass0(Native Method)
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    	at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:480)
    	at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    	at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
    	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Class.java:219)
    	at weblogic.utils.classloaders.GenericClassLoader.defineCodeGenClass(GenericClassLoader.java:776)
    	at weblogic.utils.classfile.utils.CodeGenerator.generateClass(CodeGenerator.java:97)
    	at weblogic.rmi.internal.StubGenerator.hotCodeGenClass(StubGenerator.java:793)
    	at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:703)
    	at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:747)
    	at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:734)
    	at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
    	at weblogic.common.internal.RMIBootServiceStub.getStub(RMIBootServiceStub.java:50)
    	at weblogic.security.acl.internal.Security.authenticate(Security.java:156)
    	at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRemotely(WLInitialContextFactoryDelegate.java:610)
    	at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:531)
    	at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:341)
    	at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:313)
    	at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:239)
    	at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
    	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    	at javax.naming.InitialContext.init(InitialContext.java:219)
    	at javax.naming.InitialContext.<init>(InitialContext.java:195)
    	at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:105)
    	at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:83)
    	at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
    	at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)
    	at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:91)
    	at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
    	at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.lookup(AbstractRemoteSlsbInvokerInterceptor.java:92)
    	at org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.refreshHome(AbstractSlsbInvokerInterceptor.java:104)
    	at org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.afterPropertiesSet(AbstractSlsbInvokerInterceptor.java:91)
    	at org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean.afterPropertiesSet(SimpleRemoteStatelessSessionProxyFactoryBean.java:97)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:276)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
    	at cl.sii.sdi.core.util.SdiSingletonBeanFactoryLocator.getBeanFactory(SdiSingletonBeanFactoryLocator.java:31)
    	at cl.sii.sdi.core.util.SdiSingletonBeanFactoryLocator.getBeanFactory(SdiSingletonBeanFactoryLocator.java:21)
    	at cl.sii.sdi.core.util.SdiDefaultServiceWrapper.getService(SdiDefaultServiceWrapper.java:7)
    	at cl.sii.sdi.oicc.reportes.bd.ReportesCacheBd.getThisService(ReportesCacheBd.java:27)
    	at cl.sii.sdi.oicc.reportes.bd.ReportesCacheBd.get(ReportesCacheBd.java:15)
    	at cl.sii.sdi.oicc.reportes.util.ChartFilter.doFilter(ChartFilter.java:66)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    	at java.lang.Thread.run(Thread.java:534)

  • #2
    Well, didn't find the solution but more on this topic can be found at Tomcat Forum

    Johann

    Comment

    Working...
    X