aspose file tools*
The moose likes Struts and the fly likes roles in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "roles in struts" Watch "roles in struts" New topic
Author

roles in struts

Shankar Narayana
Ranch Hand

Joined: Jan 08, 2003
Posts: 134
I am getting a strange error when I use the jsp page name as
addroles.jsp
. The error I am getting is

javax.servlet.ServletException: org/apache/jsp/jsp/addroles_jsp (wrong name: org/apache/jsp/jsp/addRoles_jsp)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.NoClassDefFoundError: org/apache/jsp/jsp/addroles_jsp (wrong name: org/apache/jsp/jsp/addRoles_jsp)
java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:509)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
java.net.URLClassLoader.access$100(URLClassLoader.java:54)
java.net.URLClassLoader$1.run(URLClassLoader.java:193)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:186)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:192)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:110)
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:583)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:177)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)




when I change the file name everthing is working fine. Kindly let me know if it is anything to do with the roles in ActionMapping?

thnks Shankar.


"Failure is not when you fall down; its only when you fail to get up again."
 
wood burning stoves
 
subject: roles in struts
 
Similar Threads
struts app cannot run under Tomcat5
Missing message for key "app.title"
Unable to initialize TldLocationsCache: zip file closed
java.lang.ClassNotFoundException: javax.servlet.jsp.SkipPageException getting when i run the jsp fil
struts problem