• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Trouble with running Maven Tomcat plugin through Eclipse  RSS feed

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!