httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew <>
Subject [users@httpd] Trouble rendering JSPs
Date Fri, 12 Oct 2007 09:22:04 GMT
Hello all,
I am trying to setup Tomcat 6 with Apache Server 2.2 on Windows Server
2003. I followed the steps I found here:

and made much progress, but I still have 2 issues I'm unable to resolve.

1) When I hit my site from outside my firewall the name resolution
takes me to the default apache page ("It Works" page) instead of to
the site I setup with the VirtualHost tag. When I put in the url for a
jsp page directly, the browser shows me the code as text instead of
rendering the page.

2) On the box serving the site, when I go to the site, the name
resolves correctly, but when I use an action requiring a servlet I get
a 404 error.

Here are the relevant portions of the files I'm guessing one would
need to debug this:

NameVirtualHost *:80
<VirtualHost *:80>
    DocumentRoot "C:/.../Tomcat 6.0/webapps/mysite/"

LoadModule jk_module modules/
Include "C:/.../Tomcat 6.0/conf/auto/mod_jk.conf"

(yes the mod_jk.conf file is being generated by tomcat correctly with
all my servlets being mounted by JkMount)


server.xml from tomcat:

<Listener className="org.apache.jk.config.ApacheConfig"
workersConfig="C:/.../Apache2.2/conf/" />

   <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

   <Listener className="org.apache.jk.config.ApacheConfig" append="true"
       modJk="C:/.../Apache2.2/modules/" />

(using - I just renamed it)

Any help you can offer would be much appreciated.

Thanks in advance,

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message