Tomcat Error: Requested Resource is not Available.

I'm working on a Struts project, which involves working w/ JSP pages, Tomcat and Java classes.
I keep receiving the following error whenever I click on a link on my main JSP page. My Servlet's name is StrutsGame, which is defined in web.xml
HTTP Status 404 - Servlet StrutsGame is not available
type Status report
message Servlet StrutsGame is not available
description The requested resource (Servlet StrutsGame is not available) is not available.
Apache Tomcat/5.5.20Note that I do not get this problem when I enter the main jsp, although this is under the same servlet name.
My main jsp page is called DisplayMainMenu.jsp, which contains links to GetAddInfo.jsp, GetDeleteInfo.jsp, GetEditName.jsp and DisplayGames.jsp.
I receive the problem discussed above when I click on GetAddInfo.jsp.
Here's how my web.xml looks like. Please help out!
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
  <servlet>
    <servlet-name>StrutsGame</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
     <init-param>
      <param-name>application</param-name>
      <param-value>StrutsGame</param-value>
    </init-param>
     <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    </servlet>
  <servlet-mapping>
    <servlet-name>StrutsGame</servlet-name>
    <url-pattern>/do/*</url-pattern>
  </servlet-mapping>
    <session-config id="timeout">     
     <session-timeout>600</session-timeout>
    </session-config>     
  <welcome-file-list>
    <welcome-file>jsp/DisplayMainMenu.jsp</welcome-file>
  </welcome-file-list>
  <taglib>
    <taglib-uri>struts/bean-el</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean-el.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>struts/html-el</taglib-uri>
    <taglib-location>/WEB-INF/struts-html-el.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>struts/logic-el</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic-el.tld</taglib-location>
  </taglib>
</web-app>

make this sample web.xml as your reference:
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
  <description>Empty web.xml file for Web Application</description>
  <servlet>
    <servlet-name>SampleServlet</servlet-name>
    <servlet-class>com.sample.SampleServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>MyServlets</servlet-name>
    <servlet-class>myServlet.MyServlets</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>myServlets</servlet-name>
    <servlet-class>com.myapp.myServlets</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>MyServlet</servlet-name>
    <servlet-class>mypackage5.MyServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>FetchDataServlet</servlet-name>
    <servlet-class>com.myapp.FetchDataServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>ReportServlet</servlet-name>
    <servlet-class>com.jubabes.ReportServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>MyServlets</servlet-name>
    <url-pattern>/myservlets</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>MyServlet</servlet-name>
    <url-pattern>/myservlet</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>FetchDataServlet</servlet-name>
    <url-pattern>/fetchdataservlet</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>ReportServlet</servlet-name>
    <url-pattern>/reportservlet</url-pattern>
  </servlet-mapping>
  <session-config>
    <session-timeout>35</session-timeout>
  </session-config>
  <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
  </mime-mapping>
</web-app>

Similar Messages

  • "Requested Resource is not available" error

    Dear Sir,
    I am getting started with jstl. I am getting the error "Requested Resource is not available". Its HTTP status is 404. Please help me out of this problem.
    sanjayfocus

    Sir?
    Most likely something is wrong in the configuration.
    Which version of JSTL are you using? JSTL 1.0.x , JSTL 1.1.x or JSTL 1.2.x ?
    Which container and what is the version of the container?
    Example of a container : Tomcat 5.5.x
    I'm asking the above questions because the configuration is different depending on the version you have.

  • [TOMCAT] [SERVLET] : The requested resource () is not available.

    Hi!! I'm looking for an answer to my problem, and I'm going to explain what I mean.
    I've created a .jar named yuhuuTunnel.jar that has the following structure:
    yuhuuTunnel.jar:
    --> web (contains the servlets)
          --> *.class
          --> HelloWorldServlet.class
    --> META-INF
          --> MANIFEST.MF
    --> SimpleClient.classThe code of HelloWorldServlet.java is this:
        package web;
        import java.io.IOException;
        import java.io.PrintWriter;
        import javax.servlet.http.HttpServlet;
        import javax.servlet.http.HttpServletResponse;
        import javax.servlet.http.HttpServletRequest;
        import javax.servlet.ServletException;
        import javax.servlet.ServletConfig;
        public class HelloWorldServlet extends HttpServlet {
            public void init(ServletConfig config) throws ServletException {
                super.init(config);
            public void doGet( HttpServletRequest request, HttpServletResponse response )
                    throws ServletException, IOException {
                doPost(request, response);
            public void doPost( HttpServletRequest request, HttpServletResponse response)
                    throws ServletException, IOException {
                response.setContentType("text/html");
                PrintWriter out = response.getWriter();
                out.println("<html>");
                out.println("<body>");
                out.println("<body bgcolor=\"white\">");
                out.println("<h1>Yuhuu Servlet!</h1>");
                out.println("</body>");
                out.println("</html>");
        }then, using a .war file (created with ANT), I've created into /../tomcat/webapps/ a directory call yuhuuTunnel that has this structure:
        /webapps/
              --> yuhuuTunnel
                    --> WEB-INF
                            --> web.xml
                            --> lib
                                 --> yuhuuTunnel.jar
                    --> META-INF
                            --> MANIFEST.MF
                                 --> yuhuuTunnel.jar
                    --> index.htmlThe content of web.xml is the following:
        <?xml version="1.0" encoding="ISO-8859-1"?>
        <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
        <web-app>
            <!-- Action Servlet Configuration -->
            <servlet>
                 <servlet-name>HelloWorld</servlet-name>
                 <servlet-class>web.HelloWorldServlet</servlet-class>
                 <load-on-startup>0</load-on-startup>
            </servlet>
            <servlet-mapping>
                 <servlet-name>HelloWorld</servlet-name>
                 <url-pattern>HelloWorld</url-pattern>
            </servlet-mapping>
        </web-app>Tomcat works correctly ( http://localhost:8080 return me the page of tomcat ) but when I try to use the HelloWoldServlet typing http://localhost:8080/yuhuuTunnel/HelloWorld into a browser, this one returns me the HTTP Status 404 - The requested resource () is not available.
    What is wrong? The address that I type into the browser or there's an error into web.xml?
    Something interesting: If I type
    http://localhost:8080/yuhuuTunnel/HelloWorld
    the message given back is: "The requested resource () is not available."
    but if I type
    http://localhost:8080/HelloWorld the message is different:
    "The requested resource (/HelloWorld) is not available."

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <!-- Action Servlet Configuration -->
    <servlet>
             <servlet-name>HelloWorld</servlet-name>
             <servlet-class>web.HelloWorldServlet</servlet-class>
             <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
             <servlet-name>HelloWorld</servlet-name>
             <url-pattern>HelloWorld</url-pattern>
    </servlet-mapping>
    </web-app>Please change the servlet url pattern from
    <url-pattern>HelloWorld</url-pattern>to
    <url-pattern>/HelloWorld</url-pattern>in servlet mappings
    REGARDS,
    RaHuL

  • DMS BP giving 'requested resource is not available' error

    Hello, smart KM people 
    I'm having a problem with our DMS business package in our EP6 SP16 portal.  I configured the DMS repository manager successfully.. and the Document Explorer workset is functional and I'm able to navigate through the folder structure and see the documents listed that are located in the DMS.  However, the problem comes in when I click on one of the documents to view it.  When I click on the document, I get a "404 - The requested resource is not available" error.
    What would be the cause of this?  Permissions seem to be set correctly... I'm able to navigate through the folder structure and see the list of documents.  If I access the DMS through SAPGUI, I'm able to view the documents without a problem.  Has anyone had this problem in the past, or have any hints about what configuration to troubleshoot?
    Thanks in advance for the help!
    Cheers,
    Fallon

    Hello Samta -
    I followed your steps and am still receiving the same error, so it must not be a problem with the logon ticket.  And when I went to the Component Monitor, the DMS Repository Manager looked just fine.
    Julian, here's the stack trace I found when viewing the source of the 404 error:
            com.sapportals.wcm.protocol.webdav.server.WDServletException: resource not available
         at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.setContentLocation(WDGetHandler.java:756)
         at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.internalHandle(WDGetHandler.java:495)
         at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.handle(WDGetHandler.java:253)
         at com.sapportals.wcm.protocol.webdav.server.WDServlet.doGet(WDServlet.java:777)
         at com.sapportals.wcm.protocol.webdav.server.WDServlet.service(WDServlet.java:458)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:331)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.sapportals.portal.prt.core.broker.ServletComponentItem$ServletWrapperComponent.doContent(ServletComponentItem.java:110)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java(Compiled Code))
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java(Compiled Code))
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java(Compiled Code))
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java(Compiled Code))
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java(Compiled Code))
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java(Compiled Code))
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)
         at java.security.AccessController.doPrivileged1(Native Method)
         at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java(Compiled Code))
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Inlined Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java(Compiled Code))
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java(Inlined Compiled Code))
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java(Compiled Code))
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
         at java.security.AccessController.doPrivileged1(Native Method)
         at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
    Any hints from this?  We keep running up against brick walls with this problem.
    Thanks for your help!

  • Error after Installing PDK -  (404 The requested resource is not available)

    Hi
    I recently installed my PDK over my existing Portal 6.0 using SDM Tool. I downloaded PDK_6.0.14.0_BusinessPackage from SDN. I deployed pdkcontent6.0.14.0.SCA file using the SDM Tool. It installed successfully. But when i go and check the links under 'Portal Content Development ' , it gives me a 404 - The requested resource is not available.
    Please help out.
    Regards,
    Murali.

    Hi All,
    I am also unable to deploy pdkcontent6.0.14.0.sca completely. I get the exception below
    ===========================================================================
    Deployment started Thu Jun 22 11:01:34 IST 2006
    ===========================================================================
    Starting Deployment of TutWD_KMBrowser
    Finished with warnings: development component 'TutWD_KMBrowser'/'local'/'LOKAL'/'0.2005.11.09.09.51.44', grouped by software component 'pdk-content'/'com.sap'/'SAP AG'/'1000.630.0.1.0.20051130181343':
    Caught exception during application startup from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while starting application local/TutWD_KMBrowser and wait. Reason: Clusterwide exception: server ID 309660150:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application local/TutWD_KMBrowser cannot be started. Reason: it has hard reference to resource com.sap.km.application with type application, which is not active on the server.
         at com.sap.engine.services.deploy.server.ReferenceResolver.processReferenceToApplication(ReferenceResolver.java:596)
         at com.sap.engine.services.deploy.server.ReferenceResolver.processMakeReference(ReferenceResolver.java:399)
         at com.sap.engine.services.deploy.server.ReferenceResolver.beforeStartingApplication(ReferenceResolver.java:328)
         at com.sap.engine.services.deploy.server.application.StartTransaction.beginCommon(StartTransaction.java:178)
         at com.sap.engine.services.deploy.server.application.StartTransaction.begin(StartTransaction.java:147)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesImpl(ParallelAdapter.java:327)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:111)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:230)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4705)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4610)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4583)
         at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1163)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Exception while starting: sap.com/com.sap.km.application', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Exception while starting: sap.com/com.sap.km.application
         at com.sap.portal.prt.sapj2ee.PortalRuntimeContainer.prepareStart(PortalRuntimeContainer.java:527)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4359)
         at com.sap.engine.services.deploy.server.ReferenceResolver.processReferenceToApplication(ReferenceResolver.java:588)
         ... 21 more
    Caused by: com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Exception while starting: SAPJ2EE::local/TutWD_KMBrowser', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Exception while starting: SAPJ2EE::local/TutWD_KMBrowser
         at com.sap.portal.prt.sapj2ee.SAPJ2EEPortalRuntime.getAndStartSAPJ2EEApplicationItem(SAPJ2EEPortalRuntime.java:886)
         at com.sap.portal.prt.sapj2ee.PortalRuntimeContainer.prepareStart(PortalRuntimeContainer.java:511)
         ... 23 more
    Caused by: com.sapportals.portal.prt.runtime.PortalRuntimeException: [ExternalApplicationItem.prepare]: SAPJ2EE::local/TutWD_KMBrowser
         at com.sapportals.portal.prt.core.broker.ExternalApplicationItem.prepare(ExternalApplicationItem.java:188)
         at com.sapportals.portal.prt.core.broker.SAPJ2EEApplicationItem.prepare(SAPJ2EEApplicationItem.java:232)
         at com.sapportals.portal.prt.core.broker.SAPJ2EEApplicationItem.start(SAPJ2EEApplicationItem.java:192)
         at com.sapportals.portal.prt.service.sapj2ee.Mediator.getAndStartExternalApplication(Mediator.java:132)
         at com.sap.portal.prt.sapj2ee.StartPortalApplication.coreRun(StartPortalApplication.java:59)
         at com.sap.portal.prt.sapj2ee.SAPJ2EEPortalRuntime.getAndStartSAPJ2EEApplicationItem(SAPJ2EEPortalRuntime.java:882)
         ... 24 more
    Caused by: com.sapportals.portal.prt.core.broker.PortalApplicationNotFoundException: Could not find portal application com.sap.km.application
         at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:415)
         at com.sapportals.portal.prt.core.broker.ExternalApplicationItem.prepare(ExternalApplicationItem.java:180)
         ... 29 more
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment of TutWD_KMBrowser finished with Warning (Duration 9504 ms)
    Starting Deployment of pdk-content
    Finished with warnings: software component 'pdk-content'/'com.sap'/'SAP AG'/'1000.630.0.1.0.20051130181343':
    No further description found.
    Deployment of pdk-content finished with Warning (Duration 1152 ms)
    ===========================================================================
    Deployment ended Thu Jun 22 11:01:47 IST 2006
    ===========================================================================
    Please resolve this issue.
    Regards,
    Amjad

  • ESS/MSS - Error " 404, The requested resource is not available."

    Hi
    I have deployed below archives in the EP 7.0 SP14 system. My back end system is ECC 6.0 with SP14.
    1)BP ERP05 ESS 1.0 with sp14
    2)BP ERP05 MSS 1.0 with sp14
    3)SAP ESS 600 with sp14
    4)SAP MSS 600 with sp14
    5)SAP PCUI_GP 600 with sp14
    We are getting " The requested resource is not available." error after clicking on
    Working Time tab.
    Can anyone suggest me whether i need to update any higher level patches from EP and ERP side ?
    Or what could be the problem ?
    Thanks in Advance,
    Vinay

    Hi Vinay
    Check below steps one by one for your application.Whch is very helpful link.
    http://help.sap.com/saphelp_erp2004/helpdata/en/38/e8584c2a664547b60442646bee23b6/frameset.htm
    Regards
    -SS

  • Portal Error 404 (The requested resource is not available)

    Dear,
    I have faced the below error in our Portal (6.0), I have created a new role that its linked normally with worksets, pages and i-view, all the way to custom SAP R/3 transactions, most of the users are able to see and execute these transactions, but one of them faced the below error, please advise? What it could be the problem?
    404
    The requested resource is not available.
    stack trace
    com.sapportals.wcm.protocol.webdav.server.WDServletException
    at com.sapportals.wcm.protocol.webdav.server.WDObject.throwNotFoundIf(WDObject.java:54)
    at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.handle(WDGetHandler.java:110)
    at com.sapportals.wcm.protocol.webdav.server.WDServlet.doGet(WDServlet.java:775)
    at com.sapportals.wcm.protocol.webdav.server.WDServlet.service(WDServlet.java:462)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:334)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sapportals.portal.prt.core.broker.ServletComponentItem$ServletWrapperComponent.doContent(ServletComponentItem.java:110)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)

    check whether user has end user permissions or not

  • Http Status 404, The Requested resource is not available

    Dear Friends,
    I am getting error with my tomcat that " The Requested resource is not available"
    Kindly help me , What is the wrong with my code.
    I am using Eclipse 6.0.1, Tomcat 5.5.20, jdk 1.5.0, j2sdk 1.4.0
    My application is just to print user datas and my files are
    *1. login.jsp*
    <html>
    <head>
    <title>login Page </title>
    </head>
    <body>
    <form action="login" method="post">
    <table>
         <tr>
         <td>UserName</td><td><input type="text" name="username"/></td>
         </tr><tr>
         <td>Password</td><td><input type="password" name="password"/></td>     
         </tr>
         <tr><td><input type="submit" value="login"/>
         </tr>
    </table>
    </form>
    </body>
    </html>
    *2.web.xml*
    <web-app>
    <servlet>
         <servlet-name>login</servlet-name>
         <servlet-class>login</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>login</servlet-name>
         <url-pattern>/login</url-pattern>
    </servlet-mapping>
    </web-app>
    *3. login.java*
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class login extends HttpServlet
         public void doPost(HttpServletRequest req, HttpServletResponse res)
              try
              PrintWriter out = res.getWriter();
              String name = req.getParameter("username");
              String password = req.getParameter("password");
              out.println(name+" servlet page");
              }catch(Exception e)
              e.printStackTrace();
    File Directory:
    Myapp
    ! !-->src
    ! ! !--> login.java
    ! !-->WebRoot
    ! !--> META-INF
    ! !--> WEB-INF
    ! !--> Classes
    ! !--> login.class
    ! !--> lib
    ! !--> web.xml
    -->login.jsp
    CATALINA_HOME C:\Program Files\Apache Software Foundation\Tomcat 5.5
    CLASSPATH C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar;C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\jsp-api.jar
    path C:\Program Files\Java\jdk1.5.0_05\bin;C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin;C:\j2sdk1.4.0\bin
    Please anyone give me the solution to solve my problem.
    Thank you

    Try moving your class file to a package
    <servlet-class>com.logon.login</servlet-class>
    ! !-->src
    ! ! !-->com
              ! !-->logon
                        ! !--> login.java

  • 404 'the requested resource is not available'

    Hi All,
    We created a KM iview and accessing Flash file. Some users are able to see the iview without error. Some users are getting 404 'the requested resource is not available' Error. They are not able to see the flash file in portal.
    Can anyone advise me what the problem is and resolution steps for this?
    Thanks,
    Srinivasu.Y

    Hi Srinivasu,
    Well you already have lots of valid suggestions above but this problem might be causing for various reasons. As you have already checked the permissions for the set of the users having this problem, it might be worth checking if there are many nodes of the server instance and if any of these are not working properly. It can happen that when those set of users are trying to access the resource, the request is hitting specific server nodes which is unable to find the resource for some reasons. You can try asking the users to clear their browser cache and try again so that when the users try to access the same resource again it might go to different node this time.
    But probably this is a temporary solution that might work as has worked in my case but there might be problem with some server nodes which is worth looking at.
    Hope it helps.
    Regards,
    Gourav

  • HTTP Status 404 - requested resource is not available

    im trying to run a servlet - a very simple one. i have entered http://localhost:8080/servlet/HelloWorldExample on a web browser. the message is the requested resource is not available. i have tried to write the full path of where i saved my program, and many other possibilities of paths, but to no avail. i have checked and re-checked the spelling and case, what am i doing wrong?
    servlet mapping on web.xml file seems fine too...
    <servlet-mapping>
    <servlet-name>HelloWorldExample</servlet-name>
    <url-pattern>/servlet/HelloWorldExample</url-pattern>
    </servlet-mapping>
    and i know that tomcat was setup properly as i can see the homepage at http://localhost:8080
    can anyone suggest something.

    Multipost: http://forum.java.sun.com/thread.jspa?threadID=5228034&messageID=9935684#9935684
    Please don't multipost. Why did you reply to your old thread and start a new one? It's rude and a waste of time and energy.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • The requested resource is not available - Please help i want to complete it

    Hi,
    Im using netbeans 6.0 and java 1.6 update 3.
    While executing my netbean web application it is saying that the requested resource is not available
    Please help
    I have to complete it with in this week
    for your information i have formatted my OS and reinstalled
    windows 2000
    apache tomcat server 6.0.14 version im using
    before formatting it was working fine.
    Thanking YOu.
    R.Muthu Kumar.

    I looks like you have classpath issues deleted. why not download latest netbeans bundled with tomcat that should work smoothly.

  • The requested resource /HelloName not available

    Hi all,
    I am new to servlet technology
    I am trying to execute a simple servlete HelloName, I am having a html page which action="/HelloName". When I say Submit it is giving me "The requested resource /HelloName not available" error.
    My servlet class is located at
    "<inst dir>/webapps/Myservlet/WEB-INF/classes" folder.
    The html page is at ""<inst dir>/webapps/Myservlet".
    The web.config content is as below
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>My Servlet Examples</display-name>
    <description>
    My Hello Servlet Example.
    </description>
    <!-- Define servlet-mapped and path-mapped example filters -->
    <!-- Define servlets that are included in the example application -->
    <servlet>
    <servlet-name>HelloServlet</servlet-name>
    <servlet-class>HelloServlet</servlet-class>
    </servlet>
    <servlet>
         <servlet-name>HelloName</servlet-name>
    <servlet-class>HelloName</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloServlet</servlet-name>
    <url-pattern>/HelloServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>HelloName</servlet-name>
    <url-pattern>/HelloName</url-pattern>
    </servlet-mapping>
    </web-app>
    The html page is
    <html>
    <title> Hello name client </title>
    <FORM METHOD=GET ACTION = "/classes/HelloName">
    PLEASE ENTER YOUR NAME:
    <INPUT TYPE=text NAME="name">
    <INPUT TYPE=SUBMIT NAME="SUBMIT" VALUE="SUBMIT">
    </FORM>
    </html>
    The servlet code is-
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    class HelloName extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException{
    String name = req.getParameter("name");
    res.setContentType("text/html");
    PrintWriter out = res.getWriter();
    out.println("<html>");
    out.println("<head><title> HELLO NAME SERVLET DISPLAYS THE NAME OF THE USER ENTERED </title></head>");
    out.println("<body> Hello "+name+" good morning </body>");
    out.println("</html>");
    Please let me know why am I getting this error.
    Thanks in advance
    Mithun

    Your servlets MUST be packaged, they cannot be part of the root package. And your action should be /Myservlet/HelloName.

  • Error: Requested resource does not exist with SAP WebAS..deployed an ear

    hi,
    i deployed an application using SDM gui deployement manger.   the application is built using struts,spring etc. I have also created a datasource with Oracel 9i succesfully and hav associated it with the application.
    When i try to access the application using the struts based path i get an "<b>ERROR 404:- Error: Requested resource does not exist</b>". I also tried accessing the index.jsp page directly without struts paths but dont know why i get an error "<b>File [appContext/admin/index.jsp] not found in application root of alias [/] of J2EE application [sap.com/com.sap.engine.docs.examples].</b>"
    The same ear is working perfectly fine with IBM WSAD but not in SAP Web AS ?? is there any configuration issues that i need to address ?? Kindly help me ASAP !!
    Regards,
    Vaibhav

    Hi,
    The Required server log contents are as follows:-
    #1.5#000CF1AFC124017A000000020000067000041B1D550F525C#1155712701853#com.sap.engine.services.servlets_jsp.server.jsp.JSPParser#sap.com/doculine#com.sap.engine.services.servlets_jsp.server.jsp.JSPParser#Guest#2####661184d02cf711db80fa000cf1afc124#SAPEngine_Application_Thread[impl:3]_37##0#0#Error#1#/System/Server#Plain###Runtime error in compiling of the JSP file <C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/doculine/servlet_jsp/doculine/root/admin/login.jsp> !
    The error is: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.ParseException: TagLibValidator returns error(s) for taglib [/WEB-INF/c.tld]: [
         com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)(:main:, row=739, col=23) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)
    Exception id: [000CF1AFC124017A000000000000067000041B1D550F4D94]#
    #1.5#000CF1AFC124017A000000030000067000041B1D550F5C88#1155712701868#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/doculine#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#Guest#2####661184d02cf711db80fa000cf1afc124#SAPEngine_Application_Thread[impl:3]_37##0#0#Error##Plain###Processing HTTP request to servlet [action] finished with error. The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: Internal error while parsing JSP page [C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/doculine/servlet_jsp/doculine/root/admin/login.jsp].
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:117)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.getClassName(JSPServlet.java:238)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.compileAndGetClassName(JSPServlet.java:429)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:169)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:316)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:372)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
         at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1001)
         at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:560)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:209)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:316)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:372)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.ParseException: TagLibValidator returns error(s) for taglib [/WEB-INF/c.tld]: [
         com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)(:main:, row=739, col=23) -> com.sap.engine.lib.xml.parser.ParserException: Unsupported character: a9(:main:, row:739, col:23)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.validate(JSPParser.java:243)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.initParser(JSPParser.java:348)
         at com.sap.engine.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:105)
         ... 37 more
    #1.5#000CF1AFC124017A000000050000067000041B1D550F5F94#1155712701868#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/doculine#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Guest#2####661184d02cf711db80fa000cf1afc124#SAPEngine_Application_Thread[impl:3]_37##0#0#Error#1#/System/Server/WebRequests#Plain###Processing HTTP request to servlet [action] finished with error.
    The error is: com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException: Internal error while parsing JSP page [C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/sap.com/doculine/servlet_jsp/doculine/root/admin/login.jsp].
    Exception id: [000CF1AFC124017A000000030000067000041B1D550F5C88]#

  • Error: Requested resource does not exist

    Hi
    I am using a J2EE application to connect to R/3. I am receiving the above mentioned error. I created a Web Module project. In that i created a package com.training.examples.servlet.GetSalesPage.java . This is going to be my controller.
    I also created a JSP page with a submit button. Once i click on the button, i get the following message "  The requested resource does not exist."
    In the JSP page i used the follwing Tag :
    <form action="<%= request.getContextPath() %>/servlet/GetSalesPage" method="POST">
    I know this is will be tough to understand with me just giving me a bigger picture. I am ready to give the code if anyone wishes to check it out also.
    Any help would be rewarded.
    Murali.

    Hi
    Thanks Vyara and Guru. I am actually trying to replicate the example of "Creating first J2EE application - flight bookings". So i am getting stuck with the basic things.
    Ur inputs were valuable.
    I added the Servlet in the Web.xml
    Here is my Web.XML
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                             "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <display-name>WEB APP</display-name>
        <description>WEB APP description</description>
          <servlet>
            <servlet-name>GetSalesPage</servlet-name>
            <servlet-class>com.training.examples.servlet.GetSalesPage</servlet-class>
        </servlet>
        <servlet>
            <servlet-name>GetSalesList.jsp</servlet-name>
            <jsp-file>/GetSalesList.jsp</jsp-file>
        </servlet>
        <ejb-ref>
            <ejb-ref-name>ejb/SalesEJBBean</ejb-ref-name>
            <ejb-ref-type>Session</ejb-ref-type>
            <home>com.training.examples.SalesEJBHome</home>
            <remote>com.training.examples.SalesEJB</remote>
            <ejb-link>SalesBean</ejb-link>
        </ejb-ref>
    </web-app>
    Here is ejb-jar.xml in my EJB Project
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
         <description>EJB JAR description</description>
         <display-name>EJB JAR</display-name>
         <enterprise-beans>
              <session>
                   <ejb-name>SalesEJBBean</ejb-name>
                   <home>com.training.examples.SalesEJBHome</home>
                   <remote>com.training.examples.SalesEJB</remote>
                   <local-home>com.training.examples.SalesEJBLocalHome</local-home>
                   <local>com.training.examples.SalesEJBLocal</local>
                   <ejb-class>com.training.examples.SalesEJBBean</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Bean</transaction-type>
                   <resource-ref>
                        <res-ref-name>eis/SAPJRADemoFactory</res-ref-name>
                        <res-type>javax.resource.cci.ConnectionFactory</res-type>
                        <res-auth>Container</res-auth>
                        <res-sharing-scope>Shareable</res-sharing-scope>
                   </resource-ref>
              </session>
         </enterprise-beans>
    </ejb-jar>
    Now i am able to get the JSP page. When i key in data and click on submit button, i get the following error:
    <b>
    "Couldn't access bean salesEJB: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/ejb/SalesEJB"</b>
    I have setup eis/SAPJRADemoFactory for my Flight Application and it is working fine. I am trying to use the same setting for my application also.
    Here is my GetSalesPage SERVLET Page :
    Created on May 9, 2006
    To change the template for this generated file go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    package com.training.examples.servlet;
    import java.io.IOException;
    import java.rmi.RemoteException;
    import java.util.List;
    import javax.ejb.CreateException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import com.training.examples.SalesEJB;
    import com.training.examples.SalesEJBHome;
    import com.training.examples.SalesSelection;
    @author MShanmugham
    To change the template for this generated type comment go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    public class GetSalesPage extends HttpServlet {
    /* names of jsp pages */
    private static final String SELECT_SALES_ORDER= "/GetSalesList.jsp";
    // JNDI names
    private static final String PREFIX = "java:comp/env/ejb/";
    private static final String SALES_BEAN = "SalesEJB";
    public static final String BYF_SALES_SELECTION = "byf_sales_selection";
    public static final String BYF_SALES_LIST = "byf_sales_list";
    public static final String BYF_ERROR_MESSAGE = "byf_error_message";
    // class members
    private RequestDispatcher dispatcher = null;
    protected void doGet(
         HttpServletRequest request,
         HttpServletResponse response)
         throws ServletException, IOException {
         doPost(request, response);
    protected void doPost(
         HttpServletRequest request,
         HttpServletResponse response)
         throws ServletException, IOException {
         HttpSession session = request.getSession(true);     
         if(request.getParameter("select") != null) {
              // select or GET_SALES event -> retrieve sales list, display 1. page
              getSalesList( request, session);
              dispatcher = request.getRequestDispatcher(SELECT_SALES_ORDER);  
              dispatcher.forward(request, response);
         private void getSalesList( HttpServletRequest request, HttpSession session) {
         try {
              // get bean SalesEJB
              InitialContext initialcontext = new InitialContext();
              SalesEJBHome salesHome = (SalesEJBHome) initialcontext.lookup( PREFIX + SALES_BEAN);
              SalesEJB sales = salesHome.create();
              // get flight list
              String salesOrg = (String) request.getParameter("salesOrg");
              String customerNo = (String) request.getParameter("customerNo");
              SalesSelection salesSelection = null;
              if( (salesOrg != null) && (customerNo != null)) {
                   salesSelection = new SalesSelection( salesOrg, customerNo);
                   session.setAttribute( BYF_SALES_SELECTION,salesSelection);
              } else {
                   salesSelection = (SalesSelection) session.getAttribute( BYF_SALES_SELECTION);
              List salesList = sales.getSalesList(salesSelection);
              if( salesList == null) {
                   request.setAttribute(BYF_ERROR_MESSAGE,"No records found!");
              // set session and request attribute
              session.setAttribute( BYF_SALES_SELECTION, salesSelection);
              session.setAttribute( BYF_SALES_LIST, salesList);
         }catch(NamingException exc) {
              request.setAttribute(BYF_ERROR_MESSAGE, "Couldn't access bean salesEJB: " + exc.getMessage());
         }catch(CreateException exc) {
              request.setAttribute(BYF_ERROR_MESSAGE, "Couldn't create bean salesEJB: " + exc.getMessage());
         }catch(RemoteException exc) {
              request.setAttribute(BYF_ERROR_MESSAGE, "Bean salesEJB returned error message: " + exc.detail.getMessage());
    Here is the only JSP I am using GetSalesList.jsp
    <%@ page language="java" %>
    <%@ page import="com.training.examples.servlet.GetSalesPage"%>
    <%@ page import="com.training.examples.SalesSelection"%>
    <%@ page import="com.training.examples.salesData"%>
    <%
      // get the sales order selection data and the list of selected Orders
      SalesSelection salesSelection = (SalesSelection) session.getAttribute( GetSalesPage.BYF_SALES_SELECTION);
      List salesList = (List) session.getAttribute( GetSalesPage.BYF_SALES_LIST);
      // get the error message
      String errorMessage = (String) request.getAttribute( GetSalesPage.BYF_ERROR_MESSAGE);
    %>
    <html>
         <head>
              <title> Fetch Orders </title>
         </head>
         <body>
              <fieldset>
              <legend>
                   <b> Give the Sales Org and Customer Number </b>
              </legend>
    <form action="<%= request.getContextPath() %>/servlet/GetSalesPage" method="POST">
    Sales Organization:
    <% if(salesSelection == null) { %>
         <input type="text" size="16" name="salesOrg" value="">
    <% } else { %>
         <input type="text" size="16" name="salesOrg" value="<%= salesSelection.getSalesOrg() %>">
    <% } %>
    Customer Number:
    <% if(salesSelection == null) { %>
         <input type="text" size="16" name="customerNo" value="">
    <% } else { %>
         <input type="text" size="16" name="customerNo" value="<%= salesSelection.getCustomer() %>">
    <% } %>
    <br>
    <br>
    <input type="submit" name="select" value="Select">
    <br>
    <% if(salesList != null) { %>
    <table border="1" box="all">
    <tr>
    <th rowspan="2">&nbsp</th>
    <th rowspan="2">Sales Doc</th>
    <th rowspan="2">Item No</th>
    <th colspan="2">Material</th>
    </tr>
    <%     for(int i = 0; i < salesList.size(); i++) {  %>
         <tr>
              <td>
              <input type="radio" name="saleslist">
              </td>
                   <td><%= ((salesData)salesList.get(i)).getSd_doc()   %></td>
                   <td><%= ((salesData)salesList.get(i)).getItm_number() %></td>
                   <td><%= ((salesData)salesList.get(i)).getMaterial() %></td>
                   </tr>
              <br>
    <%  } %>          
    </table>
    <br><br>
    <input type="submit" name="continue" value="Continue">
    </form>
    <% } %>
    <% if (errorMessage != null) { %>
       <br>
       <tr>
          <td colspan="3">
             <font color="#D00000"><b><%= errorMessage %></b></font>
          </td>
       </tr> 
    <% } %>
              </fieldset>
              <p>
         </body>
    </html>
    Can you please help me out.
    Murali.

  • Error: Request function SUCH not available here

    Hi Guys,
    When user try to open an existing order via VA02 below pop up error is appearing
    Request function SUCH not available here
    when i see SM12 i see couple of lock entries, though i remove these entries, still getting the same error again.
    Please help!
    Yash

    Please check Note 67836 - "tablesParm IS REQUESTED" in update functions
    Hope it helps
    Regards
    Sai

Maybe you are looking for

  • ITunes Connect - Sales & Trends Error Message

    New & unexpected message while logging in to iTunes Connect. In this case not able to log in. I've had an account for years. No need to set it up. I did not receive an email about this kind of disruption at this time. I'll wait 24 hours, no problem,

  • Acrobat 9.0 shared review not working after FrameMaker 11 and RoboHelp 10 are installed

    Acrobat professsional 9.0 shared review function was working fine when I was using FrameMaker 7.2, but after I install FrameMaker 11 and RoboHelp 10, nothing happens when I select "Send for Shared Review" or "Attach for Email Review", no error messag

  • Does mac mini have lithium ion battery

    I live over seas and I bought a new mac mini online, they are not available here.  I am having it shipped to my sister who will then ship it to me.  With the law stating that lithium ion batteries cannot me sent in air mail, will this effect the mac

  • Agent in Partner profiles

    Hi Guru's. Can any tel me the impotance of AGENT in partner profile? Regards, Krishna Edited by: Shiva Krishna on Jun 26, 2009 8:28 AM

  • Safari can't re-install

    When I try to re-install Safari it says I need mac osx 10.5.2 or later. In this picture it shows I have 10.5.4. Can someone help? http://i213.photobucket.com/albums/cc170/higher43/Picture1.png