Yea, META-INF/persistence.xml should be in your classpath 
(WEB-INF/classes).  So its being loaded from the correct place.  Sounds 
like you aren't putting the file in the right place. :)

Gregg

Lionel wrote:
> Aaron Porter wrote:
>   
>> If you haven't noticed yet the example app's web.xml is incorrect -
>> the Extension.Packages should use org.stripersist instead of
>> com.stripersist.
>>     
>
> It's org.stripesstuff.
>
> I'm trying to use stripersist with tomcat.
> To load the persistance.xml file, you do:
> URL url = 
> Thread.currentThread().getContextClassLoader().getResource("/META-INF/persistence.xml");
>
> when deployed on tomcat by eclipse (using WTP) this doesn't work, "/" points 
> to webinf/classes.
>
> Could you add the following line if URL is null after your getResource ?
>
> url =  servletContext.getResource("/META-INF/persistence.xml") 
>
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>   


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to