*
The moose likes JBoss/WildFly and the fly likes JBoss 5.1.0.GA multiple datasource problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss 5.1.0.GA multiple datasource problem" Watch "JBoss 5.1.0.GA multiple datasource problem" New topic
Author

JBoss 5.1.0.GA multiple datasource problem

Lorenzo Rep
Greenhorn

Joined: Jan 17, 2012
Posts: 2
Hello all,
I'm porting two web app from JB 4.0.4.GA to JB 5.1.0.GA.
The two apps (WAR) use hibernate for persistence.
The first uses a single datasource (waspDS) and works correctly.
The seconduses two different datasources (waspDS and waspAllineamentiDS) because it has to connect to two different DB.

While in JB 4 I have no problem at all, now in JB 5 the second app give me an error every time I try to login.

These are the datasources configurations in the "deploy" folder:

the wasp-oracle-ds.xml file



and the waspAllineamenti-oracle-ds.xml



The jboss-web.xml is this:



and I have two hibernate config files, the first:



and the second:



The exception I get is:



Can you help me please?
Thanks a lot, regards

Lorenzo
Lorenzo Rep
Greenhorn

Joined: Jan 17, 2012
Posts: 2
I found in the war the "classes12.jar".

Removing it resolved the issues.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss 5.1.0.GA multiple datasource problem
 
Similar Threads
Spring-JNDI
How to get Connection through JNDI Datasource.
JNDI Mapping for oracle datasource
OutOfMemoryError at openSession in JTATransaction
Unable to obtain datasource