You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Martin Heiden <ma...@devk.de> on 2006/10/17 12:56:28 UTC

XP network connections freeze after request by IE

Hi!

  I've got some serious problems with the following configuration:

  Windows XP Prof. SP2
  Apache 2.2.3
  mod_proxy_http
  Tomcat 5.5.20
  Java Sun SDK 1.5.0_09

  After some requests by IE from any machine on the network all
  network connections on the server freeze. The only solution is to
  reboot the computer. Requests by Firefox or Opera work
  perfectly.

  The killing request seems to be answered by tomcat, but the response
  never reaches the client.

  I'm not sure if it is an apache, tomcat or connector problem nor
  how to debug it. I also tested with ajp connectors, different java,
  apache and tomcat versions. The problem remains. A new installation
  of XP didn't work either.

  My last guess is a configuration issue, but the same config with the
  same webapp works on a linux machine. (Just some JSPs with some
  simple Custom-Tags...)

  Well, these are the important parts of the config. (I can send the
  whole files too.)

  Does anybody have an idea how to debug this behaviour? Or did I make
  a serious mistake configuring the server?

TIA

  Martin


Apache: httpd.conf

NameVirtualHost *

<VirtualHost *>
    ServerAdmin webmaster@branch.eb.hv.devk.de
    DocumentRoot "K:/PROJEKTE/e-business/tomcat/sites/devk-xhtml/branches/devkneu/"
    ServerName branch.eb.hv.devk.de
    ServerAlias branch-sparda.eb.hv.devk.de branch-bahn.eb.hv.devk.de
    
    ErrorLog logs/branch.eb.hv.devk.de-error_log
    CustomLog logs/branch.eb.hv.devk.de-access_log common
    
    ExpiresActive on
    ExpiresDefault "now"


    RewriteEngine on
    RewriteLog logs/branch.eb.hv.devk.de-rewrite_log
    RewriteLogLevel 10
    
    RewriteRule ^(.+)http://branch\.eb\.hv\.devk\.de/.*;jsessionid(.*)$         $1;jsessionid$2         
    RewriteRule ^(.*)http://branch-sparda\.eb\.hv\.devk\.de/;jsessionid(.*)$            $1;jsessionid$2                 
    RewriteRule ^(.*)http://branch-bahn\.eb\.hv\.devk\.de/;jsessionid(.*)$              $1;jsessionid$2         

    RewriteCond %{HTTP_HOST}    ^branch\.eb\.hv\.devk\.de
    RewriteRule ^/$     /index.jsp

                RewriteRule ^/(.*)/$    /sumo/$1/
                RewriteRule ^/(.*)\.html$       /sumo/$1.html

    RewriteCond %{HTTP_HOST}    ^branch-sparda\.eb\.hv\.devk\.de
    RewriteRule ^/index.jsp     /index_sparda.jsp
    
    RewriteCond %{HTTP_HOST}    ^branch-sparda\.eb\.hv\.devk\.de
    RewriteRule ^/$     /index_sparda.jsp 
    
#    RewriteRule ^/index_sparda.jsp$    /index_sparda_gottesacker.jsp 

    RewriteCond %{HTTP_HOST}    ^branch-bahn\.eb\.hv\.devk\.de
    RewriteRule ^/index.jsp     /index_bahn.jsp 
    
    RewriteCond %{HTTP_HOST}    ^branch-bahn\.eb\.hv\.devk\.de
    RewriteRule ^/$     /index_bahn.jsp 

                RewriteCond %{QUERY_STRING}     linkpage=(.*\.jsp)
                RewriteRule ^/(bahn|devk|sparda)/servlet/maincontroller(;jsessionid=.{27}:-1)?$ %1?%{QUERY_STRING} [R]

                RewriteRule ^/(.*\.jsp)$        /ebus/$1?%{QUERY_STRING} [PT]

                SetEnv  proxy-sendcl true
                ProxyRequests Off
                ProxyPreserveHost       On
                ProxyBadHeader  Ignore
                Header append Cache-Control "public, must-revalidate"

#               ProxyPass /ebus/        ajp://127.0.0.1:8009/
                ProxyPass /ebus/        http://127.0.0.1:8080/ebus/

    
        <Directory "K:/PROJEKTE/e-business/tomcat/sites/devk-xhtml/branches/devkneu/">
#           Header append Cache-Control "public, must-revalidate"

                        AddDefaultCharset utf-8
        
            Options Indexes FollowSymLinks
            AllowOverride None
        
            Order allow,deny
            Allow from all      
            
        </Directory>
</VirtualHost>  

Tomcat: server.xml

