aspose file tools*
The moose likes Servlets and the fly likes running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "running" Watch "running" New topic
Author

running

syam
Greenhorn

Joined: May 06, 2001
Posts: 10
i wrote a servlet to print "hi".
it is running well.
but if i put that servlet in a package p;
and try to run that 404 error is coming.
why?
what should we do?
help needed
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
You have to call the servlet in this way.
http://localhost:8080/yourApplnName/servlet/a.b.c.AMSServlet
Where AMSServlet is under "a.b.c" package. In other words, the first noncomment java code inside AMSServlet.java is package a.b.c;
regds
maha anna
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"syam",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: running