1 Reply Latest reply on May 7, 2013 6:50 AM by P18Mar ch ;)

    Project deployment failed in JBoss 7.1.1.final

    P18Mar ch ;) Newbie

      Hi,

       

      As I setup a new J2EE project in JBoss7.1 with EJB3.0,JSF2.1.Whenever I start a project it shows me ........................

       

      15:02:42,531 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      15:02:42,718 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      15:02:42,765 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

      15:02:43,578 INFO  [org.xnio] XNIO Version 3.0.3.GA

      15:02:43,578 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

      15:02:43,578 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      15:02:43,593 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

      15:02:43,609 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      15:02:43,609 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

      15:02:43,625 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

      15:02:43,625 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

      15:02:43,640 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

      15:02:43,640 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

      15:02:43,640 INFO  [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service

      15:02:43,656 INFO  [org.jboss.as.security] (MSC service thread 1-2) JBAS013100: Current PicketBox version=4.0.7.Final

      15:02:43,718 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

      15:02:43,718 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-4) JBAS015400: Bound mail session [java:jboss/mail/Default]

      15:02:43,781 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-8) JBoss Web Services - Stack CXF Server 4.0.2.GA

      15:02:43,812 INFO  [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

      15:02:43,921 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      15:02:43,953 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-8) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

      15:02:44,250 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory C:\jboss-as-7.1.1.Final\standalone\deployments

      15:02:44,250 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on localhost/127.0.0.1:4447

      15:02:44,265 INFO  [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on /localhost:9999

      15:02:44,281 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      15:02:44,531 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.jdbc-driver.com_mysql (missing) dependents: [service jboss.data-source.java:/pank18mards]

       

      15:02:44,546 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "p18marServer.ear"

      15:02:44,734 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "p18marWeb.war"

      15:02:44,734 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "p18marCore.jar"

      15:02:45,218 INFO  [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011401: Read persistence.xml for p18marCore

      15:02:45,296 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'

      15:02:45,296 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'

      15:02:46,187 INFO  [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.

      15:02:46,250 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Initializing Mojarra 2.1.7-jbossorg-1 (20120227-1401) for context '/p18marWeb'

      15:02:47,031 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-1) Hibernate Validator 4.2.0.Final

      15:02:47,468 INFO  [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /p18marWeb

      15:02:47,468 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015951: Admin console listening on http://localhost:9990

      15:02:47,468 ERROR [org.jboss.as] (MSC service thread 1-1) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 5172ms - Started 457 of 544 services (4 services failed or missing dependencies, 81 services are passive or on-demand)

      15:02:47,687 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "p18marServer.ear" was rolled back with failure message JBAS014750: Operation handler failed to complete

      15:02:47,718 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment p18marCore.jar in 28ms

      15:02:47,734 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment p18marWeb.war in 46ms

      15:02:47,734 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment p18marServer.ear in 49ms

      15:02:47,734 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => "JBAS014750: Operation handler failed to complete"}}

       

       

      Please Solve it ASAP.

        • 1. Re: Project deployment failed in JBoss 7.1.1.final
          P18Mar ch ;) Newbie

          I have solved it

           

           

          Create directory :-

          C:\jboss-as-7.1.1.Final\modules\com\mysql\main

           

          copy  mysql-connector-java-5.1.6.jar here

          create module.xml here

          Copy it

           

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

           

          <module xmlns="urn:jboss:module:1.0" name="com.mysql">

            <resources>

              <resource-root path="mysql-connector-java-5.1.6.jar"/>

            </resources>

            <dependencies>

              <module name="javax.api"/>

            </dependencies>

          </module>

           

           

           

           

           

          modify Statndard.xml

           

            <subsystem xmlns="urn:jboss:domain:datasources:1.0">

                      <datasources>

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

                              <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>

                              <driver>h2</driver>

                              <security>

                                  <user-name>sa</user-name>

                                  <password>sa</password>

                              </security>

                          </datasource>

                          <datasource jta="true" jndi-name="java:/pank18mards" pool-name="pank18mards_Pool" enabled="true" use-java-context="true" use-ccm="true">

                              <connection-url>jdbc:mysql://localhost:3306/pank18mar</connection-url>

                              <driver>com.mysql</driver>

                              <security>

                                  <user-name>root</user-name>

                                  <password>test</password>

                              </security>

                              <timeout>

                                  <idle-timeout-minutes>0</idle-timeout-minutes>

                                  <query-timeout>600</query-timeout>

                              </timeout>

                              <statement>

                                  <prepared-statement-cache-size>100</prepared-statement-cache-size>

                                  <share-prepared-statements>true</share-prepared-statements>

                              </statement>

                          </datasource>

                          <drivers>

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

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

                              </driver>

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

                                  <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>

                              </driver>

                          </drivers>

                      </datasources>

                  </subsystem>

           

           

           

           

           

          <interfaces>

                  <interface name="management">

                      <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>

                  </interface>

                  <interface name="public">

                      <inet-address value="localhost"/>

                  </interface>

                  <interface name="unsecure">

                      <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>

                  </interface>

              </interfaces>

           

           

           

           

          Thanks every one.