The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Servlet configuration in Tomcat 4.1

Discussion in 'General Discussion' started by jolly, Aug 26, 2004.

  1. jolly

    jolly Member

    Joined:
    Dec 5, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I am using Tomcat 4.1.29 on fedora. JSP is working fine but there is problem in configuring servlet. In web.xml
    I have uncommented
    <!-- The mapping for the invoker servlet -->
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>

    In server.xml added the virtual host.
    In httpd.conf added

    CustomLog domlogs/allhopeindia.com combined
    ScriptAlias /cgi-bin/ /home/allhope/public_html/cgi-bin/

    <IfModule mod_jk.c>
    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13
    JkMount /servlets/* ajp13
    <Location "/examples/WEB-INF/">
    AllowOverride None
    deny from all
    </Location>
    </IfModule>

    I created WEB-INF folder and inside web-inf Classes. Uploaded the class files in it. Now when I go to
    http://domain.com/servlet/CLassFileName it don't work.

    Do I have to make any changes in workers2.properties.

    Please suggest me where I am going wrong.
    Thanks.
     
Loading...

Share This Page