12 Replies Latest reply on May 6, 2011 6:32 AM by vairam_sm Branched to a new discussion.

    Deployment error in jboss 6 for EJB 2.1

    vairam_sm

      Hi,

      We are trying migrate from jboss 4.2 to jboos 6.0.

      I have deployed an ear file in jboss 6, which is build in netbeans 5.0, i'm using EJB 2.1 version in neatbeans. when i deploy the file, its showing the following exception,

       

      kindly help me to sort out this problem.

       

      DEPLOYMENTS IN ERROR:

        Deployment "vfs:///C:/Documents%20and%20Settings/muruganantham/My%20Documents/

      Downloads/jboss-6.0.0.Final/server/default/deploy/agencyconfiguration.ear" is in

      error due to the following reason(s): org.xml.sax.SAXException: cvc-complex-typ

      e.2.4.b: The content of element 'web' is not complete. One of '{"http://java.sun

      .com/xml/ns/j2ee":context-root}' is expected. @ vfs:///C:/Documents%20and%20Sett

      ings/muruganantham/My%20Documents/Downloads/jboss-6.0.0.Final/server/default/dep

      loy/agencyconfiguration.ear/META-INF/application.xml[10,11]

       

              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep

      loyersImpl.java:1370) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep

      loyersImpl.java:1316) [:2.2.0.GA]

              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainD

      eployerImpl.java:968) [:2.2.0.GA]

              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.c

      heckComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]

              at org.jboss.profileservice.dependency.ProfileControllerContext$Delegate

      Deployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]

              at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.

      deploy(HDScanner.java:246) [:0.2.2]

              at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.

      complete(HDScanner.java:192) [:0.2.2]

              at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(Two

      PCActionWrapper.java:57) [:0.2.2]

              at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat

      ionAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]

              at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat

      ionAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]

              at org.jboss.profileservice.management.ModificationSession.prepare(Modif

      icationSession.java:87) [:0.2.2]

              at org.jboss.profileservice.management.AbstractActionController.internal

      Perfom(AbstractActionController.java:234) [:0.2.2]

              at org.jboss.profileservice.management.AbstractActionController.performW

      rite(AbstractActionController.java:213) [:0.2.2]

              at org.jboss.profileservice.management.AbstractActionController.perform(

      AbstractActionController.java:150) [:0.2.2]

              at org.jboss.profileservice.management.AbstractActionController.perform(

      AbstractActionController.java:135) [:0.2.2]

              at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanne

      r.java:146) [:0.2.2]

              at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner

      .java:90) [:0.2.2]

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44

      1) [:1.6.0_21]

              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java

      :317) [:1.6.0_21]

              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.

      6.0_21]

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.

      access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_21]

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.

      runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_21]

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.

      run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_21]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec

      utor.java:886) [:1.6.0_21]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor

      .java:908) [:1.6.0_21]

              at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]

        • 1. Deployment error in jboss 6 for EJB 2.1
          wolfgangknauf

          Hi,

           

          your "agencyconfiguration.ear/META-INF/application.xml" has invalid XML. Your IDE should show an error for this file. If you don't find the error yourself, post the full file here.

           

          JBoss versions after 4.2 became stricter on XML validation, so that things that worked before (but were actually) wrong, will now raise errors.

           

          Best regards

           

          Wolfgang

          • 2. Deployment error in jboss 6 for EJB 2.1
            vairam_sm

            hi, thanks for your reply,

            the file which i deployed in jboss 6.0 is working in jboss 4.2, but the above error occurs when i deploy the same file in jboss 6.0 , can you tell me what should i do to make EJB 2.1 work in jboss 6.

            • 3. Deployment error in jboss 6 for EJB 2.1
              wdfink

              As I wrote in your other thread and Wolfgang mentioned check your application.xml by Eclipse, JEdit or your favourite XML editor.

              The DTD's are located in JBOSS/docs/dtd

              • 4. Deployment error in jboss 6 for EJB 2.1
                vairam_sm

                Hi this is application.xml file , This one is workinfg  fine in jdoss 4.2,  but not in jboss 6.0,

                 

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

                - <application version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
                <display-name>Agencyconfiguration</display-name>

                  - <module>

                <ejb>AgencyConfigurationEJB.jar</ejb>

                </module>

                - <module>
                - <web>
                <web-uri>AgencyConfigurationWeb.war</web-uri>

                </web>

                </module>

                </application>

                • 5. Deployment error in jboss 6 for EJB 2.1
                  wolfgangknauf

                  Now here is a small riddle for you: you have to fix the error message "The content of element 'web' is not complete. One of '{"http://java.sun.com/xml/ns/j2ee":context-root}' is expected" in this file ;-)

                   

                  Best regards

                   

                  Wolfgang

                  • 6. Deployment error in jboss 6 for EJB 2.1
                    vairam_sm

                    Hi, i have added context-root in appliction.xml , still its throwing error

                     

                     

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

                    <application version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">

                      <display-name>Agencyconfiguration</display-name>

                      <module>

                        <ejb>AgencyConfigurationEJB.jar</ejb>

                      </module>

                      <module>

                        <web>

                          <web-uri>AgencyConfigurationWeb.war</web-uri>

                          <context-root>/*</context-root>

                        </web>

                      </module>

                    </application>

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

                    17:15:05,046 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] Encounter

                    ed deployment AbstractVFSDeploymentContext@14208120{vfs:///E:/servers/jboss-6.0.

                    0/server/default/deploy/agencyconfiguration.ear/AgencyConfigurationEJB.jar/}

                    17:15:05,062 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] Encounter

                    ed deployment AbstractVFSDeploymentContext@14208120{vfs:///E:/servers/jboss-6.0.

                    0/server/default/deploy/agencyconfiguration.ear/AgencyConfigurationEJB.jar/}

                    17:15:05,062 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] Encounter

                    ed deployment AbstractVFSDeploymentContext@14208120{vfs:///E:/servers/jboss-6.0.

                    0/server/default/deploy/agencyconfiguration.ear/AgencyConfigurationEJB.jar/}

                    17:15:05,202 INFO  [org.jboss.ejb.deployers.EjbDeployer] installing bean: ejb/Ag

                    encyConfigurationEJB.jar#AgencyConfigurationbeanBean,uid29146743

                    17:15:05,202 INFO  [org.jboss.ejb.deployers.EjbDeployer]   with dependencies:

                    17:15:05,202 INFO  [org.jboss.ejb.deployers.EjbDeployer]   and supplies:

                    17:15:05,202 INFO  [org.jboss.ejb.deployers.EjbDeployer]        jndi:local/Agenc

                    yConfigurationbeanBean@11697354

                    17:15:05,202 INFO  [org.jboss.ejb.deployers.EjbDeployer]        jndi:agencyconfi

                    guration/AgencyConfigurationbeanBean/lrp.settings.agencyconfiguration.shared.Age

                    ncyConfigurationbeanLocal

                    17:15:05,218 INFO  [org.jboss.ejb.deployers.EjbDeployer]        jndi:AgencyConfi

                    gurationJNDI

                    17:15:05,702 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] dep

                    loy, ctxPath=/AgencyConfigurationWeb

                    17:15:05,843 WARN  [org.jboss.profileservice.deployment.hotdeploy.HDScanner] Sca

                    n failed: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary

                    of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                     

                    DEPLOYMENTS MISSING DEPENDENCIES:

                      Deployment "jboss.j2ee:ear="agencyconfiguration.ear",module="AgencyConfigurati

                    onEJB.jar",service=EjbModule" is missing the following dependencies:

                        Dependency "jboss.ejb:service=EJBTimerService" (should be in state "Create",

                    but is actually in state "Configured")

                     

                    DEPLOYMENTS IN ERROR:

                      Deployment "jboss.ejb:service=EJBTimerService" is in error due to the followin

                    g reason(s): Configured

                     

                            at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep

                    loyersImpl.java:1370) [:2.2.0.GA]

                            at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep

                    loyersImpl.java:1316) [:2.2.0.GA]

                            at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainD

                    eployerImpl.java:968) [:2.2.0.GA]

                            at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.c

                    heckComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]

                            at org.jboss.profileservice.dependency.ProfileControllerContext$Delegate

                    Deployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]

                            at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.

                    deploy(HDScanner.java:246) [:0.2.2]

                            at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.

                    complete(HDScanner.java:192) [:0.2.2]

                            at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(Two

                    PCActionWrapper.java:57) [:0.2.2]

                            at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat

                    ionAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]

                            at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificat

                    ionAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]

                            at org.jboss.profileservice.management.ModificationSession.prepare(Modif

                    icationSession.java:87) [:0.2.2]

                            at org.jboss.profileservice.management.AbstractActionController.internal

                    Perfom(AbstractActionController.java:234) [:0.2.2]

                            at org.jboss.profileservice.management.AbstractActionController.performW

                    rite(AbstractActionController.java:213) [:0.2.2]

                            at org.jboss.profileservice.management.AbstractActionController.perform(

                    AbstractActionController.java:150) [:0.2.2]

                            at org.jboss.profileservice.management.AbstractActionController.perform(

                    AbstractActionController.java:135) [:0.2.2]

                            at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanne

                    r.java:146) [:0.2.2]

                            at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner

                    .java:90) [:0.2.2]

                            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:44

                    1) [:1.6.0_21]

                            at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java

                    :317) [:1.6.0_21]

                            at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.

                    6.0_21]

                            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.

                    access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_21]

                            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.

                    runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_21]

                            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.

                    run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_21]

                            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec

                    utor.java:886) [:1.6.0_21]

                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor

                    .java:908) [:1.6.0_21]

                            at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]

                    • 7. Deployment error in jboss 6 for EJB 2.1
                      wdfink

                      Looks like that the EJBTimer service MBean could not be started.

                      What about if you did not add your application? Does JBoss starts correct? Do you have changed any configuration?

                      Please attach server.log instead of posting parts of logfile (it will easier to read in editor and not snd up in a scroll hell)

                      • 8. Deployment error in jboss 6 for EJB 2.1
                        wolfgangknauf

                        I think a context-root like "/*" is invalid, it should be something like "MyWebApp" (or "/" for the root app).

                         

                        This will become part of the URL of your app: http://localhost:8080/MyWebApp/index.html

                         

                        See this for more details: http://docs.jboss.org/jbossas/guides/webguide/r2/en/html/ch06.html

                         

                        Best regards

                         

                        Wolfgang

                        • 9. Re: Deployment error in jboss 6 for EJB 2.1
                          vairam_sm

                          Hi, I have attached boot log and server log with this.

                          • 10. Re: Deployment error in jboss 6 for EJB 2.1
                            wolfgangknauf

                            Hi,

                             

                            first of all:

                             

                            you have your JBoss in "c:\Documents and Settings\...". Move it to another directory, because spaces in the JBoss path might cause problems.

                             

                            Next, here are some errors from your log:

                             

                            DEPLOYMENTS IN ERROR:

                              Deployment "jboss.web.deployment:war=/ROOT" is in error due to the following reason(s): java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/muruganantham/Desktop/jboss-6.0.0.Final/server/default/deploy/ROOT.war/

                              Deployment "vfs:///C:/Documents%20and%20Settings/muruganantham/Desktop/jboss-6.0.0.Final/server/default/deploy/hsqldb-ds.xml" is in error due to the following reason(s): java.lang.IllegalStateException: jboss.jca:name=DefaultDS,service=ManagedConnectionFactory is already installed.

                              Deployment "jboss.jdbc:datasource=DefaultDS,service=metadata" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jdbc:datasource=DefaultDS,service=metadata' **

                              Deployment "jboss.web.deployment:war=/invoker" is in error due to the following reason(s): java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/muruganantham/Desktop/jboss-6.0.0.Final/server/default/deploy/http-invoker.sar/invoker.war/

                              Deployment "jboss:service=KeyGeneratorFactory,type=HiLo" is in error due to the following reason(s): com.microsoft.sqlserver.jdbc.SQLServerException: CREATE TABLE permission denied in database 'LRPTEST'.

                             

                            The "illegal character" might be the space in the path ("file:/C:/Documents and Settings/" => here the space is at position 18).

                            Then there is a problem with your DataSource config. Did you use a different database server?

                            And finally, there is a permission problem in your SQL server.

                             

                            Best regards

                             

                            Wolfgang

                            • 11. Re: Deployment error in jboss 6 for EJB 2.1
                              vairam_sm

                              Hi  Mr.Wolfgang Knauf,

                               

                              I have done all the things as per your guidance, it working fine. Thanks for your right way of guidance, thanks a lot.

                               

                              Regards,

                              Vairam S

                              • 12. Re: Deployment error in jboss 6 for EJB 2.1
                                vairam_sm

                                Hi,

                                 

                                I have followed as per mr.Wolfgang Knauf guidance, its working fine. Thanks a lot for your reply,  Hope you will help me in future also.

                                 

                                Thanks & Regards,

                                Vairam S.