This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Tomcat and the fly likes TomCat deploy files.war and run fine *.jsp but SERVLETS = 404; what I can do ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "TomCat deploy files.war and run fine *.jsp but SERVLETS = 404; what I can do ?" Watch "TomCat deploy files.war and run fine *.jsp but SERVLETS = 404; what I can do ?" New topic
Author

TomCat deploy files.war and run fine *.jsp but SERVLETS = 404; what I can do ?

Gabriel Pinares
Greenhorn

Joined: Mar 11, 2008
Posts: 16
Hi.

I have TC 6.x

TomCat deploy fine my files.war and run fine *.jsp
but when I go to http://web.info/SERVLET

SERVLETS = 404

what I can do ?

I remove uncomment this in my file WEB.XML:

<!-- The mapping for the deprecated invoker servlet -->
<!--
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
-->


But when I uncomment, *.jsp no run

What more I can try ?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17039
    
  26

The reason that the invoker servlet is deprecated is that it was a major security vulnerability.

However, the primary reason for the "404" is that the URL is case-sensitive, I believe.


An IDE is no substitute for an Intelligent Developer.
Gabriel Pinares
Greenhorn

Joined: Mar 11, 2008
Posts: 16
>>>the primary reason for the "404" is that the URL is case-sensitive, I believe.

No masters.

All is OK in URL.

Please sayme what more I can do ?

I uncomment the fragment:

<!-- The mapping for the deprecated invoker servlet -->
<!--
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
-->

Then NOTHING run.

No servlets, no *.JSP

What I need edit into TOMCAT ?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20080
    
  30

The web application should not be part of the URL pattern. With your current URL pattern, the invoker servlet will only be called for URLs that start with http://web.info/SERVLET/servlet/, assuming that SERVLET is the name of your web application.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Gabriel Pinares
Greenhorn

Joined: Mar 11, 2008
Posts: 16
Thanks.

I can run perfectly:

http://myweb.com/myProyectServlet/

This run fine.

But if I do ANY ACTION as CLICK then 404


Now:

http://myweb.com/myProyectServlet/servlet = 404
http://myweb.com/myProyectServlet/ = OK
http://myweb.com/myProyectServlet/ + ANY ACTION = 404

 
Have you checked out Aspose?
 
subject: TomCat deploy files.war and run fine *.jsp but SERVLETS = 404; what I can do ?
 
It's not a secret anymore!