Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP problem with tomcat: can't find set method  RSS feed

Eckhard Beisswenger
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I receive an error in a jsp application when it's running with tomcat, though the error doesn't occur with WebLogic.
The JSP uses a bean called "porto.tachart.DBConnect" which contains a property called "authentication" and the corresponding set method:
public void setAuthentication(HttpServletRequest request) {
authentication = checkAuth(request);
// the checkAuth method works fine
However, tomcat won't find the set method for "authentication" (though other set methods which are called earlier are found). tomcat throws this error message:
org.apache.jasper.JasperException: Can't find a method to write property 'authentication' in a bean of type 'porto.tachart.DBConnect'
at org.apache.jasper.runtime.JspRuntimeLibrary.handleSetProperty(Unknown Source)
at index_4._jspService(, Compiled Code)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(, Compiled Code)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at Source)
at org.apache.tomcat.util.threads.ThreadPool$ Source)
at, Compiled Code)
I'll be glad for any help. Many thanks in advance,
Eckhard Beisswenger
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!