Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Trouble with running Maven Tomcat plugin through Eclipse

 
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


 
What are your superhero powers? Go ahead and try them on this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!