5 Replies Latest reply on Apr 5, 2013 9:58 AM by Amit Telang

    Unable to deploy my war file

    Mohammad Norouzi Novice

      Hi

      We have decided to migrate to JBoss 7.1.1... but during deployment I get following error. Changed the log level to trace no useful information is provided. No exception, no stack trace only this error:

       

      11:30:03,771 DEBUG [org.jboss.as.security] (MSC service thread 1-12) Cannot create permissions with 'null' metaData for id=cbs-war-generic-6.1.07-SOE-SNAPSHOT.war

      11:30:03,989 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "cbs-war-generic-6.1.07-SOE-SNAPSHOT.war" was rolled back with

      failure message JBAS014750: Operation handler failed to complete

      11:30:16,345 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment cbs-war-generic-6.1.07-SOE-SNAPSHOT.war in 12365ms

      11:30:16,345 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that faile

      d:" => {"Operation step-2" => "JBAS014750: Operation handler failed to complete"}}

      11:30:45,158 DEBUG [org.apache.catalina.session.ManagerBase] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Start expire sessions StandardManager at 1365121845

      158 sessioncount 0

      11:30:45,158 DEBUG [org.apache.catalina.session.ManagerBase] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) End expire sessions StandardManager processingTime

      0 expired sessions: 0

       

      Can you please help me what I should do?

       

      Here is jboss deployment structure:

       

       

      <jboss-deployment-structure>

          <deployment>

              <exclusions>

                  <module name="org.slf4j"/>

                  <module name="org.jaxen"/>

                  <module name="org.javassist"/>

                  <module name="nu.xom"/>

                  <module name="org.jboss.logging" />

                  <module name="javax.xml.bind.api" />

                  <module name="javax.persistence.api" />

                  <module name="javax.transaction.api" />

                  <module name="org.hibernate"/>

              </exclusions>

              <dependencies>

                  <module name="com.sybase"/>

              </dependencies>

          </deployment>

      </jboss-deployment-structure>

        • 1. Re: Unable to deploy my war file
          Mohammad Norouzi Novice

          Sorry I missed the deployment structure:

           

          <jboss-deployment-structure>

              <deployment>

                  <dependencies>

                      <module name="com.sybase"/>

                      <module name="org.slf4j"/>

                      <module name="org.jaxen"/>

                      <module name="org.javassist"/>

                      <module name="nu.xom"/>

                      <module name="org.jboss.logging" />

                      <module name="javax.xml.bind.api" />

                      <module name="javax.persistence.api" />

                      <module name="javax.transaction.api" />

                      <module name="org.hibernate"/>

                  </dependencies>

              </deployment>

          </jboss-deployment-structure>

          • 2. Re: Unable to deploy my war file
            Amit Telang Newbie

            are you using log4j.xml or log4j.properties. Are you getting any application related log?

            • 3. Re: Unable to deploy my war file
              Mohammad Norouzi Novice

              Sorry I've updated the deployment structure... We are using slf4j but I can't see any application related log! The log is quite useless with no enough information. I don't know whether this is because of lack of dependency or something else!

               

              The only thing I get is following lines that says my war file hasn't been deployed.:

               

              11:30:03,771 DEBUG org.jboss.as.security (MSC service thread 1-12) Cannot create permissions with 'null' metaData for id=cbs-war-generic-6.1.07-SOE-SNAPSHOT.war

              11:30:03,989 INFO  org.jboss.as.server (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "cbs-war-generic-6.1.07-SOE-SNAPSHOT.war" was rolled back with

              failure message JBAS014750: Operation handler failed to complete

              • 4. Re: Unable to deploy my war file
                Mohammad Norouzi Novice

                ok I found out the problem is our jdbc driver.

                But I don't know how to get it working.

                 

                We're using Sybase driver for jdbc3

                 

                This is the module i've defined:

                 

                -------

                <module xmlns="urn:jboss:module:1.1" name="com.sybase">

                 

                    <resources>

                        <resource-root path="jconnect-6.05.jar"/>

                        <!-- Insert resources here -->

                    </resources>

                    <dependencies>

                        <module name="javax.api"/>

                        <!--module name="javax.transaction.api"/-->

                        <module name="javax.servlet.api" optional="true"/>

                    </dependencies>

                </module>

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

                 

                and this is the connection pool in standalone.xml:


                <datasource jndi-name="java:jboss/jdbc/compdev" pool-name="compdev_pool" enabled="true" use-java-context="true">

                <connection-url>jdbc:icunchained:Tds:w-db-dt3:5040/V10_DEV</connection-url>

                <driver>sybase</driver>

                <pool>

                <min-pool-size>25</min-pool-size>

                <max-pool-size>50</max-pool-size>

                <prefill>false</prefill>

                <use-strict-min>false</use-strict-min>

                </pool>

                <security>

                <user-name>dbd_user</user-name>

                <password>dbd_pass</password>

                </security>

                </datasource>

                <datasource jndi-name="java:jboss/jdbc/compdev-readonly" pool-name="compdev_pool_readonly" enabled="true" use-java-context="true">

                <connection-url>jdbc:icunchained:Tds:w-db-dt3:5040/V10_DEV</connection-url>

                <driver>sybase</driver>

                <pool>

                <min-pool-size>25</min-pool-size>

                <max-pool-size>50</max-pool-size>

                <prefill>false</prefill>

                <use-strict-min>false</use-strict-min>

                </pool>

                <security>

                <user-name>dbd_user</user-name>

                <password>dbd_pass</password>

                </security>

                </datasource>

                <drivers>

                       <driver name="h2" module="com.h2database.h2">

                           <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>

                       </driver>



                <driver name="sybase" module="com.sybase">

                             <datasource-class>com.sybase.jdbc3.jdbc.SybDataSource</datasource-class>

                </driver>

                 

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

                I get this error:

                 

                JBAS014775:New missing/unsatisfied dependencies:
                  service jboss.jdbc-driver.sybase (missing) dependents: [service jboss.data-source.java:jboss/jdbc/compdev, service jboss.data-source.java:jboss/jdbc/compdev-readonly]

                 

                 

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

                • 5. Re: Unable to deploy my war file
                  Amit Telang Newbie

                  check the jar file containing your sysbase driver exists under module folder. This issue occurs if the driver is not found. Like in case of oracle ojdbc14.jar is required under \jboss-eap-6.0\modules\com\oracle\ojdbc14\main.

                  Hope this will help.