<Service name="Catalina">
    <Connector port="8080" debug="true" />

    <!-- This is here for compatibility only, not required -->
    <Connector port="8009" protocol="AJP/1.3" address="localhost" 
                                         minProcessors="100" maxProcessors="300" debug="10" />

    <Engine name="Catalina" jvmRoute="tomcat" defaultHost="devk-xhtml.eb.hv.devk.de">

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase" />

      <Host name="branch.eb.hv.devk.de" appBase="K:/PROJEKTE/e-business/tomcat/sites/devk-xhtml/branches"
       unpackWARs="false" autoDeploy="false" deployOnStartup="false" deployXML="false" debug="true">
        <Alias>branch-sparda.eb.hv.devk.de</Alias>
        <Alias>branch-bahn.eb.hv.devk.de</Alias>


        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="branch.eb.hv.devk.de_access_log." suffix=".txt"
                 pattern="%t: From %a using %{User-Agent}i by %H, %m - %U?%q with Session %S in %D milis: %s" resolveHosts="false"/>

          <Context path="/ebus" docBase="devkneu" debug="true" cachingAllowed="false" />

      </Host>

    </Engine>
</Service>

Tomcat: web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    
<web-app>
        <filter>
                <filter-name>DebugFilter</filter-name>
                <filter-class>com.devk.ebus.common.web.filter.DebugFilter</filter-class>
        </filter>
  <filter-mapping> 
      <filter-name>DebugFilter</filter-name> 
      <url-pattern>/*</url-pattern> 
  </filter-mapping>     
        <taglib>
                <taglib-uri>http://www.devk.de/taglibs/ebusiness.tld</taglib-uri>
                <taglib-location>/META-INF/ebusiness.tld</taglib-location>
        </taglib>
        <taglib>
                <taglib-uri>http://www.devk.de/taglibs/vtptags.tld</taglib-uri>
                <taglib-location>/META-INF/vtptags.tld</taglib-location> 
        </taglib>
        <taglib>
                <taglib-uri>http://jakarta.apache.org/taglibs/core</taglib-uri>
                <taglib-location>/META-INF/c.tld</taglib-location> 
        </taglib>
</web-app>

  

  



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


Re: XP network connections freeze after request by IE

Posted by Martin Heiden <ma...@devk.de>.
Peter,

  I tested this in another configuration and it didn't work, but now I
  tested it again and it works. It seems to be an apache/connector
  issue.

  Thanks for the advice!

  Sometimes it's much easier than it seems...

Martin

am Dienstag, 17. Oktober 2006 um 12:56 schrieben Sie:

> Hi!

>   I've got some serious problems with the following configuration:

>   Windows XP Prof. SP2
>   Apache 2.2.3
>   mod_proxy_http
>   Tomcat 5.5.20
>   Java Sun SDK 1.5.0_09

>   After some requests by IE from any machine on the network all
>   network connections on the server freeze. The only solution is to
>   reboot the computer. Requests by Firefox or Opera work
>   perfectly.

>   The killing request seems to be answered by tomcat, but the response
>   never reaches the client.

>   I'm not sure if it is an apache, tomcat or connector problem nor
>   how to debug it. I also tested with ajp connectors, different java,
>   apache and tomcat versions. The problem remains. A new installation
>   of XP didn't work either.

>   My last guess is a configuration issue, but the same config with the
>   same webapp works on a linux machine. (Just some JSPs with some
>   simple Custom-Tags...)

>   Well, these are the important parts of the config. (I can send the
>   whole files too.)

>   Does anybody have an idea how to debug this behaviour? Or did I make
>   a serious mistake configuring the server?

> TIA

>   Martin


> Apache: httpd.conf

> NameVirtualHost *

> <VirtualHost *>
>     ServerAdmin webmaster@branch.eb.hv.devk.de
>     DocumentRoot
> "K:/PROJEKTE/e-business/tomcat/sites/devk-xhtml/branches/devkneu/"
>     ServerName branch.eb.hv.devk.de
>     ServerAlias branch-sparda.eb.hv.devk.de branch-bahn.eb.hv.devk.de
>     
>     ErrorLog logs/branch.eb.hv.devk.de-error_log
>     CustomLog logs/branch.eb.hv.devk.de-access_log common
>     
>     ExpiresActive on
>     ExpiresDefault "now"


>     RewriteEngine on
>     RewriteLog logs/branch.eb.hv.devk.de-rewrite_log
>     RewriteLogLevel 10
>     
>     RewriteRule
> ^(.+)http://branch\.eb\.hv\.devk\.de/.*;jsessionid(.*)$         $1;jsessionid$2
>     RewriteRule
> ^(.*)http://branch-sparda\.eb\.hv\.devk\.de/;jsessionid(.*)$         $1;jsessionid$2
>     RewriteRule
> ^(.*)http://branch-bahn\.eb\.hv\.devk\.de/;jsessionid(.*)$           $1;jsessionid$2

>     RewriteCond %{HTTP_HOST}    ^branch\.eb\.hv\.devk\.de
>     RewriteRule ^/$     /index.jsp

>                 RewriteRule ^/(.*)/$    /sumo/$1/
>                 RewriteRule ^/(.*)\.html$       /sumo/$1.html

>     RewriteCond %{HTTP_HOST}    ^branch-sparda\.eb\.hv\.devk\.de
>     RewriteRule ^/index.jsp     /index_sparda.jsp
>     
>     RewriteCond %{HTTP_HOST}    ^branch-sparda\.eb\.hv\.devk\.de
>     RewriteRule ^/$     /index_sparda.jsp 
>     
> #    RewriteRule ^/index_sparda.jsp$    /index_sparda_gottesacker.jsp 

>     RewriteCond %{HTTP_HOST}    ^branch-bahn\.eb\.hv\.devk\.de
>     RewriteRule ^/index.jsp     /index_bahn.jsp 
>     
>     RewriteCond %{HTTP_HOST}    ^branch-bahn\.eb\.hv\.devk\.de
>     RewriteRule ^/$     /index_bahn.jsp 

>                 RewriteCond %{QUERY_STRING}     linkpage=(.*\.jsp)
>                 RewriteRule
> ^/(bahn|devk|sparda)/servlet/maincontroller(;jsessionid=.{27}:-1)?$ %1?%{QUERY_STRING} [R]

>                 RewriteRule ^/(.*\.jsp)$        /ebus/$1?%{QUERY_STRING} [PT]

>                 SetEnv  proxy-sendcl true
>                 ProxyRequests Off
>                 ProxyPreserveHost       On
>                 ProxyBadHeader  Ignore
>                 Header append Cache-Control "public, must-revalidate"

> #               ProxyPass /ebus/        ajp://127.0.0.1:8009/
>                 ProxyPass /ebus/        http://127.0.0.1:8080/ebus/

>     
>         <Directory
> "K:/PROJEKTE/e-business/tomcat/sites/devk-xhtml/branches/devkneu/">
> #           Header append Cache-Control "public, must-revalidate"

>                         AddDefaultCharset utf-8
>         
>             Options Indexes FollowSymLinks
>             AllowOverride None
>         
>             Order allow,deny
>             Allow from all      
>             
>         </Directory>
> </VirtualHost>  

> Tomcat: server.xml

> <Service name="Catalina">
>     <Connector port="8080" debug="true" />

>     <!-- This is here for compatibility only, not required -->
>     <Connector port="8009" protocol="AJP/1.3" address="localhost" 
>                                          minProcessors="100" maxProcessors="300" debug="10" />

>     <Engine name="Catalina" jvmRoute="tomcat"
> defaultHost="devk-xhtml.eb.hv.devk.de">

>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>              resourceName="UserDatabase" />

>       <Host name="branch.eb.hv.devk.de"
> appBase="K:/PROJEKTE/e-business/tomcat/sites/devk-xhtml/branches"
>        unpackWARs="false" autoDeploy="false"
> deployOnStartup="false" deployXML="false" debug="true">
>         <Alias>branch-sparda.eb.hv.devk.de</Alias>
>         <Alias>branch-bahn.eb.hv.devk.de</Alias>


>         <Valve className="org.apache.catalina.valves.AccessLogValve"
>                  directory="logs" 
> prefix="branch.eb.hv.devk.de_access_log." suffix=".txt"
>                  pattern="%t: From %a using %{User-Agent}i by %H,
> %m - %U?%q with Session %S in %D milis: %s" resolveHosts="false"/>

>           <Context path="/ebus" docBase="devkneu" debug="true" cachingAllowed="false" />

>       </Host>

>     </Engine>
> </Service>

> Tomcat: web.xml
> <?xml version="1.0" encoding="ISO-8859-1"?>

> <!DOCTYPE web-app
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>     "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>     
> <web-app>
>         <filter>
>                 <filter-name>DebugFilter</filter-name>
>                
> <filter-class>com.devk.ebus.common.web.filter.DebugFilter</filter-class>
>         </filter>
>   <filter-mapping> 
>       <filter-name>DebugFilter</filter-name> 
>       <url-pattern>/*</url-pattern> 
>   </filter-mapping>     
>         <taglib>
>                
> <taglib-uri>http://www.devk.de/taglibs/ebusiness.tld</taglib-uri>
>                
> <taglib-location>/META-INF/ebusiness.tld</taglib-location>
>         </taglib>
>         <taglib>
>                
> <taglib-uri>http://www.devk.de/taglibs/vtptags.tld</taglib-uri>
>                
> <taglib-location>/META-INF/vtptags.tld</taglib-location> 
>         </taglib>
>         <taglib>
>                
> <taglib-uri>http://jakarta.apache.org/taglibs/core</taglib-uri>
>                 <taglib-location>/META-INF/c.tld</taglib-location> 
>         </taglib>
> </web-app>

>   

>   



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





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