Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 47760 invoked from network); 14 Dec 2004 08:49:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Dec 2004 08:49:15 -0000 Received: (qmail 99946 invoked by uid 500); 14 Dec 2004 08:47:24 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 99842 invoked by uid 500); 14 Dec 2004 08:47:22 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 99771 invoked by uid 99); 14 Dec 2004 08:47:21 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=FROM_ENDS_IN_NUMS,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of antonypaul24@gmail.com designates 64.233.184.196 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.196) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 14 Dec 2004 00:47:18 -0800 Received: by wproxy.gmail.com with SMTP id 71so1209288wra for ; Tue, 14 Dec 2004 00:47:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=dl4QtWdKdysAyjrp5lFMVxTz4i26F+3ol2TmGWVlmxX5eAhBuvjt5jGiWso4494ubxWNWKggxzirTZa6Hd/3/z5XrAF1Vv1AT3i2Lf4SdebHcX2K8EY5+ueYSwmZI4z3AzdPdKlLhZCTBhooUnrNPLtafKFLHoT13gNLhtQMYAU= Received: by 10.54.40.1 with SMTP id n1mr2731869wrn; Tue, 14 Dec 2004 00:47:12 -0800 (PST) Received: by 10.54.31.50 with HTTP; Tue, 14 Dec 2004 00:47:12 -0800 (PST) Message-ID: <2989532e04121400471c03687c@mail.gmail.com> Date: Tue, 14 Dec 2004 14:17:12 +0530 From: Antony Paul Reply-To: Antony Paul To: Struts Users Mailing List Subject: Re: Problem with starting the samplecode-urgent help In-Reply-To: <000001c4e19d$38bafc70$6401a8c0@bhutkarLaptop> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <41BE00E4.5030304@frro.utn.edu.ar> <000001c4e19d$38bafc70$6401a8c0@bhutkarLaptop> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The error says that class strutsTutorial.UserRegistrationAction is not found. Check whether class is there in WEB-INF/classes directroty rgds Antony Paul On Mon, 13 Dec 2004 21:24:39 -0800, S.B. wrote: > No, it still doesn't work. I am copying the error I get when I give: > http://localhost:8080/strutsTutorial/userRegistration.do >=20 > Can you tellme exactly where you are saying to change this? > Also, I think it's the tilesprocessor request. I am not using tiles just > default. Is default requestprocessor? > If so, what do I add to the struts-config.xml? StrutsConsole is not > giving any errors. > ------------here's the output I get: >=20 > INFO: Jk running ID=3D0 time=3D0/200 > config=3DC:\open_source\jakarta-tomcat-4.1.30\co > nf\jk2.properties > Dec 13, 2004 9:19:09 PM org.apache.struts.tiles.TilesRequestProcessor > initDefini > tionsMapping > INFO: Tiles definition factory found for request processor ''. > Dec 13, 2004 9:19:09 PM org.apache.struts.action.RequestProcessor > processMapping >=20 > SEVERE: Invalid path /UserRegistration was requested > Dec 13, 2004 9:19:18 PM org.apache.struts.action.RequestProcessor > processActionC > reate > SEVERE: No action instance for path /userRegistration could be created > java.lang.ClassNotFoundException: strutsTutorial.UserRegistrationAction > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa > der.java:1443) > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa > der.java:1289) > at > org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav > a:207) > at > org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils. > java:231) > at > org.apache.struts.action.RequestProcessor.processActionCreate(Request > Processor.java:326) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja > -------------------------------------------------- >=20 > -----Original Message----- > From: Sebasti=E1n Gorgo [mailto:sgorgo@frro.utn.edu.ar] > Sent: Monday, December 13, 2004 12:52 PM > To: Struts Users Mailing List > Subject: Re: Problem with starting the samplecode-urgent help >=20 > You must change "strutsTutorial.UserRegistrationAction" to > "StrutsTutorial.UserRegistrationAction". > Its case-sensitive. >=20 > S.B. wrote: > > I have a created a subclass of Action, called UserRegistrationAction: > > package StrutsTutorial; import javax.servlet.http.HttpServletRequest; > > import javax.servlet.http.HttpServletResponse; > > > > import org.apache.struts.action.Action; > > import org.apache.struts.action.ActionForm; > > import org.apache.struts.action.ActionForward; > > import org.apache.struts.action.ActionMapping; > > public class UserRegistrationAction extends Action{ > > public ActionForward execute( > > ActionMapping mapping, > > ActionForm form, > > HttpServletRequest request, > > HttpServletResponse response) > > throws Exception{ > > > > return mapping.findForward("success"); > > } > > } > > > > -------- > > I have following struts-config file: (i have added the last action > > mapping > type=3D"strutsTutorial.UserRegistrationAction" > > parameter=3D"/pages/regSuccess.jsp"> > > > path=3D"/pages/strutsTutorial/regSuccess.jsp" /> > > > > ) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > type=3D"org.apache.struts.actions.ForwardAction" > > parameter=3D"/pages/Welcome.jsp" /> > > > > > > > > > type=3D"strutsTutorial.UserRegistrationAction" > > parameter=3D"/pages/regSuccess.jsp"> > > > > path=3D"/pages/strutsTutorial/regSuccess.jsp" > > /> > > > > > > > > ---------- > > The jsp file is just like hello world jsp. > > I have UserRegistrationAction.class in the directory structure at: > > C:\....\webapps\strutsTutorial\WEB-INF\classes\StrutsTutorial\UserRegi > > st > > rationAction.class > > Ant is ok. Building ok. Deployed war on tomcat 4.1. but- > > ----------- > > What's the problem? When I give : > > http://localhost:8080/strutsTutorial/UserRegistration.do it gives me > > error: > > > > Status report > > > > message No action instance for path /UserRegistration could be created > > > > description The server encountered an internal error (No action > > instance for path /UserRegistration could be created) that prevented > > it from fulfilling this request. > > =3D-------------- > > Following is command line messages: > > ------------------------------------- > > SEVERE: No action instance for path /UserRegistration could be created > > java.lang.ClassNotFoundException: > strutsTutorial.UserRegistrationAction > > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa > > der.java:1443) > > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa > > der.java:1289) > > at > > org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav > > a:207) > > at > > org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils. > > java:231) > > at > > org.apache.struts.action.RequestProcessor.processActionCreate(Request > > Processor.java:326) > > at > > org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja > > va:268) > > at > > org.apache.struts.action.ActionServlet.process(ActionServlet.java:148 > > 2) > > at > > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > > icationFilterChain.java:247) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > > ilterChain.java:193) > > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > > alve.java:256) > > at > > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex > > t.invokeNext(StandardPipeline.java:643) > > at > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > > For additional commands, e-mail: user-help@struts.apache.org > > > > > > . > > >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org