----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
I have set-up my Apache 1.1.13 server on my Windows NT Workstation machine
using JServ 1.0.1 and GNUJSP (latest snapshot). It seemed to be running fine
until I managed to get my first JSP page up and running and then I noticed
that if I refresh the page twice or look at the same page twice on my
browser, then the execution call to the <<java.exe>> program fails fatally,
causing a stack dump dialog to appear.
It seems that when the following scriplet code is run an fatal error is
thrown:
--- JSP CODE START ---
<% Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
Connection connection = DriverManager.getConnection( "jdbc:odbc:dbPMTS",
"pmts", "pmts" );
Statement statement = connection.createStatement();
ResultSet rsNames = statement.executeQuery( "SELECT * FROM tblBunnies" );
while( rsNames.next() ) { %>
<P><%= rsNames.getString( "Surname" ) %></P>
<% } %>
--- JSP CODE END ---
The following lines of code were added/ammended in my config files:
--- JSERV.CONF FILE START ---
ApJServProperties "D:\Apache\Apache JServ 1.1\conf\jserv.properties"
ApJServMount /servlets /root
ApJServMount /servlet /root
ApJServMount /jsp /jspzone
ApJServAction .jsp /jsp/jsp
--- JSERV.CONF FILE END ---
--- JSERV.PROPERTIES FILE START -----
wrapper.bin=d:\jdk1.2.2\JRE\1.2\bin\java.exe
wrapper.classpath=D:\Apache\Apache JServ 1.1\ApacheJServ.jar
wrapper.classpath=D:\jdk1.2.2\lib\tools.jar
wrapper.classpath=d:\gnujsp1.0\lib\gnujsp10cvs.jar
wrapper.classpath=d:\gnujsp1.0\lib\servlet-2.0-plus.jar
root.properties=D:\Apache\Apache JServ 1.1\servlets\zone.properties
jspzone.properties=D:\Apache\Apache JServ 1.1\jsp\zone.properties
--- JSERV.PROPERTIES FILE END -----
--- ZONE.PROPERTIES FILE START -----
repositories=D:\Apache\Apache JServ 1.1\jsp
repositories=D:\gnujsp1.0\lib\gnujsp10cvs.jar
repositories=D:\gnujsp1.0\lib\servlet-2.0-plus.jar
servlet.jsp.code=org.gjt.jsp.JspServlet
servlet.jsp.initArgs=debug=false
servlet.jsp.initArgs=pathdebug=false
servlet.jsp.initArgs=checkclass=true
servlet.jsp.initArgs=scratchdir=D:\Apache\Apache JServ 1.1\jsp\scratch
servlet.jsp.initArgs=jserv=true
--- ZONE.PROPERTIES FILE START -----
Yours...
Ricardo Gladwell, Web Developer
Demon Internet, Westhumble House,
Dorking Business Park, Dorking. RH4 1HJ
Tel: +44 (0)1306 732 356
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]