tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mikhail malamud" <mikhail.mala...@drexel.edu>
Subject Please help. Going Nuts.
Date Thu, 01 Mar 2001 17:20:31 GMT
Here is the setup I have.
Tomcat 3.2.1 with mod_jk
Apache 1.3.17. DocRoot /usr/local/apache/htdocs.

First, I got the existing /examples webapp to work. Apache is calling
tomcat and its all good. But now I am trying to deploy my first tomcat
application and going through hell. My DocRoot looks the following way.

DocRoot/vitamin/WEB-INF/
DocRoot/vitamin/WEB-INF/classes/edu/myschool/util/HelloWorldExample
Vitamin is the top level of an application I am trying to deploy.

I added following  information to the following files.

################################################
mod_jk.conf. Apache Includes it in httpd.conf

Alias /vitamin "/usr/local/apache/htdocs/vitamin"
<Directory "/usr/local/apache/htdocs/vitamin">
    Options Indexes FollowSymLinks
</Directory>

JkMount /vitamin/servlet/* ajp13
JkMount /vitamin/*.jsp ajp13


<Location "/vitamin/WEB-INF/">
    AllowOverride None
    deny from all
</Location>
#################################################

Then, I added following entry into the server.xml

##################################################
<Context path="/vitamin"
                 docBase="/usr/local/apache/htdocs/vitamin"
                 crossContext="false"
                 debug="0"
                 reloadable="true" >
        </Context>
##################################################

At last. I added following entry into web.xml.

#################################################
<servlet>
        <servlet-name>HelloWorld</servlet-name>

<servlet-class>edu.myschool.util.HelloWorldExample</servlet-class>
</servlet>
<servlet-mapping>
        <servlet-name>HelloWorld</servlet-name>
        </url-pattern>/*</url-pattern>
</servlet-mapping>
#################################################

This does not look good to me, I am more than sure that there is
something wrong with it. I just dont know what.
When I try to access the servlet using
http://myhost.edu/servlet/edu.myschool.util.HelloWorldExample or
http://myhost.edu/servlet/edu.myschool.util.HelloWorld. I dont know
which one goes into URL class name or servlet name. Please help. Any
advice is greately apreciated.










Mime
View raw message