----------------------------------------------------------------
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!!!
----------------------------------------------------------------

Ricardo,

This is very similar to a problem I posted earlier.  You say you manage to
get the page (JSP) running and the first or second refresh causes java.exe
to fail.  I was running a servlet (not JSP) and did not get expected
results, but a refresh did cause java.exe to die.

The similarity?  jdbc:odbc.  Another poster warned that this is flaky,
especially going against MS-Access.  I got virtually identical code to run
in a java class outside JServ.

This is not much help but: see if you can run the db access code outside of
the servlet environment so you know your database access code works.  Try
running againt another db with jdbc through a means other than odbc.  If
both these work then you'll know that the jdbc:odbc with your JVM doesn't
want to work in JServ.

Good luck.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Gladwell,
Ricardo
Sent: Monday, March 06, 2000 3:38 AM
To: Java Apache Users (E-mail)
Subject: Re: java.exe terminal crash


----------------------------------------------------------------
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]



--
--------------------------------------------------------------
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]

Reply via email to