Please help "http status 404 - the requested resource is not available"

After restarting apache and tomcat all pages under webapps/ROOT became unavailable, but pages in other webapps are still available. Almost looks like there is filter somewhere. Does anyone has any idea where should I look? Thanks!

additional info:
all pages in webapps/test were also not available, but when I renamed webapps/test to webapps/newapp then it owrks fine. Definitely there seem to be a filter somewhere but where??? Please help!

Similar Messages

  • 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

  • How do I resolve the following error message: HTTP Status 404- The requested resource () is not available. Apache Tomcat/5.5.17

    I log onto the following URL:
    >http://15thcircuit.co.palm-beach.fl.us/web/guest/adminorders/series1<
    I click on a link whose URL is:
    >/15thcircuit.co.palm-beach.fl.us/c/document_library/get_file?folderId=149&name=DLFE-1775.pdf<
    The screen opens with the error message shown in my question above.

    put your biplab folder inside root folder under tomcat\webapps\root
    http://localhost:8080/biplab/hello.jsp

  • Content file download failed. Reason: HTTP status 404: The requested URL does not exist on the server.

    Hi,
    I am getting this error in most of our WSUS servers.
    Content file download failed.
    Reason: HTTP status 404: The requested URL does not exist on the server.
    Source File: /Content/FB/134501186F4C81089054E4EC3376E74EEC895EFB.exe 
    Destination File: d:\wsus\WsusContent\FB\134501186F4C81089054E4EC3376E74EEC895EFB.exe
     After few minutes, getting below error as well. But i could see the synchronization has completed successfully.
    Log Name:      Application
    Source:        Windows Server Update Services
    Date:          12/19/2014 4:45:55 PM
    Event ID:      10032
    Task Category: 7
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      ******
    Description:
    The server is failing to download some updates.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Windows Server Update Services" />
        <EventID Qualifiers="0">10032</EventID>
        <Level>2</Level>
        <Task>7</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-12-19T08:45:55.000000000Z" />
        <EventRecordID>496887</EventRecordID>
        <Channel>Application</Channel>
        <Computer>*****</Computer>
         <Data>The server is failing to download some updates.</Data>
    This error is happening everyday. Please advise for a fix.

    Reason: HTTP status 404: The requested URL does not exist on the server.
    Source File: /Content/FB/134501186F4C81089054E4EC3376E74EEC895EFB.exe 
    Destination File: d:\wsus\WsusContent\FB\134501186F4C81089054E4EC3376E74EEC895EFB.exe
    Source:        Windows Server Update Services
    Description:
    The server is failing to download some updates.
    This error is happening everyday. Please advise for a fix.
    If this is happening on an UPSTREAM server it is because you have approved updates that are no longer available from Microsoft. Almost always this involves approvals of *EXPIRED* updates (which have been pulled from the catalog and cannot be downloaded).
    If this is happening on a DOWNSTREAM server it's because something/someone deleted the files from the upstream server. It can also happen if the entire upstream ~\WSUSContent folder has gone amuk.
    For an upstream server, find the expired updates, remove the approvals, cancel the downloads, and then decline the updates.
    For a downstream server, figure out what the affected updates are and fix the upstream server.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • 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

  • 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

  • 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

  • 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

  • HTTP 404 THE REQUESTED RESOURCE IS NOT AVAILABLE

    HELP ME PLEASE !!!!
    I HAVE AN APPLICATION THAT USES 3 PAGES: INDEX.HTML , MOTOR.JSP AND MOTOR2.JSP.
    THE LOGIC OF APPLICATION IS:
    FIRST STEP
    THE FIRST STEP IS SHOWING PAGE INDEX.HTML
    THERE IS THE FOLLOWING CODE IN THIS PAGE:
    <FORM ACTION="DIRECT">
    SECOND STEP
    DIRECT IS A SERVLET THAT HAVE THE FOLLOWING CODE:
    RequestDispatcher rd = req.getRequestDispatcher("Motor.jsp");
    rd.forward(req,res);
    THIRD STEP
    THE PAGE MOTOR.JSP REDIRECT TO A SERVLET ENGINE,
    AND SERVLET ENGINE REDIRECT TO A JSP MOTOR2.JSP
    USING THE COMMAND:
    RequestDispatcher rd = req.getRequestDispatcher("Motor2.jsp");
    rd.forward(req,res);
    IN THIS THIRD STEP THE PAGE IS ALWAYS REFRESHING
    TO ADD INFORMATION TO THE PAGE MOTOR2.JSP.
    SOMETIMES THE APPLICATION SHOWS ALL PAGES,
    BUT, SOMETIMES THE APPLICATION HAS AN ERROR:
    HTTP 404 - THE REQUESTED RESOURCE (/MOTOR2.JSP)
    IS NOT AVAILABLE
    I�M RUNNING THE APPLICATION IN TOMCAT 4.1.27
    IS ANYTHING WRONG WITH THE COMMANDS TO
    REDIRECT THE PAGES?
    PLEASE HELP ME
    THANKS VERY MUCH
    JANE PELLIM

    Hi,
    the refresh of the page is about 2 minutes, because some info
    about the process that is running in background
    is showing in the motor2 jsp.
    the redirects is necessary because in each page
    some processing is running in the servlets.
    The following is the web.xml configuration:
    <?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>Welcome to Tomcat</display-name>
    <description>
    Welcome to Tomcat
    </description>
    <context-param>
         <param-name>class_exec</param-name>
         <param-value>class_exec</param-value>
    </context-param>
    <context-param>
         <param-name>class_erro</param-name>
         <param-value>class_erro</param-value>
    </context-param>
    <context-param>
         <param-name>log_exec</param-name>
         <param-value>log_exec</param-value>
    </context-param>
    <context-param>
         <param-name>log_erro</param-name>
         <param-value>log_erro</param-value>
    </context-param>
    <context-param>
         <param-name>sleep_motor</param-name>
         <param-value>5</param-value>
    </context-param>
    <context-param>
         <param-name>bancos</param-name>
         <param-value>/motor.conf</param-value>
    </context-param>
    <servlet>
    <servlet-name>Engine</servlet-name>
    <servlet-class>com.motor.Engine</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>Direct</servlet-name>
    <servlet-class>com.motor.Direct</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>Monitor</servlet-name>
    <servlet-class>com.motor.Monitor</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Direct</servlet-name>
    <url-pattern>/Direct</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Engine</servlet-name>
    <url-pattern>/Engine</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Monitor</servlet-name>
    <url-pattern>/Monitor</url-pattern>
    </servlet-mapping>
    </web-app>
    Thanks
    Jane

  • Error 404: the request resource is not available

    Hello,
    I'm a newbie am using the Sun One (Forte 4.0 Community Edition) to develop a JSP/Servlet application.
    I'm using the built-in version of Tomcat, that comes with forte. Tomcat has been installed in tyhe following directory:
    C:\forte\forte4j\tomcat401
    My application has the following path:
    C:\forte\RDoku\tomcat401_base\webapps\designer
    After reading the documentation that comes with this version of Forte, it seems that Tomcat can be configured to work this
    way. Is that correct?
    Anyway, when I start tomcat(within forte), the login page, login.jsp is loaded successfully. The action of the login
    form is servlet/com.doku.login. My web.xml file looks like this:
    <?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>
    <!-- Define servlets that are included in the example application -->
    <servlet>
    <servlet-name>login</servlet-name>
         <servlet-class>com.doku.login</servlet-class>
    </servlet>
    </web-app>
    My problem is that when I submit the form, I get the following error:
    Error 404, /servlet/com.doku.login, the request resource (/servlet/com.doku.login) is not available.
    I would really appreciate it if anyone could help me in solving this mystery.
    Regards,
    Rudi

    Hey Rudi
    Everything seems to be in place ..except your package structure..
    your webapp has the context of designer.
    Therfore your directory structure for tomcat should look somewhat like this
    webapps
    --designer
    web-inf < web.xml(i think)
    classes  <Place your class files here(if loose)
    lib < jar files
    1.) Somehow tomcat is creating another context in servlet (unless you have created one yourself).I would urge u to check the invocation for your webapp (By saying that i am pointing at the error /servlet/com.doku.login...instead of /designer/com.doku.login).
    change the action of the form to
    /designer/...instead of /servlet/
    2.)Further..on examining your depoyment descriptor..i found missing entries for the <servlet-mapping> element.Tomcat uses your deployment descriptor to map the incoming requests to your classes.The element must be specified in order to allow a smooth mapping from the request to the corresponding servlet class.
    Let me explain by using an example
    a.)my form action="/designer/Hello" method="get"
    b.)The directory structure for my webapp(designer ) is as above
    c.)web.xml
    <?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>
    <!-- Define servlets that are included in the example application -->
    <servlet>
    <servlet-name>Hello</servlet-name>
    <servlet-class>package.HelloWorld</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Hello</servlet-name>
    <url-pattern>/Hello</url-pattern>
    </servlet-mapping>
    </web-app>
    so for all incoming requests in the form /servlet/Hello will be mapped to your class defined in the package package.HelloWorld
    Let me know if u have more questions.

  • [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

  • HTTP Status 404 indicates a resouce is not available - how to do you overcome this issue?

    Web site offers visitors the opportunity to the Newsletter 1) Trouble viewing the Newsletter.....
    2) View it online 3) Download a Printer friendly copy. Trying any of these options generates an Apache Tomcat/5.5.27 - Error report. This in turn throws up a report along the lines of HTTP Status 404 indicating a resource is not available. Are there any fixes possible from my end or should I notify the Newsletter sender of error at their end?

    I think it means that it could not find what it's looking for. Check the links.

  • 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.

  • Servlet: "The requested resource is not available"

    I'm trying to get my first servlet to run.
    I've installed tomcat 4.1.18 and compiled a "HelloWorld" class into
    "tomcat_dir"\webapps\root\web-inf\classes\.
    when I start tomcat, then open my browser and key
    "http://localhost:8080/servlet/HelloWorld"
    I get a status 404
    "The requested resource (/servlet/HelloWorld) is not available.
    what am I doing wrong?
    thanks
    barry

    Register the servlet in the web.xml file.
    open ROOT/WEB-INF/web.xml and edit it like:
    <web-app>
    <servlet>
    <servlet-name>HelloWorld</servlet-name>
    <servlet-class>HelloWorld</servlet-class>
    </servlet>
    </web-app>
    Stop and start tomcat and try again.

  • 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.

Maybe you are looking for

  • Purchase Requisition number : In which table the PR currency field stored?

    When we raise a Purchase requisition nr : t codes ME53N / ME21N the PR nr, item nr, PR doc type, PR group, plant etc are stored in EBAN table. PR amount can be calculated based on MENGE * PREIS / PEINH from the table EBAN. Where will be the PR amount

  • Where is the underscore for ipad mini to field email

    I cannot find the underscore to send a email in the to field, so I can you underscore a name to send the e mail. How do find or underscore? I have a ipad mini

  • MIGO Item Text  field

    Dear Experts, Want to check with you all, how to made MIGO "Item Text" (SGTXT) field a mandatory field? And is there any way to insert the item text back to posted material document. Because user claimed that in GL line item they want to see all the

  • Dividing a project

    I have 1 long concert video, 2 camera shoot with a separate audio track, i would like to put all this into one project, mix and basic edit, then i would like to take the 3 separate performances and make each into a project, possibly with some additio

  • Planning funtion - distribution key problem

    hi, i created a planning funtion with distribution key for prdno. charecteristics in the aggregation level is cusno  and prdno. function i used is    from                                                                      to Only "not assigned (#)"