Hi,
Yes I remember having that issue but I dont exactly remember what I did to
fix it.
I had to remove some extra properties from the initialization of open ejb
and had to change the joda jars to the right version from what I can
recollect.
My openejb config now looks like below and it works.

Properties p = new Properties();
        p.put("MyDB", "new://Resource?type=DataSource");
        p.put("MyDB.JdbcDriver", "oracle.jdbc.driver.OracleDriver");
        p.put("MyDB.JdbcUrl", "jdbc:oracle:thin:@dbserver:1521:sid");
        p.put("MyDB.JtaManaged", "true");
        p.put("MyDB.username", "username");
        p.put("MyDB.password", "password");
        p.put("MyDBUnManaged", "new://Resource?type=DataSource");
        p.put("MyDBUnManaged.JdbcDriver", "oracle.jdbc.driver.OracleDriver");
        p.put("MyDBUnManaged.JdbcUrl", "jdbc:oracle:thin:@dbserver:1521:sid");
        p.put("MyDBUnManaged.JtaManaged", "false");
        p.put("MyDBUnManaged.username", "username");
        p.put("MyDBUnManaged.password", "password");
        p.put("log4j.logger.org.apache.commons.net.ftp","TRACE");
        p.put("log4j.logger.org.apache.camel","DEBUG");
        p.put("log4j.logger.org.hibernate","ERROR");
        p.put("log4j.logger.org.hibernate.SQL","ERROR");
        p.put("log4j.logger.org.apache.camel.component.file","TRACE");
        p.put("openjpa.Log","DefaultLevel=TRACE,SQL=TRACE");
        p.put("provider", "org.hibernate.ejb.HibernatePersistence");

Please compare your config with the above. There was an extra setting in the
default config or build.xml which I had to remove.
Sorry, cannot pinpoint which one was it. I am getting old :(



--
View this message in context: 
http://openejb.979440.n4.nabble.com/No-Tx-on-Thread-Exception-please-help-tp4653602p4658071.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to