I already set jboss.home property when I run the main application
 
e.g. java -Djboss.home=\JBossCatalina\Jboss mainapp
 
I get the following exception
 
     javax.management.ServiceNotFoundException: The specified URL is null
2002-01-18T14:15:29 JBossMain  mbr.util.log.LogOutputStream 5b99f    err
     at javax.management.loading.MLet.getMBeansFromURL(MLet.java:367)
2002-01-18T14:15:29 JBossMain  mbr.util.log.LogOutputStream 5b99f    err
     at org.jboss.Main.<init>(Main.java:180)
2002-01-18T14:15:29 JBossMain  mbr.util.log.LogOutputStream 5b99f    err
     at org.jboss.Main$1.run(Main.java:110)
2002-01-18T14:15:29 JBossMain  mbr.util.log.LogOutputStream 5b99f    err
     at java.security.AccessController.doPrivileged(Native Method)
2002-01-18T14:15:29 JBossMain  mbr.util.log.LogOutputStream 5b99f    err
     at org.jboss.Main.main(Main.java:106)
2002-01-18T14:15:29 JBossMain  mbr.util.log.LogOutputStream 5b99f    err
     at net.embr.dp.main.ServletEngine.run(ServletEngine.java:105)
2002-01-18T14:15:29 JBossMain  mbr.util.log.LogOutputStream 5b99f    err
     at java.lang.Thread.run(Thread.java:484)
2002-01-18T14:15:29 JBossMain  mbr.util.log.LogOutputStream 2d7a10   out
     JBoss-2.4.4 Started in 0m:0s.141
 
Thanks
 
Ritesh
 
================================
Ritesh Trivedi
Embrace Networks
408-585-5621
----- Original Message -----
Sent: Friday, January 18, 2002 12:32 PM
Subject: RE: [JBoss-user] a question for JBoss-User group

It might be that jboss can't find where the MBeans are.
So if you set jboss.home to the parent directory of the
run.jar file system property before you make a call
it might help.
 
Alex. 
Has anyone tried starting JBOss from within another Java application by calling org.jboss.Main.main(args) ?
 
I am trying to do this and I get this exception
 
javax.management.servicenotfoundexception for the URL for the MLet being null.
 
Any comments/pointers ?
=====================

Reply via email to