9 Replies Latest reply on Sep 3, 2011 8:35 AM by Sam W

    Missing file during deployment.

    Sam W Expert

      Hello,

       

      I added Hibernate Persistent in my WAR file and deployed to JBOSS AS7, but JBOSS having a problem finding my persistent unit.

      Here is the full log for the deployment:

       

       

      15:14:23,298 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) Starting deployment of "category-ws-0.0.1-SNAPSHOT.war"

      15:14:24,335 INFO  [org.jboss.jpa] (MSC service thread 1-7) read persistence.xml for HousewareCategoryPU

      15:14:24,335 INFO  [org.jboss.jpa] (MSC service thread 1-7) read persistence.xml for HousewareCategoryPU

      15:14:24,336 WARN  [org.jboss.jpa] (MSC service thread 1-7) duplicate Persistence Unit definition for HousewareCategoryPU in application.  One of the duplicate persistence.xml should be removed from the application. Application deployment will continue with the persistence.xml definitions from category-ws-0.0.1-SNAPSHOT.war#HousewareCategoryPU used.  The persistence.xml definitions from category-ws-0.0.1-SNAPSHOT.war#HousewareCategoryPU will be ignored.

      15:14:24,337 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to category-ws-0.0.1-SNAPSHOT.war

      15:14:24,337 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) added (default provider) org.hibernate dependency to application deployment (since 1 PU(s) didn't specify jboss.as.jpa.providerModule)

      15:14:24,337 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) added org.hibernate dependency to application deployment

      15:14:24,368 INFO  [org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect] (MSC service thread 1-3) Spring not available, skipping check for user provided jbossws-cxf.xml / cxf.xml configuration files.

      15:14:24,369 INFO  [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-3) Add Service

      id=CXFCategoryServlet

      address=http://localhost:80/category-ws-0.0.1-SNAPSHOT/services

      implementor=ix.houseware.category.service.CreateCategoryImpl

      invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker

      serviceName={http://service.category.houseware.ix/}CreateCategoryImplService

      portName={http://service.category.houseware.ix/}CreateCategoryImplPort

      wsdlLocation=null

      mtomEnabled=false

      15:14:24,369 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-3) register: jboss.ws:context=category-ws-0.0.1-SNAPSHOT,endpoint=CXFCategoryServlet

      15:14:24,375 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-3) Creating Service {http://service.category.houseware.ix/}CreateCategoryImplService from class ix.houseware.category.service.CreateCategory

      15:14:24,401 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-3) Setting the server's publish address to be http://localhost:80/category-ws-0.0.1-SNAPSHOT/services

      15:14:24,403 WARN  [org.jboss.wsf.stack.cxf.resolver.JBossWSResourceResolver] (MSC service thread 1-3) Cannot resolve resource: cxf

      15:14:24,410 INFO  [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-3) WSDL published to: file:/usr/local/users/jboss/jboss71A/standalone/data/wsdl/category-ws-0.0.1-SNAPSHOT.war/CreateCategoryImplService.wsdl

      15:14:24,416 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) Deployment has its own Persistence Provider class org.hibernate.ejb.HibernatePersistence

      15:14:24,427 INFO  [org.jboss.as.webservices.service.EndpointService] (MSC service thread 1-5) Starting service jboss.ws.endpoint."category-ws-0.0.1-SNAPSHOT".CXFCategoryServlet

      15:14:24,632 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "category-ws-0.0.1-SNAPSHOT.war" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"category-ws-0.0.1-SNAPSHOT.war#HousewareCategoryPU\" missing [ jboss.naming.context.java.Houseware ]"]}

      15:14:24,635 INFO  [org.jboss.as.webservices.service.EndpointService] (MSC service thread 1-1) Stopping service jboss.ws.endpoint."category-ws-0.0.1-SNAPSHOT".CXFCategoryServlet

      15:14:24,639 WARN  [org.jboss.wsf.stack.cxf.resolver.JBossWSResourceResolver] (MSC service thread 1-2) Cannot resolve resource: org.apache.cxf.ws.rm.RMManager/bus

      15:14:24,642 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-2) remove: jboss.ws:context=category-ws-0.0.1-SNAPSHOT,endpoint=CXFCategoryServlet

      15:14:24,654 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) Stopped deployment category-ws-0.0.1-SNAPSHOT.war in 22ms

      15:14:24,655 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"category-ws-0.0.1-SNAPSHOT.war#HousewareCategoryPU\" missing [ jboss.naming.context.java.Houseware ]"]}}}

       

       

      My src/main/resources/META-INF/persistent.xml file:

       

       

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

      <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">

        <persistence-unit name="HousewareCategoryPU" transaction-type="JTA">

          <jta-data-source>java:/Houseware</jta-data-source>

          <exclude-unlisted-classes>false</exclude-unlisted-classes>

          <properties/>

        </persistence-unit>

        <persistence-unit name="HousewareCategoryPU" transaction-type="JTA">

          <provider>org.hibernate.ejb.HibernatePersistence</provider>

          <jta-data-source>java:/Houseware</jta-data-source>

          <exclude-unlisted-classes>false</exclude-unlisted-classes>

          <properties>

            <property name="hibernate.hbm2ddl.auto" value="update"/>

          </properties>

        </persistence-unit>

      </persistence>

       

       

      web.xml file:

       

       

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

      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">

          <display-name>CreateCategory</display-name>

          <servlet>

              <servlet-name>CXFCategoryServlet</servlet-name>

              <servlet-class>

                  ix.houseware.category.service.CreateCategoryImpl

              </servlet-class>

          </servlet>

          <servlet-mapping>

              <servlet-name>CXFCategoryServlet</servlet-name>

              <url-pattern>/services/*</url-pattern>

          </servlet-mapping>

      </web-app>

       

       

      What have I scewed up in my configuration?

       

      Very appreciate for any suggestion/

       

      Thanks

      Sam

        • 1. Re: Missing file during deployment.
          Wolf-Dieter Fink Master

          Looks like a packaging problem. See line 4 of your log, the PU might be deployed double.

          I suppose the ERROR is only a follow-up.

          • 2. Re: Missing file during deployment.
            Sam W Expert

            Thank you for the suggestion.

            I removed the extra PU in the persistent.xml file, and the file look like this:

             

             

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

            <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"

            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

            xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">

                <!--

              <persistence-unit name="HousewareCategoryPU" transaction-type="JTA">

                <jta-data-source>java:/Houseware</jta-data-source>

                <exclude-unlisted-classes>false</exclude-unlisted-classes>

                <properties/>

              </persistence-unit>

              -->

              <persistence-unit name="HousewareCategoryPU" transaction-type="JTA">

                <provider>org.hibernate.ejb.HibernatePersistence</provider>

                <jta-data-source>java:/Houseware</jta-data-source>

                <exclude-unlisted-classes>false</exclude-unlisted-classes>

                <properties>

                  <property name="hibernate.hbm2ddl.auto" value="update"/>

                </properties>

              </persistence-unit>

            </persistence>

             

             

            the I got another error during deployement:

             

             

            16:14:23,224 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) Starting deployment of "category-ws-0.0.1-SNAPSHOT.war"

            16:14:23,263 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."category-ws-0.0.1-SNAPSHOT.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."category-ws-0.0.1-SNAPSHOT.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "category-ws-0.0.1-SNAPSHOT.war"

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [:1.6.0_03-p4]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [:1.6.0_03-p4]

                    at java.lang.Thread.run(Thread.java:619) [:1.6.0_03-p4]

            Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to mount deployment content

                    at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:82) [jboss-as-server-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]

                    ... 5 more

            Caused by: java.io.EOFException: Unexpected end of ZLIB input stream

                    at java.util.zip.ZipFile$1.fill(ZipFile.java:227) [:1.6.0_03-p4]

                    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) [:1.6.0_03-p4]

                    at java.io.FilterInputStream.read(FilterInputStream.java:90) [:1.6.0_03-p4]

                    at org.jboss.vfs.VFSUtils.copyStream(VFSUtils.java:441)

                    at org.jboss.vfs.VFSUtils.copyStream(VFSUtils.java:421)

                    at org.jboss.vfs.VFSUtils.unzip(VFSUtils.java:841)

                    at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:536)

                    at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:567)

                    at org.jboss.as.server.deployment.repository.impl.ServerDeploymentRepositoryImpl.mountDeploymentContent(ServerDeploymentRepositoryImpl.java:73)

                    at org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:78) [jboss-as-server-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]

                    ... 6 more

             

             

            16:14:23,265 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "category-ws-0.0.1-SNAPSHOT.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"category-ws-0.0.1-SNAPSHOT.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"category-ws-0.0.1-SNAPSHOT.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"category-ws-0.0.1-SNAPSHOT.war\""}}

            16:14:23,266 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) Stopped deployment category-ws-0.0.1-SNAPSHOT.war in 0ms

            16:14:23,267 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"category-ws-0.0.1-SNAPSHOT.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"category-ws-0.0.1-SNAPSHOT.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"category-ws-0.0.1-SNAPSHOT.war\""}}}}

            (END)

             

             

            Thanks

            Sam

            • 3. Re: Missing file during deployment.
              jaikiran pai Master

              How have you configured/deployed the datasource? Check this doc for more details https://docs.jboss.org/author/display/AS7/Admin+Guide#AdminGuide-Datasources

              • 4. Re: Missing file during deployment.
                Sam W Expert

                Hi, thanks for the link.

                I am still getting the same error with following lines being added in standalone-preview.xml file:

                <xa-datasource jndi-name="java:jboss/datasources/Houseware" pool-name="Houseware" enabled="true" use-java-context="true" use-ccm="true">

                                    <xa-datasource-property name="URL">

                                        jdbc:mysql://localhost:3306/houseware

                                    </xa-datasource-property>

                                    <driver>

                                        mysql-connector-java-5.1.14-bin.jar

                                    </driver>

                                    <xa-pool>

                                        <min-pool-size>

                                            10

                                        </min-pool-size>

                                        <max-pool-size>

                                            20

                                        </max-pool-size>

                                        <prefill>

                                            true

                                        </prefill>

                                        <use-strict-min>

                                            false

                                        </use-strict-min>

                                        <flush-strategy>

                                            FailingConnectionOnly

                                        </flush-strategy>

                                        <pad-xid>

                                            false

                                        </pad-xid>

                                        <wrap-xa-resource>

                                            true

                                        </wrap-xa-resource>

                                    </xa-pool>

                                    <security>

                                        <user-name>

                                            samsam

                                        </user-name>

                                        <password>

                                            mypass

                                        </password>

                                    </security>

                 

                 

                Thanks

                Sam

                • 5. Re: Missing file during deployment.
                  Scott Marlow Master

                  "java:/Houseware" is not a valid datasource name under AS7.  Try changing the datasource name, from "java:/Houseware" to something like "java:jboss/datasources/Houseware" (anything under "java:jboss/" is fine).

                  • 6. Re: Missing file during deployment.
                    Sam W Expert

                    Thanks, corrected that error, now I am not sure where to setup my mysql driver for the following error.

                     

                     

                    Unable to instantiate driver class "mysql-connector-java-5.1.14-bin.jar": java.lang.ClassNotFoundException: mysql-connector-java-5.1.14-bin.jar from [Module "deployment.category-ws-0.0.1-SNAPSHOT.war:main" from Service Module Loader]

                     

                    Thanks

                    Sam

                    • 7. Re: Missing file during deployment.
                      Sam W Expert

                      I followed the document to  to make the mysql jar file available to the war file, but got this error:

                       

                       

                      $ jar \-uf /cygdrive/c/work/mysql-connector-java-5.1.14/mysql-connector-java-5.1.14-bin.jar META-INF/services/java.sql.Driver

                      java.io.IOException: ϵͳ�����ָ���������

                              at java.io.WinNTFileSystem.createFileExclusively(Native Method)

                              at java.io.File.checkAndCreate(File.java:1704)

                              at java.io.File.createTempFile(File.java:1792)

                              at sun.tools.jar.Main.createTempFileInSameDirectoryAs(Main.java:119)

                              at sun.tools.jar.Main.run(Main.java:191)

                              at sun.tools.jar.Main.main(Main.java:1149)

                       

                      • 8. Re: Missing file during deployment.
                        Sam W Expert

                        Here is the full logs for deployment:

                         

                         

                        00:39:25,065 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "category-ws-0.0.1-SNAPSHOT.war"

                        00:39:27,196 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-1) Encountered invalid class name "mysql-connector-java-5.1.14-bin.jar" for service type "java.sql.Driver"

                        00:39:27,197 INFO  [org.jboss.jpa] (MSC service thread 1-1) read persistence.xml for HousewareCategoryPU

                        00:39:27,199 INFO  [org.jboss.as.jpa] (MSC service thread 1-7) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to category-ws-0.0.1-SNAPSHOT.war

                        00:39:27,199 INFO  [org.jboss.as.jpa] (MSC service thread 1-7) added (default provider) org.hibernate dependency to application deployment (since 1 PU(s) didn't specify jboss.as.jpa.providerModule)

                        00:39:27,199 INFO  [org.jboss.as.jpa] (MSC service thread 1-7) added org.hibernate dependency to application deployment

                        00:39:27,223 INFO  [org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect] (MSC service thread 1-1) Spring not available, skipping check for user provided jbossws-cxf.xml / cxf.xml configuration files.

                        00:39:27,224 INFO  [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-1) Add Service

                        id=CXFCategoryServlet

                        address=http://localhost:80/category-ws-0.0.1-SNAPSHOT/services

                        implementor=ix.houseware.category.service.CreateCategoryImpl

                        invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker

                        serviceName={http://service.category.houseware.ix/}CreateCategoryImplService

                        portName={http://service.category.houseware.ix/}CreateCategoryImplPort

                        wsdlLocation=null

                        mtomEnabled=false

                        00:39:27,224 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-1) register: jboss.ws:context=category-ws-0.0.1-SNAPSHOT,endpoint=CXFCategoryServlet

                        00:39:27,230 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://service.category.houseware.ix/}CreateCategoryImplService from class ix.houseware.category.service.CreateCategory

                        00:39:27,253 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http://localhost:80/category-ws-0.0.1-SNAPSHOT/services

                        00:39:27,254 WARN  [org.jboss.wsf.stack.cxf.resolver.JBossWSResourceResolver] (MSC service thread 1-1) Cannot resolve resource: cxf

                        00:39:27,261 INFO  [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-1) WSDL published to: file:/usr/local/users/jboss/jboss71A/standalone/data/wsdl/category-ws-0.0.1-SNAPSHOT.war/CreateCategoryImplService.wsdl

                        00:39:27,274 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) Deployment has its own Persistence Provider class org.hibernate.ejb.HibernatePersistence

                        00:39:27,280 WARN  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) Unable to instantiate driver class "mysql-connector-java-5.1.14-bin.jar": java.lang.ClassNotFoundException: mysql-connector-java-5.1.14-bin.jar from [Module "deployment.category-ws-0.0.1-SNAPSHOT.war:main" from Service Module Loader]

                        00:39:27,283 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

                        00:39:27,285 INFO  [org.jboss.as.webservices.service.EndpointService] (MSC service thread 1-2) Starting service jboss.ws.endpoint."category-ws-0.0.1-SNAPSHOT".CXFCategoryServlet

                        00:39:27,487 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "category-ws-0.0.1-SNAPSHOT.war" was rolled back with failure message Operation handler failed to complete

                        00:39:27,488 INFO  [org.jboss.as.webservices.service.EndpointService] (MSC service thread 1-8) Stopping service jboss.ws.endpoint."category-ws-0.0.1-SNAPSHOT".CXFCategoryServlet

                        00:39:27,491 WARN  [org.jboss.wsf.stack.cxf.resolver.JBossWSResourceResolver] (MSC service thread 1-7) Cannot resolve resource: org.apache.cxf.ws.rm.RMManager/bus

                        00:39:27,493 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-7) remove: jboss.ws:context=category-ws-0.0.1-SNAPSHOT,endpoint=CXFCategoryServlet

                        00:39:27,503 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment category-ws-0.0.1-SNAPSHOT.war in 16ms

                        00:39:27,504 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => "Operation handler failed to complete"}}

                         

                        • 9. Re: Missing file during deployment.
                          Sam W Expert

                          Hi,

                           

                          After configured standalone-preview.xml with mysql datasource, and redeployed my WAR file, I dont' know why I am getting the following error:

                           

                           

                          22:28:58,272 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "category-ws-0.0.1-SNAPSHOT.war"

                          22:28:59,145 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-5) Encountered invalid class name "mysql-connector-java-5.1.14-bin.jar" for service type "java.sql.Driver"

                          22:28:59,152 INFO  [org.jboss.jpa] (MSC service thread 1-5) read persistence.xml for HousewareCategoryPU

                          22:28:59,155 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) added javax.persistence.api, javaee.api, org.jboss.as.jpa, org.javassist dependencies to category-ws-0.0.1-SNAPSHOT.war

                          22:28:59,155 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) added (default provider) org.hibernate dependency to application deployment (since 1 PU(s) didn't specify jboss.as.jpa.providerModule)

                          22:28:59,155 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) added org.hibernate dependency to application deployment

                          22:28:59,297 INFO  [org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect] (MSC service thread 1-3) Spring not available, skipping check for user provided jbossws-cxf.xml / cxf.xml configuration files.

                          22:28:59,298 INFO  [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-3) Add Service

                          id=CXFCategoryServlet

                          address=http://localhost:80/category-ws-0.0.1-SNAPSHOT/services

                          implementor=ix.houseware.category.service.CreateCategoryImpl

                          invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker

                          serviceName={http://service.category.houseware.ix/}CreateCategoryImplService

                          portName={http://service.category.houseware.ix/}CreateCategoryImplPort

                          wsdlLocation=null

                          mtomEnabled=false

                          22:28:59,298 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-3) register: jboss.ws:context=category-ws-0.0.1-SNAPSHOT,endpoint=CXFCategoryServlet

                          22:28:59,306 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-3) Creating Service {http://service.category.houseware.ix/}CreateCategoryImplService from class ix.houseware.category.service.CreateCategory

                          22:28:59,331 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-3) Setting the server's publish address to be http://localhost:80/category-ws-0.0.1-SNAPSHOT/services

                          22:28:59,332 WARN  [org.jboss.wsf.stack.cxf.resolver.JBossWSResourceResolver] (MSC service thread 1-3) Cannot resolve resource: cxf

                          22:28:59,420 INFO  [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-3) WSDL published to: file:/usr/local/users/jboss/jboss71A/standalone/data/wsdl/category-ws-0.0.1-SNAPSHOT.war/CreateCategoryImplService.wsdl

                          22:28:59,530 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) Deployment has its own Persistence Provider class org.hibernate.ejb.HibernatePersistence

                          22:28:59,546 WARN  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) Unable to instantiate driver class "mysql-connector-java-5.1.14-bin.jar": java.lang.ClassNotFoundException: mysql-connector-java-5.1.14-bin.jar from [Module "deployment.category-ws-0.0.1-SNAPSHOT.war:main" from Service Module Loader]

                          22:28:59,548 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

                          22:28:59,554 INFO  [org.jboss.as.webservices.service.EndpointService] (MSC service thread 1-1) Starting service jboss.ws.endpoint."category-ws-0.0.1-SNAPSHOT".CXFCategoryServlet

                          22:28:59,554 INFO  [org.jboss.jpa] (MSC service thread 1-1) starting Persistence Unit Service 'category-ws-0.0.1-SNAPSHOT.war#HousewareCategoryPU'

                          22:28:59,626 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-1) Hibernate Commons Annotations 3.2.0.Final

                          22:28:59,629 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH00412:Hibernate [WORKING]

                          22:28:59,630 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH00206:hibernate.properties not found

                          22:28:59,631 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH00021:Bytecode provider name : javassist

                          22:28:59,643 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-1) HHH00204:Processing PersistenceUnitInfo [

                                  name: HousewareCategoryPU

                                  ...]

                          22:28:59,675 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-1) HHH00194:Package not found or wo package-info.java: ix.houseware.category.service

                          22:28:59,675 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-1) HHH00194:Package not found or wo package-info.java: ix.houseware.category.bean

                          22:28:59,675 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-1) HHH00194:Package not found or wo package-info.java: ix.houseware.category.common

                          22:28:59,676 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-1) HHH00194:Package not found or wo package-info.java: ix.houseware.category.base

                          22:28:59,676 WARN  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-1) HHH00194:Package not found or wo package-info.java: ix.houseware.category.Enum

                          22:28:59,779 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-1) HHH00130:Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

                          22:28:59,807 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-1) HHH00400:Using dialect: org.hibernate.dialect.MySQLDialect

                          22:28:59,817 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-1) HHH00268:Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory

                          22:28:59,819 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-1) HHH00397:Using ASTQueryTranslatorFactory

                          22:28:59,846 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-1) Hibernate Validator 4.2.0.Final

                          22:28:59,934 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.persistenceunit."category-ws-0.0.1-SNAPSHOT.war#HousewareCategoryPU": org.jboss.msc.service.StartException in service jboss.persistenceunit."category-ws-0.0.1-SNAPSHOT.war#HousewareCategoryPU": Failed to start service

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [:1.6.0_03-p4]

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [:1.6.0_03-p4]

                                  at java.lang.Thread.run(Thread.java:619) [:1.6.0_03-p4]

                          Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

                                  at org.dom4j.DocumentFactory.getInstance(DocumentFactory.java:97)

                                  at org.dom4j.DocumentHelper.getDocumentFactory(DocumentHelper.java:36)

                                  at org.dom4j.DocumentHelper.createDocument(DocumentHelper.java:41)

                                  at org.hibernate.envers.configuration.RevisionInfoConfiguration.generateDefaultRevisionInfoXmlMapping(RevisionInfoConfiguration.java:86)

                                  at org.hibernate.envers.configuration.RevisionInfoConfiguration.configure(RevisionInfoConfiguration.java:322)

                                  at org.hibernate.envers.configuration.AuditConfiguration.<init>(AuditConfiguration.java:94)

                                  at org.hibernate.envers.configuration.AuditConfiguration.getFor(AuditConfiguration.java:134)

                                  at org.hibernate.envers.event.EnversIntegrator.integrate(EnversIntegrator.java:63)

                                  at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:294)

                                  at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1720)

                                  at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:76)

                                  at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:894)

                                  at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:879)

                                  at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)

                                  at org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:143)

                                  at org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:77)

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                                  ... 3 more

                           

                           

                          22:29:00,139 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "category-ws-0.0.1-SNAPSHOT.war" was rolled back with failure message {"Failed services" => {"jboss.persistenceunit.\"category-ws-0.0.1-SNAPSHOT.war#HousewareCategoryPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"category-ws-0.0.1-SNAPSHOT.war#HousewareCategoryPU\": Failed to start service"}}

                          22:29:00,141 INFO  [org.jboss.as.webservices.service.EndpointService] (MSC service thread 1-4) Stopping service jboss.ws.endpoint."category-ws-0.0.1-SNAPSHOT".CXFCategoryServlet

                          22:29:00,152 WARN  [org.jboss.wsf.stack.cxf.resolver.JBossWSResourceResolver] (MSC service thread 1-8) Cannot resolve resource: org.apache.cxf.ws.rm.RMManager/bus

                          22:29:00,160 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-8) remove: jboss.ws:context=category-ws-0.0.1-SNAPSHOT,endpoint=CXFCategoryServlet

                          22:29:00,172 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Stopped deployment category-ws-0.0.1-SNAPSHOT.war in 33ms

                          22:29:00,173 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.persistenceunit.\"category-ws-0.0.1-SNAPSHOT.war#HousewareCategoryPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"category-ws-0.0.1-SNAPSHOT.war#HousewareCategoryPU\": Failed to start service"}}}}