Atomikos Forum |
More info about this: I have this config in server.xml:
<Resource name="jdbc/datasource" type="com.atomikos.jdbc.AtomikosDataSourceBean" auth="Container"/> <ResourceParams name="jdbc/datasource"> <parameter> <name>factory</name> <value>com.atomikos.tomcat.BeanFactory</value> </parameter> <parameter> <name>uniqueResourceName</name> <value>jdbc/DMADuero"</value> </parameter> <parameter> <name>xaDataSourceClassName</name> <value>oracle.jdbc.xa.client.OracleXADataSource</value> </parameter> <parameter> <name>maxPoolSize</name> <value>100</value> </parameter> <parameter> <name>xaProperties.URL</name> <value>jdbc:oracle:thin:@...:1521:...</value> </parameter> <parameter> <name>xaProperties.user</name> <value>....</value> </parameter> <parameter> <name>xaProperties.password</name> <value>...</value> </parameter> </ResourceParams> <Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"/> <ResourceParams name="UserTransaction"> <parameter> <name>factory</name> <value>com.atomikos.icatch.jta.UserTransactionFactory</value> </parameter> </ResourceParams> javax.naming.NamingException: error creating AtomikosDataSourceBean [Root exception is com.atomikos.jdbc.AtomikosSQLException: cannot initialize AtomikosDataSourceBean: XAConnectionFactory: failed to create pooled connection] at com.atomikos.tomcat.BeanFactory.getObjectInstance(BeanFactory.java:76) at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) at org.apache.naming.NamingContext.lookup(NamingContext.java:791) at org.apache.naming.NamingContext.lookup(NamingContext.java:138) at org.apache.naming.NamingContext.lookup(NamingContext.java:779) at org.apache.naming.NamingContext.lookup(NamingContext.java:138) at org.apache.naming.NamingContext.lookup(NamingContext.java:779) at org.apache.naming.NamingContext.lookup(NamingContext.java:138) at org.apache.naming.NamingContext.lookup(NamingContext.java:779) at org.apache.naming.NamingContext.lookup(NamingContext.java:151) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136) at javax.naming.InitialContext.lookup(InitialContext.java:351) . . |