[jboss-user] [Installation, Configuration & DEPLOYMENT] - Problem deploying SAR, ClassNotFoundException
jmihalich
do-not-reply at jboss.com
Tue Jan 29 21:58:50 EST 2008
Hi,
I have been moving our ear and sar achives into an isolated class loader mode, by adding the <loader-repository> to the jboss-app, and jboss-service xml files for the respective applications. We are using jboss 4.0.5 on windows server 2003. Sun JDK 1.4.2.x.
All of my changes are working except the 2 SAR files I have. Even without the loader-repository element in the jboss-service.xml file I still have the problem.
The problem is that for some reason jboss can't find the class that is defined in the mbean tag. Here is what is defined in the service xml file:
Rim.ReaderInstanceManager
rfNetwork
The sar file contains a meta-inf directory with a manifest file, and the jboss-service.xml file as shown above. It also contains a bunch of jars, one of which has the package with the class com.mwvis.ri.instancemgr.ReaderInstanceManager in it.
However, when jboss starts up, I get this error message:
2008-01-29 18:31:27,903 [main] ERROR org.jboss.deployment.MainDeployer : Could not create deployment: file:/D:/java/jboss-4.0.5.GA-Vue/server
/default/deploy/com.mwvis.rim_1_0.sar
org.jboss.deployment.DeploymentException: No ClassLoaders found for: com.mwvis.ri.instancemgr.ReaderInstanceManager; - nested throwable: (jav
a.lang.ClassNotFoundException: No ClassLoaders found for: com.mwvis.ri.instancemgr.ReaderInstanceManager)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
Can someone please help me figure out why jboss can't find the class which is in one of the jars in the sar? Is there someplace i have to specify what jar the class is in?
I didn't have this problem when I was in the standard shared class loader mode. But obviously that doesn't mean something was wrong all the time.
Thanks,
Joe
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124638#4124638
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124638
More information about the jboss-user
mailing list