Forums Register Login

can't run javaservlet class

+Pie Number of slices to send: Send

I use tomcat.and I can't call the servlet classes,can anyone help me?
+Pie Number of slices to send: Send
The directory structure looks OK as far as it goes.
You don't give any indication of what's in your web.xml. Have you mapped your servlet(s) to a URL path? Are you using the correct mapped path in your HTML? Do you get any errors in the container log files?
+Pie Number of slices to send: Send
Put the classes in a package - it eliminates so many odd problems.
+Pie Number of slices to send: Send
the error message on IE is:

and the web.xml contains nothing,it is required by tomcat

[ December 29, 2003: Message edited by: Mellihoney Michael ]
+Pie Number of slices to send: Send
Hi Michael!
1.Open web.xml available under <Servlet Installation Directory>/conf
2.Set url-pattern to /servlet/* for servletname "Invoker" under servlet-mapping tag.
Save this file.
call in the browser :
http://ipaddress ortno/servlet/<here name of the servlet>
+Pie Number of slices to send: Send
Since there really is no JSP component to this topic, I'm moving this along to the Servlets Forum.
bear
What's that smell? Hey, sniff this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 606 times.
Similar Threads
protected access modifier
default package
Problem with ByteArrayDataSource...
Generic Classes
Extending classes in JBoss, Strange method signature error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:21:56.