Re: JNDI initialization since Tomcat 8.0.1

2014-04-16 Thread Christian
There is already a hibernate issue on this bug (https://hibernate.atlassian.net/browse/HHH-8818). Regards, Christian - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: JNDI initialization since Tomcat 8.0.1

2014-04-16 Thread David Landis
On Sun, Apr 13, 2014 at 4:02 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: By the way, there exists an Apache project implementing the JPA specification, http://openjpa.apache.org/ It does not really work with Tomcat though does it? See this issue:

Re: JNDI initialization since Tomcat 8.0.1

2014-04-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 4/16/14, 10:44 AM, David Landis wrote: On Sun, Apr 13, 2014 at 4:02 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: By the way, there exists an Apache project implementing the JPA specification, http://openjpa.apache.org/

JNDI initialization since Tomcat 8.0.1

2014-04-13 Thread Christian
Hi, I'm experimenting with java 8, spring data JPA, hibernate and tomcat 8. Spring Data JPA initializes hibernate on deployment. On tomcat 8.0.0-RC10 everything is fine. Using Tomcat 8.0.1 or newer, an exception is thrown when hibernate tries to fetch the datasource from JNDI:

Re: JNDI initialization since Tomcat 8.0.1

2014-04-13 Thread Konstantin Kolinko
2014-04-13 15:10 GMT+04:00 Christian cm...@famiru.de: Hi, I'm experimenting with java 8, spring data JPA, hibernate and tomcat 8. Spring Data JPA initializes hibernate on deployment. On tomcat 8.0.0-RC10 everything is fine. Using Tomcat 8.0.1 or newer, an exception is thrown when hibernate

Re: JNDI initialization since Tomcat 8.0.1

2014-04-13 Thread Christian
Is hibernate initialized via a listener in web.xml, or where? I don't know exactly how it is initialized. I use spring annotation configuration with a javax.servlet.ServletContainerInitializer but I don't know, if hibernate gets loaded immediately. Looking at the call stack, it seems that it

Re: JNDI initialization since Tomcat 8.0.1

2014-04-13 Thread Konstantin Kolinko
2014-04-13 19:32 GMT+04:00 Christian cm...@famiru.de: Is hibernate initialized via a listener in web.xml, or where? I don't know exactly how it is initialized. I use spring annotation configuration with a javax.servlet.ServletContainerInitializer but I don't know, if hibernate gets loaded

Re: JNDI initialization since Tomcat 8.0.1

2014-04-13 Thread Christian
On 13.04.2014 22:02, Konstantin Kolinko wrote: I do not know, what version of hibernate you are using, but if I look at 4.3.x sources [1], the following method mentioned in your stacktrace changes TCCL and thus breaks JNDI: org.hibernate.boot.registry.