Problem creating service jboss.cache:service=PojoCache
-------------------------------------------------------
Key: JBCACHE-1400
URL:
https://jira.jboss.org/jira/browse/JBCACHE-1400
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Cache loaders, JMX
Environment: java 1.5, jboss 4.0.2
Reporter: Deb Lopa
Assignee: Manik Surtani
My application have two xml files replSync-service.xml and pojocache-aop.xml. i kept this
two file in root of my ejb jar. The pojocache-service.xml using
"org.jboss.cache.pojo.jmx.PojoCacheJmxWrapper" so that jboss automatically
register the PojoCache. I have a bean class which use for registration of PojoCache.
found this form jboss documentation. I placed all the required jars to
jboss/server/default/lib. Then i am creating ear to deployed in jboss. i am facing
deployment issue when deploying my EAR.
CODE
---------
public org.jboss.cache.pojo.PojoCache getPojoCache() throws Exception {
MBeanServer server = MBeanServerLocator.locateJBoss();
ObjectName on = new ObjectName("jboss.cache:service=PojoCache");
MBeanInfo mi = server.getMBeanInfo(on);
PojoCache cache = null;
try {
PojoCacheJmxWrapperMBean cacheWrapper =
(PojoCacheJmxWrapperMBean) MBeanServerInvocationHandler.newProxyInstance(server, on,
PojoCacheJmxWrapperMBean.class, false);
cache = cacheWrapper.getPojoCache();
} catch (UndeclaredThrowableException e) {
e.printStackTrace();
}
return cache;
}
and a put method to put the cache.
ERROR - 1
---------------
2008-08-22 17:38:49,706 WARN [org.jboss.system.ServiceController] Problem creating
service jboss.cache:service=PojoCache
java.lang.NoClassDefFoundError: org/jboss/util/stream/MarshalledValueInputStream
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at
org.jboss.cache.factories.EmptyConstructorFactory.construct(EmptyConstructorFactory.java:54)
at
org.jboss.cache.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:287)
at
org.jboss.cache.factories.ComponentRegistry.invokeInjectionMethod(ComponentRegistry.java:248)
ERROR 2
--------------
error in put method of Bean class written by us. Due to company policies i cannot give the
error trace.
Due to these above error, PojoCache registration failed.
Whether i am missing any configuration for PojoCache.
we are using "org.jboss.cache.pojo.jmx.PojoCacheJmxWrapper" class for cache. i
searched net and some document every where for pojocache
"org.jboss.cache.aop.PjoCache" being used.
Please suggest how to configure pojocache for jboss 4.0.2
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira