Sorry to repost this question, but I really have no clue.

The problem is that java grabs 100% of my CPU in some conditions, when I
try to access some jsp files, and I cannot figure how to solve it.

Here is the configuration:


I am using apache & tomcat.  I have some virtual hosts, defined like this:

<VirtualHost 1.2.3.4>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /zob
    ServerName www.zob.com
    ErrorLog /var/log/httpd-zob.error_log
    TransferLog /var/log/httpd-zob.access_log
    ApJServMount /servlets /ROOT/servlets
    <Directory "/zob/*/WEB-INF">
        Options None
        Deny from all
    </Directory>
</VirtualHost>

In tomcat.conf, I have:
ApJServMount default /root
AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

And in server.xml:
 <Host name="www.zob.com" >
           <Context path="/servlets"
                    docBase="/zob/servlets"
                    debug="0"
                    reloadable="true" />
 </Host>

The problem is the following: When I access a jsp file in /zob/servlets, it works well.
But if I try to access a jsp file somewhere else (for instance /zob/foo.jsp), a
java process hangs, and takes 100% of my cpu. The only solution is to kill it and
restart tomcat.

If I try to access a non existent jsp file in /zob/servlets, I get a (correct) 404 
page,
but if I try to access a non-existent jsp file somewhere else, tomcat hangs also
(100% cpu).

The problem is that after tomcat begins looping, it becomes obviously
impossible to access any other page :-(

Is there something wrong in my configuration?


Bruno.



--
Avec Linux vous avez un noyau, avec Windows des pépins.



Reply via email to