tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Baty <>
Subject Re: Only see html/code
Date Mon, 21 Jan 2008 15:36:34 GMT
Thanks for the ideas, still no luck.  This didn't work.  It acts like Apache and Tomcat aren't
 connecting at all.  I copied index.jsp to index.html and everything worked except the  JSP
code.  I changed  /usr/share/tomcat5.5-webapps/ROOT/cwrecyclers/WEB-INF/web.xml to:

<?xml version="1.0" encoding="ISO-8859-1"?>


  <display-name>Welcome to CWrecyclers</display-name>
      Welcome to CWrecyclers

<!-- JSPC servlet mappings start -->

        <servlet-name>Home Page</servlet-name>

        <servlet-name>Home Page</servlet-name>
No luck yet with the JSP.   I'm trying to get up and  running.

----- Original Message ----
From: Rainer Jung <>
To: Tomcat Users List <>
Sent: Sunday, January 20, 2008 10:06:13 AM
Subject: Re: Only see html/code

Hi Chris,

Chris Baty schrieb:
> Hi Guys, I'm running  Tomcat 5.5 and Apache 2, with Tomcat connector
> (Kind of a newbie).  I got my Tomcat working fine at
> /usr/share/tomcat5.5-webapps/ROOT/cwrecyclers.  When I point the
> browser (locally) at localhost:8180/cwrecyclers/ I see exactly what I
> expect.  But when I look remotely also I see is the html.  I've
> looked at all my config files and they all look fine.  Could someone
> point me in the right direction? Thanks Chris

What the exact URL, you are testing with?
Is it a JSP? Is it an index.jsp, i.e. do you ask for a directory, which
includes an index.jsp?

> Apache:
> <VirtualHost>
>         ServerAdmin
>         ServerName
>         # Indexes + Directory Root.
If I do this all I get is a directory listing, web style.

Don't do this. It will not work reliably. Instead include index.jsp in 
the list of welcome files on your webapp web.xml.

>         DirectoryIndex index.jsp
This gives  me FILE NOT FOUND
#Don't do this. Since you forward all cwrecyclers requests to Tomcat, 
Apache httpd does not need to know about the webapp directory.
>         DocumentRoot /usr/share/tomcat5.5-webapps/ROOT/cwrecyclers/
> #        DocumentRoot /var/www/cwrecyclers/

The first Mount is already included in the second one.
>     JkMount /cwrecyclers/*.jsp cwrecyclers
>     JkMount /cwrecyclers/* cwrecyclers
If you don't tel httpd about the webapp with DocumentRoot, you can 
remove this as well.

>     # Globally deny access to the WEB-INF directory
>      <LocationMatch ".*WEB-INF.*">
>         deny from all
>      </LocationMatch>
>         # Logfiles
>         ErrorLog  /var/log/apache2/
>         CustomLog /var/log/apache2/
> </VirtualHost>

 > # Tomcat and Java configuration
 > #
Remove the next two, they are useless.
> workers.tomcat_home=/usr/share/tomcat5.5 
> workers.java_home=/usr/lib/jvm/java-1.5.0-sun ps=/

> worker.list=yougarage
> # Definition for local worker using AJP 1.3
> # 
> worker.yougarage.type=ajp13
> worker.yougarage.port=8009

Remove cachesize, the default for Apache httpd are better:
> worker.yougarage.cachesize=20
> worker.list=cwrecyclers
> # Definition for local worker using AJP 1.3
> # 
> worker.cwrecyclers.type=ajp13 
> worker.cwrecyclers.port=8009

Remove cachesize, the default for Apache httpd are better:
> worker.cwrecyclers.cachesize=20

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

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message