You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Jason Sherman <js...@yahoo.com> on 2002/08/06 20:59:35 UTC
HELP ME, confused newbie
Hi all,
I've been going through the torque tutorial and I got
it to got fine.
Now I want to get the torque tutorial example to run
as a servlet in Tomcat....instead of stand-alone.
I made this directory structure:
$TOMCAT/webapps/bookstore
$TOMCAT/webapps/bookstore/WEB-APP
$TOMCAT/webapps/bookstore/WEB-APP/classes
$TOMCAT/webapps/bookstore/WEB-APP/lib
and placed within the following files:
$TOMCAT/webapps/bookstore/WEB-APP/lib/bookstore.jar
$TOMCAT/webapps/bookstore/WEB-APP/web.xml
and BookStore.java is now BookStoreServlet.java which
extends HttpServlet.
I also have my jdbc2pool stuff configured correctly.
I get this stack trace:
java.lang.NullPointerException
at
com.kazmier.om.BasePublisher.save(BasePublisher.java:444)
at com.kazmier.Bookstore.doGet(Bookstore.java:40)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
.......
What could be going wrong?
Can torque work with Tomcat?
Thanks in advance,
Jason Sherman
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>