Resource not available error in servlet

  • Thread starter shaunak.adgaonkar
  • Start date
S

shaunak.adgaonkar

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 ???
 
N

Naveen Kumar

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

Naveen Kumar

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

Crap.Guess its a technical group and not a primary school where you
boss around with letters and your crappy grammar. Hope at least
someday you understand this and stop bossing around correcting
spelling and grammatical errors.

Boss around to those who are new to the group or with those who have
never used groups ever in life.
 
N

Naveen Kumar

Get over yourself.

I was not "bossing", and your jejune attitude doesn't bode well for the
quality of your work.

It just happens to be a fact that the word is spelled "you", technically, and
not "u". I provided useful and accurate information. Spelling and
professionalism are important, after all.

If you want to get all hostile and aggrieved that I gave you useful and
correct information, with *no* command or "bossiness" involved, then that
speaks very poorly of your character.

I guess maybe you need to review your primary school lessons, or you would
have known the correct spelling already.


You should have shown your professionalism in work rather than crappy
grammar. No one has asked you to correct or give right information.
Guess everyone are good enough to know what is "u" and you.

If you have that much of time, concentrate on Java being in this group
and not on english. It doesnt suits your work and age.

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,
dont try to boss around and start giving suggestions. Think about
helping if you can, else let the mail go. Do not keep bossing around
in all the mail of the group. After all its not mandatory that you
have to answer all queries even if you dont know, no one is expecting
you to do that.

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.


No one has ever asked you to be professional to this extent. Its been
ages since i am looking this crappy thing of yours. Stop this at least
now. Its high time you learn that no one wants you to be high school
teacher. Professionalism is not shown by words. Groups are not place
where you really have to be 100% professinals. Groups are means of
helping people and let them be that. Do not make them ground for your
primary school subjects. Do not start tomorrow that everyone has to
start their mail with "Sir" and end with annotation. Stop for once.
Guess you are not a kid anymore.

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

Naveen Kumar

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

Try to help him in solving his problem and not roam around with
advices.
I have bossed nobody. Where did I give any command?


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.

God help him. He is writing his 1st standard exam tomorrow. Hope you
pass one day and show bit of maturity.

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?

All this while it was you who was kid. Sticking to your 1st standard
lessons of "u" and you. Gosh, wish one day you come out of your
primary school and try to be practical.
I guess you are, still.

If you can understand, you can deduce who is what.
Weird comment. I am not the one misspelling "you" or getting all bent out of
shape over correct information.

You were taught that in your high school ??? Man, guess you really
went to good graded school ?? I was taught that in 1st standard.


Naveen Kumar
 
J

John B. Matthews

Naveen Kumar said:
The word is "you", not "u".

Crap. [I though this was] a technical group and not a primary school
where you boss [people] around with letters and your crappy grammar.
hope at least someday you understand this and stop bossing
[people] around [and] correcting spelling and grammatical errors.

Boss around to those who are new to the group or those who have never
used groups ever in life.


Kumar: I don't understand. You generously corrected the original
poster's syntactic error, a missing xml bracket as I recall; yet you are
upset that Lew corrected your misspelling. In a later post, you were
critical of Lew's correct and valuable answer. This seems contradictory.

Permit me to compare. Your very helpful answer focused on the smallest
possible change to correct the OP's error. In contrast, Lew's answer
carefully invited the student to search for deeper understanding.

Imagining myself to be the poster who received this answer, I asked "Why
mention 'default package', when I can't get my servlet to load?" I
searched for the keywords "servlet tomcat default package". The first
result identified the security risk and the second took me to the
informative and entertaining article "Long and Sordid Tale of the
Invoker Servlet." The clear examples there reminded me how easy it is to
make obscure syntax errors in xml. I found the exercise instructive.

[By the way, I have edited your post only so that you may see how I
iterpreted it. Please correct me if I am wrong.]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top