• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP problem with tomcat: can't find set method

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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(index_4.java, Compiled Code)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, 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 org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java, Compiled Code)
I'll be glad for any help. Many thanks in advance,
Eckhard Beisswenger
 
reply
    Bookmark Topic Watch Topic
  • New Topic