views:

419

answers:

3

I'm developping a web application in Eclipse and I'm using maven, spring and tomcat. Now the problem I have is that debug as => debug on server doesn't work. I just get exceptions. (and yes I've created the server)

If I use the mvn command to compile it, put the war in my tomcat webapps dir and start my tomcat the application works fine. But for the functionallity I'm now working on debugging would be usefull.

A: 

We used to test our application with Tomcat as well, but switched to starting an embeddable Jetty. Here's a sample app. It's JSF, but it doesn't really matter. The pseudo-unit test simply starts a jetty "before" and shuts stops it "after". No need for external server infrastructure, no need for IDE dependencies.

lexicore
While I like this approach too, it doesn't explain why running on server doesn't work for the OP.
Pascal Thivent
@Pascal Thivent: I agree. Just suggesting the alternatives.
lexicore
A: 

I found the answer for this in http://jacksonps4.me/wordpress/?p=868

Worked like a charm for me, yet I don't understand anything!

A: 

Thank you, user340202! I was searching for this solution for days and finally found it here.