I'm trying to deploy an MBean using an XML descriptor. The classes for the
MBean are located in my WAR file. For example classes would exist here:
deploy/webapplication.war/WEB-INF/classes/com/example/mbeans/TestMBean.class
deploy/webapplication.war/WEB-INF/classes/com/example/mbeans/Test.class
I put the descriptor for this inside the user-service.xml in the deploy
directory. Like this:
Code:
When jboss attempts to deploy the user-service.xml it can't find a classloader
for the classes:
09:56:21,583 ERROR [MainDeployer] Could not create deployment:
file:/C:/jboss-4.0.3SP1/server/default/deploy/user-service.xml
org.jboss.deployment.DeploymentException: No ClassLoaders found for:
mil.navy.fnmoc.pel.services.mbeans.CacheMonitor; - nested throwable:
(java.lang.ClassNotFoundException: No ClassLoaders found for:
mil.navy.fnmoc.pel.services.mbeans.CacheMonitor)
How can I load these classes from outside the war file?
IS the load repositry tag the answer? The way I understand it the loader
repository tag will limit the scope of my classes inside the war file. It seems
to me that this is already the case. Am I trying to use this incorrectly?
thanks for the help,
Tim
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940226#3940226
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940226
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user