JBoss Community

Re: Migrating from jboss5 to AS7 missing/unavailable dependencies

created by Amin Mohammed in JBoss AS 7 Development - View the full discussion

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>

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community