JSF 404 Error

Hello,
I have googled a long time, but I couldn't find a solution to my problem.
I am developing my first JSF 1.2 Application in combination with Tomcat 6 with Eclipse.
I have imported all libraries needed (jsf_api, jsf_impl, jstl etc.). When I call a JSF page, I get a 404 resource not found error.
Normal JSP projects work perfectly.
These are the contents of my web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  <display-name>test</display-name>
  <servlet>
       <servlet-name>Faces Servlet</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.jsf</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
       <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>Basically I followed this tutorial to set up my first jsf app: http://www.eclipse.org/webtools/jsf/dev_resource/JSFTutorial-RC3/JSFTools_tutorial.html .
There are two versions, one with JSF 1.1 support which worked, and one with JSF 1.2 support which didn't work.
Thanks in advance,
Tobias
Message was edited by:
tobiasgp

I have found the following error messages in Tomcat's console output:
INFO: Initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context '/test'
19.07.2007 18:38:40 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Completed initializing Sun's JavaServer Faces implementation (1.2-b20-FCS) for context '/test'
19.07.2007 18:38:40 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Exception sending context initialized event to listener instance of class com.sun.faces.config.GlassFishConfigureListener
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
     at org.ajax4jsf.framework.DebugLifecycleFactory.<clinit>(DebugLifecycleFactory.java:39)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
     at java.lang.reflect.Constructor.newInstance(Unknown Source)
     at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:567)
     at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:460)
     at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
     at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1106)
     at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:766)
     at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:529)
     at com.sun.faces.config.GlassFishConfigureListener.contextInitialized(GlassFishConfigureListener.java:47)
     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
     at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
     at org.apache.catalina.core.StandardService.start(StandardService.java:516)
     at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
     at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
19.07.2007 18:38:40 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error listenerStart
19.07.2007 18:38:40 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context [test] startup failed due to previous errors
SCHWERWIEGEND = Fatal ;-)
I have just removed AJAX4JSF and it works! How shall I go on if I would like to use it?
Message was edited by:
tobiasgp
Message was edited by:
tobiasgp

