Atomikos Forum

com.atomikos.tomcat.BeanFactory for Tomcat 5.0?

Hi!

Is there a way to make work the com.atomikos.tomcat.BeanFactory for Tomcat version 5.0?

Thanks very much!
Juan G Send private email
Thursday, May 22, 2008
 
 
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)
.
.
Juan G Send private email
Thursday, May 22, 2008
 
 
Problem SOLVED!

I think the problem was something about class loading and reloading, cache, etc...
Juan G Send private email
Friday, May 23, 2008
 
 
Hi,

So you can confirm that com.atomikos.tomcat.BeanFactory works in Tomcat 5.0 ?

Thanks.
Ludovic
Ludovic Orban Send private email
Friday, May 23, 2008
 
 
Yes, but I suspect this is a problem of cached classes of Tomcat 5.0, not of Atomikos..
Juan G Send private email
Friday, May 23, 2008
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics