5 Replies Latest reply on Dec 19, 2010 7:40 AM by wdfink

    Deployment error JBoss 5.1.0 with EJB 2.1 JDK 1.6.14

    chintupartha

      When i am trying to deploy the simple EAR in JBoss the console prints several error. Here it ---

       

      18:19:08,562 INFO  [JBossASKernel]   with dependencies:
      18:19:08,562 INFO  [JBossASKernel]   and demands:
      18:19:08,562 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService
      18:19:08,562 INFO  [JBossASKernel]   and supplies:
      18:19:08,562 INFO  [JBossASKernel]      jndi:Adder
      18:19:08,578 INFO  [JBossASKernel]      jndi:EnterpriseApplication1/Adder
      18:19:08,578 INFO  [JBossASKernel]      Class:com.brainysoftware.ejb.AdderHome
      18:19:08,578 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=EnterpriseApplication1.ear,jar=EJBModule1.jar,name=Adder,service=E
      JB3) to KernelDeployment of: EJBModule1.jar
      18:19:08,765 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=EnterpriseApplication1.ear,jar=EJBModule1.jar,name=Adder,serv
      ice=EJB3
      18:19:08,765 INFO  [EJBContainer] STARTED EJB: com.brainysoftware.ejb.AdderBean ejbName: Adder
      18:19:08,875 ERROR [AbstractKernelController] Error installing to Start: name=ProxyFactory/EnterpriseApplication1/Adder/null st
      ate=Create
      java.lang.NullPointerException
              at org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactoryBase.start(SessionProxyFactoryBase.java:375)
              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:597)
              at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
              at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
              at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerC
      ontextAction.java:241)
              at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAc
      tion.java:109)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.ja
      va:70)
              at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.
      java:62)
              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
              at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:106)
              at org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar.install(Ejb3McRegistrar.java:394)
              at org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar.bind(Ejb3McRegistrar.java:245)
              at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.registerProxyFactory(JndiSessionRegistrarBase.java:
      1140)
              at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.createJndiReferenceBindingSet(JndiSessionRegistrarB
      ase.java:241)
              at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bindEjb(JndiSessionRegistrarBase.java:148)
              at org.jboss.ejb3.session.SessionContainer.lockedStart(SessionContainer.java:210)
              at org.jboss.ejb3.session.SessionSpecContainer.lockedStart(SessionSpecContainer.java:577)
              at org.jboss.ejb3.stateless.StatelessContainer.lockedStart(StatelessContainer.java:192)
              at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:884)
              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:597)
              at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
              at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
              at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerC
      ontextAction.java:241)
              at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAc
      tion.java:109)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.ja
      va:70)
              at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.
      java:62)
              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:6
      2)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
              at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
              at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java
      :306)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
              at org.jboss.Main.boot(Main.java:221)
              at org.jboss.Main$1.run(Main.java:556)
              at java.lang.Thread.run(Thread.java:619)
      18:19:09,546 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

       

              null - EJB2.x Remote Home Interface

       

      18:19:09,546 INFO  [SessionSpecContainer] Stopping jboss.j2ee:ear=EnterpriseApplication1.ear,jar=EJBModule1.jar,name=Adder,serv
      ice=EJB3
      18:19:09,546 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:ear=EnterpriseApplication1.ear,jar=EJB
      Module1.jar,name=Adder,service=EJB3 state=Create
      java.lang.NullPointerException
              at javax.naming.NameImpl.<init>(NameImpl.java:264)
              at javax.naming.CompoundName.<init>(CompoundName.java:187)
              at org.jnp.interfaces.NamingParser.parse(NamingParser.java:62)
              at org.jboss.util.naming.Util.bind(Util.java:90)
              at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bind(JndiSessionRegistrarBase.java:910)
              at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bind(JndiSessionRegistrarBase.java:895)
              at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bind(JndiSessionRegistrarBase.java:884)
              at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bindEjb(JndiSessionRegistrarBase.java:151)
              at org.jboss.ejb3.session.SessionContainer.lockedStart(SessionContainer.java:210)
              at org.jboss.ejb3.session.SessionSpecContainer.lockedStart(SessionSpecContainer.java:577)
              at org.jboss.ejb3.stateless.StatelessContainer.lockedStart(StatelessContainer.java:192)
              at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:884)
              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:597)
              at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
              at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
              at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerC
      ontextAction.java:241)
              at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAc
      tion.java:109)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.ja
      va:70)
              at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.
      java:62)
              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:6
      2)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
              at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
              at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java
      :306)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
              at org.jboss.Main.boot(Main.java:221)
              at org.jboss.Main$1.run(Main.java:556)
              at java.lang.Thread.run(Thread.java:619)
      18:19:09,875 INFO  [TomcatDeployment] deploy, ctxPath=/EJBModule1Client
      18:19:10,000 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR
      DETAILS):

       

      DEPLOYMENTS IN ERROR:
        Deployment "ProxyFactory/EnterpriseApplication1/Adder/null" is in error due to the following reason(s): java.lang.NullPointer
      Exception

       

      ========ejb-jar.xml============

       

      <?xml version="1.0" encoding="UTF-8"?>
      <ejb-jar>
        <description>Your first EJB application </description>
        <display-name>Adder Application</display-name>
        <enterprise-beans>
          <session>
            <ejb-name>Adder</ejb-name>
            <home>com.brainysoftware.ejb.AdderHome</home>
            <remote>com.brainysoftware.ejb.Adder</remote>
            <ejb-class>com.brainysoftware.ejb.AdderBean</ejb-class>
            <session-type>Stateless</session-type>
            <transaction-type>Bean</transaction-type>
          </session>
        </enterprise-beans>
      </ejb-jar>

       

      =======jboss.xml=================

      <?xml version="1.0" encoding="UTF-8"?>

       

      <jboss/>

      ========jboss-web.xml==========

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-web>
        <context-root>/EJBModule1Client</context-root>
      </jboss-web>

      ======web.xml======

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
          <session-config>
              <session-timeout>
                  30
              </session-timeout>
          </session-config>
          <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
          </welcome-file-list>
      </web-app>

       

       

      Actually i am new to ejb. if any one help me regarding this i will be thankful.

        • 1. Re: Deployment error JBoss 5.1.0 with EJB 2.1 JDK 1.6.14
          wdfink

          If you are new to EJB why you use EJB2.1? To start with EJB3 will be the better approach.

          Also you make it more difficult because you use bean-transactions.

           

          Also you should add something like this to the jboss.xml:

            <enterprise-beans>

                <session>

                   <ejb-name>Adder</ejb-name>

                   <jndi-name>ejb21/Adder</jndi-name>

           

                  <method-attributes>

                  </method-attributes>

                </session>

            <enterprise-beans>

                <session>
                   <ejb-name>SimpleDummyService</ejb-name>
                   <jndi-name>ejb21/SimpleDummyService</jndi-name>
                   <local-jndi-name>SimpleDummyServiceLocal</local-jndi-name>
                  <method-attributes>
                  </method-attributes>
                </session>

          • 2. Re: Deployment error JBoss 5.1.0 with EJB 2.1 JDK 1.6.14
            chintupartha

            Thanking you for your reply but the problem is not resolved. Right  now what i am seeing in console, that is ---

             

            Log4jService"  to server org.jboss.mx.server.MBeanServerImpl@12cb585[  defaultDomain='jboss' ]
            00:23:04,062 ERROR [AbstractKernelController] Error installing to Parse:  name=vfszip:/D:/jboss-5.1.0.GA/server/default/deploy/E
            nterpriseApplication1.ear/ state=Not Installed mode=Manual  requiredState=Parse
            org.jboss.deployers.spi.DeploymentException: Error creating managed  object for vfszip:/D:/jboss-5.1.0.GA/server/default/deploy/
            EnterpriseApplication1.ear/EJBModule1.jar/
                     at  org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                     at  org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWit
            hOutput.java:362)
                     at  org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWit
            hOutput.java:322)
                     at  org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWit
            hOutput.java:294)
                     at  org.jboss.deployment.JBossEjbParsingDeployer.createMetaData(JBossEjbParsingDeployer.java:95)
                     at  org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.
            java:234)
                     at  org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                     at  org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                     at  org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                     at  org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                     at  org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                     at  org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                     at  org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                     at  org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                     at  org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                     at  org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                     at  org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                     at  org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                     at  org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                     at  org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                     at  org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                     at  org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                     at  org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                     at  org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                     at  org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                     at  org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                     at  org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                     at  org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                     at  org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                     at  org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                     at  org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                     at  org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java
            :306)
                     at  org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                     at  org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                     at org.jboss.Main.boot(Main.java:221)
                     at org.jboss.Main$1.run(Main.java:556)
                     at java.lang.Thread.run(Thread.java:619)
            Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse  source: enterprise-beans cannot appear in this position. Expe
            cted content of enterprise-beans is sequence: {choice}*
                     at  org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
                     at  org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
                     at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:189)
                     at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:166)
                     at  org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)
                     at  org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)
                     at  org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
                     at  org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)
                     at  org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWit
            hOutput.java:348)
                     ... 35 more
            Caused by: org.jboss.xb.binding.JBossXBRuntimeException:  enterprise-beans cannot appear in this position. Expected content of e
            nterprise-beans is sequence: {choice}*
                     at  org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:449)
                     at  org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
                     at  org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
                     at  org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
                     at  org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown  Source)
                     at  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown  Source)
                     at  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown  Source)
                     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown  Source)
                     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown  Source)
                     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
                     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown  Source)
                     at  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
                     at  org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
                     ... 43 more
            00:23:14,578 INFO  [Ejb3DependenciesDeployer] Encountered deployment  AbstractVFSDeploymentContext@6677434{vfsfile:/D:/jboss-5.1
            .0.GA/server/default/deploy/profileservice-secured.jar/}
            00:23:14,578 INFO  [Ejb3DependenciesDeployer] Encountered deployment  AbstractVFSDeploymentContext@6677434{vfsfile:/D:/jboss-5.1
            .0.GA/server/default/deploy/profileservice-secured.jar/}
            00:23:14,578 INFO  [Ejb3DependenciesDeployer] Encountered deployment  AbstractVFSDeploymentContext@6677434{vfsfile:/D:/jboss-5.1
            .0.GA/server/default/deploy/profileservice-secured.jar/}
            00:23:14,593 INFO  [Ejb3DependenciesDeployer] Encountered deployment  AbstractVFSDeploymentContext@6677434{vfsfile:/D:/jboss-5.1
            .0.GA/server/default/deploy/profileservice-secured.jar/}
            00:23:20,125 INFO  [JMXConnectorServerService] JMX Connector server:  service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxc
            onnector
            00:23:20,781 INFO  [MailService] Mail Service bound to java:/Mail
            00:23:25,281 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL  SECURITY RISK. It has been detected that the MessageSucker
              component which sucks messages from one node to another has not had its  password changed from the installation default. Please
              see the JBoss Messaging user guide for instructions on how to do this.
            00:23:25,328 WARN  [AnnotationCreator] No ClassLoader provided, using  TCCL: org.jboss.managed.api.annotation.ManagementComponen
            t
            00:23:25,500 WARN  [AnnotationCreator] No ClassLoader provided, using  TCCL: org.jboss.managed.api.annotation.ManagementComponen
            t
            00:23:25,656 INFO  [TransactionManagerService] JBossTS Transaction  Service (JTA version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc.
            00:23:25,671 INFO  [TransactionManagerService] Setting up property  manager MBean and JMX layer
            00:23:26,968 INFO  [TransactionManagerService] Initializing recovery  manager
            00:23:27,453 INFO  [TransactionManagerService] Recovery manager  configured
            00:23:27,453 INFO  [TransactionManagerService] Binding  TransactionManager JNDI Reference
            00:23:27,500 INFO  [TransactionManagerService] Starting transaction  recovery manager
            00:23:28,484 INFO  [AprLifecycleListener] The Apache Tomcat Native  library which allows optimal performance in production envir
            onments was not found on the java.library.path: D:\Program  Files\Java\jdk1.6.0_14\bin;.;D:\WINDOWS\Sun\Java\bin;D:\WINDOWS\syst
            em32;D:\WINDOWS;D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS\System32\Wbem;D:\Program  Files\Intel\DMIX;D:\Program Files\MySQL\MySQ
            L Server 5.1\bin;D:\jboss-5.1.0.GA\bin;D:\Program  Files\Java\jdk1.6.0_14\bin;.;D:\Program Files\Java\jdk1.6.0_14\bin;
            00:23:28,593 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on  http-127.0.0.1-8080
            00:23:28,609 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on  ajp-127.0.0.1-8009
            00:23:28,640 INFO  [StandardService] Starting service jboss.web
            00:23:28,656 INFO  [StandardEngine] Starting Servlet Engine: JBoss  Web/2.1.3.GA
            00:23:28,734 INFO  [Catalina] Server startup in 134 ms
            00:23:28,796 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws
            00:23:29,937 INFO  [TomcatDeployment] deploy, ctxPath=/invoker
            00:23:30,031 INFO  [TomcatDeployment] deploy, ctxPath=/web-console
            00:23:31,562 INFO  [RARDeployment] Required license terms exist, view  vfszip:/D:/jboss-5.1.0.GA/server/default/deploy/jboss-loc
            al-jdbc.rar/META-INF/ra.xml
            00:23:31,609 INFO  [RARDeployment] Required license terms exist, view  vfszip:/D:/jboss-5.1.0.GA/server/default/deploy/jboss-xa-
            jdbc.rar/META-INF/ra.xml
            00:23:31,656 INFO  [RARDeployment] Required license terms exist, view  vfszip:/D:/jboss-5.1.0.GA/server/default/deploy/jms-ra.ra
            r/META-INF/ra.xml
            00:23:31,703 INFO  [RARDeployment] Required license terms exist, view  vfszip:/D:/jboss-5.1.0.GA/server/default/deploy/mail-ra.r
            ar/META-INF/ra.xml
            00:23:31,750 INFO  [RARDeployment] Required license terms exist, view  vfszip:/D:/jboss-5.1.0.GA/server/default/deploy/quartz-ra
            .rar/META-INF/ra.xml
            00:23:31,921 INFO  [SimpleThreadPool] Job execution threads will use  class loader of thread: main
            00:23:32,015 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
            00:23:32,015 INFO  [RAMJobStore] RAMJobStore initialized.
            00:23:32,015 INFO  [StdSchedulerFactory] Quartz scheduler  'DefaultQuartzScheduler' initialized from default resource file in Qu
            artz package: 'quartz.properties'
            00:23:32,015 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
            00:23:32,031 INFO  [QuartzScheduler] Scheduler  DefaultQuartzScheduler_$_NON_CLUSTERED started.
            00:23:33,125 INFO  [ConnectionFactoryBindingService] Bound  ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultD
            S' to JNDI name 'java:DefaultDS'
            00:23:34,343 INFO  [ServerPeer] JBoss Messaging 1.4.3.GA server [0]  started
            00:23:34,703 INFO  [ConnectionFactory] Connector  bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000  milliseconds

             

            00:23:34,703 INFO  [ConnectionFactory]  org.jboss.jms.server.connectionfactory.ConnectionFactory@127ce86 started
            00:23:34,812 INFO  [QueueService] Queue[/queue/DLQ] started,  fullSize=200000, pageSize=2000, downCacheSize=2000
            00:23:34,812 INFO  [QueueService] Queue[/queue/ExpiryQueue] started,  fullSize=200000, pageSize=2000, downCacheSize=2000
            00:23:34,843 INFO  [ConnectionFactory] Connector  bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000  milliseconds

             

            00:23:34,843 INFO  [ConnectionFactory]  org.jboss.jms.server.connectionfactory.ConnectionFactory@11bfacc started
            00:23:34,843 INFO  [ConnectionFactoryJNDIMapper] supportsFailover  attribute is true on connection factory: jboss.messaging.conn
            ectionfactory:service=ClusteredConnectionFactory but post office is non  clustered. So connection factory will *not* support fai
            lover
            00:23:34,843 INFO  [ConnectionFactoryJNDIMapper] supportsLoadBalancing  attribute is true on connection factory: jboss.messaging
            .connectionfactory:service=ClusteredConnectionFactory but post office is  non clustered. So connection factory will *not* suppor
            t load balancing
            00:23:34,859 INFO  [ConnectionFactory] Connector  bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000  milliseconds

             

            00:23:34,859 INFO  [ConnectionFactory]  org.jboss.jms.server.connectionfactory.ConnectionFactory@2557dd started
            00:23:35,031 INFO  [ConnectionFactoryBindingService] Bound  ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=J
            msXA' to JNDI name 'java:JmsXA'
            00:23:36,828 INFO  [JBossASKernel] Created KernelDeployment for:  profileservice-secured.jar
            00:23:36,843 INFO  [JBossASKernel] installing bean:  jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service
            =EJB3
            00:23:36,843 INFO  [JBossASKernel]   with dependencies:
            00:23:36,843 INFO  [JBossASKernel]   and demands:
            00:23:36,843 INFO  [JBossASKernel]       jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
            00:23:36,843 INFO  [JBossASKernel]       jboss.ejb:service=EJBTimerService
            00:23:36,843 INFO  [JBossASKernel]   and supplies:
            00:23:36,859 INFO  [JBossASKernel]       Class:org.jboss.profileservice.spi.ProfileService
            00:23:36,859 INFO  [JBossASKernel]      jndi:SecureProfileService/remote
            00:23:36,859 INFO  [JBossASKernel]       jndi:SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService
            00:23:36,859 INFO  [JBossASKernel] Added  bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3)
              to KernelDeployment of: profileservice-secured.jar
            00:23:36,859 INFO  [JBossASKernel] installing bean:  jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,serv
            ice=EJB3
            00:23:36,859 INFO  [JBossASKernel]   with dependencies:
            00:23:36,875 INFO  [JBossASKernel]   and demands:
            00:23:36,875 INFO  [JBossASKernel]       jboss.ejb:service=EJBTimerService
            00:23:36,875 INFO  [JBossASKernel]   and supplies:
            00:23:36,875 INFO  [JBossASKernel]       jndi:SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.Deploymen
            tManager
            00:23:36,875 INFO  [JBossASKernel]       Class:org.jboss.deployers.spi.management.deploy.DeploymentManager
            00:23:36,875 INFO  [JBossASKernel]       jndi:SecureDeploymentManager/remote
            00:23:36,875 INFO  [JBossASKernel] Added  bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJ
            B3) to KernelDeployment of: profileservice-secured.jar
            00:23:36,890 INFO  [JBossASKernel] installing bean:  jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service
            =EJB3
            00:23:36,890 INFO  [JBossASKernel]   with dependencies:
            00:23:36,890 INFO  [JBossASKernel]   and demands:
            00:23:36,890 INFO  [JBossASKernel]       jboss.ejb:service=EJBTimerService
            00:23:36,890 INFO  [JBossASKernel]   and supplies:
            00:23:36,906 INFO  [JBossASKernel]       jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
            00:23:36,906 INFO  [JBossASKernel]       Class:org.jboss.deployers.spi.management.ManagementView
            00:23:36,906 INFO  [JBossASKernel]      jndi:SecureManagementView/remote
            00:23:36,906 INFO  [JBossASKernel] Added  bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3)
              to KernelDeployment of: profileservice-secured.jar
            00:23:36,921 INFO  [EJB3EndpointDeployer] Deploy  AbstractBeanMetaData@1710933{name=jboss.j2ee:jar=profileservice-secured.jar,na
            me=SecureProfileService,service=EJB3_endpoint  bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl  properties=[container] c
            onstructor=null autowireCandidate=true}
            00:23:36,921 INFO  [EJB3EndpointDeployer] Deploy  AbstractBeanMetaData@432a9e{name=jboss.j2ee:jar=profileservice-secured.jar,nam
            e=SecureDeploymentManager,service=EJB3_endpoint  bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl  properties=[container]
              constructor=null autowireCandidate=true}
            00:23:36,937 INFO  [EJB3EndpointDeployer] Deploy  AbstractBeanMetaData@1501696{name=jboss.j2ee:jar=profileservice-secured.jar,na
            me=SecureManagementView,service=EJB3_endpoint  bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl  properties=[container] c
            onstructor=null autowireCandidate=true}
            00:23:37,296 INFO  [SessionSpecContainer] Starting  jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,servi
            ce=EJB3
            00:23:37,312 INFO  [EJBContainer] STARTED EJB:  org.jboss.profileservice.ejb.SecureDeploymentManager ejbName:  SecureDeploymentMa
            nager
            00:23:37,390 INFO  [JndiSessionRegistrarBase] Binding the following  Entries in Global JNDI:

             

             

             

            Thanks in advance

            Chintu

            • 3. Re: Deployment error JBoss 5.1.0 with EJB 2.1 JDK 1.6.14
              wdfink

              Your deployment descriptor is not valid:

              ----------------------------

              Caused by: org.jboss.xb.binding.JBossXBRuntimeException:  enterprise-beans cannot appear in this position. Expected content of e
              nterprise-beans is sequence: {choice}*

              ---------------------------

               

              But what about using EJB3, it is easier and you don't need such deployment descriptors...

              If you do not need a special EJB version you should start with the newest, see JBoss or Sun(oracle) tutorials for this.

              • 4. Re: Deployment error JBoss 5.1.0 with EJB 2.1 JDK 1.6.14
                chintupartha

                But actually i want to learn from EJB 2.1 and resolve it.

                • 5. Re: Deployment error JBoss 5.1.0 with EJB 2.1 JDK 1.6.14
                  wdfink

                  Ok, you want the hard way ;-)

                  I'm happy to leave the EJB2 stuff with our current migration to EJB3!

                   

                  Do you solve the wrong deployment descriptor? You will find the DTD in JBOSS/docs/dtd.

                  If you use an xml-editor or IDE (like jEdit) the form will be checked.