[JBossCache] - TreeCache replication: No ClassLoaders found and using TreeC
by jyoonyang
Hi,
I was getting "No ClassLoaders found" exception during replication when TreeCache is deployed as an MBean and -service.xml is included within my ear. This problem doesn't occur if I keep -service.xml out side the ear and deploy directly into <JBOSS_HOME>/server//deploy directory
I'm using JBoss 4.0.4.
Here is my jboss-app.xml
| <jboss-app>
| ...
| <module>
| <service>MyCachTree-service.xml</service>
| </module>
| ...
|
Here is my ear
| META-INF/
| META-INF/MANIFEST.MF
| mywar.war
| lib/
| lib/classes12.jar
| META-INF/jboss-app.xml
| MyCachTree-service.xml
| META-INF/application.xml
|
The offending class is inside mywar.war.
I tried setting up TreeCacheMarshaller. Now the cache is not getting replicated.
Here is the code registering the region. This class has reference to the cache and does putting and getting to/from cache.
| MBeanServer server = MBeanServerLocator.locateJBoss();
| ObjectName objName = new ObjectName(getTreeCacheName());
| cache = (TreeCacheMBean) MBeanProxy.get(
| TreeCacheMBean.class,
| objName,
| server);
| cache.registerClassLoader("test", this.getClass().getClassLoader());
| cache.activateRegion("test");
|
MyCachTree-service.xml
| <attribute name="UseMarshalling">true</attribute>
| <attribute name="InactiveOnStartup">true</attribute>
|
What am I doing wrong?
Thanks for your help,
Jennifer
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983129#3983129
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983129
19Â years, 6Â months
[Beginners Corner] - Wanted: Web based Application for System Analysis - Is JBos
by rslinct
Wow, this is my first post and I am already wiped out. That registration process was tiring.
Anyway, my application is as follows:
I currently have a level 1 control system running Windows XP for a processing line. The level 1 controls include things like a PLC, HMI (touch screen computers) and other machine controls. At times there can be up to 5 PC's.
I have a computer which is an interface to the outside world or WAN. All other devices/computers are on a local LAN.
I want to setup an MySQL db on this WAN side computer and let all my level 1 devices/computers dump tons of information to.
I want to create some web based pages/applications on this WAN computer which will access the MySQL for the data. The trick is, I want this to be accessible by anyone from their office using their Web Browser.
It sounds pretty normal but I cannot get any real specifcs from reading these pages. It seems like I should be able to do this but I am not sure.
Thanks for any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983126#3983126
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983126
19Â years, 6Â months