tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Malamud <m...@drexel.edu>
Subject RE: Please help. Going Nuts.
Date Thu, 01 Mar 2001 18:16:16 GMT
OK. I got this to work. What's the next step, Jan?

-----Original Message-----
From: Jan Labanowski [mailto:jkl@osc.edu]
Sent: Thursday, March 01, 2001 12:51 PM
To: tomcat-user@jakarta.apache.org
Cc: Jan Labanowski
Subject: Re: Please help. Going Nuts.


One thing at a time... Do not start from most complicated stuff... Try
to make hello world JSP to work first
In your directory
/usr/local/apache/htdocs/vitamin put a file:

hello.jsp

<HTML>
<BODY>
Hello World
</BODY>
<HTML>

and try to get it in the browser:

http://my.machine.com:8080/vitamin/hello.jsp
and do it the same with your apache port, say
http://my.machine.com/vitamin/hello.jsp

(I do not know what your ports are, so you need to change it)


On Thu, 1 Mar 2001, mikhail malamud wrote:

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

Looks OK...


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


Can you see anything on the Tomcat port 8080 (or whatever it is in your
case).
i.e., 
http://my.machine.com:8080/vitamin/hello.jsp

Is your apj13 connected activated? 

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

Which web.xml? The /usr/local/apache/htdocs/vitamin/WEB-INF/web.xml ?

> 
> #################################################
> <servlet>
>         <servlet-name>HelloWorld</servlet-name>
The servlet name is not HelloWorld, it is HelloWorldExample
> 
> <servlet-class>edu.myschool.util.HelloWorldExample</servlet-class>
> </servlet>
> <servlet-mapping>
>         <servlet-name>HelloWorld</servlet-name>
The servlet name is not HelloWorld, it is HelloWorldExample
>         </url-pattern>/*</url-pattern>

This is wrong...
         <url-pattern>/*</url-pattern>

> </servlet-mapping>
> #################################################





Mime
View raw message