0 Replies Latest reply on May 11, 2002 3:45 AM by 3004

    Re: [SunONE-JATO] ND to JATO Conversion

    3004

      Bobby,
      This is a common "JATO newbie" issue. You are trying to invoke the page
      via the JSP directly. All requests to a JATO app must go through the
      module servlet (the front controller as per the Front Controller design
      pattern it is based on). This is not unlike ND where all requests must
      go through the Project object, which is the front controller in the ND
      world.

      See iPlanet-JATO-Tips tip #0010 (or message #12) - here's the link to
      that tip: http://groups.yahoo.com/group/iPlanet-JATO-Tips/message/12

      craig


      Bobby Nair wrote:
      Hi,

      I am new to JATO..so sorry if I am missing something...

      I tried to convert a prototype of our application. A simple 2 page ND app. One
      .spg displays a list of Departments from a database. Once a Department is
      choosen and if you press 'Submit', A new page appears with the list of
      employees in that Dept.
      >
      We then migrated this application into JATO using the mgration tool. Packaged
      the WAR files. Then opened the WebSPhere Studio. Here we created a New Web
      Project and then imported the WAR file into this project. Now after compiling
      the project files when I run the First JSP page (ie the Department Selection
      Page) which does not need any parameters and stuff..and is logically supposed
      to be the start page the following Error appears..
      >
      After reading this Exception we tried to invoke it thru a servlet by doing a
      response.sendRedirect but the same error continues to appear..
      Error page exceptionThe server cannot use the error page specified for your
      application to handle the Original Exception printed below. Please see the
      Error Page Exception below for a description of the problem with the specified
      error page.
      >
      >
      Original Exception:
      Error Message: The request context is null - this page must be accessed
      through a servlet
      Error Code: 500
      Target Servlet: null
      Error Stack:
      javax.servlet.jsp.JspException: The request context is null - this page must
      be accessed through a servlet
      at
      com.iplanet.jato.taglib.UseViewBeanTag.doStartTag(UseViewBeanTag.java:110)
      at
      May_00030_00037Test.ConversionSample.EmployeeList.pgDeptSelect_jsp_4._jspService\
      (pgDeptSelect.jsp :4)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at
      org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:2\
      86)
      at
      org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
      at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at
      com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.jav\
      a:827)
      at
      com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleSer\
      vlet.java:159)
      at
      com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.ja\
      va:286)
      at
      com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServ\
      let.java:106)
      at
      com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
      at
      com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager\
      .java:1012)
      at
      com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.j\
      ava:913)
      at
      com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAp\
      pRequestDispatcher.java:499)
      at
      com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDisp\
      atcher.java:278)
      at
      com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispa\
      tcher.java:105)
      at
      com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67)
      at
      com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java\
      :123)
      at
      com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvoca\
      tion.java:67)
      at
      com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestP\
      rocessor.java:122)
      at
      com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.jav\
      a:315)
      at
      com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:6\
      0)
      at
      com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242)
      at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)




      Error Page Exception:
      Error Message: JSPG0113E: JSP file "C:\Program Files\IBM\Application Developer
      Trial Edition\workspace\May07Test\webApplication\error.jsp (The system cannot
      find the file specified)" not found
      Error Code: 404
      Target Servlet: JSP 1.1 Processor
      Error Stack:
      com.ibm.servlet.engine.webapp.WebAppErrorReport: JSPG0113E: JSP file
      "C:\Program Files\IBM\Application Developer Trial
      Edition\workspace\May07Test\webApplication\error.jsp (The system cannot find
      the file specified)" not found
      at
      com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispatche\
      rResponse.java:97)
      at
      org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:2\
      96)
      at
      org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
      at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at
      com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.jav\
      a:827)
      at
      com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleSer\
      vlet.java:159)
      at
      com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.ja\
      va:286)
      at
      com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServ\
      let.java:106)
      at
      com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
      at
      com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager\
      .java:1012)
      at
      com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.j\
      ava:913)
      at
      com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAp\
      pRequestDispatcher.java:499)
      at
      com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDisp\
      atcher.java:278)
      at
      com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.include(WebAppRequestDispa\
      tcher.java:111)
      at com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:620)
      at com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:546)
      at
      com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:92)
      at
      com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java\
      :123)
      at
      com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvoca\
      tion.java:67)
      at
      com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestP\
      rocessor.java:122)
      at
      com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.jav\
      a:315)
      at
      com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:6\
      0)
      at
      com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242)
      at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)





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

      To download the latest version of JATO, please visit:
      http://www.sun.com/software/download/developer/5102.html

      For more information about JATO, please visit:
      http://developer.iplanet.com/tech/appserver/framework/index.jsp