Hi,

OK, so that is the problem. I don't seem to have persistence.xml on my
openjpa-examples\target\classes\META-INF directory even after
successful compiling with maven and even building with eclipse. The
folder openjpa-examples\target\classes\hellojpa is containing .class
files as it should but there is no persistence.xml in my class folder
of target. Should it be there only in classes folder of
openjpa-examples\target or I am looking in some wrong place. My
openjpa-examples\src\main\java\META-INF does contains a
persistence.xml file. I even took fresh code from repo and imported
everything again including mvn clean and mvn eclipse:eclipse.
I would really appreciate if someone can please advice me on where I
am making mistake. I know this simple task of setting up the
environment should not take that long but somehow I am not able to do
this.

thanks


On Thu, Apr 30, 2009 at 7:43 PM, Rick Curtis (via Nabble)
<[email protected]> wrote:
> I figured that is what you were going to say. For whatever reason, your
> persistence.xml file isn't being found... I'm not sure why the
> persistence.xml file was on my classpath, but not yours.
>
> To fix the NPE, make sure that the META-INF/persistence.xml file is in your
> target/classes directory. If it is, you can try manually adding that file to
> your classpath. I think we're getting close!
>
> -Rick
>
> ________________________________
> View message @
> http://n2.nabble.com/Files-in-package-org.apache.openjpa.kernel.jpql.-tp2734002p2747342.html
> To start a new topic under OpenJPA Users, email
> [email protected]
> To unsubscribe from OpenJPA Users, click here.
>



-- 
Ashish Paliwal
Mobile : 9305128367
IIT Kanpur
India

Reply via email to