File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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

JBoss 5.1.0.GA multiple datasource problem

Lorenzo Rep

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 Rep

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

Removing it resolved the issues.
Don't get me started about those stupid light bulbs.
subject: JBoss 5.1.0.GA multiple datasource problem
Similar Threads
OutOfMemoryError at openSession in JTATransaction
Unable to obtain datasource
JNDI Mapping for oracle datasource
How to get Connection through JNDI Datasource.