Hi Jason,
so where is cayenne-shopperDomain.xml located?
Should be somewhere on CLASSPATH (WEB-INF/classes or a jar in WEB-INF/lib).
Cheers,
Andrus
On Feb 8, 2012, at 1:57 AM, jason-pa wrote:
> Hi,
> I'm trying to configure and deploy a web app with Cayenne v.3.1M3 and
> Tomcat 7.025.
>
> In my web.xml file:
>
> <filter>
> <filter-name>CayenneFilter</filter-name>
>
> <filter-class>org.apache.cayenne.configuration.web.CayenneFilter</filter-class>
> <init-param>
> <param-name>configuration-location</param-name>
> <param-value>cayenne-shopperDomain.xml</param-value>
> </init-param>
> </filter>
>
> <filter-mapping>
> <filter-name>CayenneFilter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
> The class loader can't find "cayenne-shopperDomain.xml". The following
> exception is thrown:
> org.apache.cayenne.configuration.server.DataDomainLoadException: [v.3.1M3
> Sep 13 2011 18:45:47] Configuration resource "cayenne-shopperDomain.xml" is
> not found.
>
> I've tried a few other locations, no dice. Tried the filter declaration
> without any init parameters.
>
> I've also tried removing the Cayenne Filter configuration (from web.xml).
> Then from one my application classes:
>
> ServerRuntime cayenneRuntime = new
> ServerRuntime("cayenne-shopperDomain.xml");
> context = cayenneRuntime.getContext();
>
> Ran that through the debugger, ClassLoaderResourceLocator.findResources(),
> class loader can't find "cayenne-shopperDomain.xml".
>
> Any suggestions greatly appreciated.
>
>
> --
> View this message in context:
> http://cayenne.195.n3.nabble.com/Web-App-Configuration-with-Cayenne-v-3-1M3-tp3724256p3724256.html
> Sent from the Cayenne - User mailing list archive at Nabble.com.
>