jQuery in Action, 3rd edition
The moose likes Struts and the fly likes JSP error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JSP error" Watch "JSP error" New topic

JSP error

Pam Theod

Joined: Apr 19, 2006
Posts: 14
I have an application in Tomcat and I am moving it to weblogic. I created the war file and deployed in war file. When I loginto the application, I see this error message.

Error in using tag library uri='/tags/struts-html' prefix='html': The Tag class 'org.apache.struts.taglib.html.CheckboxTag' has no setter method corresponding to TLD declared attribute 'errorKey', (JSP 1.1 spec, 5.4.1)

<%@ taglib uri="/tags/struts-html" prefix="html" %>

I checked struts.jar, it has CheckboxTag class.

I am not able to figure out where the problem.

Any insight to this is appreciated.

Thanks in advance.

P pro
Pam Theod

Joined: Apr 19, 2006
Posts: 14
I got past this error. I had different version of the tld. When I copied the correct version and deployed, I dont see this error.

I am seeing a different error message. Here is the message

at org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:855)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at com.comcast.maintenancetool.ui.NpsMaintActionServlet.process(Unknown Source)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

Any help on this is appreciated.

P pro
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This error appears to be happening when Struts tries to instantiate the RequestProcessor. Did you write your own class to extend the Struts RequestProcessor? If so, this error may be related to that class not extending the correct class. Are you using tiles? If you haven't defined things correctly, that could cause the problem as well.

Consultant, Sima Solutions
Pam Theod

Joined: Apr 19, 2006
Posts: 14
I did not write any class that extends RequestProcessor. I added this code snippet in my action servlet

protected synchronized RequestProcessor getRequestProcessor (ModuleConfig config)
throws ServletException {
String key = Globals.REQUEST_PROCESSOR_KEY + config.getPrefix();
Object proc = getServletContext().getAttribute(key);

return (proc instanceof RequestProcessor) ? (RequestProcessor) proc : null;

since this was also giving me error I removed it from the action class.

Yes, I am using tiles.

I have this in my struts-config.xml


I have included struts-tiles.tld and tiles-defs.xml in my WEB-INF along with other struts related files.

Am I missing anything?

Any help on this is appreciated.

I agree. Here's the link: http://aspose.com/file-tools
subject: JSP error
It's not a secret anymore!