Did you run your query from a seperate main class.
Your query doesnt seem to be conforming to Castor.
the format is
select v from <package>.class v
If i see ur query right, there is nothing to bind with
----- Original Message -----
From: "Sujay" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 25, 2002 2:15 PM
Subject: [castor-dev] OQL Query & Servlet


> Hello,
>
> Can someone please help me. I have been tring to debug
> my problem for days, and have not had much luck, and
> totally frustrated. I am using Castor 0.9.3.19 with
> Resin 2.1.2.
>
> i am running a simpler OQL query
>
> db = jdo.getDatabase();
> db.begin();
> oql = db.getOQLQuery( "SELECT a FROM User a" );
> oql.bind( 3 );
> results = oql.execute();
>
> and for some reason i keep getting the following from
> the stack trace. I am able to do insertions without a
> problem. So the classloader is finding the entity
> class. Not sure what's going on. Any help/input would
> be really appreciated.
>
> Thanks so much.
>
> Sujay
>
> [Castor:] Begin transaction [Castor:] Loading mapping
> descriptors from
> file:/usr/local/resin/webapps/castor2/WEB-INF/mapping.xml
> org.exolab.castor.jdo.QueryException: Could not find
> class User org.exolab.castor.jdo.QueryException: Could
> not find class User at
> org.exolab.castor.jdo.oql.ParseTreeWalker.checkFromPart(Unknown
> Source) at
> org.exolab.castor.jdo.oql.ParseTreeWalker.checkErrors(Unknown
> Source) at
> org.exolab.castor.jdo.oql.ParseTreeWalker.(Unknown
> Source) at
> org.exolab.castor.jdo.engine.OQLQueryImpl.create(Unknown
> Source) at
> org.exolab.castor.jdo.engine.DatabaseImpl.getOQLQuery(Unknown
> Source) at app.Query.doGet(Query.java:62) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
> at
>
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:9
6)
> at
> com.caucho.server.http.Invocation.service(Invocation.java:311)
> at
> com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
> at
> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221)
> at
> com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
> at
> com.caucho.server.TcpConnection.run(TcpConnection.java:137)
> at java.lang.Thread.run(Thread.java:484)
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to