tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chong Yu Meng <chon...@cymulacrum.net>
Subject Re: servlets don't work in own webapp (finshed writing this time)
Date Sun, 16 Feb 2003 04:00:43 GMT
See my document on this

http://www.starhub.net.sg/~cymbiote/linux-sxs/tomcat4.1x.html#3.2

In particular, the section on "saying HelloWorld" and the URL that you 
should key into the browser, after doing the <servlet-mapping>

Regards,
chong



Turner, John wrote:

>Please be more specific.  What exactly do you mean by "this doesn't work"?
>What URL are you using?
>
>If you have a pattern of /HelloWorld and are using
>http://some-host/servlets/HelloWorld it will not work.  
>
>John
>
>-----Original Message-----
>From: Jaap Duursma [mailto:tfe@raketnet.nl] 
>Sent: Saturday, February 15, 2003 11:54 AM
>To: Tomcat Users List
>Subject: Re: servlets don't work in own webapp (finshed writing this time)
>
>
>On Sat, 15 Feb 2003 23:12:50 +0800
>Chong Yu Meng <chongym@cymulacrum.net> wrote:
>
>  
>
>>>      
>>>
>>>>>where I can access it succesfull at : 
>>>>>http://localhost:8180/examples/servlets/HelloWorld
>>>>>
>>>>>but when I go to
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>http://localhost:8180/pso/servlets/HelloWorld it doesn't
>>>>   
>>>>
>>>>        
>>>>
>>>>>work and gives me a 404 error, resource is not available.
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>The default invoker URL /pso/servlets/HelloWorld is disabled in the
>>default installation of Tomcat. If you want to make your servlet 
>>accessible, you will need to add the relevant <servlet-mapping>  element 
>>in your web application's web.xml.
>>
>>Regards,
>>chong
>>
>>    
>>
>
><servlet>
>   <servlet-name>HelloWorld</servlet-name>
>   <servlet-class>HelloWorld</servlet-class>
></servlet>
>
><servlet-mapping>
>   <servlet-name>HelloWorld</servlet-name>
>   <url-pattern>/HelloWorld</url-pattern>
></servlet-mapping>
>
>this doesn't work.
>How should the url-pattern look like ?
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>---
>
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
> 
>
>---
>
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
> 
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message