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 8F91717D65 for ; Sun, 27 Sep 2015 13:14:56 +0000 (UTC) Received: (qmail 47338 invoked by uid 500); 27 Sep 2015 13:14:50 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 47297 invoked by uid 500); 27 Sep 2015 13:14:50 -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 47285 invoked by uid 99); 27 Sep 2015 13:14:50 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Sep 2015 13:14:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 943EFC040B for ; Sun, 27 Sep 2015 13:14:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id p8ZukshTEOaU for ; Sun, 27 Sep 2015 13:14:40 +0000 (UTC) Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 6117D202AF for ; Sun, 27 Sep 2015 13:14:40 +0000 (UTC) Received: by oibi136 with SMTP id i136so78856985oib.3 for ; Sun, 27 Sep 2015 06:14:34 -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=FDzke5r5B7udbtsTiksmN1mrsZAgqR9IdHxMHTEubXk=; b=z5md4eYFegfWWS9moBTM4ILhgO6dGdgcw3MhQJpdiKpd63mqYnRvovYsaXMAsmFsm6 SHjFv0QVWRGNV/ynLE+UtxI+c/A798XlS/Fpy+PTOlTCYIjf5hR2aluczEMIzwgGyhWw KhvrSu+I+xrLGUAox3vDLph8GJuDu64mc2GPb9oNc7oJlsailIYLdWCuwYzbLcb1uwVA eNzuRWWQ21EHr3vWuOPKfqiLzoluI5XyavF+OrkNruW5ZlrYcJB3X+9DU2o2c0ENKmrf bedKv9JrmkoY354nYzDXXa+9fzq2xy6T7fD+v+lD8hfX5GGUQywCxVHvaFvJBSdbWPfD N7WA== MIME-Version: 1.0 X-Received: by 10.202.175.88 with SMTP id y85mr7780200oie.22.1443359673998; Sun, 27 Sep 2015 06:14:33 -0700 (PDT) Received: by 10.202.86.144 with HTTP; Sun, 27 Sep 2015 06:14:33 -0700 (PDT) In-Reply-To: <5607E4FC.4010603@christopherschultz.net> References: <56070E8B.5050405@christopherschultz.net> <5607E4FC.4010603@christopherschultz.net> Date: Sun, 27 Sep 2015 09:14:33 -0400 Message-ID: Subject: Re: [S2] Trouble getting started From: Thomas Sattler To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=001a113ce4c8a6e4cf0520ba5ca8 --001a113ce4c8a6e4cf0520ba5ca8 Content-Type: text/plain; charset=UTF-8 try struts2builder.sourceforge.net On Sunday, September 27, 2015, Christopher Schultz < chris@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Yaragalla, > > On 9/27/15 1:38 AM, Yaragalla Muralidhar wrote: > > Try the following. > > > > > > > *name="success"* >/WEB-INF/list.jsp > > No change. Note that I see nothing in the TRACE log for Struts (or, > really, anything) when I make the request to > http://localhost:8080/list.action. It's almost as if the Filter does > not run at all. > > What's the default value of 's "name" attribute? It's not > defined in the DTD: > > > name CDATA #IMPLIED > type CDATA #IMPLIED > > > > Thanks, > - -chris > > > On Sun, Sep 27, 2015 at 3:00 AM, Christopher Schultz < > > chris@christopherschultz.net > wrote: > > > > All, > > > > I'm working on a fresh project and using Struts 2 for the first > > time. I've been using Struts 1 for more than 10 years and I > > generally know my way around web applications. > > > > I just can't seem to get a fairly simple setup working. I'm > > intending to use XML-based configuration and not annotation-based > > configuration. > > > > Here's what I've got: > > > > * Struts 2.3.24.1 * Tomcat 8.0.24 * A simple web app > > > > My web.xml looks like this: Struts 2 action > > filter. struts2 > > > > org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAnd > Ex > > > > > ecuteFilter > > actionPackages > > my.package.business > > > > struts2 > > /* > > > > My struts.xml looks like this: > > > > > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" > > "http://struts.apache.org/dtds/struts-2.0.dtd"> > > > > > > > > > > > > /WEB-INF/list.jsp > > > > I have a class, my.package.business.ListAction which has a > > > > public String execute() > > > > method. I return "success" from this method (unless an exception > > is thrown). During startup, I can see that Struts/XWork is being > > initialize d: > > > > 26-Sep-2015 17:19:32.613 FINE [localhost-startStop-1] > > com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.debu > g > > > > > Loaded > > list in 'default' package:{ActionConfig //list > > (my.package.business.ListAction) - action - > > file:/path/to/deploy/webapps/ROOT/WEB-INF/classes/struts.xml: > > 9:68} > > > > When I try to access http://localhost:8080/list.action, I get a > > 404 response with nothing in the logs (except the access log: > > request to /list.action resulted in a 404). > > > > I'm sure I'm missing something super simple, here. Can anyone offer > > a suggestion? > > > > Thanks, -chris > >> > >> --------------------------------------------------------------------- > >> > >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >> For additional commands, e-mail: user-help@struts.apache.org > > >> > >> > > > -----BEGIN PGP SIGNATURE----- > Comment: GPGTools - http://gpgtools.org > > iQIcBAEBCAAGBQJWB+T8AAoJEBzwKT+lPKRYvhIP/RTBeHWCeF9X30cOcOUZsWJG > /fYwTOVy3MFCBpdPuiOKwvB0WoketuobsV0T3Qm3qj6Frgi6gfBmeSZtXSV3Osug > RiYj64ZDeVI5UJE8axrp5uNyDySggBcgRxivL5OHkf5xjFGcTxdpVjGhF20/iUm8 > xJbkcRn6oXTKhC0xC7JxWAf2K8XI5se+BQAbl9aSPGacDHnseDasfFNsNiaWtAUF > 7aMg5Q5FNIS3EQP/1JMQwH5i1o6WDtBhTk2bjGXn31bw7bVG1Ab1ce+HIfB2V1uG > WDt7NuIicl0JiBswvHKeidDfs8LbeR3UyJC543fW2iC1MPKSstHK2voSf/u7jwNC > s1bULHC4ssupMcIh9HuVZWFecxfKO6/eSiAY2SHZ6SHHvaQAWvbjyQ+4+9rSnAwB > /tUIFqfhlR1ngPBdOVE4EnGctcck+TVFLso0MovDSXcbpIRyWUni66Ik4u8KFbpB > Y3HQONn0OGJfC6XymduwO1tyrMLrvKDA07KDpLrtRxHsr/gjSBD4rOswwepBpGUc > NfKhRWzLPPCnJQxHp/2Z5m4NPmW/hCyltonbQ007ho0LBt+OysisRxjRUAaKkx/Z > sxKjVbWoPWQ+l1wzGIeCh12e38dOhXUWXNj5g44TFYobAz3WCAmWdd7SPt4vr1If > ERHlhVfBfRI3YFuYxk17 > =Uji8 > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > > -- Sent from my iPhone --001a113ce4c8a6e4cf0520ba5ca8--