Just wanted to say that the servlet works now. I'm not sure what exactly caused it to not work earlier before, a small but significant change taken for granted.
some significant factors MIGHT be my changing the defaultIdMethod from native to idbroker, or perhaps my repeated switching of ports and mysql databases might have caused some contradictions in the om classes with that of the runtime files. --- Parox Kang <[EMAIL PROTECTED]> wrote: > Hi, > > I want to get the Bookstore class (from Torque > tutorial) running as a servlet in Tomcat. While the > application runs fine, its servlet form seems to run > into some torque configuration trouble: > > java.lang.NullPointerException > at > org.apache.torque.Torque.initialize(Torque.java:227) > at > org.apache.torque.Torque.init(Torque.java:295) > at > org.apache.torque.Torque.init(Torque.java:275) > at > com.kazmier.BookstoreServlet.doGet(BookstoreServlet.java:29) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > <snip> > > The catalina debugger reveals that the mapBuilders > are > null objects. > > I believe the Torque.properties is configured > correctly, and > properly accessed by the servlet via Torque.init. > The > BookMapBuilder, AuthorMapBuilder, and > PublisherMapBuilder > classes all access the proper database. What else > do > I > need to consider? > > Other info: RH Linux 6.2, mySQL 4.0, > torque-3.0-b4-dev > > Needing Help, > Parox > > P.S. Please tell me whether I should reword or > elaborate on my question. I've been being ignored > for > a couple of weeks already on the -user list. > > __________________________________________________ > Do You Yahoo!? > HotJobs - Search Thousands of New Jobs > http://www.hotjobs.com > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
