Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6558811260 for ; Sat, 5 Jul 2014 14:09:12 +0000 (UTC) Received: (qmail 86208 invoked by uid 500); 5 Jul 2014 14:09:10 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 86166 invoked by uid 500); 5 Jul 2014 14:09:10 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 86153 invoked by uid 99); 5 Jul 2014 14:09:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2014 14:09:10 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jayachandra1805@gmail.com designates 209.85.220.50 as permitted sender) Received: from [209.85.220.50] (HELO mail-pa0-f50.google.com) (209.85.220.50) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jul 2014 14:09:07 +0000 Received: by mail-pa0-f50.google.com with SMTP id bj1so3194999pad.9 for ; Sat, 05 Jul 2014 07:08:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qNWqVf4P94Zd8SGfoYVArmZzmthk5qCZjY/CMqo8wzg=; b=kokEj5rBpokli4IEwkW/oU3RR/LrQrjgxZNJbHuTeWL25LzPBKXUkLdyEkUwkaZFkh 06iebCJilF8r2TVSLnUvtdmxetC1CRN87mfVvZCCilQruo6ZJe++a/Z+LlRJEVDHo5F9 JVxHIhley6byxsdZlu1cCNvZD2sx+i/yJJbKWW1wcDp9sIDYBPeCbD2IDRwsqDMUJ6XD T+b+ZdVkcVDyPXiRyWb9qqFJl+q3az1FgIn3/EaSK2h1YJVX/4btQ/SJ1iUoUXSsVymv CM/ztbrWnKnGQP3cVElBnCKRHsOSWmlZBNkk4GS7mkLMOfY6O7UYot/SRD4dDd/og4UA blTg== MIME-Version: 1.0 X-Received: by 10.70.88.205 with SMTP id bi13mr16388592pdb.43.1404569322807; Sat, 05 Jul 2014 07:08:42 -0700 (PDT) Received: by 10.70.80.35 with HTTP; Sat, 5 Jul 2014 07:08:42 -0700 (PDT) In-Reply-To: <53B7E9A3.8010909@jjajava.com> References: <53B7E9A3.8010909@jjajava.com> Date: Sat, 5 Jul 2014 19:38:42 +0530 Message-ID: Subject: Re: Hello World does not work. From: jayachandra B To: Struts Users Mailing List , jim_anderson@jjajava.com Content-Type: multipart/alternative; boundary=001a11c258128c680904fd72c7f3 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c258128c680904fd72c7f3 Content-Type: text/plain; charset=UTF-8 do you have index.jsp in your webContent folder and did you configure struts2 filter in web.xml? On Sat, Jul 5, 2014 at 5:33 PM, Jim Anderon wrote: > > Hello All, > > I am an experienced programmer, but inexperienced in web programming and a > total newbie to struts. > Struts looks like it will be very useful to my web programming so I have > ventured into the tutorials to > start learning how to use it. I ran the first tutorial 'basic_struts' > successfully. Next, I am trying to > run the 'Hello World' tutorial, but it is failing. I could use some > suggestions on what may be wrong and > some suggestions on debug methodology when using struts. Or at least > pointers on where to looking > for debugging techniques. I am trying to do some reading to teach myself, > but I'm floundering at this > point. > > I'm running crunchbang Linux, using firefox 30.0, which is close to the > latest edition. By the way, I'm > aware of the firefox 'web console' but a beginner with that tool so I have > not taken advantage of it so far. > I'm running the tomcat6 server on my localhost. > > I have read the tutorial for 'Hello World' from: > > * *file:///usr/share/struts/struts-2.3.16.3/docs/hello- > world-using-struts-2.html > > I have read each step in that tutorial and verified that the source code > explained in the tutorial > is in my sand box. I ran 'mvn clean project' and got a successful build. > Then then copied the > hello_world.war file to: > > * * /var/lib/tomcat6/webapps/hello_world > * > *enter the URL: > > http://localhost:8080/hello_world/index.action > > in the address box on Firefox and got the following error from tomcat: > > > ----------------Start Error Window------------------------ > ------------------------------------------------------------ > ------------------------------------------------------------------------- > > HTTP Status 404 - /hello_world/index.action > ------------------------------------------------------------------------ > *type* Status report > *message* _/hello_world/index.action_ > *description* _The requested resource (/hello_world/index.action) is not > available._ > ------------------------------------------------------------------------ > Apache Tomcat/6.0.35 > > -------------------End Error Window ------------------------------ > ------------------------------------------------------------ > ---------------------------------------------------------------- > > > My other webapps run ok out of /var/lib/tomcat6/webapps, so I at least > know my environment is set up > correctly, at least for the most part. When I check directory permissions > from the /var/lib/tomcat6/webapps/hello_world > directory, I get: > > % ls -ld . * > drwxr-xr-x 2 jimA jimA 4096 Jul 2 09:15 . > -rw-r--r-- 1 jimA jimA 3991999 Jul 4 15:29 hello_world.war > > I thought about attaching the hello_world.war file, but because it is > 4M-bytes, I decided not to. If someone would like > to see it, I can provide it or a portion of it. > > I feel like there is an obvious error in my set up, but I cannot see it. > Can anyone offer some suggestions? > > Regards, > Jim Anderson > > > > > > > > -- Thanks and Regards Jayachandra --001a11c258128c680904fd72c7f3--