File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Facing issue with Dispatcher servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Facing issue with Dispatcher servlet" Watch "Facing issue with Dispatcher servlet" New topic
Author

Facing issue with Dispatcher servlet

rajesh ma
Greenhorn

Joined: Apr 08, 2013
Posts: 5
I have a simple spring application. The basic implementation is, my app will accept the url's .I have a configuration for dispatcher servlet in web.xml. From there the request is handed over to url handler mapping which maps the url to a controller which is configured in application-web.xml. Normal scenarios it works fine




But for one particular url I am facing issue.
localhost:7001//..................../etc1/passwd

For the above mentioned url, dispatcher servlet is not able to map it to the controller, so because of this request stuck in weblogic level and thread will be stuck. dispatcher servlet provided by spring is not mapping the request to a controller.
How to overgo through this situation?Is there any way to play with the above kind of url's. I tried with both spring 2 ang spring3 web mvc jars.


Ayan mallick
Ranch Hand

Joined: Nov 17, 2012
Posts: 44
I think due to security reason access to this url is restricted. check this.
because fro this particular url pattern i am in log i am getting this warning and access is denied.




Regards

Ayan



rajesh ma
Greenhorn

Joined: Apr 08, 2013
Posts: 5
Hey Ayan, thanks for your reply. But I am facing the issue with the below mentioned url also localhost:7001/Sample//.............. where there is no /etc/passwd
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Facing issue with Dispatcher servlet
 
Similar Threads
Spring MVC - Url Handling Problem
Autowiring Problem - NullPointerException.
Sample Petclinic does not display static content
How to access application-context beans in dispatcher-servlet.xml
No mapping found for HTTP request with URI - Why won't my page load?