[jboss-user] [Datasource Configuration] New message: "How to Use two Datasources ?"

Eduardo Sandino do-not-reply at jboss.com
Thu Mar 11 17:55:08 EST 2010


User development,

A new message was posted in the thread "How to Use two Datasources ?":

http://community.jboss.org/message/531508#531508

Author  : Eduardo Sandino
Profile : http://community.jboss.org/people/efsandino

Message:
--------------------------------------------------------------
Hi there...
 
I need two know how to use two datasources for my jboss seam web application...
 
I need to connect to an Oracle DB that will validate my users...
then
I need to connecto to a second MySQL DB to store information about my application...
 
I have:
1. Created 2 data sources.
2. Created 2 Hibernate Configuration Files.
 
But...
I have an exception that says:
 
org.jboss.seam.InstantiationException: Could not instantiate Seam component: xxxWebAppDatabaseEntityManagerFactory
    at org.jboss.seam.Component.newInstance(Component.java:2106)
    at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
    at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
    at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112)
    at org.jboss.seam.init.Initialization.init(Initialization.java:735)
    at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.server.jmx.LazyMBeanServer.invoke(LazyMBeanServer.java:291)
    at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
 
 
 

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/531508#531508




More information about the jboss-user mailing list