This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Doubt on Invoker Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Doubt on Invoker Servlet " Watch "Doubt on Invoker Servlet " New topic
Author

Doubt on Invoker Servlet

gawacs Kumar
Greenhorn

Joined: Feb 26, 2012
Posts: 5
Guys ,i am new to servlets, started yesterday.
Well , while configuring ,when i enabled the 'invoker servlet' in 'install_dir/conf/web.xml' , the server did not start after i finished up.
Also, if i keep it disabled (invoker servlet) , then jsp's and html files are running BUT servlets are not running.
I was using 'http:/localhost/servlet/ServletName' URL.
I am using Tomcat version 6.0.35.
Kindly guide!
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19655
    
  18

Welcome to the Ranch!

Are there any errors in your Tomcat logs?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
gawacs Kumar
Greenhorn

Joined: Feb 26, 2012
Posts: 5
how should i know that?
I mean there are certain .txt files in it.
gawacs Kumar
Greenhorn

Joined: Feb 26, 2012
Posts: 5
Sorry.
yeah, there are errors in .txt files .
How they occured and are they related to the problems i mentioned?

Thanks
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
when i enabled the 'invoker servlet' in 'install_dir/conf/web.xml' , the server did not start after i finished up.


Probably you made an error in editing web.xml - incorrect syntax will cause a parsing error preventing the server from starting.

Exactly how did you install tomcat - as a service or as an application?

Exactly how are you starting Tomcat?

Bill
gawacs Kumar
Greenhorn

Joined: Feb 26, 2012
Posts: 5
As of now server is getting started , but as i said , sevlets are not running on it and i am getting 'http status 404' error.
Everything else is working fine.i mean i am quite able to run jsp's .Servlets are not running .
Is there anything related to 'invoker servlet' enabling?
gawacs Kumar
Greenhorn

Joined: Feb 26, 2012
Posts: 5
There are errors in .txt files in 'logs'. Is that a possible cause for the mentioned problem?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
That's impossible to say without knowing what those errors are.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19655
    
  18

And without seeing the servlet and servlet-mapping elements of your web.xml file.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Reading the Invoker servlet FAQ would be a good idea.

Bill
 
jQuery in Action, 2nd edition
 
subject: Doubt on Invoker Servlet
 
Similar Threads
Cannot access the HelloWorldServlet
newbie question: How to import a class under /WEB-INF/classes?
Server returned HTTP response code: 504 for URL...
HTTP 404 Error
How do I enable the invoker-servlet in JBoss AS 5.1.0.GA