Can you prove me the action registration.RegistrationTypeAction as well ?

-----Original Message-----
From: Asad Habib [mailto:[EMAIL PROTECTED] 
Sent: 12 October 2005 12:42
To: Raghupathy,Gurumoorthy
Cc: [EMAIL PROTECTED]; 'Tomcat Users List'
Subject: RE: Illegal Field Name Error


Hello, below I have provided the struts configuration file:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>

<struts-config>
    <global-forwards>
       <forward name="home" path="/home.jsp" />
    </global-forwards>

    <action-mappings>
       <action path="/registrationType"
type="registration.RegistrationTypeAction">
          <forward name="missing-registration-type"
path="/missingRegistrationType.html" />
       </action>
    </action-mappings>
</struts-config>

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:[EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to