Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 34098 invoked from network); 30 Sep 2003 22:45:39 -0000 Received: from unknown (HELO sw1.lex.lexmark.com) (192.146.101.70) by daedalus.apache.org with SMTP; 30 Sep 2003 22:45:39 -0000 Sensitivity: Subject: RE: Separate xml context snippet for web app causes it to be loaded twice To: "Tomcat Users List" From: dhay@lexmark.com Date: Tue, 30 Sep 2003 17:24:48 -0400 Message-ID: X-MIMETrack: Serialize by Router on smtp5b/Lex/Lexmark (Release 5.0.12 |February 13, 2003) at 09/30/2003 05:24:47 PM MIME-Version: 1.0 Content-type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hmmm...guess it needed 3 pairs of eyes!!! Problem is, on XP atleast, is seems that webapp gets installed as "kiosk" not "Kiosk" :-( Cheers, David "Shapira, Yoav" on 30/09/2003 04:30:46 PM Please respond to "Tomcat Users List" To: "Tomcat Users List" cc: Subject: RE: Separate xml context snippet for web app causes it to be loaded twice Howdy, It's not being deployed twice: two apps are being deployed, Kiosk and kiosk. That subtle difference is your problem. Make sure the context XML file has the same name as the docBase, it's case-sensitive. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: dhay@lexmark.com [mailto:dhay@lexmark.com] >Sent: Tuesday, September 30, 2003 3:49 PM >To: Tomcat Users List >Subject: Separate xml context snippet for web app causes it to be loaded >twice > > >Hi, > >We have a web app that requires a special classloader. We therefore placed >a separate xml file in the webapps directory, and placed inside it an xml >snippet containing the context for the webapp: > > > > > >as per instructions specified here: >http://jakarta.apache.org/tomcat/tomcat-4.1- >doc/config/host.html#Automatic%20Application%20Deployment > >Unfortunately this seems to cause the webapp ("Kiosk") to be deployed >twice. > >Can anyone explain why this is happening, please? (contents of >localhost.log and tomcat's server.xml is below). > >many thanks, > >David > > >localhost.log: >2003-09-30 13:37:47 HostConfig[localhost]: Deploying configuration >descriptor Kiosk.xml >2003-09-30 13:37:48 WebappLoader[/Kiosk]: Deploying class repositories to >work directory C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\work\Standalone\localhost\Kiosk >2003-09-30 13:37:48 WebappLoader[/Kiosk]: Deploy class files /WEB- >INF/classes to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\Kiosk\WEB-INF\classes >2003-09-30 13:37:48 WebappLoader[/Kiosk]: Deploy JAR /WEB-INF/lib/commons- >beanutils.jar to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\Kiosk\WEB-INF\lib\commons-beanutils.j ar >2003-09-30 13:37:48 WebappLoader[/Kiosk]: Deploy JAR /WEB-INF/lib/commons- >digester.jar to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\Kiosk\WEB-INF\lib\commons-digester.ja r >2003-09-30 13:37:48 WebappLoader[/Kiosk]: Deploy JAR /WEB-INF/lib/commons- >logging.jar to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\Kiosk\WEB-INF\lib\commons-logging.jar >2003-09-30 13:37:48 WebappLoader[/Kiosk]: Deploy JAR /WEB- >INF/lib/crimson.jar to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\Kiosk\WEB-INF\lib\crimson.jar >2003-09-30 13:37:48 WebappLoader[/Kiosk]: Deploy JAR /WEB-INF/lib/jaxp.jar >to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\Kiosk\WEB-INF\lib\jaxp.jar >2003-09-30 13:37:48 WebappLoader[/Kiosk]: Deploy JAR /WEB-INF/lib/jzlib.jar >to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\Kiosk\WEB-INF\lib\jzlib.jar >2003-09-30 13:37:48 WebappLoader[/Kiosk]: Deploy JAR /WEB-INF/lib/kiosk.jar >to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\Kiosk\WEB-INF\lib\kiosk.jar >2003-09-30 13:37:48 WebappLoader[/Kiosk]: Deploy JAR /WEB-INF/lib/log4j- >1.2.5.jar to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\Kiosk\WEB-INF\lib\log4j-1.2.5.jar >2003-09-30 13:37:48 WebappLoader[/Kiosk]: Deploy JAR /WEB- >INF/lib/struts.jar to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\Kiosk\WEB-INF\lib\struts.jar >2003-09-30 13:37:49 StandardManager[/Kiosk]: Seeding random number >generator class java.security.SecureRandom >2003-09-30 13:37:50 StandardManager[/Kiosk]: Seeding of random number >generator has been completed >2003-09-30 13:37:50 StandardWrapper[/Kiosk:default]: Loading container >servlet default >2003-09-30 13:37:50 StandardWrapper[/Kiosk:invoker]: Loading container >servlet invoker >2003-09-30 13:37:54 [2003-09-30 13:37:51,562] [INFO] >PropertyMessageResources - () - Initializing, >config='org.apache.struts.util.LocalStrings', >returnNull=true >[2003-09-30 13:37:51,562] [INFO] PropertyMessageResources - () - >Initializing, config='org.apache.struts.action.ActionResources', >returnNull=true >[2003-09-30 13:37:53,465] [INFO] PropertyMessageResources - () - >Initializing, config='prop.Label', returnNull=true > >2003-09-30 13:37:56 HostConfig[localhost]: Deploying web application >directory Common >2003-09-30 13:37:56 StandardHost[localhost]: Installing web application at >context path /Common from URL file:C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\Common >2003-09-30 13:37:56 WebappLoader[/Common]: Deploying class repositories to >work directory C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\work\Standalone\localhost\Common >2003-09-30 13:37:57 ContextConfig[/Common]: Missing application web.xml, >using defaults only >2003-09-30 13:37:57 StandardManager[/Common]: Seeding random number >generator class java.security.SecureRandom >2003-09-30 13:37:57 StandardManager[/Common]: Seeding of random number >generator has been completed >2003-09-30 13:37:57 StandardWrapper[/Common:default]: Loading container >servlet default >2003-09-30 13:37:57 StandardWrapper[/Common:invoker]: Loading container >servlet invoker >2003-09-30 13:37:57 HostConfig[localhost]: Deploying web application >directory kiosk >2003-09-30 13:37:57 StandardHost[localhost]: Installing web application at >context path /kiosk from URL file:C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\kiosk >2003-09-30 13:37:57 WebappLoader[/kiosk]: Deploying class repositories to >work directory C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\work\Standalone\localhost\kiosk >2003-09-30 13:37:57 WebappLoader[/kiosk]: Deploy class files /WEB- >INF/classes to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\kiosk\WEB-INF\classes >2003-09-30 13:37:57 WebappLoader[/kiosk]: Deploy JAR /WEB-INF/lib/commons- >beanutils.jar to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\kiosk\WEB-INF\lib\commons-beanutils.j ar >2003-09-30 13:37:57 WebappLoader[/kiosk]: Deploy JAR /WEB-INF/lib/commons- >digester.jar to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\kiosk\WEB-INF\lib\commons-digester.ja r >2003-09-30 13:37:57 WebappLoader[/kiosk]: Deploy JAR /WEB-INF/lib/commons- >logging.jar to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\kiosk\WEB-INF\lib\commons-logging.jar >2003-09-30 13:37:57 WebappLoader[/kiosk]: Deploy JAR /WEB- >INF/lib/crimson.jar to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\kiosk\WEB-INF\lib\crimson.jar >2003-09-30 13:37:57 WebappLoader[/kiosk]: Deploy JAR /WEB-INF/lib/jaxp.jar >to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\kiosk\WEB-INF\lib\jaxp.jar >2003-09-30 13:37:57 WebappLoader[/kiosk]: Deploy JAR /WEB-INF/lib/jzlib.jar >to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\kiosk\WEB-INF\lib\jzlib.jar >2003-09-30 13:37:57 WebappLoader[/kiosk]: Deploy JAR /WEB-INF/lib/kiosk.jar >to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\kiosk\WEB-INF\lib\kiosk.jar >2003-09-30 13:37:57 WebappLoader[/kiosk]: Deploy JAR /WEB-INF/lib/log4j- >1.2.5.jar to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\kiosk\WEB-INF\lib\log4j-1.2.5.jar >2003-09-30 13:37:57 WebappLoader[/kiosk]: Deploy JAR /WEB- >INF/lib/struts.jar to C:\Program Files\Lexmark\Document >Solutions\Services\tomcat\webapps\kiosk\WEB-INF\lib\struts.jar >2003-09-30 13:37:59 StandardManager[/kiosk]: Seeding random number >generator class java.security.SecureRandom >2003-09-30 13:37:59 StandardManager[/kiosk]: Seeding of random number >generator has been completed >2003-09-30 13:37:59 StandardWrapper[/kiosk:default]: Loading container >servlet default >2003-09-30 13:37:59 StandardWrapper[/kiosk:invoker]: Loading container >servlet invoker >2003-09-30 13:38:03 [2003-09-30 13:37:59,844] [INFO] >PropertyMessageResources - () - Initializing, >config='org.apache.struts.util.LocalStrings', >returnNull=true >[2003-09-30 13:37:59,844] [INFO] PropertyMessageResources - () - >Initializing, config='org.apache.struts.action.ActionResources', >returnNull=true >[2003-09-30 13:38:02,137] [INFO] PropertyMessageResources - () - >Initializing, config='prop.Label', returnNull=true > >server.xml: > > > > > > > > > > debug="0"/> > > > > > > > > > > port="8080" minProcessors="5" maxProcessors="75" > enableLookups="true" redirectPort="8443" > acceptCount="10" debug="0" connectionTimeout="60000"/> > > > > > > > > > > > > > > > > > > > > > > > > > prefix="catalina_log." suffix=".txt" > timestamp="true"/> > > > > > > > > > > > > > > > > > > > > > directory="logs" prefix="localhost_access_log." >suffix=".txt" > pattern="common"/> > > > directory="logs" prefix="localhost_log." suffix=".txt" > timestamp="true"/> > > > > > > > > > > > > > > > > > > port="8008" minProcessors="5" maxProcessors="75" > enableLookups="true" > acceptCount="10" debug="0"/> > > > prefix="apache_log." suffix=".txt" > timestamp="true"/> > > > > > > > > > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org