Atomikos Forum

error creating AtomikosDataSourceBean

Hi,
I followed the configurion mentioned at http://www.atomikos.com/Documentation/Tomcat7Integration35
for setting up Atomikos, in Tomcat 7.

But I am getting the following exception while starting the server.
error creating AtomikosDataSourceBean
javax.naming.NamingException: error creating AtomikosDataSourceBean
    at com.atomikos.tomcat.EnhancedTomcatAtomikosBeanFactory.getObjectInstance(EnhancedTomcatAtomikosBeanFactory.java:64)

My application is built on Spring 3.1 and this error is being thrown while doing a JNDI look up jndiTemplate.lookup("java:comp/env/jdbc/MyDB");


Following is my Resource definition in $CATALINA_HOME/conf/context.xml

<Resource name="jdbc/MyDB"
            auth="Container"
            type="com.atomikos.jdbc.AtomikosDataSourceBean"
            factory="com.atomikos.tomcat.EnhancedTomcatAtomikosBeanFactory"
            uniqueResourceName="jdbc/MyDB"
            maxPoolSize="5"
            xaDataSourceClassName="net.sourceforge.jtds.jdbcx.JtdsDataSource"
            xaProperties.databaseName="my_db"         
            xaProperties.connectionAttributes="serverName=<myhost>;portNumber=<myport>;user=<myuser>;password=<mypassword>;create=true"/>

But I am getting a NamingException while doing a look up.
Any idea what is going wrong here ?

Thanks
Aneesh K
Aneesh Kunjuveettil Send private email
Monday, June 24, 2013
 
 
Can you add a printStackTrace call on the exception in the catch block of the bean factory class?
Guy Pardon Send private email
Friday, June 28, 2013
 
 

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

Other recent topics Other recent topics