You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ja...@almery.com on 2000/06/27 09:28:57 UTC

known bug?

I deployed and ran the struts-example application from the
jakarta-struts-20000625.tar.gz nightly build on the Tomcat 3.1
release.  When I click "cancel" on the registration page, I get 
this url
http://gark.almery.com:8080/struts-example/saveRegistration.do
with the following html source:

--

<html>
<head>
<title>MailReader Demonstration Application - Logon</title>
</head>
<body bgcolor="white">



<form name="logonForm" method="POST" action="logon.do;jsessionid=To1011mC9736202641807397At">
<table border="0" width="100%">

  <tr>
    <th align="right">
      Username:
    </th>
    <td align="left">
      <input type="text" name="username" maxlength="16" size="16" value="">
    </td>
  </tr>

  <tr>
    <th align="right">
      Password:
    </th>
    <td align="left">
      <input type="password" name="password" maxlength="16" size="16" value="">
    </td>
  </tr>

  <tr>
    <td align="right">
      <input type="submit" name="submit" value="Submit">
    </td>
    <td align="left">
      <input type="reset" name="reset" value="Reset">
    </td>
  </tr>

</table>

</form>
<script language="JavaScript">

  <!--
    document.logonForm.username.focus()
  // -->

</script>


</body>
</html>
<h1>Error: 500</h1>
<h2>Location: /struts-example/logon.jsp</h2><b>Internal Servlet Error:</b><br>
<pre>
javax.servlet.ServletException: bean user  not found within scope 
        at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java, Compiled Code)
        at _0002fmainMenu_0002ejspmainMenu_jsp_0._jspService(_0002fmainMenu_0002ejspmainMenu_jsp_0.java, Compiled Code)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
        at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java, Compiled Code)
        at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
        at org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.java, Compiled Code)
        at org.apache.struts.action.ActionServlet.processActionInstance(ActionServlet.java, Compiled Code)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java, Compiled Code)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java, Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code)
        at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code)
        at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code)
        at java.lang.Thread.run(Thread.java, Compiled Code)
</pre>
<b>Root cause:</b>
<pre>
java.lang.InstantiationException: bean user  not found within scope 
        at _0002fmainMenu_0002ejspmainMenu_jsp_0._jspService(_0002fmainMenu_0002ejspmainMenu_jsp_0.java, Compiled Code)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
        at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java, Compiled Code)
        at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, Compiled Code)
        at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
        at org.apache.tomcat.core.RequestDispatcherImpl.forward(RequestDispatcherImpl.java, Compiled Code)
        at org.apache.struts.action.ActionServlet.processActionInstance(ActionServlet.java, Compiled Code)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java, Compiled Code)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java, Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code)
        at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code)
        at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code)
        at java.lang.Thread.run(Thread.java, Compiled Code)
</pre>

--

Is this a known bug?

Cheers,

Jay
--
Jay Doane | ja@almery.com