Usually this means that the *-service.xml file is being deployed before the
.jar file with the classes it needs.  Solutions include:

-putting the classes in a .jar in [config]/lib

-using a .sar

-labeling the packages appropriately and using a deployment scanner that
alphabetizes the package deployment order

-using jboss 4 where these missing-class dependencies are handled
automatically

-backporting the fix to the missing-class-dependency management from 4 to 
3.2 and submitting a patch

You should check that this is indeed the problem by starting jboss with no
parts of your app deployed, deploying the .jar, and when it is completely
deployed, deploying the  *-service.xml

david jencks


On 2003.03.15 03:03 Muraly R wrote:
> Hi All,
>       I am writing an MBean which extends the ServiceMBeanSupport. This
> will 
> start the customised services for my application.
>       Instead of using 'sar', I am using '-service.xml' file for
> deployin the MBean.
>       All the classes related to the MBean and the MBean itself are
> inside the 
> 'jar' of my application.
>       When I start JBoss, I get the following error:
> <snip>
> 13:16:07,954 WARN  [ServiceConfigurator] Failed to complete install
> java.lang.ClassNotFoundException: No ClassLoaders found for: 
> com.cisco.nm.qpm.se
> rver.framework.services.PreLoadService
>          at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:138)
>          at 
> org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader
> 3.java:140)
> <snip>
> 
> <snip>
> 13:16:07,970 ERROR [URLDeploymentScanner] Failed to deploy: 
> org.jboss.deployment
> [EMAIL PROTECTED] url=file:/C:/Program 
> Files/C
> SCOpx/MDC/Shared/jboss-3.0.4/server/default/deploy/preload-service.xml, 
> deployed
> LastModified=0 }
> org.jboss.deployment.DeploymentException:
> qpm.preload:service=PreLoadService is
> not registered.; - nested throwable: 
> (javax.management.InstanceNotFoundException
> : qpm.preload:service=PreLoadService is not registered.)
>          at org.jboss.deployment.SARDeployer.create(SARDeployer.java:227)
> <snip>.
> 
> Does this mean that, 'sar' is required.
> Can anybody please clarify this.
> 
> My -service.xml file
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <server>
>    <mbean code="com.cisco.nm.qpm.server.framework.services.PreLoadService"
>           name="qpm.preload:service=PreLoadService">
>                <attribute name="EjbJndiName">KeyGenerator</attribute>
>         <depends>jboss.j2ee:service=EJB,jndiName=KeyGenerator</depends>
>    </mbean>
> </server>
> 
> Regards
> Muraly
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open! 
> Get cracking and register here for some mind boggling fun and 
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to