0 Replies Latest reply on Apr 22, 2011 5:31 AM by wutongjoe

    how come ondemand=false causes problem ?

    wutongjoe

      Dear all,

       

      I have a strange problem when deploying a hellow world ejb3 app into a single jboss as 6 instance.

       

      ENV :

      JDK 6 sun hotspot

      winxp 32bit

      jboss as 6.0

       

      steps:

      1)unzip jboss dist zip

       

      2)copy "all" to "node1" ,"node2" and "node3"

       

      3)delete all folders under "\server" except "node1" ,"node2" and "node3"

       

      4)start from jboss home as "./bin/run.bat -c node1  -b 10.10.231.125 -Djboss.service.binding.set=ports-default  -Djboss.messaging.ServerPeerID=node1 -Djboss.as.deployment.ondemand=false"

       

      I did not start up and run the other node2 and node3 instances. so there is only one jboss as 6 instance running on my pc

      PS : 10.10.231.125 is my localhost ip

       

      after a while, there printed out an exception stack info in cmd console as following:

       

      17:14:59,703 INFO  [TomcatDeployment] deploy, ctxPath=/juddi
      17:14:59,734 INFO  [RegistryServlet] Loading jUDDI configuration.
      17:14:59,734 INFO  [RegistryServlet] Resources loaded from: /WEB-INF/juddi.prope
      rties
      17:14:59,734 INFO  [RegistryServlet] Initializing jUDDI components.
      17:14:59,906 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
      oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      17:15:00,031 INFO  [BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.insta
      ntiator.impl.Ejb31SpecBeanInstantiator@1f91758 into MC at org.jboss.ejb.bean.ins
      tantiator/testEJB/testEJB/HellowWorld
      17:15:00,046 WARN  [InterceptorInfoRepository] EJBTHREE-1852: InterceptorInfoRep
      ository is deprecated
      17:15:00,484 INFO  [JBossASKernel] Created KernelDeployment for: testEJB.jar
      17:15:00,484 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=testEJB.jar,n
      ame=HellowWorld,service=EJB3
      17:15:00,484 INFO  [JBossASKernel]   with dependencies:
      17:15:00,484 INFO  [JBossASKernel]   and demands:
      17:15:00,484 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService; Requi
      red: Described
      17:15:00,484 INFO  [JBossASKernel]      jboss-switchboard:appName=testEJB,module
      =testEJB,name=HellowWorld; Required: Create
      17:15:00,484 INFO  [JBossASKernel]   and supplies:
      17:15:00,500 INFO  [JBossASKernel]      jndi:HellowWorld
      17:15:00,500 INFO  [JBossASKernel]      jndi:HellowWorld/remote-test.HellowWorld
      Remote
      17:15:00,500 INFO  [JBossASKernel]      Class:test.HellowWorldRemote
      17:15:00,500 INFO  [JBossASKernel]      jndi:HellowWorld/local
      17:15:00,500 INFO  [JBossASKernel]      jndi:HellowWorld/local-test.HellowWorldL
      ocal
      17:15:00,500 INFO  [JBossASKernel]      jndi:HellowWorld/remote
      17:15:00,500 INFO  [JBossASKernel]      Class:test.HellowWorldLocal
      17:15:00,500 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=testEJB.jar,name=He
      llowWorld,service=EJB3) to KernelDeployment of: testEJB.jar
      17:15:00,578 ERROR [AbstractKernelController] Error installing to Create: name=j
      boss.j2ee:jar=testEJB.jar,name=HellowWorld,service=EJB3 state=Configured: java.l
      ang.IllegalArgumentException: EntityManagerFactory cannot be null
              at org.jboss.ejb3.timerservice.mk2.TimerServiceImpl.<init>(TimerServiceI
      mpl.java:139) [:1.0.0-alpha-13]
              at org.jboss.ejb3.timerservice.mk2.TimerServiceFactoryImpl.createTimerSe
      rvice(TimerServiceFactoryImpl.java:79) [:1.0.0-alpha-13]
              at org.jboss.ejb3.TimerServiceContainer.createTimerService(TimerServiceC
      ontainer.java:234) [:1.7.17]
              at org.jboss.ejb3.TimerServiceContainer.create(TimerServiceContainer.jav
      a:107) [:1.7.17]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_2
      2]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39) [:1.6.0_22]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25) [:1.6.0_22]
              at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]
              at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(Reflec
      tionUtils.java:60) [jboss-reflect.jar:2.2.0.GA]
              at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(
      ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.GA]
              at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethod
      JoinPoint.java:66) [jboss-reflect.jar:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$Joi
      npointDispatchWrapper.execute(KernelControllerContextAction.java:257) [jboss-ker
      nel.jar:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(Executio
      nWrapper.java:47) [jboss-kernel.jar:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dis
      patchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel.jar:
      2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dis
      patchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.jar:2.2.0.GA
      ]
              at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInte
      rnal(LifecycleAction.java:202) [jboss-kernel.jar:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
      (InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
      (InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.sim
      pleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.
      2.0.GA]
              at org.jboss.dependency.plugins.action.AccessControllerContextAction.ins
      tall(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractControllerContextActions.install
      (AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
      ctControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:2044) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
      ctController.java:1083) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementSta
      teDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:1246) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:1139) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:894) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:641) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(B
      eanMetaDataDeployer.java:182) [:2.2.0.GA]
              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(B
      eanMetaDataDeployer.java:58) [:2.2.0.GA]
              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.i
      nternalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(
      AbstractRealDeployer.java:55) [:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
      Wrapper.java:179) [:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(Deployer
      sImpl.java:1832) [:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
      rst(DeployersImpl.java:1550) [:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
      rst(DeployersImpl.java:1571) [:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
      Impl.java:1491) [:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
      ctControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:2044) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
      ctController.java:1083) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementSta
      teDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:1246) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:1139) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:939) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:654) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersI
      mpl.java:1983) [:2.2.0.GA]
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers
      Impl.java:1076) [:2.2.0.GA]
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye
      rImpl.java:679) [:2.2.0.GA]
              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.p
      rocess(MainDeployerPlugin.java:106) [:6.0.0.Final]
              at org.jboss.profileservice.dependency.ProfileControllerContext$Delegate
      Deployer.process(ProfileControllerContext.java:143) [:0.2.2]
              at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(Profil
      eDeployAction.java:151) [:0.2.2]
              at org.jboss.profileservice.dependency.ProfileDeployAction.installAction
      Internal(ProfileDeployAction.java:94) [:0.2.2]
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
      (InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
      (InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.sim
      pleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.
      2.0.GA]
              at org.jboss.dependency.plugins.action.AccessControllerContextAction.ins
      tall(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractControllerContextActions.install
      (AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
      ctControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:2044) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
      ctController.java:1083) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementSta
      teDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:1246) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:1139) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:939) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
      ller.java:654) [jboss-dependency.jar:2.2.0.GA]
              at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicPro
      fileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]
              at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(Pr
      ofileActivationWrapper.java:87) [:0.2.2]
              at org.jboss.profileservice.dependency.ProfileActivationService.activate
      Profile(ProfileActivationService.java:215) [:0.2.2]
              at org.jboss.profileservice.dependency.ProfileActivationService.activate
      (ProfileActivationService.java:159) [:0.2.2]
              at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.ac
      tivate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]
              at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolve
      rFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]
              at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.st
      art(AbstractProfileServiceBootstrap.java:91) [:0.2.2]
              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
      ootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final]
              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
      ootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(A
      bstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
              at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.r
      un(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
              at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
      17:15:00,781 INFO  [xnio] XNIO Version 2.1.0.CR2
      17:15:00,796 INFO  [nio] XNIO NIO Implementation Version 2.1.0.CR2
      17:15:00,968 INFO  [remoting] JBoss Remoting version 3.1.0.Beta2
      17:15:01,062 INFO  [TomcatDeployment] deploy, ctxPath=/
      17:15:01,187 信息    [service] Removing bootstrap log handlers
      17:15:01,328 ERROR [ProfileServiceBootstrap] Failed to load profile:: org.jboss.
      deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deploy
      ments (SEE PREVIOUS ERRORS FOR DETAILS):
      DEPLOYMENTS MISSING DEPENDENCIES:
        Deployment "jboss.j2ee:jar=testEJB.jar,name=HellowWorld,service=EJB3_endpoint"
       is missing the following dependencies:
          Dependency "jboss.j2ee:jar=testEJB.jar,name=HellowWorld,service=EJB3" (shoul
      d be in state "Installed", but is actually in state "**ERROR**")
      DEPLOYMENTS IN ERROR:
        Deployment "jboss.j2ee:jar=testEJB.jar,name=HellowWorld,service=EJB3" is in er
      ror due to the following reason(s): java.lang.IllegalArgumentException: EntityMa
      nagerFactory cannot be null, **ERROR**
              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep
      loyersImpl.java:1228) [:2.2.0.GA]
              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainD
      eployerImpl.java:905) [:2.2.0.GA]
              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.c
      heckComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]
              at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.che
      ckAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]
              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
      ootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]
              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
      ootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(A
      bstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
              at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.r
      un(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
              at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
      17:15:01,375 INFO  [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTT
      P/1.1 on http-10.10.231.125-8080
      17:15:01,390 INFO  [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 o
      n ajp-10.10.231.125-8009
      17:15:01,406 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS
       [6.0.0.Final "Neo"] Started in 2m:6s:94ms
      
      

       

       

       

      problem is , all things went well without " -Djboss.as.deployment.ondemand=false" . anything I missed?

       

      thank you very much