• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stratup Exception

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

when i try to deploy my application ..i get exception like below..

please can anyone tell me the reason

thanks & regards,
seetharaman
-------------------------------------------------------
2008-04-03 10:27:47 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException
at org.apache.coyote.tomcat5.CoyoteResponseFacade.sendRedirect(CoyoteResponseFacade.java:352)
at org.apache.jsp.zemployee_jsp._jspService(zemployee_jsp.java:114)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:619)

 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you've got a problem with the zemployee.jsp in your workspace. From the look of it, chances are that you might be trying to do some operation with the response object when it's current state doesn't allow you to do so.

If you could post the code for that JSP, it would help.
 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be easy to answer your question if you could post your executable code. I assume the response might have been committed
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

this is my zemployee.jsp

--------------------------------------


[BPSouther: Added code tags]
[ April 03, 2008: Message edited by: Ben Souther ]
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

this is my zemployee.jsp

--------------------------------------

<%--
Document : zemployee,
Created on : Mar 31, 2008,
Company : Technoforte Software,
Author : Seetharaman.
--%>


<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>

<jsp:include page="/header.jsp"/>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
<head>
<html:base />

<link rel="stylesheet" type="text/css" href="./styles/global.css">

<title>LMS-technoforte software--bangalore</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="./styles/global.css">
<!-- start employee link -->
<script type="text/javascript">
function employeeAction(){
window.location="http://192.168.254.95/das";
}
</script>
<!-- end employee link -->

</head>

<%
if (session.getAttribute("username") == null) {

response.sendRedirect("timeout.jsp");
}

%>

<body>




<div id="content">

</div>


<div id="left">

<center>
<fieldset >
<p> Hello ~ <%=session.getAttribute("username")%> <p>
</fieldset>
</center>


<br>
 
<A href="javascript:NewWindow=
window.open('./zaddemployee.jsp','NewWindow',
'width=1000,height=600,resizable=no,top=50,left=10,scrollbars=yes');
NewWindow.focus();">
ADD
</A>
<br><br>
 
<A href="javascript:NewWindow=
window.open('./zviewemployee.jsp','NewWindow',
'width=1000,height=600,resizable=no,top=50,left=10');NewWindow.focus();">
VIEW
</A>
<br><br>
 
<A href="javascript:NewWindow=
window.open('./zreleiveemployee.jsp','NewWindow','width=1000,height=600,resizable=no,top=50,left=10');NewWindow.focus();">
RELIEVE
</A>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br>
  <html:link action="/logoutt">LOGOUT</html:link>


</div>
</body>
<jsp:include page="/footer.jsp"/>
</html:html>
 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the problem lies in the area where you write:


You should try and check for this condition before this JSP is loaded. Try removing this code block and let us know if it helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic