File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can't run javaservlet class

 
Mellihoney Michael
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I use tomcat.and I can't call the servlet classes,can anyone help me?
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13046
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put the classes in a package - it eliminates so many odd problems.
 
Mellihoney Michael
Ranch Hand
Posts: 124
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
sreekanth rach
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since there really is no JSP component to this topic, I'm moving this along to the Servlets Forum.
bear
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic