[jboss-user] [Installation, Configuration & DEPLOYMENT] - Starting JBoss AS programmatically.

hdmonty do-not-reply at jboss.com
Thu Apr 3 08:15:53 EDT 2008


I try to start the JBoss AS programmatically. (JBoss 4.2.1.GA)

this is the simple code:

org.jboss.Main.main(new String[]{});

these are my VM arguments:
-Djboss.bind.address=127.0.0.1 -server
-Djava.endorsed.dirs=C:/jboss/lib/endorsed  -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -classpath C:/jboss/bin/run.jar

I start this from eclipse. 
The server starts, but the EJB3Deployer runs in a NullPointerException:



  | ...
  | 13:45:26,781 WARN  [ServiceController] Problem creating service jboss.ejb3:service=EJB3Deployer
  | java.lang.NullPointerException
  | 	at org.jboss.ejb3.EJB3Deployer.createService(EJB3Deployer.java:307)
  | 	at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
  | 	at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
  | 	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | ...
  | 

later starts some JMS, Quartz, JNDI - stuff

The server is aviable, but I can not deploy any ejb3 components.

Can anybody help me?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141300#4141300

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141300



More information about the jboss-user mailing list