Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 14781 invoked from network); 7 Dec 2004 19:59:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Dec 2004 19:59:15 -0000 Received: (qmail 49266 invoked by uid 500); 7 Dec 2004 19:58:46 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 49247 invoked by uid 500); 7 Dec 2004 19:58:46 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 49224 invoked by uid 99); 7 Dec 2004 19:58:46 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jak-tomcat-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO main.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 07 Dec 2004 11:58:44 -0800 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CblTu-0000G6-00 for ; Tue, 07 Dec 2004 20:58:42 +0100 Received: from adsl-68-124-220-213.dsl.sndg02.pacbell.net ([68.124.220.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Dec 2004 20:58:42 +0100 Received: from ian by adsl-68-124-220-213.dsl.sndg02.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Dec 2004 20:58:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-user@jakarta.apache.org From: Ian Brandt Subject: Re: Won't deploy to root context even with Context path=""? Date: Tue, 07 Dec 2004 11:58:37 -0800 Lines: 134 Message-ID: References: <9C5166762F311146951505C6790A9CF80229C80F@US-VS1.corp.mpi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adsl-68-124-220-213.dsl.sndg02.pacbell.net User-Agent: Mozilla Thunderbird 0.9 (Macintosh/20041103) X-Accept-Language: en-us, en In-Reply-To: Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N More info and a solution: I tried 5.5.4 with similar results. I found that I could hit my app at http://localhost:8080/, and use database connectivity, but no matter what I still always got that error at startup. On a tip from the author of AppFuse I: mv $CATALINA_HOME/webapps/myapp $CATALINA_HOME/webapps/ROOT mv $CATALINA_HOME/conf/Catalina/localhost/myapp.xml $CATALINA_HOME/conf/Catalina/localhost/ROOT.xml Edited ROOT.xml setting docBase="ROOT" (path="" on 5.0.18, or removed completely on 5.5.4). That did the trick. Regards, Ian Ian Brandt wrote: > > Hi Yoav, > > Thanks for the reply. I changed my server.xml as follows: > > unpackWARs="true" autoDeploy="false" > xmlValidation="false" xmlNamespaceAware="false"> > > I restarted, but no change: > > Dec 7, 2004 7:56:37 AM org.apache.catalina.core.StandardHostDeployer > install > INFO: Installing web application at context path /myapp from URL > file:/Applications/jakarta-tomcat-5.0.28/webapps/myapp > > > I searched but could not find any other Host declarations, nor any > instances of 'autoDeploy' in my conf directory. I tried setting every > instance of debug in server.xml to "9", but upon restart I'm not getting > any more output in logs/catalina.out than I did with debug="0". I tried > removing server.xml altogether to see if was being ignored for some > reason, but then tomcat failed to start. > > Anything else I could try? > > Thanks Again, > > Ian > > > Shapira, Yoav wrote: > >> Hi, >> Because you've probably left autoDeploy on for your Host. >> >> Yoav Shapira http://www.yoavshapira.com >> >> >> >>> -----Original Message----- >>> From: news [mailto:news@sea.gmane.org] On Behalf Of Ian Brandt >>> Sent: Monday, December 06, 2004 7:14 PM >>> To: tomcat-user@jakarta.apache.org >>> Subject: Won't deploy to root context even with Context path=""? >>> >>> >>> Hi, >>> >>> I'm running 5.0.28. I'm using the default >> >> >> $CATALINA_HOME/conf/server.xml. >> >>> I have removed the ROOT and example webapps leaving only admin, >> >> >> manager >> >>> (in server/webapps), and myapp (expanded into $CATALINA_HOME/webapps). >> >> >> In >> >>> $CATALINA_HOME/conf/Catalina/localhost/myapp.xml I have specified my >>> Context path="". When I start the server I get: >>> >>> INFO: Installing web application at context path /myapp from... >>> >>> I then also get the apparently infamous: >>> >>> [myapp] WARN [main] SettingsFactory.buildSettings(96) | Could not >> >> >> obtain >> >>> connection metadata >>> org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver >> >> >> of >> >>> class '' for connect URL 'null' >>> >>> When I change the Context path back to ="myapp" in myapp.xml the JDBC >>> error goes away, so I'm assuming there's some sort of context mismatch >>> when I specify "" but Tomcat deploys to /myapp anyway. >>> >>> So my question is why might Tomcat deploy my webapp to the context path >>> /myapp as opposed to the root context when I specify path=""? >>> >>> Thanks! >>> >>> Ian >>> >>> >>> --------------------------------------------------------------------- >>> 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