• 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Error message for JSP&Bean deployment

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
Everybody's invited. Even this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic