You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dola Woolfe <do...@yahoo.com> on 2003/12/11 09:24:42 UTC

Tomcat 5 Newbie

Hi,

Just switched from Tomcat 3.4 to 5.0 (Win platform). I
copied my entire application from the old webapps dir
to the new one, but when I start Tomcat (through the
start menu) everything seems to run correctly, except
I get the following error when I got to
localhost:8080/myapp/index.jsp

org.apache.jasper.JasperException: /index.jsp(1,1)
Page directive: invalid value for buffer
	at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83)
	at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402)
	at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:140)
	at
org.apache.jasper.compiler.PageInfo.setBufferValue(PageInfo.java:483)
	at
org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:183)
	at
org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:578)
	at
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
	at
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230)
	at
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2236)
	at
org.apache.jasper.compiler.Node$Root.accept(Node.java:485)
	at
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
	at
org.apache.jasper.compiler.Validator.validate(Validator.java:1478)
	at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:247)
	at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
	at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
	at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
	at java.lang.Thread.run(Unknown Source)


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Need help with connectors

Posted by Yansheng Lin <ya...@isogis.com>.
I am assuming you downloaded apache, tomcat, and mod_jk_2.X.X.dll

Try:
	1) rename mod_jk_2.X.X.dll to mod_jk2.dll, and place it under 
		$APACHE_HOME/modules/
	2) In apache httpd.conf
		# Using mod_jk2.dll to redirect dynamic calls to Tomcat
		LoadModule jk2_module modules/mod_jk2.dll

Does it work?

-----Original Message-----
From: Dola Woolfe [mailto:dolachin@yahoo.com] 
Sent: Friday, December 12, 2003 11:28 AM
To: Tomcat Users List
Subject: Need help with connectors


Hi,


I'm beginning to think that I need to be a system
administrator to connect Apache 2.0 with Tomcat 5.0!
I've already spent 2 full days trying to get it to
work. I remember that for Tomcat 3.4 it took me about
5 minutes.

(I can't even tell whether there is too much
documentation or not enough. Under
/tomcat-4.1-doc/jk2/jk2/configtcex.html there are many
links and I don't know whether I need some of them or
all of them. I don't know whether 4.1 instruction
apply to 5.0. It is not clear how to modify Unix
instruction for Windows intructions. Ordinarily I'm a
Unix guy (I helped write the Gimp), but this is a
Windows project. How am I supposed to interpret the
sentence "There is no need to use the jkjni logic to
use normal socket, so that just for Fun." What's just
for Fun? jkjni or normal socket? Also, on the menu,
the headers are instiguishable from live links so the
whole structure of the document is unclear.)

Anyway, I think you guys produce amazing products,
I've always used them and will stick by them in the
future. I'm just a little frustrated and a little bit
jealous of my time so I'm hoping that someone will
provide instructions for Apache2 + Tomcat5 + Win32.

Thanks.

Dola

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Need help with connectors

Posted by Dola Woolfe <do...@yahoo.com>.
Hi,


I'm beginning to think that I need to be a system
administrator to connect Apache 2.0 with Tomcat 5.0!
I've already spent 2 full days trying to get it to
work. I remember that for Tomcat 3.4 it took me about
5 minutes.

(I can't even tell whether there is too much
documentation or not enough. Under
/tomcat-4.1-doc/jk2/jk2/configtcex.html there are many
links and I don't know whether I need some of them or
all of them. I don't know whether 4.1 instruction
apply to 5.0. It is not clear how to modify Unix
instruction for Windows intructions. Ordinarily I'm a
Unix guy (I helped write the Gimp), but this is a
Windows project. How am I supposed to interpret the
sentence "There is no need to use the jkjni logic to
use normal socket, so that just for Fun." What's just
for Fun? jkjni or normal socket? Also, on the menu,
the headers are instiguishable from live links so the
whole structure of the document is unclear.)

Anyway, I think you guys produce amazing products,
I've always used them and will stick by them in the
future. I'm just a little frustrated and a little bit
jealous of my time so I'm hoping that someone will
provide instructions for Apache2 + Tomcat5 + Win32.

Thanks.

Dola

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Can't get jk2 to work!

