[jboss-user] [Installation, Configuration & DEPLOYMENT] - Scheduler IllegalStateException while migrating jboss4 -> jb

radimchatkalahari do-not-reply at jboss.com
Tue May 26 14:49:42 EDT 2009


Hi everyone,
I'm facing strange deployment problem while migrating from jboss 4.2.3
to jboss 5.1.0GA

I'm deploying myApp.ear file
containing META-INF\scheduler-service.xml
with content:

<?xml version="1.0" encoding="UTF-8"?>
  | <server>
  |    <mbean code="org.jboss.varia.scheduler.Scheduler"
  |           name=":service=Scheduler,name=PingScheduler">
  | 	  <depends>jboss.j2ee:ear=mesbridlicna.ear,jar=mesbridlicnaEjb.jar,name=PingService,service=EJB3</depends>
  |       <attribute name="StartAtStartup">true</attribute>
  | 	  <attribute name="SchedulableMBean">jboss.j2ee:ear=mesbridlicna.ear,jar=mesbridlicnaEjb.jar,name=PingService,service=EJB3,type=ManagementInterface</attribute>
  |       <attribute name="SchedulableMBeanMethod">ping</attribute>
  |       <attribute name="InitialStartDate">NOW</attribute>
  |       <attribute name="SchedulePeriod">1000</attribute> 
  |       <attribute name="InitialRepetitions">-1</attribute>
  |       <attribute name="FixedRate">true</attribute>
  |    </mbean>
  | </server>

while this is OK on jboss 4.2.3
on 5.1.0GA it throws exception:


2009-05-26 20:15:50,218 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfszip:/C:/bin/Java/jboss-5.1.0.GA/server/mes/deploy/myApp.ear/ state=PreReal mode=Manual requiredState=Real
  | 
  | org.jboss.deployers.spi.DeploymentException: Error deploying: :service=Scheduler,name=PingScheduler
  | at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
  | ...
  | 
  | Caused by:java.lang.IllegalStateException: :name=PingScheduler,service=Scheduler is already installed.
  | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:716)
  | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
  | at org.jboss.system.ServiceController.doInstall(ServiceController.java:670)
  | at org.jboss.system.ServiceController.install(ServiceController.java:273)
  | at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)
  | 	... 35 more

After 5+ hours of googling, forum searching and experiments I have no more ideas how to try to solve this problem.

thanks
Radim


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

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



More information about the jboss-user mailing list