Hello, shoudnt' persistence.xml be included int he META-INF directory of your ejb target classes? because you'll need it when you deploy it on appserver...thus it will have to be part of your ejb3 deployment . personally, i m putting persitence.xml in src/main/resources/META-INF directory and i am testing using jbosscontainer....but i m runnign everything from cmdline...
if you want to include persistence.xml in your TESTS only, you should put it into src/test/resources/META-INF directory hth marco On 10/8/06, Watt Poosanguansit <[EMAIL PROTECTED]> wrote:
Hi, I am new to Maven2. I appreciate any advice. I am using Maven2 with Netbeans 5.5. I created and tested ejb3 entity beans code in Netbeans web project and everything works find. So I move the code to Maven project. It does compile fine but it has an error No Persistence provider for EntityManager named myPersistent How can I add runtime classpath to include persisten.xml in Maven2? I am guessing that the persistent.xml file is not in the classpath. Thank you for any help, Watt P. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
