java.lang.IllegalStateException: Classloader name not set, instances defined from this loader not supported in Terracotta (loader: com.sun.enterprise.loader.EJBClassLoader)

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GlassFish Classloader not supported
    via by vto,
  • NullPointerException when deploy
    via by Unknown author,
  • Terracotta Project Issue Tracker
    via by Unknown author,
  • Problem with classloader on JBoss 5.1.0.GA
    via by Unknown author,
  • We should create a much clearer error message when someone is getting hit by the named class loader problem. Would also be nice to create a clear error message when someone is clearly missing a container tim. 09:49:22.336 - ERROR [edu.internet2.middleware.shibboleth.common.profile.ProfileRequestDispatcherServlet:85] - Error processing profile request java.lang.IllegalStateException: Classloader name not set, instances defined from this loader not supported in Terracotta (loader: org.apache.catalina.loader.WebappClassLoader) at java.lang.ClassLoader.__tc_getClassLoaderName(ClassLoader.java) [na:1.6.0_07] at com.tc.object.loaders.StandardClassProvider.getName(StandardClassProvider.java:160) [na:na] at com.tc.object.loaders.StandardClassProvider.getLoaderDescriptionFor(StandardClassProvider.java:153) [na:na] at com.tc.object.loaders.StandardClassProvider.getLoaderDescriptionFor(StandardClassProvider.java:147) [na:na] at com.tc.object.TCClassFactoryImpl.getOrCreate(TCClassFactoryImpl.java:60) [na:na] at com.tc.object.ClientObjectManagerImpl.getPortableObjects(ClientObjectManagerImpl.java:239) [na:na] at com.tc.object.Traverser.addReferencedObjects(Traverser.java:37) [na:na] at com.tc.object.Traverser.traverse(Traverser.java:81) [na:na] at com.tc.object.ClientObjectManagerImpl.addToManagedFromRoot(ClientObjectManagerImpl.java:944) [na:na] at com.tc.object.ClientObjectManagerImpl.create(ClientObjectManagerImpl.java:290) [na:na] at com.tc.object.ClientObjectManagerImpl.lookupOrCreateIfNecesary(ClientObjectManagerImpl.java:350) [na:na] at com.tc.object.ClientObjectManagerImpl.lookupOrCreate(ClientObjectManagerImpl.java:323) [na:na] at com.tc.object.tx.ClientTransactionManagerImpl.logicalInvoke(ClientTransactionManagerImpl.java:807) [na:na] at com.tc.object.TCObjectLogical.logicalInvoke(TCObjectLogical.java:18) [na:na] at com.tc.object.bytecode.ManagerImpl.logicalInvoke(ManagerImpl.java:253) [na:na] at com.tc.object.bytecode.ManagerUtil.logicalInvoke(ManagerUtil.java:251) [na:na] at java.util.concurrent.ConcurrentHashMap$Segment.put(ConcurrentHashMap.java:439) [na:1.6.0_07] at java.util.concurrent.ConcurrentHashMap.put(Unknown Source) [na:1.6.0_07] at edu.internet2.middleware.shibboleth.common.util.EventingMapBasedStorageService.put(EventingMapBasedStorageService.java:104) [shibboleth-common-1.1.2.jar:na] [...] I'm using a standard Apache Tomcat 5.5.27 (tar ball from tomcat.apache.org) with Java 1.6.0_07 on Debian/etch and the tim-module 2.3.1 installed as described on https://spaces.internet2.edu/display/SHIB2/IdPCluster . The client connection to the Terracotta server was successful. Any idea? Is anyone using TC 3.0.0 successfully with IdP 2.1? Where could I get a 2.7 version of TC? Patrik
    via by Steve Harris,
  • We should create a much clearer error message when someone is getting hit by the named class loader problem. Would also be nice to create a clear error message when someone is clearly missing a container tim. 09:49:22.336 - ERROR [edu.internet2.middleware.shibboleth.common.profile.ProfileRequestDispatcherServlet:85] - Error processing profile request java.lang.IllegalStateException: Classloader name not set, instances defined from this loader not supported in Terracotta (loader: org.apache.catalina.loader.WebappClassLoader) at java.lang.ClassLoader.__tc_getClassLoaderName(ClassLoader.java) [na:1.6.0_07] at com.tc.object.loaders.StandardClassProvider.getName(StandardClassProvider.java:160) [na:na] at com.tc.object.loaders.StandardClassProvider.getLoaderDescriptionFor(StandardClassProvider.java:153) [na:na] at com.tc.object.loaders.StandardClassProvider.getLoaderDescriptionFor(StandardClassProvider.java:147) [na:na] at com.tc.object.TCClassFactoryImpl.getOrCreate(TCClassFactoryImpl.java:60) [na:na] at com.tc.object.ClientObjectManagerImpl.getPortableObjects(ClientObjectManagerImpl.java:239) [na:na] at com.tc.object.Traverser.addReferencedObjects(Traverser.java:37) [na:na] at com.tc.object.Traverser.traverse(Traverser.java:81) [na:na] at com.tc.object.ClientObjectManagerImpl.addToManagedFromRoot(ClientObjectManagerImpl.java:944) [na:na] at com.tc.object.ClientObjectManagerImpl.create(ClientObjectManagerImpl.java:290) [na:na] at com.tc.object.ClientObjectManagerImpl.lookupOrCreateIfNecesary(ClientObjectManagerImpl.java:350) [na:na] at com.tc.object.ClientObjectManagerImpl.lookupOrCreate(ClientObjectManagerImpl.java:323) [na:na] at com.tc.object.tx.ClientTransactionManagerImpl.logicalInvoke(ClientTransactionManagerImpl.java:807) [na:na] at com.tc.object.TCObjectLogical.logicalInvoke(TCObjectLogical.java:18) [na:na] at com.tc.object.bytecode.ManagerImpl.logicalInvoke(ManagerImpl.java:253) [na:na] at com.tc.object.bytecode.ManagerUtil.logicalInvoke(ManagerUtil.java:251) [na:na] at java.util.concurrent.ConcurrentHashMap$Segment.put(ConcurrentHashMap.java:439) [na:1.6.0_07] at java.util.concurrent.ConcurrentHashMap.put(Unknown Source) [na:1.6.0_07] at edu.internet2.middleware.shibboleth.common.util.EventingMapBasedStorageService.put(EventingMapBasedStorageService.java:104) [shibboleth-common-1.1.2.jar:na] [...] I'm using a standard Apache Tomcat 5.5.27 (tar ball from tomcat.apache.org) with Java 1.6.0_07 on Debian/etch and the tim-module 2.3.1 installed as described on https://spaces.internet2.edu/display/SHIB2/IdPCluster . The client connection to the Terracotta server was successful. Any idea? Is anyone using TC 3.0.0 successfully with IdP 2.1? Where could I get a 2.7 version of TC? Patrik
    via by Steve Harris,
  • Problem with classloader on JBoss 5.1.0.GA
    via by dlukow,
    • java.lang.IllegalStateException: Classloader name not set, instances defined from this loader not supported in Terracotta (loader: com.sun.enterprise.loader.EJBClassLoader) at java.lang.ClassLoader.__tc_getClassLoaderName(ClassLoader.java) at com.tcspring.ApplicationHelper.getAppNameFrom(ApplicationHelper.java:49) at com.tcspring.ApplicationHelper.<init>(ApplicationHelper.java:42) at com.tcspring.DistributableBeanFactoryMixin.<init>(DistributableBeanFactoryMixin.java:64) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.tc.aspectwerkz.aspect.DefaultMixinFactory.mixinOf(DefaultMixinFactory.java:130) at com.tc.aspectwerkz.aspect.management.Mixins.mixinOf(Mixins.java:142) at com.tc.aspectwerkz.aspect.management.Mixins.mixinOf(Mixins.java:124) at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:143) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:132) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:143) at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:99) at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:144) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:99) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389) at org.springframework.context.support.AbstractApplicationContext.aw$original$_AW_$refresh$_AW_$org_springframework_context_support_AbstractApplicationContext(AbstractApplicationContext.java:324) at org.springframework.context.support.AbstractApplicationContext_1__321890630_1085445456___AW_JoinPoint.invoke(Unknown Source) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4523) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184) at com.sun.enterprise.web.WebModule.start(WebModule.java:326) at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58) at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304) at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    No Bugmate found.