[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
ehCache standalone + BigMemory GO  XML
Forum Index -> Ehcache
Author Message
kallenm

neo

Joined: 03/26/2014 14:18:17
Messages: 4
Offline

I have ehCache standalone setup and running and working fine using the REST interface. I want to now add Bigmemory support but am hitting some problems. I noticed on the standalone help page that I need to use a Bigmemory version less than 4 so I found 3.7.5 for my test.

First problem I ran into was an XML parsing error once I added the maxBytesLocalOffHeap attribute to ehcache.xml. I assume this is because the standalone ships with ehcache-core-2.0.1. I switched it out with ehcache-core-2.6.8 but am now getting the following exception.

Do I need to update the jersey jars? Any help would be appreciated. Thanks

SEVERE: Exception while deploying the app
java.lang.RuntimeException: WEB9033: Unable to load class with name [rest-manage
ment-private-classpath.com.sun.jersey.server.impl.container.servlet.ServletAdapt
or$1], reason: java.lang.NoClassDefFoundError: rest-management-private-classpath
/com/sun/jersey/server/impl/container/servlet/ServletAdaptor$1 (wrong name: com/
sun/jersey/server/impl/container/servlet/ServletAdaptor$1)
at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoade
r.java:944)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoad
er.java:1420)
at com.sun.enterprise.deployment.annotation.impl.ModuleScanner.getElemen
ts(ModuleScanner.java:247)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(
Archivist.java:541)
at org.glassfish.web.embed.impl.EmbeddedWebArchivist.processAnnotations(
EmbeddedWebArchivist.java:121)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Arc
hivist.java:447)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Arc
hivist.java:420)
at com.sun.enterprise.deployment.archivist.Archivist.readRestDeploymentD
escriptors(Archivist.java:396)
at com.sun.enterprise.deployment.archivist.Archivist.openWith(Archivist.
java:259)
at com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(A
pplicationFactory.java:222)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.jav
a:145)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.jav
a:78)
at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(Applic
ationLifecycle.java:612)
at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos
(ApplicationLifecycle.java:554)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationL
ifecycle.java:262)
at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDep
loyerImpl.java:214)
at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDep
loyerImpl.java:144)
at net.sf.ehcache.server.standalone.Server$GlassfishServerThread.startWi
thGlassfish(Server.java:264)
at net.sf.ehcache.server.standalone.Server$GlassfishServerThread.run(Ser
ver.java:237)
kallenm

neo

Joined: 03/26/2014 14:18:17
Messages: 4
Offline

Seems this error comes from ehcache-ee-2.6.6.jar which comes with BigMemory GO 3.7.5. When I remove it the error goes away but instead ehcache complains that the EE is needed for local off heap support which is understandable.

java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: net.sf.ehcache.CacheException: Cache shopCache cannot be configured because the enterprise features manager could not be found. You must use an enterprise version of Ehcache to successfully enable overflowToOffHeap.

I'm getting the impression that standalone is not compatible with BigMemory-GO?
kallenm

neo

Joined: 03/26/2014 14:18:17
Messages: 4
Offline

Figured this out. Once I cut the "rest-management-private-classpath"path from ehcache-ee-2.6.6.jar everything started working correctly with no more exceptions.
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team