I kept getting an error like that on an SSI servlet that I used for testing. That
was with the ApacheServSSI ver1.0 dated 12-16-1998. It took me quite a while, but
I found out you couldn't use PrintWriter and getWriter in it. I had to use
ServletOutputStream and getOutputStream. It worked somewhat after that. Then I
got the latest version of ApacheJServSSI from the www.workingdogs site and compiled
that. Everything seemed to work correctly at that point, so I reinstated the
PrintWriter and getWriter calls and everything worked fine!
Hope that helps...
C'ya,
Edmund
[EMAIL PROTECTED]
Martin Honnen wrote:
> I tried a simple example with JServSSI 1.0 (Apache/1.3.6 (Unix) with
> ApacheJServ/1.0b3) which shows the following error output:
>
> <!-- java.lang.IllegalStateException: Already called getOutputStream.
> at
> org.apache.jserv.JServConnection.getWriter(JServConnection.java:1432)
> at SnoopServlet.doGet(SnoopServlet.java:46)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
> at org.apache.jservssi.ServletInfoRequest.runServlet(JServSSI.java:917)
> at org.apache.jservssi.JServSSI.interpretPage(JServSSI.java:366)
> at org.apache.jservssi.JServSSI.doGet(JServSSI.java:302)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
> at org.apache.jserv.JServConnection.run(JServConnection.java:359)
> at java.lang.Thread.run(Thread.java)
> -->
>
> The .jtml file contains
> <BODY>
> <SERVLET CODE="SnoopServlet.class">
> no <SERVLET> support
> </SERVLET>
> </BODY>
>
> The SnoopServlet is one of the jsdk examples.
>
> Any ideas why that servlet doesn't work with JServSSI?
>
> --
>
> Martin Honnen
>
> mailto: [EMAIL PROTECTED]
> http://www.sector27.de/martin.honnen
>
> ----------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html/>
> Problems?: [EMAIL PROTECTED]
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]