Hi Lev,
Is your persistence.xml in /WEB-INF/classes/META-INF/ or /META-INF/? It 
should be in /WEB-INF/classes/META-INF/. That is a huge source of 
confusion in JPA. :-(

If you're using Eclipse I recommend creating a source directory named 
resources and then creating a subdirectory named WEB-INF and placing 
persistence.xml in there. That will make sure the file makes it into the 
right spot and you won't be fighting with Eclipse. I also add 
commons-logging.properties, log4j.properties, and 
StripesResources.properties to the root of the resources directory.

Aaron

On 07/05/2010 11:25 PM, Lev wrote:
> hi,
>
> i'm new to stripes and attempting to use stripersist for
> persistence.
>
> i have added stripersist to Extension.packages in web.xml.
> also, i added a persistence.xml file in META-INF.
>
> however, when i try junit testing the DAO layer that i have
> created, i receive the following:
>
> java.lang.NullPointerException
>          at 
> org.stripesstuff.stripersist.Stripersist.getEntityManager(Stripersist.java:472)
>
> any ideas on what might be going wrong?
>
> thank you for your help,
> lev
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>    


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to