I have a weird problem...
I am running Apache (1.3.12) and Jserv (1.1), and have been running lots of
simple things very well.
I am running a very simple remote database access servlet,
it uses com.nogginware.remotedb.Driver (www.nogginware.com),
and works fine on an NT (Apache + Jserv), but on my linux system it fails.
but,
1) it runs fine from servletrunner, but fails to make a connection under
Apache/Jserv.
java.sql.SQLException: can't establish connection to server
at com.nogginware.remotedb.Connection.<init>(Connection.java:131)
at com.nogginware.remotedb.Driver.connect(Driver.java:34)
at java.sql.DriverManager.getConnection(DriverManager.java:83)
at java.sql.DriverManager.getConnection(DriverManager.java:126)
at dBtester.init(dBtester.java:39)
at
org.apache.jserv.JServServletManager.load_init(JServServletManager.java:569)
at
org.apache.jserv.JServServletManager.loadServlet(JServServletManager.java:488)
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:266)
at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java)
2) even more troublesome, the error doesn't always show up, but more
often gives:
----------- --------------- ---------------
/usr/local/apache/logs/error_log:
[Mon Jun 12 21:31:36 2000] [error] [client 192.103.45.146] Premature end of
script headers: /wdev/servlets/dBtester
java.io.IOException: Directory not writable: /usr/local/jserv/logs
at org.apache.java.io.LogWriter.<init>(LogWriter.java:287)
at org.apache.java.io.LogWriter.<init>(LogWriter.java:203)
at org.apache.jserv.JServLog.<init>(JServLog.java:92)
at org.apache.jserv.JServ.start(JServ.java:233)
at org.apache.jserv.JServ.main(JServ.java:158)
----------- --------------- ---------------
/usr/local/jserv/logs/mod_jserv.log
[12/06/2000 21:31:36:730] (EMERGENCY) ajp12[1]: cannot scan servlet
headers (500)
[12/06/2000 21:31:36:730] (ERROR) an error returned handling request via
protocol "ajpv12"
[12/06/2000 21:31:37:736] (EMERGENCY) ajp12: ping: no reply (-1)
Please make sure that the wrapper.classpath is pointing to the
correct version of ApacheJServ.jar
----------- --------------- ---------------
Everything else runs fine, and I can run standard test servlets before and
after this with no problem.
Any hints or ideas appreciated!
--------------------------------------------------------
Gregory Guthrie
[EMAIL PROTECTED] (515)472-1125 Fax: -1103
--------------------------------------------------------
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html