Posted by Dola Woolfe <do...@yahoo.com>.
Sorry, I still couldn't get it to work. (Apache would
not restart.) I took the file mod_jk_1.2.5_2.0.47.dll
renamed it as intructed and put it in the modules
directory. I left the rest unchanged as in the
original email. Perhaps I'm doing something dumb and
altogether wrong!

Dola



--- Mark Eggers <it...@yahoo.com> wrote:
> JK2 and JK are two different beasts.
> 
> If you are going to use JK instructions in
> httpd.conf
> (which is what you have), then you will need to use
> mod_jk.dll.
> 
> Go to here:
> 
> http://jakarta.apache.org/site/binindex.cgi
> 
> and select the JK 1.2 binaries to download.
> 
> If you are going to use JK2, then you need to follow
> these instructions:
> 
> For jk2.properties:
>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtcex.html
> 
> For workers2.properties:
>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtcex.html
> 
> The normal socket configuration is probably the
> simplest to get running.
> 
> Also, see the following links:
> http://jakarta.apache.org/tomcat/faq/
>
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Howto
>
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links
> 
> HTH
> /mde/
> just my two cents . . . .
> 
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Can't get jk2 to work!

Posted by Dola Woolfe <do...@yahoo.com>.
Thanks!

Yes, I'm intrested in the simplest to get running!
So... which one is the "normal socket configuration".
I know it's a stupid question, but I don't know the
answer.

Is it OK that instructions are for 4.1 and I'm using
5.0?

Thanks once again!


--- Mark Eggers <it...@yahoo.com> wrote:
> JK2 and JK are two different beasts.
> 
> If you are going to use JK instructions in
> httpd.conf
> (which is what you have), then you will need to use
> mod_jk.dll.
> 
> Go to here:
> 
> http://jakarta.apache.org/site/binindex.cgi
> 
> and select the JK 1.2 binaries to download.
> 
> If you are going to use JK2, then you need to follow
> these instructions:
> 
> For jk2.properties:
>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtcex.html
> 
> For workers2.properties:
>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtcex.html
> 
> The normal socket configuration is probably the
> simplest to get running.
> 
> Also, see the following links:
> http://jakarta.apache.org/tomcat/faq/
>
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Howto
>
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links
> 
> HTH
> /mde/
> just my two cents . . . .
> 
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Can't get jk2 to work!

Posted by Mark Eggers <it...@yahoo.com>.
JK2 and JK are two different beasts.

If you are going to use JK instructions in httpd.conf
(which is what you have), then you will need to use
mod_jk.dll.

Go to here:

http://jakarta.apache.org/site/binindex.cgi

and select the JK 1.2 binaries to download.

If you are going to use JK2, then you need to follow
these instructions:

For jk2.properties:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtcex.html

For workers2.properties:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtcex.html

The normal socket configuration is probably the
simplest to get running.

Also, see the following links:
http://jakarta.apache.org/tomcat/faq/
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Howto
http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links

HTH
/mde/
just my two cents . . . .

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Can't get jk2 to work!

Posted by Dola Woolfe <do...@yahoo.com>.
Hi,

I'm trying to get JK2 to work to integrate Apache
2.0.48 with Tomcat 5.0.

I've followed instructions verbatim from
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/quickhowto.html

Perhaps, that's the answer to my question (5.0 vs
4.1), in which case please point me to Tomcat 5.0
integration instructions.

Otherwise, here's an excerpt from httpd.conf:


