Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 99F8EDBEC for ; Thu, 18 Oct 2012 14:08:43 +0000 (UTC) Received: (qmail 4184 invoked by uid 500); 18 Oct 2012 14:08:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 4064 invoked by uid 500); 18 Oct 2012 14:08:39 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 4023 invoked by uid 99); 18 Oct 2012 14:08:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2012 14:08:38 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.214.45] (HELO mail-bk0-f45.google.com) (209.85.214.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2012 14:08:31 +0000 Received: by mail-bk0-f45.google.com with SMTP id jf3so4113527bkc.18 for ; Thu, 18 Oct 2012 07:08:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=user-agent:date:subject:from:to:message-id:thread-topic :mime-version:content-type:x-gm-message-state; bh=gPom0Db1UJgqvE7gqWW3IOxX4985kHi1i4S/1VKtAas=; b=dbAcb8PIpU0sQ5r1bO/t6pqit3ilcQq4iHSpBlHulgwtunY8m+b7ynmb2YbfAWHkVb FGrtH2HpKqV/9X47YbZgiFse54uhkkdzESYnC59pMicJd8kw2vyT9km72cNjsyVaDxrt eZESsQYgBZcJewGyfZtvGV5lYgXtIWHO5O+OsgiXr6rnUwkEP1gvt6YRq+AS3GhW79H0 DavBnF2CI6AHZHxEywMqw/gxG3XXfIiRf8JYBlpAkBORVgplizfP3g1L4++s+EePcAbb N5w8zpSqPM7re+u51R95d2aMhyPwmbRDrUNddoCGvc/x2kvbRTA1vXt2Qk++ZRVifLQQ DtdA== Received: by 10.204.11.141 with SMTP id t13mr6337585bkt.65.1350569289895; Thu, 18 Oct 2012 07:08:09 -0700 (PDT) Received: from [62.242.222.65] (slt-vpn-62-242-222-65.eng.tdc.net. [62.242.222.65]) by mx.google.com with ESMTPS id e3sm15042042bks.7.2012.10.18.07.08.08 (version=SSLv3 cipher=OTHER); Thu, 18 Oct 2012 07:08:09 -0700 (PDT) User-Agent: Microsoft-MacOutlook/14.2.3.120616 Date: Thu, 18 Oct 2012 16:08:03 +0200 Subject: Context fails to load during start of Tomcat, and stalls tomcat startup From: Steffen Schumacher To: Message-ID: Thread-Topic: Context fails to load during start of Tomcat, and stalls tomcat startup Mime-version: 1.0 Content-type: multipart/alternative; boundary="B_3433421288_17575678" X-Gm-Message-State: ALoCoQlMTa1KPk+lX7UjORogk41xAnJB980kvXurJ3Y8pngCOPj4+t+pm+B4uqf67oWaoA0v+TuX X-Virus-Checked: Checked by ClamAV on apache.org --B_3433421288_17575678 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Hi! Running apache-tomcat 7.0.26 on FreeBSD 8.1@vmware, I've spotted a really curious issue. We are hosting ~8 different contexts on 4 servers all matching the above setup, and in normal operation we have no beef at all, except when the server guys needs to reboot the servers for whatever reason. When this happens, the a specific context prevents tomcat from starting up = =AD it simply stops doing anything after these lines: server17# bin/catalina.sh run Using CATALINA_BASE: /usr/local/apache-tomcat-7.0 Using CATALINA_HOME: /usr/local/apache-tomcat-7.0 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0/temp Using JRE_HOME: /usr/local Using CLASSPATH: =20 /usr/local/apache-tomcat-7.0/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0= / bin/tomcat-juli.jar Oct 18, 2012 1:06:03 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:=20 /usr/local/diablo-jdk1.6.0/jre/lib/i386/server:/usr/local/diablo-jdk1.6.0/j= r e/lib/i386:/usr/local/diablo-jdk1.6.0/jre/../lib/i386:/usr/java/packages/li= b /i386:/lib:/usr/lib:/usr/local/lib Oct 18, 2012 1:06:03 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8180"] Oct 18, 2012 1:06:03 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8443"] Oct 18, 2012 1:06:04 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] Oct 18, 2012 1:06:04 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1488 ms Oct 18, 2012 1:06:04 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Oct 18, 2012 1:06:04 PM org.apache.catalina.core.StandardEngine startInternalINFO: Starting Servlet Engine: Apache Tomcat/7.0.26 Oct 18, 2012 1:06:04 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive /usr/local/apache-tomcat-7.0/webapps/XXXXXXX##10.4b2.war Oct 18, 2012 1:06:04 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive /usr/local/apache-tomcat-7.0/webapps/YYYYYYYY.war Oct 18, 2012 1:06:12 PM com.sun.xml.ws.server.MonitorBase createRoot INFO: Metro monitoring rootname successfully set to: com.sun.metro:pp=3D/,type=3DWSEndpoint,name=3D/YYYYYYYY-RequestHandler-RequestHan= d lerPort Oct 18, 2012 1:06:12 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate INFO: WSSERVLET14: JAX-WS servlet initializing Oct 18, 2012 1:06:12 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized INFO: WSSERVLET12: JAX-WS context listener initializing Oct 18, 2012 1:06:12 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized INFO: WSSERVLET12: JAX-WS context listener initializing Oct 18, 2012 1:06:12 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive /usr/local/apache-tomcat-7.0/webapps/ZZZZZZZZ##10.4b1.war Oct 18, 2012 1:06:15 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized INFO: WSSERVLET12: JAX-WS context listener initializing And nothing happens now, even if I leave it for 1+ hours Now the ZZZZZZ(culprit) context is a perhaps not ultra-simple, as it is bot= h a SOAP service (using metro) and also a SOAP client, but beyond that I wouldn't call it that complex. I can then remove the .war file and folder from webapps, and it will come u= p just nicely, and I can deploy the context via the html interface with now complaints. At this point, when the ZZZZZZZ context is deployed and running and I'll be good until the next reboot/restart of tomcat. The issue occurs regardless if I only have the context folder in webapps, o= r I also have the .war file present. I've used most of the day searching the web for solutions, but it is kinda hard when there is no indication of what is stalling things.. Could this be a tomcat issue? It is kinda hard to setup other (specific) versions of tomcat to test this, and I've tried 7.0.28, but its a completel= y separate environment with other versions of java etc, but there I run into other issues related to JAX/Metro, so thats not much help as it is. Any help is greatly appreciated! /Steffen I guess it could be the same underlying cause but why --B_3433421288_17575678--