seems to work here, just take care to put beans.xml in META-INF for jar and
not WEB-INF

*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 <[email protected]>

> Hi there, me again
>
> i have several problems while deploying a webapp. This EAR contains an WAR
> (the webapp itself) and 1+n JAR Modules which contains JPA Entites, CDI
> Beans and maybe EJBs. I found some strange things about the WAR File...
>
> I have attached a Test project. On two problems a dont have any idea which
> cause it.
>
> 1. ClassNotFoundException on OpenJPA while enhancing entites
>
>
>
> It seams that openjpa misses some classes and this only happens if the
> entites are in the WAR file. If there are inside of an JAR Module, i put
> them as <jar-file> in persistence.xml and every thing is okay. Define the
> classes from the WAR File with <class> dose NOT work for me.
>
> Also i have a Question about the placement of the persistence.xml file. To
> get JPA working i have to place it in WEB-INF/persistence.xml of the WAR
> file. But the specification say it needs to be in
> WEB-INF/classes/META-INF/persistence.xml
>
>
> 2. CDI is unable to Inject inside an Interceptor
>
>
>
> I dont have any idea why this happens because of this:
>
>
> On the first run through the code everything is fine. On the second run the
> API type is not found anymore. I saw this while debugging.
>
>
>
> TomEE 1.5.1 dose not execute CDI Extensions, in 1.5.2/1.6.0 this is fine.
>
> Is something wrong with the way i try this? One problem is followed by an
> other.
>
> Thanks for help.
>
>
> Test project here:
> just mvn install
> test.7z <http://openejb.979440.n4.nabble.com/file/n4662131/test.7z>
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Several-problems-while-deploying-tp4662131.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Reply via email to