[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-1173) EJBs Deployed Before Timer Service Initialized
Scott M Stark (JIRA)
jira-events at lists.jboss.org
Wed Jan 23 20:32:21 EST 2008
[ http://jira.jboss.com/jira/browse/EJBTHREE-1173?page=comments#action_12396485 ]
Scott M Stark commented on EJBTHREE-1173:
-----------------------------------------
I added a hack to the jbossas trunk/ejb3 org.jboss.ejb3.Ejb3Deployment code to add the missing dependency on the "jboss.ejb:service=EJBTimerService" mbean:
protected void registerEJBContainer(Container container) throws Exception
{
ObjectName on = container.getObjectName();
String name = on.getCanonicalName();
DependencyPolicy dependsPolicy = container.getDependencyPolicy();
dependsPolicy.addDependency("jboss.ejb:service=EJBTimerService");
kernelAbstraction.install(name, dependsPolicy, container);
mbeanServer.registerMBean(container.getMBean(), on);
log.debug("Bound ejb3 container " + name);
}
with this, I can start the server with the test-slsb.jar in deploy without error. This dependency needs to be property externalized as its a function of the org.jboss.ejb3.timerservice.TimerServiceFactory.
> EJBs Deployed Before Timer Service Initialized
> ----------------------------------------------
>
> Key: EJBTHREE-1173
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-1173
> Project: EJB 3.0
> Issue Type: Bug
> Affects Versions: AS 5.0.0.Beta3
> Reporter: Andrew Lee Rubinger
> Assigned To: Andrew Lee Rubinger
> Priority: Blocker
> Fix For: AS 5.0.0.Beta4
>
> Attachments: test-slsb.jar
>
>
> If the attached simple SLSB is added to the "deploy" directory before startup, the following is thrown:
> ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:jar=test-mdb.jar,name=TestSlsb,service=EJB3 state=Create
> java.lang.NullPointerException
> at org.jboss.ejb.txtimer.EJBTimerServiceImpl.restoreTimers(EJBTimerServiceImpl.java:452)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list