4 Replies Latest reply on Aug 18, 2009 10:06 AM by Srikanth S

    Error raised when deploying application

    Srikanth S Newbie

      Hi guys,

      I am trying to deploy a EJB application in JBoss 5.1.0 GA application server and i get the following error:

      **********************ERROR*************************
      13:55:34,609 ERROR [ProfileDeployAction] Failed to add deployment: Demo.ear
      org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(Demo.ear)
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:61)
      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:595)
      ***********************************************************

      I have successfully deployed it on JBoss 4.2.3 GA application server.

      I appreciate if someone can let me know what exactly is the problem and suggest a solution for this.

      Regards,
      Sri.

        • 1. Re: Error raised when deploying application
          Francesco Marchioni Apprentice

          It might be a matter of deployment descriptors. JBoss 5 is stricter on validating them.
          My guess: try replacing the application tag (in application.xml) with the following:

          <application 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/application_5.xsd"
          version="5">


          if not, post all your deployment descriptors and we'll try to find the issue.
          regards

          • 2. Re: Error raised when deploying application
            Srikanth S Newbie

            Hi Marc,

            Thanks for the reply.

            I have replaced my application.xml as you have suggested. But the error is still raised.

            Below is the snapshot of my application.xml as you have asked.

            <?xml version="1.0" encoding="UTF-8"?>
            <application 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/application_5.xsd"
            version="5">
             <javaee:description>Demo Project</javaee:description>
             <javaee:display-name>Demo</javaee:display-name>
            
             <module>
             <ejb>AuthorityLevel.jar</ejb>
             </module>
             <module>
             <ejb>Contacts.jar</ejb>
             </module>
            
             <module>
             <java>postgreSQL-ds.xml</java>
             </module>
            </application>
            


            I appreciate your help regarding this.

            Regards,
            Sri.

            • 3. Re: Error raised when deploying application
              Francesco Marchioni Apprentice

              Why are you declaring the Datasource into application.xml ?
              It should be in jboss-app.xml : for example:

              <jboss-app>
              
               <module>
               <service>myapp-ds.xml</service>
               </module>
              
              </jboss-app>



              Place this jboss-app.xml in the META-INF folder of your EAR. And place the -ds.xml at the root of the EAR.

              hope it helps
              Francesco

              • 4. Re: Error raised when deploying application
                Srikanth S Newbie

                Hi Francesco,

                Thanks for the response.

                i found the problem and that is because of the following two lines in application.xml file.


                ***********************************************
                <javaee:description>Demo Project</javaee:description>
                <javaee:display-name>Demo</javaee:display-name>

                ***********************************************

                when i removed these two lines, then the deployment was successful. I see these are not as per the xsd that i have mentioned in application.xml file.

                Also, i see no problem in placing the xxx-ds.xml file in application.xml file.

                Anyhow, i will move it to jboss-app.xml file as you have suggested.

                Thanks again for your help.

                Regards,
                Sri.