From users-return-217612-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Thu Sep 30 17:34:14 2010 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 10327 invoked from network); 30 Sep 2010 17:34:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Sep 2010 17:34:13 -0000 Received: (qmail 62896 invoked by uid 500); 30 Sep 2010 17:34:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 62832 invoked by uid 500); 30 Sep 2010 17:34:09 -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 62823 invoked by uid 99); 30 Sep 2010 17:34:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Sep 2010 17:34:09 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 30 Sep 2010 17:34:07 +0000 Received: (qmail 10190 invoked by uid 99); 30 Sep 2010 17:33:45 -0000 Received: from localhost.apache.org (HELO [192.168.23.9]) (127.0.0.1) (smtp-auth username markt, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Sep 2010 17:33:45 +0000 Message-ID: <4CA4C9F2.1050407@apache.org> Date: Thu, 30 Sep 2010 18:33:38 +0100 From: Mark Thomas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Embedded tomcat problem References: <4CA4C2C3.2050909@claborn.net> In-Reply-To: <4CA4C2C3.2050909@claborn.net> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 30/09/2010 18:02, Mitch Claborn wrote: > Tomcat 6.0.29 > sun java 1.6.0_20 > Ubuntu 10.04 64 bit > > Seems like this should be simple, but can't get it to work. I'm trying > to run a simple embedded Tomcat inside my program. Code for starting > the Tomcat is below. It seems to start OK, based on logging messages, > but whenever I try to access a page > (http://localhost:8000/TestWeb1/index.jsp) using it, I get the standard > Tomcat 404 error page with the message "The requested resource () is not > available.". The page shows up fine in a normal, standalone Tomcat. > Any help is appreciated. Been working at this for a while now. At a guess, you'll need to define the JSP servlet in web.xml if you want to handle JSPs. Same goes for the default servlet and static content. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org