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

Dear All,

I am attempting to enable JSP on my Apache 1.1.13 server using Apache JServ
1.1 and the Java Sun Web Development Kit (JSWDK1.1) on the Windows NT
platform. After spending an exhausting couple of days fighting in out with
the JServ configuration files and have finally reached the point where JSP
pages are correctly passed to the com.sun.jsp.runtime.JspServlet and are
compiled into .java files. I even managed (shock) to get the .java file to
compile to a .class file, but when the .class file itself is executed I get
a NullPointerException.

I know for sure that the correct JAR files and class directories are being
passed to the wrapper.classpath property and the repositories file. I 'know'
why the JSP page is throwing an exception: an examination of the generated,
pre-compiled .java file reveals that when the _jspService() method of the
generated class is called, the _finally_ block runs the following command:

        out.flush()

which is causing the exception, implying that out == null, but why would
this be when everything compiles properly, I cannot fathom. Perhaps the
_jspService() file was passed a null value for out initially and the
_finally_ block is merely throwing an exception of its own after the first
time a method from the null out variable was encountered( this method threw
an exception as well and then, after the catch block is run the finally
block is run).

I hope that is clear. I am sorry I cannot provide log/config files but at
the moment I am unable to access your mailing list from work so I am writing
this from my home account. Yours gratefully...

Ricardo Gladwell
------------------------------------------------
9 South Drive, Cheam
Surrey. SM2 7PH
Tel: (0181) 643 2392
e: [EMAIL PROTECTED]
http://members.netscapeonline.co.uk/ricgladwell/



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