tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Schneider" <schna...@gmx.net>
Subject Tomcat 6 / Apache 2.2 integration problem (no images, no css loaded)
Date Thu, 20 Mar 2008 11:33:51 GMT
Hi,

I am trying to use my tomcat 6 over Apache 2.2. I have deployed a war called sw-builder.war
into the webapps folder of the tomcat instance. After restarting tomcat and apache Tomcat
extracts the war into the webapps folder and into the temp folder (temp/0-sw-builder). The
directory structure of sw-builder is :


sw-builder
 login.jsp
 |_ images
 |_ css

Now I have the problem, that when I call http://localhost/sw-builder/login.jsp no images will
be displayed. Here the error log entries.

[Wed Mar 19 14:57:10 2008] [notice] Child 4384: Child process is running [Wed Mar 19 14:57:10
2008] [notice] Child 4384: Acquired the start mutex.
[Wed Mar 19 14:57:10 2008] [notice] Child 4384: Starting 64 worker threads.
[Wed Mar 19 14:57:10 2008] [notice] Child 4384: Starting thread to listen on port 80.
[Wed Mar 19 14:57:27 2008] [error] [client 127.0.0.1] client denied by server configuration:
E:/server/apache-tomcat-6.0/temp/0-sw-builder/images/blank.gif, referer: http://localhost/sw-builder/login.jsp
[Wed Mar 19 14:57:27 2008] [error] [client 127.0.0.1] client denied by server configuration:
E:/server/apache-tomcat-6.0/temp/0-sw-builder/ci.css, referer: http://localhost/sw-builder/login.jsp

I am using the auto configuration of tomcat which creates following mod_jk.conf:

----------------------------------------------------------------------------------------------------------------
#################### localhost:/sw-builder ####################

    # Static files
    Alias /sw-builder "E:/server/apache-tomcat-6.0/temp/0-sw-builder"

    <Directory "E:/server/apache-tomcat-6.0/temp/0-sw-builder">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.htm index.jsp
    </Directory>

    # Deny direct access to WEB-INF and META-INF
    #
    <Location "/sw-builder/WEB-INF/*">
        AllowOverride None
        deny from all
    </Location>

    <Location "/sw-builder/META-INF/*">
        AllowOverride None
        deny from all
    </Location>
    #
    # Use Directory too. On Windows, Location doesn't work unless casematches
    #
    <Directory "E:/server/apache-tomcat-6.0/temp/0-sw-builder/WEB-INF/">
        AllowOverride None
        deny from all
    </Directory>

    <Directory "E:/server/apache-tomcat-6.0/temp/0-sw-builder/META-INF/">
        AllowOverride None
        deny from all
    </Directory>

    JkMount /sw-builder/*.jsp  ajp13
    JkMount /sw-builder/*.jspx  ajp13
    JkMount /sw-builder/student/actionServlet  ajp13
    JkMount /sw-builder/actionServlet  ajp13
----------------------------------------------------------------------------------------------------------------

The workers.properties looks like this:
----------------------------------------------------------------------------------------------------------------
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
----------------------------------------------------------------------------------------------------------------

In my http.conf I added the following lines:

----------------------------------------------------------------------------------------------------------------
...
Include E:\server\apache-tomcat-6.0\conf\auto\mod_jk.conf
<Directory "E:/server/apache-tomcat-6.0/webapps/sw-builder">
  Order allow,deny
  Allow from all
</Directory>
...
----------------------------------------------------------------------------------------------------------------

Can anybody help me with that problem?

Thanks


-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message