aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Trouble with running Maven Tomcat plugin through Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Trouble with running Maven Tomcat plugin through Eclipse" Watch "Trouble with running Maven Tomcat plugin through Eclipse" New topic
Author

Trouble with running Maven Tomcat plugin through Eclipse

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Hi,

I'm using Eclipse Indigo, Win XP, Java 1.6, Maven 3.0.3, Maven-Tomcat plugin 1.1, a stand-alone Tomcat 6.0.33 server, and my shirt is blue. From a command line (Cygwin), I'm able to run the following just fine



to deploy my web app into an existing Tomcat instance. However, from Eclipse, if I right click on my project and execute a run configuration (http://screencast.com/t/nRYcbMEud), with the same characteristics, I get the error (401 forbidden) below. Any ideas what I need to do to adjust my environment to get this to run the same?

Thanks, - Dave

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Try following this advice from the error message:
Re-run Maven using the -X switch to enable full debug logging.

That might give you more of a clue as to what is going on.

Any idea where the documentation is for the Tomcat plugin? I looked at http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/context-goals.html but couldn't find any docs on the configuration options for the plugin.


JBoss In Action
Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Hi,

I'm including the complete output of using the "-X" option below, but it doesn't really give any more detailed information than the baffling 401 I saw without it. Again, this doesn't happen when I run at the command line, so I'm wondering if Eclipse is able to read my Windows environment variables? Maybe it's not recognizing M2_HOME or CATALINA_HOME?

- Dave


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trouble with running Maven Tomcat plugin through Eclipse