LoadModule jk_module modules/mod_jk.dll
AddModule mod_jk.c 
JkWorkersFile C:/Program Files/Apache
Group/Apache2/conf/workers.properties 
JkLogFile C:/Program Files/Apache
Group/Apache2/conf/mod_jk.log 
JkLogLevel info 
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " 
JkOptions +ForwardKeySize +ForwardURICompat
-ForwardDirectories 
JkRequestLogFormat "%w %V %T" 
JkMount /examples/* worker1 


where I took mod_jk2-2.0.43.dll and renamed it
mod_jk.dll.

My workers.properties is unchanged from the example.

Thanks!


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat 5 Newbie

Posted by Tim Funk <fu...@joedog.org>.
Buffering is essential for speedy response time and overall system performace 
in a concurrent environment. Sending every byte to the client by itself is 
horrible for performance. A buffer minimum should be the TCP packet size. But 
even that is *real* small. For some pages, a smaller buffer than the spec 
default (8kb) is desired, for others, a larger buffer is much better because 
of the nature of the data being pulled from its datastore.


In a nutshell, don't change the buffer size unless you have a reason. 
(Personally, I've never had a reason to alter the buffer size in the last 2+ 
years)

-Tim

Dola Woolfe wrote:

> Great Tim, Thank you.
> 
> A couple words on why you would want to buffer?
> 
> 
> --- Tim Funk <fu...@joedog.org> wrote:
> 
>>You need it to be in kb, not k:
>><%@ page import="html.*" buffer="16kb" %>
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat 5 Newbie

Posted by Dola Woolfe <do...@yahoo.com>.
Great Tim, Thank you.

A couple words on why you would want to buffer?


--- Tim Funk <fu...@joedog.org> wrote:
> You need it to be in kb, not k:
> <%@ page import="html.*" buffer="16kb" %>
> 
> Per the spec: [Table JSP.2-1]
> Specifies the buffering model for the initial �out�
> JspWriter to handle 
> content output from the page.
> If �none�, then there is no buffering and all output
> is written directly 
> through to the ServletResponse PrintWriter. The size
> can only be specified in 
> kilobytes, and the suffix �kb� is mandatory.
> If a buffer size is specified then output is
> buffered with a buffer size not 
> less than that specified.
> Depending upon the value of the �autoFlush�
> attribute, the contents of this 
> buffer is either automatically flushed, or an
> exception is raised, when 
> overflow would occur.
> The default is buffered with an implementation
> buffer size of not less than 8kb.
> 
> -Tim
> 
> Dola Woolfe wrote:
> 
> > Hi Tim,
> > 
> > I have
> > 
> > <%@ page import="html.*" buffer="16k" %>
> > 
> > Is this not OK? I have to admit I don't even know
> why
> > one would want to play change it.
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat 5 Newbie

Posted by Tim Funk <fu...@joedog.org>.
You need it to be in kb, not k:
<%@ page import="html.*" buffer="16kb" %>

Per the spec: [Table JSP.2-1]
Specifies the buffering model for the initial “out” JspWriter to handle 
content output from the page.
If “none”, then there is no buffering and all output is written directly 
through to the ServletResponse PrintWriter. The size can only be specified in 
kilobytes, and the suffix “kb” is mandatory.
If a buffer size is specified then output is buffered with a buffer size not 
less than that specified.
Depending upon the value of the “autoFlush” attribute, the contents of this 
buffer is either automatically flushed, or an exception is raised, when 
overflow would occur.
The default is buffered with an implementation buffer size of not less than 8kb.

-Tim

Dola Woolfe wrote:

> Hi Tim,
> 
> I have
> 
> <%@ page import="html.*" buffer="16k" %>
> 
> Is this not OK? I have to admit I don't even know why
> one would want to play change it.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat 5 Newbie

Posted by Dola Woolfe <do...@yahoo.com>.
Hi Tim,

I have

<%@ page import="html.*" buffer="16k" %>

Is this not OK? I have to admit I don't even know why
one would want to play change it.

Pavel
--- Tim Funk <fu...@joedog.org> wrote:
> You probbaly have <%@page buffer='BAD VALUE HERE' %>
> 
> -Tim
> 
> Dola Woolfe wrote:
> 
> > Hi,
> > 
> > Just switched from Tomcat 3.4 to 5.0 (Win
> platform). I
> > copied my entire application from the old webapps
> dir
> > to the new one, but when I start Tomcat (through
> the
> > start menu) everything seems to run correctly,
> except
> > I get the following error when I got to
> > localhost:8080/myapp/index.jsp
> > 
> > org.apache.jasper.JasperException: /index.jsp(1,1)
> > Page directive: invalid value for buffer
> > 	at
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat 5 Newbie

Posted by Tim Funk <fu...@joedog.org>.
You probbaly have <%@page buffer='BAD VALUE HERE' %>

-Tim

Dola Woolfe wrote:

> Hi,
> 
> Just switched from Tomcat 3.4 to 5.0 (Win platform). I
> copied my entire application from the old webapps dir
> to the new one, but when I start Tomcat (through the
> start menu) everything seems to run correctly, except
> I get the following error when I got to
> localhost:8080/myapp/index.jsp
> 
> org.apache.jasper.JasperException: /index.jsp(1,1)
> Page directive: invalid value for buffer
> 	at



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org