arjen stolk wrote:

>hello marcelo,
>
>i tried your code sample.
>but i have some problems:
>if i don't include the servlet.jar in the classpath i (obviously) get
>this kind of compile errors:
>
>Line 67, column 7:  Class javax.servlet.http.Cookie not found in import.
>Line 69, column 7:  Class javax.servlet.http.HttpSession not found in
>import.
>
>
>but when i do include the servlet.jar everything compiles ok, but i get a
>nasty runtime error:
>
>java.lang.NoSuchMethodError
>        at
>org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:244)
>        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:245)
>        at java.io.PrintWriter.flush(PrintWriter.java:120)
>        at
>org.apache.catalina.connector.ResponseWriter.flush(ResponseWriter.java:125)
>        at
>org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:
>481)
>        at
>org.apache.catalina.connector.HttpResponse
>Base.finishResponse(HttpResponseBa
>se.java:229)
>        at
>org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpRespo
>nseImpl.java:288)
>        at
>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
>1038)
>        at
>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
>)
>        at java.lang.Thread.run(Thread.java:484)
>
>what should i do to get things running?
>
>i'm using
>jdk version 1.3.1_01
>jsdk (servlet.jar) version 2.1
>
>
>sincerily,
>arjen stolk
>
>
 It seem to be a problem of differents version servlet.jar, betwen 
Tomcat and Cocoon.
 I am using Oracle Object Container for J2EE, based on Orion webserver, 
it not requires servlet.jar and is Servlet 2.3 compliant.
 Which servlet.jar are you included into classpath, servlet.jar from 
Cocoon2 dist or Tomcat's servlet.jar?
  Best regards, Marcelo.



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to