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

Gerardo Morales

Greenhorn
+ Follow
since Jan 10, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
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:
http://blog.gmorales.net/2012/03/how-to-solve-orghibernatelazyinitializa.html

Good luck!
The fact that InstallTask is deprecated is only the first problem you will face if you are following the tutorial at http://www.springframework.org/docs/MVC-step-by-step/Spring-MVC-step-by-step-Part-1.html

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: http://blog.gmorales.net/2012/01/changes-on-developing-spring-framework.html

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)

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

and 2. Have in your build.properties file the following line:

tomcat.manager.url=http://localhost:8080/manager/text
10 years ago