2 Replies Latest reply on Nov 29, 2012 5:09 AM by chandra sekaran

    Migrating from jboss5 to AS7 missing/unavailable dependencies

    Amin Mohammed Newbie

      i am trying to migrate from jboss 5 to 7 and get these issues when i try to deploy the way file any clue or pointers where to fix

       

      15:00:49,548 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "myapp.war" was rolled back with failure message

      {"JBAS01

      4771: Services with missing/unavailable dependencies" =>["jboss.naming.context.java.module.myapp.myapp.env.jms.Queue jboss.naming.context.java.queue.JobsQueue

      Missing[jboss.naming.context.java.module.myapp.myapp.env.jms.Queuejboss.naming.context.java.queue.JobsQueue]","jboss.naming.context.java.module.myapp.myapp.env.jms.ConnectionFactory  jboss.naming.context.java.JmsXA

      Missing[jboss.naming.context.java.module.myapp.myapp.env.jms.ConnectionFactoryjboss.naming.context.java.JmsXA]","jboss.naming.context.java.module.myapp.myapp.env.jdbc.ds   jboss.naming.context.java.jboss.java:ds.myappDS

      Missing[jboss.naming.context.java.module.myapp.myapp.env.jdbc.dsjboss.naming.context.java.jboss.java:ds.myappDS]","jboss.naming.context.java.module.myapp.myapp.env.wm.WorkManager   jboss.naming.context.java.module.myapp.myapp.env.WorkManager

      Missing[jboss.naming.context.java.module.myapp.myapp.env.wm.WorkManagerjboss.naming.context.java.module.myapp.myapp.env.WorkManager]","jboss.naming.context.java.module.myapp.myapp.env.jms.Topicjboss.naming.context.java.topic.MetricsTopicMissing[jboss.naming.context.java.module.myapp.myapp.env.jms.Topicjboss.naming.context.java.topic.MetricsTopic]"]}

        • 1. Re: Migrating from jboss5 to AS7 missing/unavailable dependencies
          Amin Mohammed Newbie

          the way it got fixed was

           

          in my

             jboss-web.xml i  changed

          to : -->          

                     <resource-ref>

                  <res-ref-name>jdbc/ds</res-ref-name>

                  <res-type>javax.sql.DataSource</res-type>

                  <jndi-name>java:jboss/ds/myAppDS</jndi-name>

          From : ---->

                     <resource-ref>

                  <res-ref-name>jdbc/ds</res-ref-name>

                  <res-type>javax.sql.DataSource</res-type>

                  <jndi-name>java:/ds/myAppDS</jndi-name>

              </resource-ref>

           

          in standalone-full-ha.xml

          i had data source declaratioin like this

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

                      <datasources>

                          <datasource jndi-name="java:jboss/datasources/myAppDS" pool-name="myAppDS" 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>

           

           

              </resource-ref>

          • 2. Re: Migrating from jboss5 to AS7 missing/unavailable dependencies
            chandra sekaran Newbie

            Hi Amin,

             

            I am migrating from jboss 3 to jboss 7, where did you change in your jboss-eb.xml, was it in the jboss 7 configuration files or in your application .ear files?

             

            I am also facing a similar issue, when I attempted to search for jboss-web.xml, I could get 3 such files under <myApp>.EAR/war/WEB-INF/jboss-web.xml.

            Should I be changing in these files?

             

            Thanks,

            Chandru