I manage dependencies via netbeans > Project Properties > Libraries window/dialog. Basic/reliable approach for me. :)
As per what you stated below, or the best would be to let batoo get the tx mgr through a strategy configure in persistence unit properties Please let me know how I can do this, or should I wait for batoo fix the issue that you just opened with them? On Tue, Nov 20, 2012 at 12:42 PM, Romain Manni-Bucau <rmannibu...@gmail.com>wrote: > there is absolutely no link with persistence.xml > > how do you manage dependencies? > > maybe that's just netbeans adding it because of the persistence.xml > presence (i don't use netbeans so not sure) > > *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/11/20 Howard W. Smith, Jr. <smithh032...@gmail.com> > > > Not using maven, but will look at dependency tree. Can you please > elaborate > > on the following or provide sample persistence.xml for what you stated > > below? > > > > *or the best would be to let batoo get the tx mgr through a strategy > > configure in persistence unit properties > > * > > > > > > On Tue, Nov 20, 2012 at 12:38 PM, Romain Manni-Bucau > > <rmannibu...@gmail.com>wrote: > > > > > you use maven? if so maybe have a look to your dependency:tree > > > > > > *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/11/20 Howard W. Smith, Jr. <smithh032...@gmail.com> > > > > > > > Hey, that was funny about, me the user, provide transaction JAR in my > > > app. > > > > Honestly, NetBeans/TomEE integration is doing that for whatever > reason. > > > > Maybe, I'm responsible, since I specified JTA in persistence.xml. > > Right? > > > :) > > > > > > > > > > > > On Tue, Nov 20, 2012 at 12:12 PM, Romain Manni-Bucau > > > > <rmannibu...@gmail.com>wrote: > > > > > > > > > Hi, > > > > > > > > > > first the ignore message is to avoid to mess up the deployment (and > > > > > generally let it fail) when the user (you here ;)) provides in his > > > webapp > > > > > JavaEE apis > > > > > > > > > > secondly the error is here because we didnt integrate with batoo to > > > give > > > > it > > > > > the transaction manager (you have to give > > > > OpenEJB.getTransactionManager()). > > > > > --> here the class to patch ( > > > > > > > > > > > > > > > > > > > > https://github.com/BatooOrg/BatooJPA/blob/master/batoo-jpa/src/main/java/org/batoo/jpa/core/impl/manager/JtaEntityManagerFactoryImpl.java > > > > > ) > > > > > > > > > > or the best would be to let batoo get the tx mgr through a strategy > > > > > configure in persistence unit properties > > > > > > > > > > --> opened an issue: > https://github.com/BatooOrg/BatooJPA/issues/100 > > > > > > > > > > *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/11/20 Howard W. Smith, Jr. <smithh032...@gmail.com> > > > > > > > > > > > I'm trying to use batoo-jpa now, but the dependencies include > > > > transaction > > > > > > JAR that may be 'ignored' by TomEE container. Everytime I start > > TomEE > > > > (or > > > > > > deploy to app from NetBeans 7.2), the following shows up in my > > server > > > > > log: > > > > > > > > > > > > > > > > > > Nov 20, 2012 11:44:43 AM > > > > > org.apache.tomee.catalina.TomEEClassLoaderEnricher > > > > > > validateJarFile > > > > > > WARNING: jar > > > > > > > > > > > > > > > > > > > > > > > > > > > 'C:\Users\Public\NetBeansProjects\mcms\build\web\WEB-INF\lib\transaction-api-1.1.jar' > > > > > > contains offending class: javax.transaction.Transaction. It will > be > > > > > > ignored. > > > > > > > > > > > > Also, my persistence.xml has the following: > > > > > > > > > > > > <persistence version="2.0" > > > > > > xmlns="http://java.sun.com/xml/ns/persistence" > > > > > > xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" > > > > > > xsi:schemaLocation=" > > > > http://java.sun.com/xml/ns/persistence > > > > > > http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> > > > > > > <persistence-unit name="mcmsPU" transaction-type="JTA"> > > > > > > > > > > > > > > > > > > > > > > > > > > > <!--<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>--> > > > > > > > > > <provider>org.batoo.jpa.core.BatooPersistenceProvider</provider> > > > > > > <jta-data-source>jdbc/mcms</jta-data-source> > > > > > > <exclude-unlisted-classes>false</exclude-unlisted-classes> > > > > > > <properties/> > > > > > > </persistence-unit> > > > > > > </persistence> > > > > > > > > > > > > Also, there are so many dependencies for batoo-jpa. Still > trying... > > > > > > > > > > > > the exception in server log is as follows: > > > > > > > > > > > > Caused by: org.apache.openejb.OpenEJBException: > > > > > > org.apache.openejb.OpenEJBRuntimeException: > > > > > > javax.persistence.PersistenceException: Unable to locate the > transa > > > > ction > > > > > > manager: javax.persistence.PersistenceException: Unable to locate > > the > > > > > > transa ction manager > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:673) > > > > > > ... 19 more > > > > > > Caused by: org.apache.openejb.OpenEJBRuntimeException: > > > > > > javax.persistence.PersistenceException: Unable to locate the > transa > > > > ction > > > > > > manager > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createDelegate(ReloadableEntityManagerFactory.java:104) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.<init>(ReloadableEntityManagerFactory.java:93) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:150) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:667) > > > > > > ... 19 more > > > > > > Caused by: javax.persistence.PersistenceException: Unable to > locate > > > the > > > > > > transa ction manager > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.batoo.jpa.core.impl.manager.JtaEntityManagerFactoryImpl.lookupTransactionManager(JtaEntityManagerFactoryImpl.java:97) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.batoo.jpa.core.impl.manager.JtaEntityManagerFactoryImpl.<init>(JtaEntityManagerFactoryImpl.java:63) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.batoo.jpa.core.BatooPersistenceProvider.createContainerEntityManagerFactory(BatooPersistenceProvider.java:71) > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > org.batoo.jpa.core.BatooPersistenceProvider.createContainerEntityManagerFactory(BatooPersistenceProvider.java:43) > > > > > > > > > > > > > > > > > > > > >