There is no jar file that I'm trying to use for this exmple.  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:

  | <classpath 
codebase="deploy/webapplication.war/WEB-INF/classes/com/example/mbeans/" 
archives="*.class" />
  | 
  |   <mbean code="com.example.mbeans.Test" 
  |                name="com.example.mbeans:service=Test">        
  |   </mbean>  
  | 
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)

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=3940216#3940216

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940216


-------------------------------------------------------
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

Reply via email to