You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Reid Thompson <re...@ateb.com> on 2007/04/07 01:57:45 UTC
Netbeans and cayenne
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?
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
cayenne-tutorialNode.driver.xml
in WEB-INF -- is this the correct location for these files?
type 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.SelectQuery@e8787a[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.SelectQuery@e8787a[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)
Re: Netbeans and cayenne
Posted by Reid Thompson <Re...@ateb.com>.
Andrus Adamchik wrote:
> There's nothing magic about the default names, except for "cayenne.xml".
> The only requirement is that *.map.xml and *.driver.xml are named after
> the DataMap and DataNode names entered in the Modeler (and in fact
> CayenneModeler ensures that the generated names of those files match the
> mapping). If you didn't rename them by hand, I can't see why it didn't
> work.
>
> Andrus
>
>
> On Apr 6, 2007, at 11:25 PM, Reid Thompson wrote:
>> Mike Kienenberger wrote:
>>> 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.
>> Ok - not sure what the actual issue was, but, reverting in the modeler
>> DataDomain Name to UntitledDomain, DataMap Name to UntitledDomainMap
>> and DataNode Name to UntitledDomainNode allows the xml files to be
>> found when they are placed in WEB-INF. I couldn't get them found in
>> any location that I tried with my non-default names.
>
Names were not changed by hand. At some point I might go back and see
if I can duplicate the issue. Right now I'm just going to move ahead on
the assumption that I did something, somewhere that caused the issue.
Thanks,
reid
Re: Netbeans and cayenne
Posted by Andrus Adamchik <an...@objectstyle.org>.
There's nothing magic about the default names, except for
"cayenne.xml". The only requirement is that *.map.xml and
*.driver.xml are named after the DataMap and DataNode names entered
in the Modeler (and in fact CayenneModeler ensures that the generated
names of those files match the mapping). If you didn't rename them by
hand, I can't see why it didn't work.
Andrus
On Apr 6, 2007, at 11:25 PM, Reid Thompson wrote:
> Mike Kienenberger wrote:
>> 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.
> Ok - not sure what the actual issue was, but, reverting in the
> modeler DataDomain Name to UntitledDomain, DataMap Name to
> UntitledDomainMap and DataNode Name to UntitledDomainNode allows
> the xml files to be found when they are placed in WEB-INF. I
> couldn't get them found in any location that I tried with my non-
> default names.
Re: Netbeans and cayenne
Posted by Reid Thompson <re...@ateb.com>.
Mike Kienenberger wrote:
> 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.
Ok - not sure what the actual issue was, but, reverting in the modeler
DataDomain Name to UntitledDomain, DataMap Name to UntitledDomainMap and
DataNode Name to UntitledDomainNode allows the xml files to be found
when they are placed in WEB-INF. I couldn't get them found in any
location that I tried with my non-default names.
Re: Netbeans and cayenne
Posted by Mike Kienenberger <mk...@gmail.com>.
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 <re...@ateb.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.SelectQuery@4276fd[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.SelectQuery@4276fd[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)
>
Re: Netbeans and cayenne
Posted by Reid Thompson <re...@ateb.com>.
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.SelectQuery@4276fd[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.SelectQuery@4276fd[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)