Howdy,
You did put HelloWorld as the servlet class, right? ;)  I hope you
didn't just leave in the "whatever" example I gave...

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Jon Haugsand [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 25, 2003 4:13 AM
>To: Tomcat Users List
>Subject: Re: App Developer's Guide Example
>
>* Yoav Shapira
>> Howdy,
>>
>>>Thanks, it helped.  No errors during deploy.  However, I cannot get
in
>>>touch with my servlet.  I _know_ this is really newbie questions, but
>>>I cannot find ONE tutorial on these issues.  Here is my web.xml:
>>
>> It is unfortunate that most tutorials out there (plenty exist, just
>> google for "servlet tutorial" for example) are out of date,
especially
>> by assuming the presence of an invoker servlet.
>>
>>>    <servlet-mapping>
>>>      <servlet-name>hallo</servlet-name>
>>>      <url-pattern>/*do</url-pattern>
>>>    </servlet-mapping>
>>
>> So you would access your servlet using any URL that ends in do, e.g.
>> http://yourhost:yourport/yourwebapp/xdo
>>
>> The above url-pattern is probably not what you really want, although
>> it's legal and will work.  Try something simpler instead:
>> <servlet>
>>   <servlet-name>hallo</servlet-name>
>>   <servlet-class>whatver</servlet-class>
>> </servlet>
>> <servlet-mapping>
>>   <servlet-name>hallo</servlet-name>
>>   <url-pattern>/halloPage</url-pattern>
>> </servlet-mapping>
>>
>> Then you will access your servlet by going to:
>> http://yourhost:yourport/yourwebapp/halloPage
>
>Did so:
>
>2003-06-25 10:11:25 - Ctx( /wartest ): 404 R( /wartest + /halloPage +
null)
>null
>
>However, the index.html is reached.  (Directory structure:
>
>computer> jar tf wartest.war
>META-INF/
>META-INF/MANIFEST.MF
>WEB-INF/
>WEB-INF/classes/
>WEB-INF/classes/HelloWorld.class
>WEB-INF/web.xml
>WEB-INF/web.xml~
>index.html
>
>computer> wget http://localhost:8082/wartest/index.html  --> ok
>computer> wget http://localhost:8082/wartest/halloPage  --> error
>
>--
> Jon Haugsand, [EMAIL PROTECTED]
> http://www.norges-bank.no
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to