Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 94643 invoked from network); 15 Oct 2005 08:38:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Oct 2005 08:38:31 -0000 Received: (qmail 24564 invoked by uid 500); 15 Oct 2005 08:38:13 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 24483 invoked by uid 500); 15 Oct 2005 08:38:12 -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 24472 invoked by uid 500); 15 Oct 2005 08:38:12 -0000 Delivered-To: apmail-jakarta-tomcat-user@jakarta.apache.org Received: (qmail 24401 invoked by uid 99); 15 Oct 2005 08:38:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Oct 2005 01:38:10 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [141.213.74.22] (HELO lapis.engin.umich.edu) (141.213.74.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Oct 2005 01:38:11 -0700 Received: from localhost (localhost [127.0.0.1]) by lapis.engin.umich.edu (8.12.10/8.12.10) with ESMTP id j9F8bjF5026565; Sat, 15 Oct 2005 04:37:45 -0400 (EDT) Date: Sat, 15 Oct 2005 04:37:45 -0400 (EDT) From: Asad Habib To: "Raghupathy,Gurumoorthy" cc: antopaul@gmail.com, "'Tomcat Users List'" Subject: RE: Illegal Field Name Error In-Reply-To: Message-ID: References: <847757D7E2CCE74FA4D1862A91CF0C3F07D9FA30@ukkwd705nts.kwd.uk.fid-intl.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thank you for all your input, everyone. This problem has been resolved. Apparently, struts.jar was not being built previously and so some of the referenced classes were not defined. Thanks, once again. - Asad On Sat, 15 Oct 2005, Asad Habib wrote: > Hello. Here is the code for registration.RegistrationTypeAction > > package registration; > > import javax.servlet.http.*; > import org.apache.struts.action.*; > > public class RegistrationTypeAction extends Action { > public ActionForward execute (ActionMapping mapping, > ActionForm form, > HttpServletRequest request, > HttpServletResponse response) > throws Exception { > String patronType = request.getParameter("patronType"); > if (patronType == null) { > return (mapping.findForward("missing-registration-type")); > } > } > } > > Any help would be appreciated. Thanks. > > - Asad > > > On Wed, 12 Oct 2005, Raghupathy,Gurumoorthy wrote: > >> Can you prove me the action registration.RegistrationTypeAction as well ? >> >> >> -----Original Message----- >> From: Asad Habib [mailto:ahabib@engin.umich.edu] >> Sent: 12 October 2005 12:42 >> To: Raghupathy,Gurumoorthy >> Cc: antopaul@gmail.com; 'Tomcat Users List' >> Subject: RE: Illegal Field Name Error >> >> >> Hello, below I have provided the struts configuration file: >> >> >> > "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" >> "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd"> >> >> >> >> >> >> >> >> > type="registration.RegistrationTypeAction"> >> > path="/missingRegistrationType.html" /> >> >> >> >> >> I am new to Struts so perhaps I overlooked something. Also, Anto, thanks >> for your input. I flushed the .class files and recompiled but that did not >> fix the problem. I also tried with a fresh copy of struts.jar. Your help >> would be greatly appreciated. Thanks. >> >> - Asad >> >> >> On Tue, 11 Oct 2005, Raghupathy,Gurumoorthy wrote: >> >>> Cant you send the struts-config.xml ? >>> >>> -----Original Message----- >>> From: Asad Habib [mailto:ahabib@engin.umich.edu] >>> Sent: 11 October 2005 14:59 >>> To: tomcat-user@jakarta.apache.org >>> Subject: Illegal Field Name Error >>> >>> >>> I am receiving the following error when trying to run a Struts >> application. >>> I >>> checked and it seems that I do have all of the appropriate jar files >>> installed. >>> But for some reason, the Action class is not being recognized. Any help >>> would >>> be greatly appreciated. Thank you. >>> >>> - Asad >>> >>> >>> HTTP Status 500 - >>> >>> type Exception report >>> >>> message >>> >>> description The server encountered an internal error () that prevented it >>> from >>> fulfilling this request. >>> >>> exception >>> >>> javax.servlet.ServletException: Illegal field name "has inconsistent >>> hierarchy" >>> in class >>> registration/RegistrationTypeAction >>> >>> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293) >>> >>> >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16 >>> 1) >>> root cause >>> >>> java.lang.ClassFormatError: Illegal field name "has inconsistent >> hierarchy" >>> in >>> class >>> registration/RegistrationTypeAction >>> java.lang.ClassLoader.defineClass1(Native Method) >>> java.lang.ClassLoader.defineClass(ClassLoader.java:620) >>> >>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >>> >>> >> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo >>> ader.java:1629) >>> >>> >> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav >>> a:850) >>> >>> >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav >>> a:1299) >>> >>> >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav >>> a:1181) >>> >>> >> org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117) >>> >>> >> org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:14 >>> 3) >>> >>> >> org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcess >>> or.java:280) >>> >>> >> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218) >>> >>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) >>> >>> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802) >>> sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source) >>> >>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl >>> .java:25) >>> java.lang.reflect.Method.invoke(Method.java:585) >>> >>> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) >>> java.security.AccessController.doPrivileged(Native Method) >>> javax.security.auth.Subject.doAsPrivileged(Subject.java:517) >>> >>> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) >>> >>> >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16 >>> 1) >>> note The full stack trace of the root cause is available in the Apache >>> Tomcat/5.5.9 logs. >>> >>> Apache Tomcat/5.5.9 >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org