tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill_Fellows/MO/americancent...@americancentury.com
Subject Re: Please help. Going Nuts.
Date Thu, 01 Mar 2001 17:54:46 GMT





"mikhail malamud" <mikhail.malamud@drexel.edu> on 03/01/2001 11:20:31 AM



Please respond to tomcat-user@jakarta.apache.org

To:   tomcat-user@jakarta.apache.org
cc:    (bcc: Bill Fellows/MO/americancentury)
Subject:  Please help. Going Nuts.



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

{snip}

>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>
>#################################################

Just a WAG, but in <servlet-class> you spect edu.myschool.util.HelloWorldExample
Is that right?  I haven't packaged any of my classes yet so I haven't tested
that.
Also, have you tried it without Apache?  Just hit :8080  Does that work?


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

A minor WAG here but would it not be /servlet/HelloWorld since the servlet name
is
HelloWorld (it doesn't matter what your class name is, whatever the servlet name
is, is
what Tomcat will refer to it as.)
/bill



Mime
View raw message