Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Tomcat 6 / Apache 2.2 integration problem (no images / tomcat deploysto temp dir)

Reply
Thread Tools

Tomcat 6 / Apache 2.2 integration problem (no images / tomcat deploysto temp dir)

 
 
Andi
Guest
Posts: n/a
 
      03-18-2008
Hi,

I have integrated my tomcat 6 instance with apache 2.2. I have used
the auto configuration of tomcat and it seems to work. When I access
my deployt web application no image will be displayed. Does anybody
knows why?

Another problem is, that when I deploy my webapp (myWebapp) tomcat
extracts the war in the webapps folder and an instance in the temp
folder (temp/0-myWebapp). When I now look in my auto generated
mod_jk.conf there is a new entry for the web applcation. The problem
is that the <Directory> tag points to the temp dir. Is it possible to
change the auto generation behaviour that it uses the directory in the
webapps folder?

Thanks for every hin
 
Reply With Quote
 
 
 
 
Andi
Guest
Posts: n/a
 
      03-18-2008
Here a part of my http.conf. The name of the webapp is sw-builder:


------------------------------------------------------------------------------------------
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>

------------------------------------------------------------------------------------------

Here the generated 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 case
matches
#
<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
------------------------------------------------------------------------------------------


Here the workers.properties:

------------------------------------------------------------------------------------------
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
------------------------------------------------------------------------------------------
 
Reply With Quote
 
 
 
 
Marcelo Morales
Guest
Posts: n/a
 
      03-18-2008
Hello

Open the graphics uri on a browser and tail the logfile. What's the
http status on apache httpd, 403 or 404 or something else?.

If is not a 400 or 500 error, check the mime type.

I can see nothing wrong with your configuration.

Hope it helps

Marcelo Morales
 
Reply With Quote
 
Andi
Guest
Posts: n/a
 
      03-19-2008
On 18 Mrz., 19:23, Marcelo Morales <(E-Mail Removed)>
wrote:
> Hello
>
> Open the graphics uri on a browser and tail the logfile. What's the
> http status on apache httpd, 403 or 404 or something else?.
>
> If is not a 400 or 500 error, check the mime type.
>
> I can see nothing wrong with your configuration.
>
> Hope it helps
>
> Marcelo Morales


Hi,

thanks for your help. Here my logfile..

[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

How should I di this with the mime type?

thanks
 
Reply With Quote
 
Marcelo Morales
Guest
Posts: n/a
 
      03-19-2008
On Mar 19, 9:56 am, Andi <(E-Mail Removed)> wrote:
> On 18 Mrz., 19:23, Marcelo Morales <(E-Mail Removed)>
> wrote:
>
> > Hello

>
> > Open the graphics uri on a browser and tail the logfile. What's the
> > http status on apache httpd, 403 or 404 or something else?.

>
> > If is not a 400 or 500 error, check the mime type.

>
> > I can see nothing wrong with your configuration.

>
> > Hope it helps

>
> > Marcelo Morales

>
> Hi,
>
> thanks for your help. Here my logfile..
>
> [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
>
> How should I di this with the mime type?
>
> thanks


Hello

Forget the mime type for now. Add a location and a directory entries
for the images subfolder on the apache httpd configuration. If the
problem persists, then ask to apache httpd mailing lists.

MM
 
Reply With Quote
 
Andi
Guest
Posts: n/a
 
      03-20-2008
On 19 Mrz., 20:29, Marcelo Morales <(E-Mail Removed)>
wrote:
> On Mar 19, 9:56 am, Andi <(E-Mail Removed)> wrote:
>
>
>
> > On 18 Mrz., 19:23, Marcelo Morales <(E-Mail Removed)>
> > wrote:

>
> > > Hello

>
> > > Open the graphics uri on a browser and tail the logfile. What's the
> > > http status on apache httpd, 403 or 404 or something else?.

>
> > > If is not a 400 or 500 error, check the mime type.

>
> > > I can see nothing wrong with your configuration.

>
> > > Hope it helps

>
> > > Marcelo Morales

>
> > Hi,

>
> > thanks for your help. Here my logfile..

>
> > [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

>
> > How should I di this with the mime type?

>
> > thanks

>
> Hello
>
> Forget the mime type for now. Add a location and a directory entries
> for the images subfolder on the apache httpd configuration. If the
> problem persists, then ask to apache httpd mailing lists.
>
> MM


I have added these subdirectories to the http.conf. But it seems that
I have to add the
directories in the temp folder. Thats really strange. The problem is,
that the extracted folders
in the temp dir are getting an index like 0-sw-builder. I think that
index is not everytime the same.
Thanks for the tip. I will try my luck at the mailing lists.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 5.36 Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? PerlFAQ Server Perl Misc 0 04-26-2011 10:00 AM
How to initialize member reference with temp object and delete the temp object when the destructor is called? PengYu.UT@gmail.com C++ 2 05-09-2005 05:48 PM
File::Temp: opening the temp. file in "r+" mode? Also "man in the middle" A. Farber Perl Misc 3 03-03-2004 12:42 PM
Temp Internet and temp files now in winnt directory w2k pro Bibble Bobble Computer Support 1 11-27-2003 06:14 PM
Apache & Tomcat & Struts Integration Problem wilson Java 1 08-16-2003 10:49 AM



Advertisments