-
1. Re: I have a servlet and I don't know how to make it run on
spiritualmechanic Apr 20, 2004 3:19 PM (in response to rowla)Your url, is going to be after the MyHelloWorld.war
so you'll need to add /servlet/MyHelloWorld/? -
2. Re: I have a servlet and I don't know how to make it run on
rowla Apr 20, 2004 3:31 PM (in response to rowla)in web.xml I changed for
<url-pattern>MyHelloWorld/</url-pattern>
and now I get :
Directory Listing For /
--------------------------------------------------------------------------------
Filename Size Last Modified
classes/ Tue, 20 Apr 2004 20:16:32 GMT
jboss-web.xml 0.2 kb Sun, 18 Apr 2004 15:48:06 GMT
web.xml 0.4 kb Tue, 20 Apr 2004 20:16:26 GMT
instead of my servlet.. -
3. Re: I have a servlet and I don't know how to make it run on
spiritualmechanic Apr 20, 2004 3:42 PM (in response to rowla)Then you probably need to add another MyHelloWorld/. The url-pattern goes AFTER any web-app name you have.
-
4. Re: I have a servlet and I don't know how to make it run on
triathlon98 Apr 20, 2004 3:48 PM (in response to rowla)As url-pattern, just put "/" (without the quotes), the context-root is always added in front of that.
Also, I would remove the virtual-host setting, at least for starters. This may confuse the system.
Joachim -
5. Re: I have a servlet and I don't know how to make it run on
rowla Apr 20, 2004 4:04 PM (in response to rowla)Thanks a lot for all the replies!!
It works OK:)