I'm trying to configure an MBeanServerFactory, creating a new ServerImpl and setting
the properties, then calling init and start. Init goes fine, but on start I get:
ClassNotFoundException: No ClassLoaders found for: org.jboss.naming.NamingService
Is there a jar I'm missing? I think I have the base ones, but maybe I missed one. I'll
try adding one here and there just to keep learning.
| server = new ServerImpl();
| System.out.println("got the server impl");
| Properties prop = new Properties();
| prop.setProperty(
| ServerConfig.HOME_DIR,
| (new File(".")).getAbsolutePath());
| prop.setProperty(
| ServerConfig.ROOT_DEPLOYMENT_FILENAME,
| "src/META-INF/depends-service.xml");
| prop.setProperty(
| ServerConfig.SERVER_CONFIG_URL,
| "file:" + (new File(".")).getAbsolutePath());
| System.out.println("done setting up properties");
| server.init(prop);
| server.start();
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831843#3831843
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831843
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user