Hi, Guys, I got my test cases run without problem. But still that example.hellojpa is giving NullPointerException. Probably I need to specify some properties somewhere. Happy that something atleast ran. Thanks a lot to all of you for bearing with me. :)
thanks and regards On Thu, Apr 30, 2009 at 3:33 PM, ashish paliwal <[email protected]> wrote: > Hi, > > Thanks a lot people for helping me out. Rick, which one out of 8 > projects you asked me to leave out. When I imported all 8 projects and > did exactly as you told, after building from eclipse there was an > error in file SourceAnnotationHandler.java in package > org.apache.openjpa.persistence.meta. When I still continued running > hellojpa.Main as a java application from eclipse itself, I received > the same null pointer exception. > I am still trying to figure out the problem but if someone can assist > it will be of great help to me. Although my 2.0.0's zip version is > working fine and I was even able to debug through code in that, but I > wanted to set up this one as I will be up to date with latest commits. > > thanks and regards > > > On Thu, Apr 30, 2009 at 3:14 AM, Rick Curtis (via Nabble) > <[email protected]> wrote: >> Ashish - >> >> I just pulled down trunk and have a slightly shorter solution that what Mike >> suggested :) >> >> - Check out and compile trunk >> - trunk\openjpa-parent> mvn eclipse:eclipse >> - In Eclipse >> - Import > Existing Projects into Workspace > Import all of the >> OpenJPA projects except openjpa >> - For each project > right click -> properties > Java Build Path > >> Source tab > there should be a folder listed with a red x, delete that. >> - Window > Preferences > Java > Build Path > Classpath Variables -> >> add M2_REPO and have it point to your local maven repository. >> * At this point you shouldn't have any compiler errors in Eclipse. >> - Edit the hellojpa persistence-unit in >> openjpa-examples/target/classes/META-INF/persistence.xml: >> - Remove the comments around the connection properties >> - Also want to add the line listed below[1]. This will >> trigger OpenJPA to build your db tables. >> >> -Rick >> >> >> [1] <property name="openjpa.jdbc.SynchronizeMappings" >> value="buildSchema(ForeignKeys=true)"/> >> >> ________________________________ >> View message @ >> http://n2.nabble.com/Files-in-package-org.apache.openjpa.kernel.jpql.-tp2734002p2743503.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 > -- Ashish Paliwal Mobile : 9305128367 IIT Kanpur India -- View this message in context: http://n2.nabble.com/Files-in-package-org.apache.openjpa.kernel.jpql.-tp2734002p2746267.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
