JBoss 3.2.7

I have a service, configured by the following xml file, that depends on the 
classes in a jar file.  The jar file (simple.jar) is present in the deploy 
directory of the server.

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <server>
  |     <mbean code="com.test.Simple" 
  |                name="com.test.simple:service=SimpleService">
  |    
  |               <classpath codebase="deploy" archives="simple.jar"/>
  |     </mbean>
  | </server>
  | 
I get the following error on startup:
18:34:09,956 ERROR [MainDeployer] could not create deployment: file:/C:/dev/se
  | ers/jboss/jboss-3.2.7/server/default/deploy/simple-service.xml
  | org.jboss.deployment.DeploymentException: create operation failed for 
package
  | 
le:/C:/dev/servers/jboss/jboss-3.2.7/server/default/deploy/simple-service.xml;
  |  nested throwable: (org.jboss.deployment.DeploymentException: No 
ClassLoaders
  | und for: com.test.Simple; - nested throwable: 
(java.lang.ClassNotFoundException
  |  No ClassLoaders found for: com.test.Simple))
  |         at org.jboss.deployment.SARDeployer.create(SARDeployer.java:227)
  |         at org.jboss.deployment.MainDeployer.create(MainDeployer.java:783)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
  |         at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)

Is there any way to specify that a service depends on a jar file?  The only 
workaround I see is by putting the jar file in the lib directory of the default 
server.

Thanks

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885851#3885851

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


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to