Fornax-Platform
Forum

Re: Problem deploying Sculptor generated .war file in JBoss

by Patrik Nordwall :: Rate this Message:

Reply to Author | View in Thread

I have created jira issue for this: http://fornax.itemis.de/jira/browse/CSC-362

An alternative that might work is that you add the following to web.xml:
        <resource-ref>
                <res-ref-name>jdbc/UniverseDS</res-ref-name>
                <res-type>javax.sql.DataSource</res-type>
                <res-auth>Container</res-auth>
        </resource-ref>


And create a jboss-web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
 <resource-ref>
        <res-ref-name>jdbc/UniverseDS</res-ref-name>
        <jndi-name>java:jdbc/UniverseDS</jndi-name>
    </resource-ref>
</jboss-web>

/Patrik


Oliver Ringel wrote:
Hi Danny,

this is a bug in sculptor 1.6.0.

The correct JNDI name to lookup the datasource in JBoss
should be 'java:jdbc/UniverseDS' not java:comp/java/jdbc/UniverseDS.
We have to fix this.

As quick workaround you can try adding this to SpecialCases.xpt.

«AROUND templates::Hibernate::persistenceUnitDataSource FOR Application»
<non-jta-data-source>java:jdbc/«dataSourceName()»</non-jta-data-source>
«ENDAROUND»

regards, Oliver

 « Return to Thread: Problem deploying Sculptor generated .war file in JBoss