Re: Several problems while deploying
Thanks, this works perfect now :) But this wasn't the last error i have :( Got also an error with cdi events: *Service class* *ObserverClass* *Call with* The observer dose not observe custom events. And i have two Questions: 1. Is there a planned release date for 1.6.0? :) 2. Inside a CDI extension i observe /ProcessAnnotatedType?/ to get all existing classes. All types i get there are classes which are inside the war. I do not get any class in a dependency jar which contains CDI beans, too. Is this normal? -- View this message in context: http://openejb.979440.n4.nabble.com/Several-problems-while-deploying-tp4662131p4662196.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Several problems while deploying
Yes, its using @PersistenceUnit and it is not excluded. Wen i create a get-method with @Produces instead of type it on the field, it will be called, but the field annotated with @PersistenceUnit is null every time. The structure is: The Datasource is a simple Oracle one, which is linked in persistence.xml -- View this message in context: http://openejb.979440.n4.nabble.com/Several-problems-while-deploying-tp4662131p4662143.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Several problems while deploying
i think your issue is simply the foo.bar.test.producers.EntityManagerFactoryProducer is not created at all (it is done lazily and since you don't have any method it is not done i think) *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* 2013/4/10 Jukkales s...@nodch.de Yes, its using @PersistenceUnit and it is not excluded. Wen i create a get-method with @Produces instead of type it on the field, it will be called, but the field annotated with @PersistenceUnit is null every time. The structure is: The Datasource is a simple Oracle one, which is linked in persistence.xml -- View this message in context: http://openejb.979440.n4.nabble.com/Several-problems-while-deploying-tp4662131p4662143.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Several problems while deploying
i thought that too but for example this wont work too: So the PersistenceUnit is not injected. -- View this message in context: http://openejb.979440.n4.nabble.com/Several-problems-while-deploying-tp4662131p4662145.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Several problems while deploying
was a bug (https://issues.apache.org/jira/browse/TOMEE-893) will be fixed with tomorrow snapshot *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* 2013/4/10 Jukkales s...@nodch.de i thought that too but for example this wont work too: So the PersistenceUnit is not injected. -- View this message in context: http://openejb.979440.n4.nabble.com/Several-problems-while-deploying-tp4662131p4662145.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Several problems while deploying
Ah okay, i missed it that it needs to be in that folder. But really? Which version you are using exactly? I still get the error that OpenJPA cannot load entities which are inside the JAR. You may have a look to the test/common package. There you will find two producers. EntityManagerFactoryProducer and EntityManagerProducer. The EntityManagerProducer is called right, but the factory is not created so a nullpointer will result. Dose this happens because the producers are in the jar, but the persistence.xml is in the war? -- View this message in context: http://openejb.979440.n4.nabble.com/Several-problems-while-deploying-tp4662131p4662135.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Several problems while deploying
i tested with the snapshot *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* 2013/4/9 Jukkales s...@nodch.de Ah okay, i missed it that it needs to be in that folder. But really? Which version you are using exactly? I still get the error that OpenJPA cannot load entities which are inside the JAR. You may have a look to the test/common package. There you will find two producers. EntityManagerFactoryProducer and EntityManagerProducer. The EntityManagerProducer is called right, but the factory is not created so a nullpointer will result. Dose this happens because the producers are in the jar, but the persistence.xml is in the war? -- View this message in context: http://openejb.979440.n4.nabble.com/Several-problems-while-deploying-tp4662131p4662135.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Several problems while deploying
Ah cool it is almost working. but the EntityManagerFactory is still not created. Maybe a configuration problem? -- View this message in context: http://openejb.979440.n4.nabble.com/Several-problems-while-deploying-tp4662131p4662138.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Several problems while deploying
I dont have the code anymore (on my phone) but using @PersistenceUnit should be fine, it just needs to be scanned (not in exclusions.list). Le 9 avr. 2013 20:25, Jukkales s...@nodch.de a écrit : Ah cool it is almost working. but the EntityManagerFactory is still not created. Maybe a configuration problem? -- View this message in context: http://openejb.979440.n4.nabble.com/Several-problems-while-deploying-tp4662131p4662138.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.