tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Chaney <>
Subject Re: Tomcat is not rendering JSP content on Port 80
Date Mon, 21 Apr 2008 23:45:59 GMT
The effect you are observing is because you have configured your setup 
to have the jsp files in the path of the document root for apache. 
Apache knows nothing about jsp files so it is just returning the source 
to you.

You have not specified O/S, JVM or Apache or Tomcat version.

You might like to read the tomcat documentation before going any further:

would be a good place to start if you intend to use apache + tomcat, 
together with

if you want to configure your version of tomcat to directly serve port 
80 and not use apache at all.

A 'tomcat only' installation working with port 80 can easily be 
configured in Windows using the control panel (or so I believe as I 
don't use Windows myself). For a linux setup there are some additional 
complications - see:

to avoid running tomcat as root.

Also you may find looking at archives of this list helpful.

If you can't find the answers in the above and generally,

then maybe you could specify your system more clearly and I'm sure 
people will be able to give you more specific help.

Alan Chaney

BeasC wrote:
> I can get Tomcat to render JSP content if I try to (for example) access the
> JSP installation examples using http://localhost:8080/examples/jsp  But when
> I try to try http://localhost/examples/jsp I get nothing but the raw html
> code of the page (of a specific example).
> I have an Apache - Tomcat server, and Apache is listening on port 80 (Which
> is the default port used when accessing the server using its IP address.
> Tomcat has the following code lines in its server.xml file, that I think
> might serve as reference point to what I'm talking about:
> <Server port="8005" shutdown="SHUTDOWN">
> and
> <Connector port="8080" protocol="HTTP/1.1" 
>                connectionTimeout="20000" 
>                redirectPort="8443" /> 
> Any help would be greatly appreciated.
> -Carl

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message