Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IntelliJ Maven Project Startup Error

 
Joe Harry
Ranch Hand
Posts: 10087
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I'm trying to fire up my Maven project which is a web application in a Tomcat container. But when I start the server, I get to see the following error. Completely clueless why this should happen. Any suggestions?

 
Joe Harry
Ranch Hand
Posts: 10087
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to work out my way to get a Tomcat + Maven app started form within an IDE. I first tried using Eclipse Indigo but had couple of issues with building my projects after I installed m2eclipse.

Then I wanted to try it out using IntelliJ. But facing the problems above. Can anyone here point me to some good resources that help me configure Tomcat + Maven and run them in Eclipse or IntelliJ?
 
Joe Harry
Ranch Hand
Posts: 10087
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same war when I manually deploy to Tomcat, runs without any problems. I just can't start it up from within an IDE.
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I saw the following error:


I would immediately assume that I have the wrong jar or a missing jar.

If you haven't already found it, check this thread that says the same thing:
http://forum.springsource.org/showthread.php?57313-org-springframework-util-ReflectionUtils-makeAcces-sible-NoSuchMethodException

The fact that it works when you deploy to Tomcat tells you that the correct jars are there in your webapp's lib directory (or maybe in Tomcat's lib).

If you examine the difference between what is in your lib directory when you compile and deploy manually and what ends up there after IDE/Maven deploy, you should spot your problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic