-
1. Service POJO deployment throws NullPointerException
nickarls Jan 17, 2011 3:38 PM (in response to devinderpal)Strange, how is it deployed? Does it have a beans.xml present? I don't quite see how it is involving CDI for that...
-
2. Service POJO deployment throws NullPointerException
nickarls Jan 17, 2011 3:53 PM (in response to nickarls)I put them in a WAR and deployed it and got
22:50:02,927 INFO [org.jboss.ejb3.deployers.JBossASKernel] Created KernelDeployment for: Bug.war
22:50:02,932 INFO [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:jar=Bug.war,name=CoolSystemInitService,service=EJB3
22:50:02,932 INFO [org.jboss.ejb3.deployers.JBossASKernel] with dependencies:
22:50:02,932 INFO [org.jboss.ejb3.deployers.JBossASKernel] and demands:
22:50:02,932 INFO [org.jboss.ejb3.deployers.JBossASKernel] jboss.ejb:service=EJBTimerService; Required: Described
22:50:02,933 INFO [org.jboss.ejb3.deployers.JBossASKernel] jboss-switchboard:appName=Bug,module=Bug; Required: Create
22:50:02,933 INFO [org.jboss.ejb3.deployers.JBossASKernel] and supplies:
22:50:02,933 INFO [org.jboss.ejb3.deployers.JBossASKernel] jndi:CoolSystemInitService
22:50:02,933 INFO [org.jboss.ejb3.deployers.JBossASKernel] Class:fi.nik.bug.ICoolSystemInit
22:50:02,939 INFO [org.jboss.ejb3.deployers.JBossASKernel] Added bean(jboss.j2ee:jar=Bug.war,name=CoolSystemInitService,service=EJB3) to KernelDeployment of: Bug.war
22:50:03,101 INFO [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss:service=ICoolSystemInit
22:50:03,101 INFO [org.jboss.ejb3.deployers.JBossASKernel] with dependencies:
22:50:03,101 INFO [org.jboss.ejb3.deployers.JBossASKernel] and demands:
22:50:03,101 INFO [org.jboss.ejb3.deployers.JBossASKernel] jboss.ejb:service=EJBTimerService; Required: Described
22:50:03,101 INFO [org.jboss.ejb3.deployers.JBossASKernel] jboss.j2ee:jar=Bug.war,name=CoolSystemInitService,service=EJB3; Required: Described
22:50:03,102 INFO [org.jboss.ejb3.deployers.JBossASKernel] jboss-switchboard:appName=Bug,module=Bug; Required: Create
22:50:03,102 INFO [org.jboss.ejb3.deployers.JBossASKernel] and supplies:
22:50:03,102 INFO [org.jboss.ejb3.deployers.JBossASKernel] jndi:CoolSystemInitService
22:50:03,103 INFO [org.jboss.ejb3.deployers.JBossASKernel] Class:fi.nik.bug.ICoolSystemInit
22:50:03,103 INFO [org.jboss.ejb3.deployers.JBossASKernel] Installing bean(jboss:service=ICoolSystemInit) into kernel
22:50:03,115 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/Bug
22:50:03,181 INFO [STDOUT] CurrencyConverterMBean - Creating
22:50:03,185 INFO [org.jboss.ejb3.EJBContainer] STARTED EJB: fi.nik.bug.CoolSystemInitService ejbName: CoolSystemInitService
-
3. Service POJO deployment throws NullPointerException
devinderpal Jan 17, 2011 8:48 PM (in response to nickarls)Thanks for looking into it.
I have an ear application and these classes are part of the EJB jar file. I just want a class that's invoked during server(jboss) startup, so I have these classes part of the EJB. I also have war file in the ear but the classes are not part of it.
-
4. Service POJO deployment throws NullPointerException
nickarls Jan 18, 2011 2:15 AM (in response to devinderpal)Could you post the EAR with the other classes stripped out? Leave the structure and XML files, though.
Another option could be a @Singleton @Startup?
-
5. Service POJO deployment throws NullPointerException
jaikiran Jan 18, 2011 2:55 AM (in response to devinderpal)By the way, a NullPointerException is always a bad sign. Please create a JIRA here https://jira.jboss.org/browse/JBAS with the details. If possible, please attach a sample application, to that JIRA, which reproduces this issue.