You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Yuvaraj Chandrasekaran <Yu...@iisweb.com> on 2000/12/01 22:44:38 UTC

Tomcat 3.2 configuration problem

Hi there,
I installed Tomcat 3.2 recently in my NT 4.0 Workstation.
Its able to run Servlets but when i tried to run one of the example JSPs,
its giving the following exception in the browser
I did set the JAVA_HOME and the TOMCAT_HOME  system variables.
Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:
javax.servlet.ServletException: javax.servlet.ServletResponse: method
flushBuffer()V not found
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
Code)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java, Compiled Code)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
	at java.lang.Thread.run(Thread.java:479)
Root cause: 
java.lang.NoSuchMethodError: javax.servlet.ServletResponse: method
flushBuffer()V not found
	at
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:207)
	at
jsp.num._0002fjsp_0002fnum_0002fnumguess_0002ejspnumguess_jsp_0._jspService(
_0002fjsp_0002fnum_0002fnumguess_0002ejspnumguess_jsp_0.java:150)
	at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
Code)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java, Compiled Code)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
	at java.lang.Thread.run(Thread.java:479)




Any help?

--Yuvaraj


ROOT context in Apache

Posted by Andreas Ljunggren <An...@ericsson.com>.
Howdy,
Is there any way to have the root of a Apache webserver server
by the ROOT context, and still being able to use PHP/CGI ?
I have made a small patch towards mod_jk but befor submiting it
I want to know if there already exists a functioning solution.

--My solution
JkMount /* ajp12
JkMount /*.jsp ajp12
JkMount /*.php DECLINE    (ie. mod_jk declines handling it..)
JkMount /*.cgi DECLINE
DocumentRoot TOMCAT/webapps/ROOT/

/Andreas


Re: mod_jk.so

Posted by Alan Wright <At...@btinternet.com>.
Mathew

Once you have built the file you put it in with your other mod_xyz.so files
(/usr/lib/apache for me) and then use the LoadModule and AddModule commands in the
httpd.conf file.

I eventually managed to build the file on my linux box using make instead of the apsx
script.

thanks

Alan

Mathew Thomas wrote:

> Alan,
>     I was able to build mod_jk.so on linux by changing to
> /jakarta-tomcat-src/src/native/apache13 and running make -f Makefile.linux all .
> This will build mod_jk.so.  I'm not sure what to do with mod_jk.so after building
> it, though.  I've build apache1.3.14 with mod_so so I can include so modules - I
> figure mod_jk must be included somehow.
>


Re: mod_jk.so

Posted by Mathew Thomas <mt...@piranha.com>.
Alan,
    I was able to build mod_jk.so on linux by changing to
/jakarta-tomcat-src/src/native/apache13 and running make -f Makefile.linux all .
This will build mod_jk.so.  I'm not sure what to do with mod_jk.so after building
it, though.  I've build apache1.3.14 with mod_so so I can include so modules - I
figure mod_jk must be included somehow.

Mathew


Alan Wright wrote:

> Any help or information gratefully recieved...
>
> Looking at the binary downloads on the jakarta site the Linux section for 3.2 is
> notable by its absence.
> I have thus been trying (without success) to build my own mod_jk.so
>
> Does anyone know if there are plans to put mod_jk.so for linux up on the site?
>
> Has anyone succeeded in building their own mod_jk.so on Linux?
>
> Has anyone successfully used the mod_jk.so files from the betas with the final
> version of 3.2?  I tried to download with both IE5 and Netscape and both times
> whent I tried to restart apache I received an error message suggesting that the
> mod_jk.so file was garbled or not a DSO file.
>
> Thanks
>
> Alan Wright


mod_jk.so

Posted by Alan Wright <At...@btinternet.com>.
Any help or information gratefully recieved...

Looking at the binary downloads on the jakarta site the Linux section for 3.2 is
notable by its absence.
I have thus been trying (without success) to build my own mod_jk.so

Does anyone know if there are plans to put mod_jk.so for linux up on the site?

Has anyone succeeded in building their own mod_jk.so on Linux?

Has anyone successfully used the mod_jk.so files from the betas with the final
version of 3.2?  I tried to download with both IE5 and Netscape and both times
whent I tried to restart apache I received an error message suggesting that the
mod_jk.so file was garbled or not a DSO file.

Thanks


Alan Wright