From: shaunak.adgaonkar on
This is my directory structure C:\Program Files\Apache Software
Foundation\Tomcat 4.1\webapps\VSG\WEB-INF and here i have in web-inf
my web.xml which looks like this

<web-app>
<servlet servlet-name>Myservlet</servlet-name>
<servlet-class>Myservlet<servlet-class>
</servlet>
<servlet-mapping >
<servlet-name>Myservlet</servlet-name>
<url-pattern>/myservlet</url-pattern>
</servlet-mapping>
</web-app>


while my class file is at this position C:\Program Files\Apache
Software Foundation\Tomcat 4.1\webapps\vsg\WEB-INF\classes

Now i run my servlet in browser as
http://localhost:8080/vsg/myservlet

it gives me error that resource is not available.... any idea on
this ???
From: Lew on
shaunak.adgaonkar(a)gmail.com wrote:
> This is my directory structure C:\Program Files\Apache Software
> Foundation\Tomcat 4.1\webapps\VSG\WEB-INF and here i have in web-inf
> my web.xml which looks like this
>
> <web-app>
> <servlet servlet-name>Myservlet</servlet-name>
> <servlet-class>Myservlet<servlet-class>
> </servlet>
> <servlet-mapping >
> <servlet-name>Myservlet</servlet-name>
> <url-pattern>/myservlet</url-pattern>
> </servlet-mapping>
> </web-app>
>
>
> while my class file is at this position C:\Program Files\Apache
> Software Foundation\Tomcat 4.1\webapps\vsg\WEB-INF\classes
>
> Now i run my servlet in browser as
> http://localhost:8080/vsg/myservlet
>
> it gives me error that resource is not available.... any idea on
> this ???

Never use the default package in production code.

--
Lew
From: Naveen Kumar on
On Jul 6, 8:26 pm, "shaunak.adgaon...(a)gmail.com"
<shaunak.adgaon...(a)gmail.com> wrote:
> This is my directory structure C:\Program Files\Apache Software
> Foundation\Tomcat 4.1\webapps\VSG\WEB-INF and here i have in web-inf
> my web.xml which looks like this
>
> <web-app>
> <servlet servlet-name>Myservlet</servlet-name>


This is not how u write it. It should be
<servlet>
<servlet-name>Myservlet</servlet-name>


> <servlet-class>Myservlet<servlet-class>
> </servlet>
> <servlet-mapping >
> <servlet-name>Myservlet</servlet-name>
> <url-pattern>/myservlet</url-pattern>
> </servlet-mapping>
> </web-app>
>
> while my class file is at this position C:\Program Files\Apache
> Software Foundation\Tomcat 4.1\webapps\vsg\WEB-INF\classes
>
> Now i run my servlet in browser ashttp://localhost:8080/vsg/myservlet
>
> it gives me error that resource is not available.... any idea on
> this ???

From: Lew on
Naveen Kumar wrote:
> This is not how u write it. It should be

The word is "you", not "u".

--
Lew
From: Lew on
Naveen Kumar wrote:
> And if you are that professional, try to help people with correct
> answer. Rather than telling that his web.xml was wrong, you answer do
> not use the default package. Get off man. If you do not know answer,

That was correct advice. What is your problem with it?

> dont try to boss around and start giving suggestions. Think about

I have bossed nobody. Where did I give any command?

> Guess your school teaches you "You" even before they teaches letter
> "u". That does not happen at my end. Try to be human and not a monkey
> who understands word only by matching it with his vocabulary. Guess
> GOD has given you head to use and try to use it.

Man, you have lost it.

"u" is a letter, correct. It is not the second-person pronoun. Go back and
review your primary-school lessons.

> No one has ever asked you to be professional to this extent. Its been
> ages since i [sic] am looking this crappy thing of yours.

Awww. Is widdoo-widdoo scwipt-kiddie upset?

> Guess you are not a kid anymore.

I guess you are, still.

> Guess you forgot your high school lessons or probably you need to take
> one again.

Weird comment. I am not the one misspelling "you" or getting all bent out of
shape over correct information.

--
Lew