Hello,

  The problem is the service.xml file is being deployed before of the .jar
file with his classes.
  A solution can be include a classpath tag on the service file with the jar file it
uses :

<service>
  <classpath codebase="." archives="PalmServer.jar"/>
   <mbean code="com.sigea.palmserver.mbean.PalmServerControl" 
name="Sigea:service=SigeaPalmServer">
   </mbean>
</service>  

Saturday, March 15, 2003, 10:30:54 AM, you wrote:

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


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




-- 
Best regards,
 Danilo                            mailto:[EMAIL PROTECTED]




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