tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anto Paul <antop...@gmail.com>
Subject Re: Illegal Field Name Error
Date Wed, 12 Oct 2005 05:40:35 GMT
On 10/10/05, Asad Habib <ahabib@engin.umich.edu> wrote:
> 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:161)
> 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(WebappClassLoader.java:1629)
>
> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
>
> org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)
>
> org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
>
> org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.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:161)
> note The full stack trace of the root cause is available in the Apache
> Tomcat/5.5.9 logs.
>
> Apache Tomcat/5.5.9
>

Delete the generated class files of your application and compile it.
Also check struts.jar that it is not corrupted.

--
rgds
Anto Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message