Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Gabriel Pinares
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18014
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gabriel Pinares
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>>>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
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gabriel Pinares
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic