[JBossCache] - Problems deploying POJO cache to JBoss AS 4.2.2.GA
by pete.muir@jboss.org
I'm trying to use POJO Cache with AS 4.2. If I deploy with just jgroups.jar, jbosscache-core.jar and jboss-aop.jar then I get a
Caused by: java.lang.NoClassDefFoundError: org/jboss/metadata/spi/signature/Signature
| at org.jboss.cache.pojo.impl.PojoCacheImpl.<clinit>(PojoCacheImpl.java)
| at org.jboss.cache.pojo.PojoCacheFactory.createCache(PojoCacheFactory.java:29)
| at org.jboss.seam.core.PojoCache.start(PojoCache.java:42)
I therefore included jboss-container.jar, and got this
aused by: java.lang.NoClassDefFoundError: org/jboss/util/stream/MarshalledValueOutputStream
| at org.jboss.cache.CacheImpl.<init>(CacheImpl.java:206)
| at org.jboss.cache.DefaultCacheFactory.createAndWire(DefaultCacheFactory.java:115)
| at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:95)
| at org.jboss.cache.pojo.impl.PojoCacheImpl.init(PojoCacheImpl.java:75)
| at org.jboss.cache.pojo.impl.PojoCacheImpl.<init>(PojoCacheImpl.java:58)
| at org.jboss.cache.pojo.PojoCacheFactory.createCache(PojoCacheFactory.java:29)
| at org.jboss.seam.core.PojoCache.start(PojoCache.java:42)
| ... 57 more
I then tried to include jboss-common-core.jar but that causes a lot of other problems. And this really doesn't feel like the right approach to me.
So, is there some docs I'm missing on using pojo cache 2.1 with AS 4.2? Or does it not work? I took a look at the compatibility matrix, but it doesn't really mention JBoss Cache 2.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123178#4123178
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123178
18 years, 4 months
[JBossCache] - Re: JBoss Cache POMS
by pete.muir@jboss.org
Oops, let me try again:
I'm upgrading from JBoss Cache 1.4 -> 2.1 in Seam (http://jira.jboss.com/jira/browse/JBSEAM-2522). Seam uses Maven for its dependency management, so I'm trying to use the published POMs on repository.jboss.org/maven2.
As I understand it, JBoss Cache should be usable outside a JavaEE environment running in JBoss AS which uses sleepycat je, c3p0 etc. (you get the point ;)
If so, the POMs should specify any optional dependencies as optional, like:
<dependency>
| <groupId>org.jboss</groupId>
| <artifactId>jboss-common-core</artifactId>
| <optional>true</optional>
| </dependency>
Otherwise consumers of JBoss Cache end up with a load of exclusions.
| <dependency>
| <groupId>org.jboss.cache</groupId>
| <artifactId>jbosscache-pojo</artifactId>
| <version>2.1.0.CR3</version>
| <exclusions>
| <exclusion>
| <groupId>jdbm</groupId>
| <artifactId>jdbm</artifactId>
| </exclusion>
| <exclusion>
| <groupId>c3p0</groupId>
| <artifactId>c3p0</artifactId>
| </exclusion>
| <exclusion>
| <groupId>sleepycat</groupId>
| <artifactId>je</artifactId>
| </exclusion>
| <exclusion>
| <groupId>org.jboss.javaee</groupId>
| <artifactId>jboss-javaee</artifactId>
| </exclusion>
| <exclusion>
| <groupId>org.jboss.microcontainer</groupId>
| <artifactId>jboss-container</artifactId>
| </exclusion>
| <exclusion>
| <groupId>org.jboss</groupId>
| <artifactId>jboss-common-core</artifactId>
| </exclusion>
| <exclusion>
| <groupId>net.jcip</groupId>
| <artifactId>jcip-annotations</artifactId>
| </exclusion>
| </exclusions>
| </dependency>
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123175#4123175
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123175
18 years, 4 months