[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Error deploying distributed-cache-sample.war in JBoss 5.0.1.GA  XML
Forum Index -> Ehcache
Author Message
ericlma

neo

Joined: 10/15/2009 09:31:59
Messages: 6
Offline

distributed-cache-sample.war packages TC 3.1.1 and Ehcache 1.7.0. Deploys fine in Tomcat 6.0.20 but not JBoss 5.0.1.GA. .war was dropped into $JBOSS_HOME/server/<myserver>/deploy.

Error is:

11:30:58,736 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.ClassNotFoundException: com.tc.logging.TCLogger
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 net.sf.ehcache.terracotta.L1Loader.findClass(L1Loader.java:25)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getConstructor(Class.java:1657)
at net.sf.ehcache.terracotta.StandaloneTerracottaStoreFactory.<init>(StandaloneTerracottaStoreFactory.java:115)

OS: 64-bit SUSE Linux 10 SP1
Java: 64-bit JDK6u12

I can dig a bit deeper but want to know whether others have seen this before.

Thanks,

Eric
ilevy

consul

Joined: 04/16/2008 10:26:42
Messages: 357
Offline

JBoss AS 5 support is coming.


See http://www.terracotta.org/web/display/docs/Platform+Support
ericlma

neo

Joined: 10/15/2009 09:31:59
Messages: 6
Offline

Thanks for the quick reply. Is this caused by JBoss' universal classloader?

Eric
ari

seraphim

Joined: 05/24/2006 14:23:21
Messages: 1665
Location: San Francisco, CA
Offline

actually, wait a sec. let me try it and see if I can reproduce.

--Ari
[WWW]
ari

seraphim

Joined: 05/24/2006 14:23:21
Messages: 1665
Location: San Francisco, CA
Offline

Hmmm,

I dropped this in to 4.2.3 GA in under 5 minutes just now. I can try 5.0.1 next.

--Ari
[WWW]
ari

seraphim

Joined: 05/24/2006 14:23:21
Messages: 1665
Location: San Francisco, CA
Offline

Ok. I can reproduce this. I mistakenly grabbed 5.1.0 instead of 5.0.1 but it is broken the same way.

We'll take a look. Thanks,

--Ari
[WWW]
ari

seraphim

Joined: 05/24/2006 14:23:21
Messages: 1665
Location: San Francisco, CA
Offline

Here's the stack trace for me on 5.1.0 with 3.1.2 and Ehcache 1.7.1 (pre-release bits you cannot get your hands on). Needless to say this is a problem either in our sample WAR and Jboss 5's stricter JEE 5 adherence to spec (basically a war considered malformed to a newer container) or just something wrong inside our sample otherwise. I think.

Code:
ava.lang.ClassNotFoundException: com.tc.logging.TCLogger
 	java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 	java.security.AccessController.doPrivileged(Native Method)
 	java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 	net.sf.ehcache.terracotta.L1Loader.findClass(L1Loader.java:25)
 	java.lang.ClassLoader.loadClass(ClassLoader.java:319)
 	java.lang.ClassLoader.loadClass(ClassLoader.java:254)
 	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:402)
 	java.lang.Class.getDeclaredConstructors0(Native Method)
 	java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
 	java.lang.Class.getConstructor0(Class.java:2699)
 	java.lang.Class.getConstructor(Class.java:1657)
 	net.sf.ehcache.terracotta.StandaloneTerracottaStoreFactory.<init>(StandaloneTerracottaStoreFactory.java:128)
 	sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 	sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 	sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 	java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 	net.sf.ehcache.util.ClassLoaderUtil.createNewInstance(ClassLoaderUtil.java:92)
 	net.sf.ehcache.TerracottaStoreHelper.newStoreFactory(TerracottaStoreHelper.java:91)
 	net.sf.ehcache.CacheManager.init(CacheManager.java:270)
 	net.sf.ehcache.CacheManager.<init>(CacheManager.java:248)
 	org.terracotta.Service.<clinit>(Service.java:19)
 	org.apache.jsp.index_jsp._jspService(index_jsp.java:63)
 	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
 	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


Please file a JIRA and we will get to it quite shortly, I believe. Your best bet for now is to roll back to a 4.x container w/o JEE 5 support. Thanks,

--Ari
[WWW]
freddy33

neo

Joined: 02/04/2009 06:13:23
Messages: 7
Offline

The same error happen for me on WebLogic 10.3.
I'm trying to reproduce it on a small sample here but without success.
I have also worked (and patched) a class loader issue on WLS 10.3 which is reported to Oracle (hopefully they'll do something about it!).

Anyway, here is my stack:
Code:
 weblogic.management.DeploymentException: 
 	at weblogic.application.internal.flow.JpaFlow.prepare(JpaFlow.java:59)
 	at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
 	at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
 	at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
 	at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
 	at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
 	at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
 	at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
 	at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
 	at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
 	at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
 	at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
 	at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
 	at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
 	at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
 	at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
 java.lang.ClassNotFoundException: com.tc.logging.TCLogger
 	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 net.sf.ehcache.terracotta.L1Loader.findClass(L1Loader.java:25)
 	at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
 	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
 	at java.lang.Class.getDeclaredConstructors0(Native Method)
 	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
 	at java.lang.Class.getConstructor0(Class.java:2699)
 	at java.lang.Class.getConstructor(Class.java:1657)
 	at net.sf.ehcache.terracotta.StandaloneTerracottaStoreFactory.<init>(StandaloneTerracottaStoreFactory.java:115)
 	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 net.sf.ehcache.util.ClassLoaderUtil.createNewInstance(ClassLoaderUtil.java:92)
 	at net.sf.ehcache.TerracottaStoreHelper.newStoreFactory(TerracottaStoreHelper.java:91)
 	at net.sf.ehcache.CacheManager.init(CacheManager.java:270)
 	at net.sf.ehcache.CacheManager.<init>(CacheManager.java:248)
 	at net.sf.ehcache.CacheManager.create(CacheManager.java:501)
 	at net.sf.ehcache.hibernate.SingletonEhCacheProvider.start(SingletonEhCacheProvider.java:123)
 	at org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge.start(RegionFactoryCacheProviderBridge.java:72)
 	at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
 	at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
 	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
 	at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
 	at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:330)
 	at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:123)
 	at weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(AbstractPersistenceUnitRegistry.java:331)
 	at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptors(AbstractPersistenceUnitRegistry.java:111)
 	at weblogic.deployment.EarPersistenceUnitRegistry.<init>(EarPersistenceUnitRegistry.java:52)
 	at weblogic.application.internal.flow.JpaFlow.prepare(JpaFlow.java:54)
 	at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
 	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
 	at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
 	at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
 	at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
 	at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
 	at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
 	at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
 	at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
 	at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
 	at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
 	at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
 	at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
 	at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
 	at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
 	at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
 
[WWW]
freddy33

neo

Joined: 02/04/2009 06:13:23
Messages: 7
Offline

It works for me now. Here is what I did, and I'm still not sure what was the issue!

I created a brand new WebLogic domain and redeploy my application to it => works.
So, on the old domain, I did a really deep clean of all caches and servers folders (it used to run WebLogic with DSO boot jars), and restarted => same error.
After clean, I deleted my application declaration (was declared there from WLS 9 format deploy script), stop/start, re-install the app => it works

Hope it helps someone else :)
[WWW]
rajoshi

seraphim

Joined: 07/04/2011 04:36:10
Messages: 1491
Offline

issue seems to be resolved .Please let know in case of more information.

Rakesh Joshi
Senior Consultant
Terracotta.
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team