• 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

Error message for JSP&Bean deployment

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks to Raghav and Jason,I still have the problem,here is the error message when the link to JSP page is clicked in browser:
---------------
Error: 500
Location: /examples/jsp/lbm/registerJSP.jsp
Internal Servlet Error:
java.lang.IllegalStateException: Response has already been committed
at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:157)
at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
------------------
while on the tomcat console in command prompt the error is:
java.lang.NoClassDefFoundError

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you might have two problems here.
The NoClass error, seems to point that either your JSP references a bean whose class is not in the web-inf/classes folder.
The response is already committed error occurs frequently if
you have <jsp:include page in your linked JSP, you cannt set headers, redirect or forward if you have used <jsp:include becuase the flush attribute must be set to "true"
if you can replace <jsp:include with <%@ include instead it will fix that problem
 
Mike Han
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Glenn Wearen:
I think you might have two problems here.
The NoClass error, seems to point that either your JSP references a bean whose class is not in the web-inf/classes folder.
The response is already committed error occurs frequently if
you have <jsp:include page in your linked JSP, you cannt set headers, redirect or forward if you have used <jsp:include becuase the flush attribute must be set to "true"
if you can replace <jsp:include with <%@ include instead it will fix that problem


Thank you, Glenn
I checked my code, I did use <%@ includ rather than <jsp:include.After I put my program on the remote tomcat server, it works well(I got the error message on local server).I can't explain it, but anyway,it works.
Thank you for your help.

Mike
 
Do you want ants? Because that's how you get ants. And a tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic