Try putting them in the root of your classpath.
It's possible to put them in other locations, but you'd have to have
set up a Configuration instance pointing to the new location.
I don't know where the example expects to find it.
On 4/6/07, Reid Thompson <reid.thompso..teb.com> wrote:
> Reid Thompson wrote:
> > Hi,
> > trying to get the cayenne webapp tutorial to work using Netbeans.
> > Getting the error at the end of this email. I have
> > cayenne-tutorialMap.map.xml cayenne.xml
> > cayenne-tutorialNode.driver.xml
> > in WEB-INF -- is this the correct location for these files?
> Sorry - inadvertently pasted some text into the stack trace. Here is
> the clean trace:
>
>
> ype Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException: [v.2.0.2 January 14 2007] No DataMap
> found, can't route query
> org.apache.cayenne.query.SelectQuer..276fd[root=class
> cayenne.tutorial.Artist,name=<null>]
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.cayenne.conf.WebApplicationContextFilter.doFilter(WebApplicationContextFilter.java:91)
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
>
> root cause
>
> org.apache.cayenne.CayenneRuntimeException: [v.2.0.2 January 14 2007] No
> DataMap found, can't route query
> org.apache.cayenne.query.SelectQuer..276fd[root=class
> cayenne.tutorial.Artist,name=<null>]
> org.apache.cayenne.query.AbstractQuery.route(AbstractQuery.java:137)
> org.apache.cayenne.query.SelectQuery.route(SelectQuery.java:171)
> org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:292)
> org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:60)
> org.apache.cayenne.access.DataDomainQueryAction$1.transform(DataDomainQueryAction.java:273)
> org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:820)
> org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:270)
> org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:110)
> org.apache.cayenne.access.DataDomain.onQuery(DataDomain.java:730)
> org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:217)
> org.apache.cayenne.access.DataContextQueryAction.execute(DataContextQueryAction.java:54)
> org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1387)
> org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1376)
> org.apache.jsp.index_jsp._jspService(index_jsp.java:61)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.cayenne.conf.WebApplicationContextFilter.doFilter(WebApplicationContextFilter.java:91)
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
>
This archive was generated by hypermail 2.0.0 : Fri Apr 06 2007 - 20:00:46 EDT