Win a copy of Rust Web Development this week in the Other Languages forum!

Gerardo Morales

+ Follow
since Jan 10, 2012
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gerardo Morales

You could try to use interceptors instead of filters. Anyway, the OpenSessionInViewFilter should work fine.

Did you do a filter mapping after defining the filter on the web.xml?

You can find an example of a web.xml file and you can also download a little sample project that uses OpenSessionInViewFilter here:

Good luck!
The fact that InstallTask is deprecated is only the first problem you will face if you are following the tutorial at

I did a post listing the changes that you need to apply to follow the tutorial if you are using Tomcat 7.x and Spring 3, here is the link:

Good luck
10 years ago
I've had the same problem, to fix it (if you are using tomcat 7 or above), you need to:

1. At least have the manage-script role (change the conf/tomcat-users.xml file as described below)

<role rolename="manager-script"/>
<user username="tomcat" password="s3cret" roles="manager-script"/>

and 2. Have in your file the following line:

10 years ago