Servlet not found(404) in linux

i have java1.4,tomcat3.3.1 and apache2. i want to connect tomat and apache using mod_jk in debian Linux. when i create a Test apllication in webapps called "TestApplication" with a class TestServlet.class.(this is just a Servlet class to print Hello Servlet)
when i request
http://localhost:8080/TestApplication/servlet/TestServlet
http://localhost:8080/TestApplication/servlet/TestServlet
i am getting servlet not found 404.
and also in the tomcat i am getting the following messages
-Ctx(/TestApplication)Class NotFound:TestServlet
-Ctx(/TestApplication)Status Code:404 request(TestApplication+/servlet+null) msg: null
JAVA_HOME=/opt/java
PATH=/opt/java/bin
TOMCAT_HOME=/opt/tomcat
and this is my web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!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>Servlet_TestServlet</servlet-name>
<display-name>Servlet TestServlet</display-name>
<description>Default configuration created for Servlet.</description>
<servlet-class>TestServlet</servlet-class>
</servlet>
<servlet-name>Servlet_TestServlet</servlet-name>
<url-pattern>/servlet/TestServlet</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
</web-app>
and this is my mod_jk.conf file
<IfModule !mod_jk.c>
LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
</IfModule>
JkWorkersFile "/opt/tomcat/conf/jk/workers.properties"
JkLogFile "/opt/tomcat/logs/mod_jk.log"
JkLogLevel emerg
JkMount /admin ajp13
JkMount /admin/* ajp13
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /TestApplication ajp13
JkMount /TestApplication/* ajp13
when i run tomcat it is showing this application as mounted.
i think i made everythig fine but i am getting not found 404 message.
can any one help me..

Servlets belong to the web-inf/classes dir.
In web-inf a web.xml file should be saved:
<?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>
    <servlet-mapping>
        <servlet-name>invoker</servlet-name>
        <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
</web-app>Andreas

Similar Messages

  • Shared Service issue. Not found 404

    Hello. Everyone.
    I installed and configurated EPM 11.1.2.3.
    When I opened Shared Service URL , I get an error message that "Not found 404".
    WorkSpace can display.
    What happen?
    I run validation.bat .
    Shared Services URL is error.
    Workspace URL is not error.
    Where is an log file of validation.bat  ?
    OS:Windows Server 2003 SP2
    DB:Oracle database 11.2.0.1.0
    IIS ver6.0
    I use Oracle HTTP Server.
    Please give me advise.

    As always you should check the logs, don't know where the logs are then go to the logs section in the documentation Introduction
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • In WAS Form Based Authentication : Exception Servlet Not Found: FormLoginSe

    Hi,
    I am using form bases athentivation in WebSpahe Application Server.
    When I am send the login.jsp then this exception is comming
    com.ibm.ws.webcontainer.servlet.exception.ServletNotFoundException: Servlet Not Found: FormLoginServlet
    with regards
    Siddharth
    ([email protected])

    Hi,
    I am using form bases athentivation in WebSpahe Application Server.
    When I am send the login.jsp then this exception is comming
    com.ibm.ws.webcontainer.servlet.exception.ServletNotFoundException: Servlet Not Found: FormLoginServlet
    with regards
    Siddharth
    ([email protected])

  • Oracle Certification Page Error - Page Not Found (404)

    Hello,
    I'm experiencing the following problem: can not access the certification section on oracle site:http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=39
    I receive the following error:
    Page Not Found (404)
    We're sorry! The page you are looking for has been moved or no longer exists.
    Please check the current status page first before logging an SR to AITSYS WEB SERVICES group
    or Calling the HelpDesk and provide the following information along with steps to reproduce the issue:
    Page Not Found Error 404 on Thursday, 23-Oct-2008 01:54:56 PDT amts498.oracle.com (141.146.13.151)
    Does anyone have the same problem?

    I am sorry, but I am not able to replicate your issue. The page is working fine for me. Perhaps you could contact OU technical support. Are you also having trouble getting to page tihs page http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=3?
    You can find OU technical support numbers on this page http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=123. There are also certification email addresses, but they will not be able to assist with technical problems with the website. The Oracle Certification Program Website is a part of the Oracle University website, so this is probably a bigger problem that you are having with the OU site.
    Regards,
    Brandye Barrington
    Certification Forum Moderator
    Certification Program Manager

  • Attempting to log in and after about 1 minute of trying to access Acrobat, I get an error "File Not Found (404)

    Attempting to log in and after about 1 minute of trying to access Acrobat, I get an error "File Not Found (404)

    Hi trouble logging in,
    I checked your account and everything looks fine there. What happens when you log in directly to https://cloud.acrobat.com?
    Best,
    Sara

  • Error Not Found(404)

    Hi All,
    I Have created a setup package for mobile 2005 device.I am able to download DB2e but when i click on the application link i m getting the following error messgae.
    Error Not Found(404)
    Original request:/zapp/start
    Not Found Request:/zapp/start
    Does anyone has idea why its happening.Please suggest
    Thanks
    Regards
    Devendra Phate

    Hi Devendra,
    It looks like that you have deployed the DB2e as an application. You shoud deploy is as an add-on. Undeploy and proceed as described in the OSS note 889257 for how to install and deploy DB2e
    Link (https://websmp208.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=0000889257&nlang=E)
    Regards
    Jacob Wesenberg

  • Package javax.servlet not found error

    package javax.servlet not found error. how it can be solved.
    plz help this is my first servlet program.
    vipin

    You need a jar file that has in it the javax.servlet.* classes
    It should be distributed with your servlet/jsp server.
    It can normally be found in a /lib directory under the installation.
    Some examples:
    Tomcat4: install_dir\common\lib\servlet.jar
    Tomcat5: install_dir\common\lib\servlet-api.jar; install_dir\common\lib\jsp-api.jar
    J2sdkee: install_dir/lib/j2ee.jar
    You need to include this jar file in your classpath when you compile any servlet.

  • Why i get servlet exception/login servlet not found exception  with .ear ?

    I am able to deploy my war and after that generating the ear from that. both works fine in local system.
    But when i run (Jboss as service[Java Service Wrapper]) it takes war without any problem.But with ear file i am getting servlet not found exception.I can't understand where this problem is coming from.
    Even if i take my JSPWIki ear which is running well in production server, this also gives same error.
    One more thing, the files, what i am running well in local system i.e. war and ear working fine. (can't test in production server so testing in same kind of testing server) there also getting login servlet not found exception. Even in same location other files which are deployed are working fine.out of 4 at least one is working fine.
    I don't undersatnd where this whole problem is .
    Please guiide me where sholud i concentrate to solve this problem.
    thnaks
    Vijendra

    I took the source code including the dll files already added to the project from here:
    spazzarama/Direct3DHook
    The solution include two projects the one name Capture is class library type and the dll that make the exception is in this project.
    I tried now to use the program Dependency Walker on this dll file and it found error/s:
    This is the log:
    Error: At least one required implicit or forwarded dependency was not found.
    Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
    Error: Modules with different CPU types were found.
    Warning: At least one delay-load dependency module was not found.
    Screenshot:
    It happen only when using/detecting Direct3D 11 . So far only in Direct3D 11, When i use it with a game that run Direct3D 9 it's working fine.
    The question is how can i solve this dll problem ? Any site/place to download this dll from ?

  • MAM 2.5 error on PDA "Not Found (404)"

    Hi,
    I am using MI Client 2.5 SP18 and I have tried both the MAM 2.5 SR2 and SR4 installation via the MI Webconsole. It appears to install ok and is on the MI 2.5 application screen, however when I try and run the
    application I get the error "Not Found (404) Original request /TEST_MAM_25/start Not found Request: /TEST_MAM_25/start.
    I have reinstalled the PDA several times. Is there another way to
    install the MAM 2.5 wav file. Do you know what my issue may be?
    Regards Gavin

    Hi,
    the name you use as the Component Name in the WebCOnsole needs to be the same than the file name you are uploading:
    File Name: MAM25.war
    The Component Name in WebConsole: MAM25
    You cannot call it TEST_MAM25.
    Rgds Thomas

  • 404 Not Found : Servlet not found on this server

    I have been trying to run a simple servlet from a JSP page. For some reason I keep getting an error informing me that the servlet in question cannot be found on the server. I have incuded some code from my project in the hope that it may provide a clue to the problem. I would appreciate any help.
    from the web.xml file
    <servlet>
    <servlet-name>MapTestServlet</servlet-name>
    <servlet-class>Common.MapTestServlet</servlet-class>
    </servlet>
    from the JSP page
    <FORM ACTION="\PATSCoreROC\classes\Common.MapTestServlet" METHOD="post">
    <INPUT TYPE="SUBMIT" NAME="Test" VALUE="Test Servlet">
    </FORM>
    Clicking the Test Servlet button produces the following 404 error in the browser
    404 Not Found
    Resource /PATSCoreROC/classes/Common.MapTestServlet not found on this server

    After a little work and some coffee I tried the following and it resolved my problem.
    <FORM ACTION="servlet\Common.MapTestServlet" METHOD="post">
    <INPUT TYPE="SUBMIT" NAME="Test" VALUE="Test Servlet">
    </FORM>
    I should have included 'servlet\' in the ACTION property.

  • Servlet not found !

    Hi all,
    I have a war file to deploy under Sun ONE 7Update 4, when i deploy it i call a jsp page in it and it is displyed.
    When from this page i call a servlet as :
    http://localhost/test/servlet/db
    I got an error 404 that the resource /test/servlet/db is not found, but in the web.xml the servlet is mapped like :
    <servlet>
    <servlet-name>db</servlet-name>
    <servlet-class>org.test.db</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>db</servlet-name>
    <url-pattern>/db</url-pattern>
    </servlet-mapping>
    Any suggestion ?
    Cheers.
    Stefano

    Try http://localhost/test/db

  • How To Configure JRun Classpath--Servlets Not Found

    How do I get JRun to pick up my classes in Unix? I have a WAR
    application that works fine in Windows on a local copy of JRun4. If
    I deploy it to Unix (making sure I haven't introduced any issues
    such as ^M characters, of course), I find that my JSPs can be
    picked up but the first time I attempt to access a servlet, it
    turns up not found. The Servlet .class file is located in the
    correct package in the WEB-INF/classes/ directory. Although I
    should have been able to access it by mapping the URL in the
    web.xml (which doesn't work even on the Windows copy, subject of
    another question), even when I give the explicit name of the
    servlet, i.e. /servlet/com.myco.myservlet.MyServlet, it is not
    found.
    Please explain to me what I have to do to permit my Servlets
    to be picked up. I have tried putting an explicit classpath in the
    startup script, i.e.: -cp
    ./.../servers/default/mywar/WEB-INF/classes/ but it does not make a
    whit of difference. What gives? What must I do so that my classes
    are picked up?
    Thank you.

    Hi, Guenther:
    You can use <error-page> element of web.xml. Add an element to your web.xml like
    <error-page>
    <error-code>404</error-code>
    <location>/404.jsp</location>
    </error-page>
    or
    <error-page>
    <exception-type>java.io.IOException</exception-type>
    <location>/myException.html</location>
    </error-page>
    Both of them work when I try 10.1.2. This mechanism is a j2ee standard. You might want to search the web for "error-page" and "web.xml" or look at the j2ee specfication. Hope this helps you.

  • Command not found error in Linux

    Hi all,
    While login into Linux server using terminal i am getting following error.
    -bash: /usr/bin/id: No such file or directory
    -bash: [: =: unary operator expected
    While execute these commands getting following errors
    # clear
    -bash: clear: command not found
    # du -sh *
    -bash: du: command not found
    Help on these issues.
    Linux 32bit OS.
    Red Hat Enterprise Linux Server release 4.0 (Tikanga)

    Likely a flaky environment.
    What is the contents of .bash_profile in your $HOME?
    Any btw, why RHEL4? It is ancient.

  • Javax.servlets not found

    when i try to import the javax.servlet's, it is not found... any idea where i can go toget that? i downloaded the seperate elipse for J2EE and tried it on there, and i also tried it on the eclipse for regular java developers.
    thanks
    update: it turns out that eclipse has a # of requirements that it needs to get the WTP, i'll appreciate any assistance in directing me toward the files.
    Edited by: ixxalnxxi on Jun 17, 2008 3:30 AM

    No, you need to specify the application server in the eclipse project. Then it will take its libraries in the build path.
    You may find this tutorial useful, you can just skip the JSF part if you aren't planning to use it: [http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html].

  • I am unable to open my emails using firefox, I get message page not found 404

    I am having problems opening my emails, a page with 404 not found with the following message 'The requested URL /dc/launch was not found on this server.
    Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch Server at uk.mg.bt.mail.yahoo.com Port 80'
    I have found a way to access my emails by changing my running program eg internet explorer or google. But I don't understand why this has happened, it only affects my emails when I use firefox

    The updater may not have been able to update all the files and some were left as older versions.<br />
    You need to do a clean reinstall.
    Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 5.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Uninstall your current Firefox version.
    * Do not remove personal data when you uninstall the current version.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/Profile_backup

Maybe you are looking for

  • Error while restoring the database in SQL DB.

    When I try to restore Sql backup file for my database in the process of ALM project migration process , but its throwing an error as follow: "System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing  databas

  • I tried hard to love the WRT1900AC

    But three days of torment and issues solved that problem for me. This product has loads of potential, I hope it lives up to some of it. In the hopes that Linksys listens, here was my experience. Annoyances You cannot assign a static lease outside of

  • Trouble with MSSQL Reporting Services and Oracle: PLS-00553: character set

    First off, Oracle version is 8.1.7.4.0. SQL is 64bit 2005 on Windows 2003 with all the latest patches. We’re using the Oracle 10.2 client on the SQL box. A few months ago queries against Oracle stopped working on our MSSQL reporting services server -

  • Curious message during activation of snmp traps in cisco router 2800

    I activated snmp traps in cisco router 2800 (I didn't specify a set of them, so all of them were activated). The thing is, when i configure "snmp-server enable traps", appears a message in the next line : " %Cannot enable both sham-link state-change

  • How to remote wipe when device is offline

    how do I reset passcode or wipe device?