4 Replies Latest reply on Sep 16, 2012 8:41 AM by Sree .

    JBAS014771: Services with missing/unavailable dependencies": jboss.naming.context.java.XaaSDS

    Sree . Newbie

       

      Guys,

       

      Any help would be appreciated when I try to deploy War file in Jboss server, deployment failed. Let me know

       

       

      18:05:48,494 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
      18:05:48,714 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
      18:05:48,724 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on /127.0.0.1:9999
      18:05:48,714 INFO  [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on /127.0.0.1:4447
      18:05:48,734 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found FirstEJBsProject.war in deployment directory. To trigger deployment create a file called FirstEJBsProject.war.dodeploy
      18:05:48,854 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
      18:05:48,854 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/XaaSDS]
      18:05:48,894 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "FirstEJBsProject.war"
      18:05:49,714 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) JBAS011401: Read persistence.xml for FirstEJBsProject
      18:05:49,835 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named ActorBean in deployment unit deployment "FirstEJBsProject.war" are as follows:

      java:global/FirstEJBsProject/ActorBean!com.ibytecode.businesslogic.ActorBean
      java:app/FirstEJBsProject/ActorBean!com.ibytecode.businesslogic.ActorBean
      java:module/ActorBean!com.ibytecode.businesslogic.ActorBean
      java:global/FirstEJBsProject/ActorBean
      java:app/FirstEJBsProject/ActorBean
      java:module/ActorBean

      18:05:50,045 INFO  [org.jboss.as] (MSC service thread 1-5) JBAS015951: Admin console listening on http://127.0.0.1:9990
      18:05:50,045 ERROR [org.jboss.as] (MSC service thread 1-5) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 3762ms - Started 179 of 269 services (12 services failed or missing dependencies, 76 services are passive or on-demand)
      18:05:50,245 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "FirstEJBsProject.war" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"FirstEJBsProject.war#FirstEJBsProject\"jboss.naming.context.java.XaaSDSMissing[jboss.persistenceunit.\"FirstEJBsProject.war#FirstEJBsProject\"jboss.naming.context.java.XaaSDS]"]}
      18:05:50,275 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment FirstEJBsProject.war in 36ms
      18:05:50,285 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
      JBAS014775:    New missing/unsatisfied dependencies:
            service jboss.naming.context.java.XaaSDS (missing) dependents: [service jboss.persistenceunit."FirstEJBsProject.war#FirstEJBsProject"]

      18:05:50,285 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"FirstEJBsProject.war#FirstEJBsProject\"jboss.naming.context.java.XaaSDSMissing[jboss.persistenceunit.\"FirstEJBsProject.war#FirstEJBsProject\"jboss.naming.context.java.XaaSDS]"]}}}

        • 1. Re: JBAS014771: Services with missing/unavailable dependencies": jboss.naming.context.java.XaaSDS
          Justin Bertram Master

          Can you copy/paste your persistence.xml and any JDBC datasource definition from your server's configuration (e.g. standalone.xml)?  It looks to me like you just have a JNDI look-up name wrong.

          • 2. Re: JBAS014771: Services with missing/unavailable dependencies": jboss.naming.context.java.XaaSDS
            Sree . Newbie

            Justin,

             

            Pl check the following  Data source:

             

                        <datasources>
                            <datasource enabled="true" jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" 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 enabled="true" jndi-name="java:jboss/datasources/XaaSDS" pool-name="XaaSDS" use-ccm="true" use-java-context="true">
                                <connection-url>jdbc:mysql://localhost:3306/XaaS</connection-url>
                                <driver>com.mysql</driver>
                                <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
                                <pool>
                                    <min-pool-size>10</min-pool-size>
                                    <max-pool-size>100</max-pool-size>
                                    <prefill>true</prefill>
                                </pool>
                                <security>
                                    <user-name>root</user-name>
                                    <password>nani1234</password>
                                </security>
                                <statement>
                                    <prepared-statement-cache-size>32</prepared-statement-cache-size>
                                    <share-prepared-statements>true</share-prepared-statements>
                                </statement>
                            </datasource>
                            <drivers>
                                <driver module="com.h2database.h2" name="h2">
                                    <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
                                </driver>
                 <driver module="com.mysql" name="com.mysql">
                                 <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
                        </driver>
                         </drivers>
              </datasources> 

             

             

             

            ===========================================================================

            Persistence.xml

             

             

             

             

             

             

             

             

             

             

             

            <?

             

            xml version="1.0" encoding="UTF-8"

            ?>

            <

             

            persistence version="2.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_2_0.xsd"

            >

             

            <persistence-unit name="FirstEJBsProject" transaction-type="JTA"

            >

             

            <jta-data-source>XaaSDS</jta-data-source>

             

            <class>com.ibytecode.entity.Actor</class

            >

             

            <class>com.ibytecode.entity.Address</class

            >

             

            <class>com.ibytecode.entity.Country</class

            >

             

            <class>com.ibytecode.entity.Users</class

            >

             

            <class>com.ibytecode.entity.City</class

            >

             

            </persistence-unit

            >

            </

             

            persistence

            >

             

            Let me know if you have any other questions.

             

            Thanks,

            Sree

            • 3. Re: JBAS014771: Services with missing/unavailable dependencies": jboss.naming.context.java.XaaSDS
              Justin Bertram Master

              So your datasource has this:

               

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

               

              And your persistence.xml has this:

               

              <jta-data-source>XaaSDS</jta-data-source>
              

               

              Why not make those match so that the JPA implementation can actually find the datasource?  For example, change the persistence.xml to use:

               

              <jta-data-source>java:jboss/datasources/XaaSDS</jta-data-source>
              
              • 4. Re: JBAS014771: Services with missing/unavailable dependencies": jboss.naming.context.java.XaaSDS
                Sree . Newbie

                Justin,

                 

                 

                Thats was really helpful.

                 

                I also saw following warning message in logfile.

                 

                 

                08:26:34,731 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

                 

                 

                Can you point me  to my any specific tutorial or example to download so that I will  look directly into that ( JSF2.0 + StateLess EJB + JPA + JAX-WS ) with CDI Features with end of end implementation and testing.

                 

                Let me know

                 

                Once again a thanks a lot.

                 

                 

                Sree