You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by djardeby <dj...@gmail.com> on 2012/10/16 12:44:16 UTC

Re: No Tx on Thread Exception ..please help

I have the exact same problem. Please somebody help



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

Re: No Tx on Thread Exception ..please help

Posted by djardeby <dj...@gmail.com>.
Thanks everybody for take time with my problem.
I have to apologize as it turned out that I had initialized a bean with new,
instead of letting the container manage all my beans, and there by breaking
the transaction chain.



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

Re: No Tx on Thread Exception ..please help

Posted by vishalchangrani <vi...@gmail.com>.
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.

Re: No Tx on Thread Exception ..please help

Posted by Romain Manni-Bucau <rm...@gmail.com>.
github, code google or any other repo can be fine

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/16 djardeby <dj...@gmail.com>

> I can't do that right now, but I could create a new project and share it
> a.s.a.p.
> How would you like the project delivered?
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/No-Tx-on-Thread-Exception-please-help-tp4653602p4658059.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: No Tx on Thread Exception ..please help

Posted by djardeby <dj...@gmail.com>.
I can't do that right now, but I could create a new project and share it
a.s.a.p.
How would you like the project delivered?



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

Re: No Tx on Thread Exception ..please help

Posted by Romain Manni-Bucau <rm...@gmail.com>.
is it possible for you to share a ready to run project reproducing the
issue (maven/graddle/ant)?

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/16 djardeby <dj...@gmail.com>

> I have the exact same problem. Please somebody help
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/No-Tx-on-Thread-Exception-please-help-tp4653602p4658054.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>