• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

JSP error

Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Pam Theod
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'm just a poor boy, I need no sympathy, because I'm easy come, easy go, little high, little low, little ad
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic