Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Loaded: Integration with Spring MVC maven project

I just stumbled upon the Spring Loaded project on the Spring website today. I'm trying to integrate this into a Spring MVC (using Maven and TOMCAT) I've been working on.

As per the instructions on the project page, I've downloaded the JAR file and added the following in the TOMCAT VM arguments (Inside Eclipse):

-javaagent:C:\Users\xxx\Downloads\springloaded-1.2.0.RELEASE.jar -noverify

I've also disabled 'Automatic Publishing' in TOMCAT.

Now, Once I start TOMCAT and make any changes to the controllers (or any other classes), I do not see any hot deployment happening. Is there anything I'm going wrong or is there any other configuration required?

Would appreciate any inputs.

like image 291
va1b4av Avatar asked May 07 '14 06:05

va1b4av


1 Answers

I was trying SpringLoaded for a quick demonstration using Petclinic on top of Aptache Tomcat 7 during this week facing same issue as discussed here. Finally I found that I need to add the project to the Tomcat classpath. So in my case, I have opened the Tomcat "launch configuration" in Eclipse, and in the classpath tab, I have added my project in the "user entries" group. This causes springloaded works fine.

like image 178
viarellano Avatar answered Oct 05 '22 23:10

viarellano