Similar Messages

  • 404 error access JSF pages

    Hello,
    When I was running my JSF application through the embeded Tomcat 6.0.18 server in Netbeans 6.5.1 all worked fine. After deploying the *.WAR file to the stand alone Tomcat 6.0.18 server I get a 404 error when I access the jsf pages. The default page at http://localhost:8080 work fine and so does the servlet in the same webapp as my jsfs. I tried downloading the JSF & JSTL frameworks and placing the contents of their lib directory into TOMCATHOME/lib and restarted the server - no effect
    Pls Help ! Thnx
    (URL im using to access one of the jsf pages is http://localhost:8080/LUIDManager/LUID_Config_List.jsf)
    Here is my web.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <context-param>
            <param-name>com.sun.faces.verifyObjects</param-name>
            <param-value>false</param-value>
        </context-param>
        <context-param>
            <param-name>com.sun.faces.validateXml</param-name>
            <param-value>true</param-value>
        </context-param>
        <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>client</param-value>
        </context-param>
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet>
            <servlet-name>initServlet</servlet-name>
            <servlet-class>Servlets.initServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.jsf</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>initServlet</servlet-name>
            <url-pattern>/initServlet</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>forwardToJSF.jsp</welcome-file>
            </welcome-file-list>
        <resource-ref>
            <description>DB Connection</description>
            <res-ref-name>jdbc/luidregistry</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
        </resource-ref>
        </web-app>Edited by: paulchwd on Apr 15, 2009 5:01 PM

    Thnx for your reply. Not sure what Faclets are. I added the JSF 1.2 framework from Netbeans into my project. I am also an idiot :)
    The links the servlet generates to take me to the JSFs had a typo - wrong port #
    Thnx for the help

  • 404 Error (not found) for webfragment when running from OEPE (split source)

    For a large project, we are developing several JSF modules as JARs which then become packaged inside a single WARs WEB-INF/lib, which in turn will be the only substantial part of an EAR.
    When I build with maven / run from command line, everything works fine.
    But when I run from OEPE using the split source structure (actually also when I run from command-line using the split source structure that OEPE has generated), all the JSF in the JARs are not found anymore, and I get a 404 Error in the browser.
    I can reproduce the problem with a minimal set of almost-empty Eclipse projects (one WebFragment, one WAR, and an autogenerated EAR).
    (too bad I can't attach it here)
    The generated .beabuild.txt is as follows:
    C\:/workspaces/weblogicear/WebFragmentWAR/WebContent = WebFragmentWAR.war
    C\:/workspaces/weblogicear/WebFragmentWAR/build/weboutput = WebFragmentWAR.war
    C\:/workspaces/weblogicear/WebFragmentWAR/build/classes = WebFragmentWAR.war/WEB-INF/classes
    C\:/workspaces/weblogicear/WebFragment/bin = WebFragmentWAR.war/WEB-INF/lib/WebFragment.jar
    Under WebFragment/bin/META-INF/resources I have an index.xhtml, which is not found by Weblogic's implementation of ExternalContext.
    See also this thread (without answer): When web apps/war published via OEPE I get '404 Not found' on access I don't know if the original poster had the same problem. I tried to reply there, but my reply doesn't show up.

    > The Testing Server Folder is:
    D:\Inetpub\wwwroot\Zero-ten\www\
    > The URL prefix is:
    http://localhost/zero-ten/www/
    > Is that the problem?
    In the testing server folder you have a CAP Z
    in the URL prefix you don't have a cap.
    Also, would need to know more about your testing server
    (what type) if there are additional problems.

  • Weblogic 10.3.2: Under load, system gives 404 error when accessing page

    Hi all,
    I am running Weblogic 10.3.2 with a J2EE EAR deployed against it. I am using JDBC data sources to connect to an Oracle 11g database. I am running on Linux Red Hat 5. The machine has 16 GB RAM and 16 cores of an Intel Xeon processor.
    I have recorded some Grinder scripts to simulate the HTTP requests going back and forth from the web browser to the app server in an attempt to play them back in volume to do some load testing. I am finding that even under relatively moderate load, after some time (say 30-60 minutes) when trying to access the application in my web browser (and in Grinder), I am getting 404 errors.
    The strange thing is that the app server is still running fine and there are no errors thrown in any Weblogic log file. There is nothing wrong in the verbosegc log file and the CPU usage via "sar" is very low. The number of JDBC connections is well below the threshold for concern. Sometimes, if I wait a while (hours or more), it sometimes comes back up and works fine again, until the next worjload hits it. I have studied thread dumps and see nothing unusual.
    I've been very puzzled with this for days. Does anyone else know what might be wrong or something else I could check to get more information?

    Hi, I have the same kind of problem. but when it happens I noticed strange line in the access.log like these ones :
    access.log00003:192.168.104.198 - - [20/Apr/2012:12:16:45 +0200] "ancelActionID=CCACustomerProfile&contactreasonwrapuplaunchable=true&contactCode=&contactType=&contactInformation=&Customer.CustomerNumber=5146990&processheadertitle=&PageState.CaseNumber=&PageState.CaseReference=&caseId=42ceed6436cbd7c70136cf3ea82c3b4a&" 404 0
    access.log00004:192.168.104.122 - - [20/Apr/2012:14:02:16 +0200] "s-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*" 404 0
    access.log00004:192.168.105.122 - - [20/Apr/2012:14:02:18 +0200] "-ms-xbap, application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*" 404 0
    access.log00004:192.168.104.122 - - [20/Apr/2012:14:02:20 +0200] "application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*" 404 1214
    As you can see, instead of containiing the HTTP action (GET/POST /someurl HTTP/1.1) it contains part of the url or even part of the Accept http header...
    When your 404 happened did you have those strange entries in your access.log ? Did you succeed in resolving it ?

  • Issue with OWA (404 error)

    Issue with OWA (404 error)
    From the server itself i can use IPv6 https://[fe80::feef:ff56:c498:1f0]/owa - this opens the mailbox.
    https://127.0.0.1/owa - this opens the mailbox
    https://localhost/owa - this results in 404 - File or directory not found
    using https://servername/owa - this results in 404 - file or directory not found
    using https://192.168.10.10 - this results in 404 - file or directory not found
    is this an issue with IIS bindings?
    thanks in advance

    Hi,
    I think you can check the authentication settings in IIS for exchange virtual directories.
    Thanks,
    James

  • Custom 404 Error page in Sharepoint Foundation 2013

    Hi all,
    How to point to the custom 404 error page in Share Point Foundation 2013. I have seen some links but not working for me. Please me let me know if you have any suggestion.
    Thanks.

    Can i create any page and pass the page url in it,like if i have created a page as custom404.aspx under pages library so do i need to do like this?
    $spsite = Get-SPSite "<http://sharepoint:1000/>"
    $spsite.FileNotFoundUrl = "<pages/custom404.aspx>"
    is this the correct way or i am doing incorrectly??
    please suggest

  • Getting 404 error when trying to login to Oracle EBS page

    Hi,
    I had installed Oracle EBS 12.0.4 last year and everything was running fine until last week. Last week, we suddenly started seeing this issue - when trying to login to the Oracle EBS page, we are getting the 404 page not found error.
    I have EBS installed on 2 VMs (virtual machines) - one VM has the application server and other VM has the database server. I logged on to the aplpication server to do some debugging and noticed 2 things ->
    1.The Oracle Fullfillment service was not running. I started it, it was up for some time but then it stopped on its own. This happens everytime - after successfully starting the service, it shuts down after sometime. There is nothing in the event viewer except this message "The service may have terminated abnormally, please see the log file generated by the service for more details." I checked the log file, but there is nothing significant inside the log file. Maybe I need to increase the log level. Can any one tell me how can I do that?
    2. Reviver.exe was crashing intermitently on the application server. I belive reviver tries to establish the connection between the application and database server after its broken.
    So I am thinking now that maybe the connection between the app server and the database server is getting broken intermittenlty and this is the root cause of all the problems.
    I dont know how to verify whethe my analysis is correct or not? And it it is, how to resolved it? Is there a setting or a configuration file in which you have to specify the database server details (ip address / host name etc). Can you tell me where can I find this setting?
    Or culd there be something altogether different that is causing the page not found error?
    Thanks in advance,
    Megha

    Hussein,
    The problem is partially solved - I am not getting the 404 error now. The issue was not with the netsvc file. Please see the resolution in NOTE:412980.1 (oafm,forms and oacore not starting up after IP adress change).
    The OC4J services are imperative for any URL for java code. With just the Apache listener running, examples of URLS that will work are ->
    http://HOST.DOMAIN:PORT/OA_MEDIA/FNDLOGOL.gif
    http://HOST.DOMAIN:PORT/
    Any URL for Java code will fail at this stage when OC4J services are down. For example this URL will fail: http://myHost.oracle.com:8000/OA_HTML/ServletPing.
    But now, I am getting 500 Internal server error. Let me know if you kno anything about this error ->
    oracle.apps.fnd.cache.CacheException     at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:228)     at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1485)     at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:354)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:211)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:171)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)     at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1259)     at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1114)     at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1083)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1050)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1037)     at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:595)     at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:941)     at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:926)     at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:891)     at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:751)     at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:1014)     at oracle.apps.fnd.sso.Utils.getAppsContext(Utils.java:525)     at oracle.apps.fnd.sso.AppsLoginRedirect.AppsSetting(AppsLoginRedirect.java:120)     at oracle.apps.fnd.sso.AppsLoginRedirect.init(AppsLoginRedirect.java:170)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2231)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4617)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4541)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2821)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:740)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)Caused by: oracle.apps.jtf.base.resources.FrameworkException: Error in IAS Cache: java.lang.NullPointerException: null Connection     at oracle.apps.jtf.cache.IASCacheProvider.get(IASCacheProvider.java:712)     at oracle.apps.jtf.cache.CacheManager.getInternal(CacheManager.java:4802)     at oracle.apps.jtf.cache.CacheManager.get(CacheManager.java:4624)     at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:216)     ... 33 moreCaused by: oracle.apps.jtf.base.resources.FrameworkException:
    An exception occurred in the method CacheAccess.get
    null
    The base exception is:
    null Connection     at oracle.apps.jtf.base.resources.FrameworkException.convertException(FrameworkException.java:607)     at oracle.apps.jtf.base.resources.FrameworkException.addException(FrameworkException.java:585)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:66)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:88)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:202)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:218)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:249)     ... 37 more

  • 404 Error when opening Web Analysis

    I have just finished setting up a System 9 test environment (my first environment), which includes Reporting and Analysis System 9 release 9.3.1.2.00. Unfortunately, I'm having trouble getting Web Analysis to open. When I go to the URL (http://localhost:16000/WebAnalysis/WebAnalysis.jsp), I get the following 404 Error:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    +10.4.5 404 Not Found+
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    The strange thing is, if I open up Workspace on the same server (http://localhost:19000/workspace/), it comes up just fine. I'm very new to Hyperion System 9, so I'm not even sure where to begin. I've already stopped/restarted all of the services and rebooted the servers. I've also tried re-running the Configuration Utility to re-deploy the application server and re-configure the web server, but that didn't fix it either. And for what it's worth, I've tried using the actual server name in the URL instead of 'localhost' and I get the same error. I also tried launching Web Analysis from Workspace -- same error.
    Can you provide any suggestions on where I can start to look?

    I don't know what the cause of the problem was, but a reinstall of Reporting and Analysis - System 9 UI Services (Web Analysis) fixed it.
    Edited by: user10770144 on Apr 21, 2009 1:49 PM

  • When I use the shortcut to open a new window in safari (command N), I get a 404 error message from Google. How do I change where 'Command N' routes to?

    When I use the shortcut to open a new window in safari (command N) on my Macbook Pro, I get a 404 error message from Google. How do I change where 'Command N' routes to? 

    It's not necessary to change the Command N keystroke..
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, troubleshoot Safari extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • Not able to run my first Servlet..... 404 error!!!

    Hi,
    I am new to Java.
    I am trying to create a small servlet application. I am using Tomcat 5.5 server and eclipse for this.
    I have first writtern a HTML form which on submission is redirected to a servlet that displays the information submitted. but i am not able to evn open the html file through browser, i am getting 404 error.
    My html codes and Servlet codes are inside the htmlform package...
    When i type http://localhost:8080/htmlform/form.html i am gettig 404 error... Also let me know if any thing is wrong with the codes...
    Here is my code...
    form.html
    <html>
    <head>
    <title> This is a HTML page </title>
    </head>
    <body>
    <p><h3>This page displays a submission form</h3></p>
    <form method="GET" action="/htmlform/LoginServlet">
    <p> USERNAME: <input type="text" name="username"/> </p>
    <p> PASSWORD: <input type="password" name="password" /> </p>
    <p> <input type="submit" value="Press Me" name="submit"/> </p>
    </form>
    </body>
    </html>
    LoginServlet.java
    package htmlform;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginServlet extends HttpServlet{
         private static final long serialVersionUID = 1L;
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter pw = response.getWriter();
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    pw.println("<html><head><title>This is the out put page</title></head");
    pw.println("<body><h2>If you can see this page then your form is cleanly processed</h2><br>");
    pw.println("<h2>Congratulations!!!</h2>");
    pw.println("<p>Your user name is: "+ username+ "</p>");
    pw.println("<p>Your password is: "+ password + "</p>");
    pw.println("<br></body></html>");
    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>
    <servlet>
    <servlet-name>Login</servlet-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Login</servlet-name>
    <url-pattern>/login</url-pattern>
    </servlet-mapping>
    </web-app>
    Thanks in advance

    you might have other problems, but I think the action attribute in your HTML form is incorrect.
    You have:
    <form method="GET" action="/htmlform/LoginServlet">Your web.xml says:
    <servlet-mapping>
    <servlet-name>Login</servlet-name>
    <url-pattern>/login</url-pattern>
    </servlet-mapping>So I think you should change the action like this:
    <form method="GET" action="/htmlform/login">Your servlet's not in a package, and you might not be deploying it correctly (god forbid you added this to /ROOT), but try that first.
    %

  • Cannot load individual websites; Googling is fine, but URL comes up with a 404 error.

    Since I updated Firefox, it seems my internet connectivity in that browser has dropped. I can Google things (not in the URL box, but in the Google box) perfectly, with the exception that sometimes the link clicked from Google doesn't load. However, I cannot actually visit an individual site by entering the URL. If I directly enter the URL, it comes up with a 404 error, site not found. If I try to navigate to some pages from a Google, it comes up with a connectivity problem page. I would really like to be able to use my Firefox again. In the meantime, I'll have to use Google Chrome.

    Try clearing Firefox's cookies and cache
    Do these steps and then reload the website you're having trouble with.
    * Click the menu button [[Image:New Fx Menu]] , choose History and select Clear Recent History....
    * In the Time Range to clear: drop-down, select Everything.
    * Click the arrow next to Details to display the list of items that can be cleared.
    * Select both Cookies and Cache.
    * Click Clear Now.
    Moreover, normally such issues are caused by a firewall/security software which doesn't recognize & therefore blocks new firefox versions:[[Fix problems connecting to websites after updating Firefox]]
    Also see:
    [[Firefox can't load websites but other browsers can]]
    [[Websites don't load - troubleshoot and fix error messages]]

  • Can't connect PHP/MySQL 404 error

    Wow, the learning curve is killing me. Yet another challenge. I'm using Dreamweaver CC and this tutorial http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
    I'm at this step:
    Open comments.php. You must have a PHP page open in the Document window to create a MySQL connection.
    In the Databases panel (choose Window > Databases), click the Plus button on the panel and select MySQL Connection.The MySQL Connection dialog box appears.
    Type connTest as the connection name.
    For the MySQL Server, type localhost.If you are using the MAMP default ports on a Mac, use localhost:8889.
    For the User Name, type phptestuser.
    Type the password you chose for the phptestuser account in the Password field.
    For the Database, type php_test.Note: You don't need to precede the underscore with a backslash here. It was inserted by phpMyAdmin in the previous section (see Figure 20) only because phpMyAdmin uses a query that permits wildcard characters.
    Click Test.Dreamweaver attempts to connect to the database. If the connection fails, do the following:
    Double-check the server name, user name, and password.
    Check the settings for the folder Dreamweaver uses to process dynamic pages (see Specifying a Testing Server for Dreamweaver).
    Verify that the web and MySQL servers are both running.
    Temporarily disable any firewall or security program. If the connection works, you need to configure the security program to permit communication between Dreamweaver and MySQL.
    Click OK. The new connection appears in the Databases panel.
    Expand the connTest connection, and then expand the Tables branch. You'll see the comments table in the database, which you can expand to reveal the details of the table columns (see Figure 23).
    As far as I can tell I have followed this tutorial to the letter.
    As far as I can tell, XAMPP/php mySQL are all running fine, the files are in the correct place and everything should be working. However when I hit test I get a 404 error. (Same error when I hit the select button.)
    The suggested problems on the 404 message are:
    1. There is no testing server running on the server machine.
    Pretty sure the testing server is running. Is there any way to test this, other than to note that xampp is definitely running right now and that I can log into phpMYadmin no problem?
    2. The testing server specified for this site does not map to the http://localhost/php_test/_MMServerScripts/MMHTTPDB.php URL Verify that the URL Prefix maps to the root of the site.
    Ummm...I'm pretty sure I put things where I was told to put them in the tutorial, but I'm lost at this point where I should verify what. A clue here? The files are where they are supposed to be, but maybe I entered something wrong? Except...I'm not sure what that could be or where to find it. Whatever IT is.
    Everything in local files is looking good.
    Thanks for your help!
    PS: Extra points to anyone who figures out how to make copy/pasteable error messages! These buggers are the bane of my life!

    Bgupta, you rock!
    I hope you have copied the "mysql.php" and "MMHTTPDB.php" files from "C:\Users\username\AppData\Roaming\Adobe\Dreamweaver CC\locale\Configuration\Connections\Scripts\PHP_MySQL\_mmDBScripts" to "C:\xampp\htdocs\phptest\_mmServerScripts"
    This was EXACTLY the problem. I checked the tutorial and I couldn't even find where the tutorial said to do this. (If I missed it, let me know where in the tutorial it was, please.)
    Fixed!

  • 404 error on iPad and iPhone

    I have an old site converted from GoLive to Dreamweaver. There is a password protected area on the site. The script for the password was created with GoLive and imported to DW.
    When trying to access the password protected page on iPad or iPhone there is a 404 error. If you type in the url addy the page loads.
    coloradocorgi.org
    password link at bottom of page
    coloradocorgi.org/pemmy.html
    page linked to the password
    Is there any way to keep the password protected functionality on iPhone and iPad?
    (I'm currently on DW CS6 and Mac OS 10.8.5)
    TIA
    Ziska

    Javascript is the worst way to do any kind of password protection because everything is "client-sided", if you know where (and how) to look, you can easily gain access to the UN/PW to enter a restricted page, or bypass it all together.
    A much better route to go would be to password protect a folder on your website via your hosting company. Most hosts will give you the ability to set the password protection on a folder by folder basis right through your Admin control panel. That password protection is controlled by the server, not the user's browser, so it is much, much more secure.
    Attempting to update a script created by GoLive so it works on a device that was invented after GoLive was killed is probably an exercise in futility.

  • How can I set up a custom 404 error page on OSX Server?

    I moved my web site to a local server and changed the structure drastically.  Unfortunately I am getting hits for information that was on the old server which I haven't put back yet.  I'd like to set up a custom 404 Error Page to let people know what's up.  In server.app I can set up a 500 error page but not a 404 and when I tried hand coding it into the sites .conf file I really messed things up.  It took me a while to get that all corrected!
    Thanks for any advice,
    Bill W

    Found it!
    Under the web server Advanced Setting set "Allow overrides using .htaccess" then create an .htaccess file in the root directory with the line:
    ErrorDocument 404 notfounderror.html
    Use whatever HTML/PHP/etc. document you have created.

  • 404 error when hit submit from php file for requested path E:\vise\jqproject\web\errorpages\403_error.htm

    I have a php script that when I hit submit, it submits the form to another php file with a get command.  This worked about a month ago, but this month it's having issues.  This is what the relevant code looks like in the table php file. Running
    table.php shows the table in the browser and has 404 errors when I hit submit.
    table.php:
        <body>  
            <h1> Visual Evaluation Entry Table </h1>
            <form method="get" action="visEupload.php">
        <table id="bigTable" border="1">
            <thead>
             <tr>
               <!--<th id="bandY" class="col3">Bands @263mm Y</th><th id="bandM" class="col3">Bands @263mm M</th><th id="bandC" class="col3">Bands
    @263mm C</th><th id="bandK" class="col3">Bands @263mm K</th><th id="Comments" class="col3">Comments</th>-->
             <th id="bandY" class="col3">Bands @263mm Y</th><th id="bandM" class="col3">Bands @263mm M</th><th id="bandC" class="col3">Bands
    @263mm C</th><th id="bandK" class="col3">Bands @263mm K</th><th id="Comments" class="col3">Comments</th>
             </tr>
            </thead>
            <tbody>
                <tr name="MCBands" id="9214">
                    <!--<td><input name="Yevaluation" ></td>  //Row 0 Column 1-->
                    <!--<td><input name="Mevaluation" ></td>  //Row 0 Column 2-->
                    <!--<td><input name="Cevaluation" ></td>  //Row 0 Column 3-->
                    <!--<td><input name="Kevaluation" ></td>  //Row 0 Column 4-->
                    <!--<td><input name="comment" ></td>  //Row 0 Column 4-->
                    <td><input name="bandY" ></td>  <!--//Row 0 Column 1-->
                    <td><input name="bandM" ></td> <!-- //Row 0 Column 2-->
                    <td><input name="bandC" ></td> <!-- //Row 0 Column 3-->
                    <td><input name="bandK" ></td><!--  //Row 0 Column 4-->
                    <td><input name="comment" ></td>
                </tr>
            </tbody>
        </table>
          <input id="submit" type="submit" class="list" name="submit" value="Submit To Database" >  
           <!--maybe move all php part to other file-->
           </form>
        </body>
    The server is mapped so when we run it off of the server, we use the server ip address and my file name and skip the rest of the path, which works fine with the table.php file, so that mapping appears correct.  When I run it off of the server (from my
    desk) and hit submit it gives me a 404 file or directory not found.  When I run it locally on the server, it's saying it can't find the file name, but it says the requested url is `http://localhost:80/errorpages/403_error.html.`  Physical path: E:\vise\jqproject\web\errorpages\403_error.html. 
    The error message says the notification is from the MapRequestHandler of Module IIS Web Core. I'm not sure why the requested url/path isn't referring to visEupload.php.
    (Running on the server) When I change the action in the table.php get to include the IP address, it's behaving weirdly:
    Module IIS Web Core Notification MapRequestHandler Handler PHP53_via_FastCGI, Requested URL `
        http://localhost:80/13.141.xxx.xx/visEupload.php?bandy=xx&bandM=xx&bandc=hj&bandk=xx&comment=xx&submit=submit+to+database
    physical path shows as E:\visE\jqproject\web\13.141.xxx.xx\visEupload.php
    Login Method and user Anonymous.
    When I change the url to just be
        localhost/viseUpload.php
    it's getting HTTP Error 404 not found.  Any ideas why it's not finding the visEupload.php file?  It has the correct .php extension.  In file properties it's a type php file with name visEupload.php.  
    I took a look at
    [404 error][1] but I see my "allowUnlisted="true" in applicationHost.config. I'm not using sitefinity, though. 
    I'm not sure if something got over-written when we did a server windows update.  
    I know we were having a problem with get and post a couple months ago and we had to add them to the IIS Manager Handler Mappings somewhere, but don't remember where we added them to check.  Since I tried directly accessing the visEupload.php without any
    get (and commented out get code in the file) it should have worked if that was the issue.
    We are running server 2008 R2 and I'm not sure which version of IIS it is.
    In case it matters, this is the contents of the visEupload.php:
        <!DOCTYPE html>
        <html lang="en" >
        <head>
        <meta charset="utf-8" />
            <title>Big Table</title>
        </head>
        <body>
        <?php
            require_once( "../classes/class.OLAPdatabase.php");
            require_once( "../common/Session.php");
            $OLAPdb = new OLAPdatabase;
              handling of the get part is commented out
           ?>
        </body>
    All I can think of is that when I access visEupload.php it's running from the get/action in table.php.  This might be a different user running in the system.  I tried changing visEupload.php file properties to have full control for IUSR and Internet
    Guest Account.  It already has full control for System, and me.  Users have read & exeture and read permissions. Or maybe it's something that has to do with how the directory is mapped out.  I'm not sure what could be affecting this, and
    why the message said it can't find the path to 403_error.html.
      [1]: http://www.sitefinity.com/developer-network/forums/bugs-issues-/server-error-404---file-or-directory-not-found
    Michele Cleary

    Hello,
    for IIS question better ask in http://forums.iis.net/
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://msmvps.com/blogs/mweber/
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.

Maybe you are looking for

  • Black ink cartridge will not print

    I just finished a one hour online chat with HP Support. The black cartridge of my C6180 will not print. After going through many steps the Support tech stated "I appreciate your patience and efforts in performing all the troubleshooting steps provide

  • PDF Search function

    I had 2249 pages of old military base newspapers scanned onto a DVD, into folders by years and then by weeks. The company that scanned then said the DVD did not have enough memory on 1DVD  for the seach function to work. now that i have the DVD can i

  • Center Button Will Not Work???

    Hi everybody, Here is my problem: my select/center button on my 3rd generation iPod nano is not working. I went to itunes on my computer, and clicked restore, now on my iPod it's stuck to the language setting. What do I do? Message was edited by: Nic

  • Getting the tab name

    Version: 4.1.1.00.23 Hey, I need to capture the tab name when it is clicked. Is there any way to do this?? I created dynamic breadcrumbs and when the user clicks the tab to enter a page the application items used to contain the values for the breadcr

  • Open KM Search iView Results in New Window...??

    Hi Guys, I'm having an issue whereby I want the Search Results of a KM Search iView to open in a new window. At the moment its being displayed in the existing portal content area. Under the iView Properties for KM Search I have the "Launch in New Win