aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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: 16303
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
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: 19781
    
  20

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
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TomCat deploy files.war and run fine *.jsp but SERVLETS = 404; what I can do ?