Atomikos Forum

NamingException in brand new version 3.3

Hi!

Sorry for being so unpatient, but I am testing the new 3.3 version. I´m going to another company  in 2 weeks and wanted to have this working and tested...

When I deploy de app with this in context.xml:

<Resource name="jdbc/DMADuero"
      auth="Container"                   type="com.atomikos.jdbc.AtomikosDataSourceBean"                  factory="org.apache.naming.factory.BeanFactory"    xaDataSourceClassName="oracle.jdbc.xa.client.OracleXADataSource"                  maxPoolSize="5"
uniqueResourceName="jdbc/example"                
xaProperties="URL=...."/>

I receive this exception:

javax.naming.NamingException: String conversion for property type 'java.util.Properties' not available
    at org.apache.naming.factory.BeanFactory.getObjectInstance(BeanFactory.java:194)
    at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)

Any ideas?

Thanks very much!
Juan G Send private email
Friday, May 16, 2008
 
 
sorry I didn´t change one attribute of context.xml in the previous post.The "name" and "uniqueResourceName" attributes in context.xml are equal values.
Juan G Send private email
Friday, May 16, 2008
 
 
Hi,

This is due to the recent changes we made in the connection pool.

Specifically, the xaProperties property changed from a String to a Properties object that the Tomcat JNDI BeanFactory cannot handle.

I've prepared a replacement BeanFactory in this regard that lies somewhere on my computer. I'll search for it, write a page in the wiki explaining what needs to be done and post the link here.

Ludovic
Ludovic Orban Send private email
Friday, May 16, 2008
 
 
I've finally written a wiki page describing how to use the new pool in Tomcat:

 http://wiki.atomikos.org/Documentation/Tomcat55Integration33

As I said previously, the Tomcat JNDI BeanFactory is too limited for the new pool so you have to use a different one which is provided as a ready to use JAR file in the wiki page then make use of it like this:

<Resource
 ...
 factory="com.atomikos.tomcat.BeanFactory"
 xaProperties.URL="jdbc:..."
 ...
 />


Sorry for the delay and I hope this helps.
Ludovic
Ludovic Orban Send private email
Monday, May 19, 2008
 
 

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

Other recent topics Other recent topics