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 AF90E985F for ; Tue, 6 Dec 2011 17:10:01 +0000 (UTC) Received: (qmail 11832 invoked by uid 500); 6 Dec 2011 17:09:58 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 11768 invoked by uid 500); 6 Dec 2011 17:09:57 -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 11759 invoked by uid 99); 6 Dec 2011 17:09:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 17:09:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pid@pidster.com designates 209.85.220.173 as permitted sender) Received: from [209.85.220.173] (HELO mail-vx0-f173.google.com) (209.85.220.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 17:09:53 +0000 Received: by vcbfl11 with SMTP id fl11so6454874vcb.18 for ; Tue, 06 Dec 2011 09:09:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pidster.com; s=google; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :content-type; bh=9VkcfubV3slDkxlC1tlC/6+a3nAqVq17EASn5S7cOpg=; b=tAws1lzbOlhVYT3maVXTTZMp60dH7ZWH/X9GJ4hli6feSxTozzlUbEjI0rWaolOnEx 7SLh5GWdtv5YXZ/Te10gqxCG4sYx7rkP669HUORgJjKRuMCjm9FFy1t+hyupo4Y18bWo l8DhJo8DdhvQ3CMCZ4jhBYsPVm32g+mzvIU0s= Received: by 10.52.73.99 with SMTP id k3mr8432562vdv.13.1323191372498; Tue, 06 Dec 2011 09:09:32 -0800 (PST) References: <1322991122.52711.YahooMailNeo@web36707.mail.mud.yahoo.com> <4EDB4E52.1010902@pidster.com> <1323002011.23976.YahooMailNeo@web36702.mail.mud.yahoo.com> <4EDB9016.5000109@ice-sa.com> <1323015407.27163.YahooMailNeo@web36704.mail.mud.yahoo.com> <-2732874280388044273@unknownmsgid> <1323031852.54369.YahooMailNeo@web36707.mail.mud.yahoo.com> <4EDBF471.3020004@ice-sa.com> <1323039381.88709.YahooMailNeo@web36701.mail.mud.yahoo.com> <4EDC13B5.6090809@ice-sa.com> <1323186720.92861.YahooMailNeo@web36705.mail.mud.yahoo.com> From: "Pid *" In-Reply-To: <1323186720.92861.YahooMailNeo@web36705.mail.mud.yahoo.com> Mime-Version: 1.0 (1.0) Date: Tue, 6 Dec 2011 16:42:40 +0000 Message-ID: <7711260971943225404@unknownmsgid> Subject: Re: MVC or Model2 with Tomcat To: Tomcat Users List Content-Type: text/plain; charset=UTF-8 On 6 Dec 2011, at 15:52, Blaxton wrote: > > I have added the host directive to server.xml and moved appexmp1 contents to ROOT directory > and now I can access www.mydomain.com/index.jsp with no problem, > however now the servlets are not working. > I can access jsp files, but no servlets, I get "The requested resource is not available" message. > > as with following direction: > http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html#context.xml_-_approach__1 > > I have created /Catalina_BASE/appexmp1/ROOT/META-INF/context.xml Ok, please remove the comments from your server.xml and post it inline, here. > I have placed a HelloWorld.class file in /Catalina_BASE/appname/ROOT/WEB-INF/classes/com/mydomain > but can't access the class through mydomain.com/app1/HelloWorld How have you defined the Servlet in ROOT/WEB-INF/web.xml? > tried following context file variations but didn't work: > > > Never do the above. > > Or that. The 'path' attribute is not applicable here - in any case it's wrong. Remove the path and docBase attributes from the ROOT.xml file. p > it seems to me , context file is not being read after adding the host directive to server.xml > either when it is in /Catalina_BASE/conf/Catalina/local host or now that it is in > /Catalina_BASE/appexmp1/ROOT/META-INF/context.xml > > thanks for help --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org