Try using getWriter in the doGet method of your included servlet
(HelloWorld)... The getWriter might be screwing up things since the JServSSI
already has already initiated a call to getOutputStream in its doGet which
is followed by your getWriter which is called later...

Hope this helps...

rajesh

> -----Original Message-----
> From: Marcel Maré [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 04, 1999 9:15 AM
> To: 'Java Apache Users'
> Subject: RE: JServSSI broken on JDK1.2/Apache 1.3.6/JServ1.0b3/Win32 ?
> 
> 
> Hi Rajesh
> 
> > A similar problem was up on this list regarding mixing calls to
> > getOutputStream() and getWriter() which seem to be the source of the
> > problem... can you elaborate a little more on the setup in
> > terms of conf
> > information?
> 
> 
> Of course!
> In httpd.conf:
>   ApJServAction .jhtml /servlet/org.apache.jservssi.JServSSI
> 
> In jserv.properties:
>   wrapper.classpath=C:\Program Files\Apache Group\Apache
> JServ\libservlets\ApacheJServSSI.jar
> 
> (I have also tried instead of putting is in the servlet 
> repository by using
>    repositories=C:\Program Files\Apache Group\Apache
> JServ\libservlets\ApacheJServSSI.jar
> in servlets.properties (my servlet zone). It doesn't make any 
> difference.)
> 
> The test .html page contains:
> 
> <SERVLET CODE="HelloWorld.class">
> Your web server has not been configured to support servlet tags.
> </SERVLET>
> 
> This section gets replaced by the errors I mentioned. My 
> guess therefore is
> that the SSIservlet does get called, but fails.
> 
> When calling the HelloWorld servlet directly
> (http://localhost/servlet/HelloWorld) works OK.
> 
> The HelloWorld servlet is:
> 
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> 
> public class HelloWorld extends HttpServlet {
> 
>   public void doGet(HttpServletRequest req, HttpServletResponse res)
>                                throws ServletException, IOException {
> 
>     res.setContentType("text/html");
>     PrintWriter out = res.getWriter();
> 
>     out.println("<HTML>");
>     out.println("<HEAD><TITLE>Hello World</TITLE></HEAD>");
>     out.println("<BODY>");
>     out.println("<BIG>Hello World</BIG>");
>     out.println("</BODY></HTML>");
>   }
> }
> 
> The funny thing is that at some point in the past the exact 
> same .jthml and
> HelloWorld Servlet has worked. The things that have changed 
> are the versions
> of Apache/JServ/JDK....
> 
> 
> Thanks
> 
> Marcel
> 
> 
> > I think it should work right out of the box... I
> > have it up and
> > working with a similar configuration except that I use Apache
> > 1.3.4 which
> > wouldn't make much of a diff...
> >
> > rajesh
> >
> > > -----Original Message-----
> > > From: Marcel Maré [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, April 03, 1999 6:10 PM
> > > To: Mailinglist Java Apache Users (E-mail)
> > > Subject: JServSSI broken on JDK1.2/Apache 1.3.6/JServ1.0b3/Win32 ?
> > >
> > >
> > > With the setup mentioned in the subject I'm getting an empty
> > > JHTML screen
> > > with an error in comments in the source. I know that once
> > > upon a time it
> > > worked (Apache 1.3.3/JServ1.0b1/JDK1.1.6): So, anybody knows
> > > what's up?
> > > This is the errormessage:
> > > java.lang.IllegalStateException: Already called 
> getOutputStream. at
> > > org.apache.jserv.JServConnection.getWriter(JServConnection.jav
> > > a:1432) at
> > > HelloWorld.doGet(HelloWorld.java:11) 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.jav
> > > a:917) at
> > > org.apache.jservssi.JServSSI.interpretPage(Compiled Code) 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:479)
> > >
> > >
> > > Thanks
> > >
> > >
> > > Marcel J. Maré
> > > Amsterdam
> > > The Netherlands (Europe)
> > >
> > >
> > >
> > > ----------------------------------------------------------------
> > > 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]
> >
> >
> 
> 
> 
> ----------------------------------------------------------------
> 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]

Reply via email to