• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Trouble with running Maven Tomcat plugin through Eclipse

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Can you smell this for me? I think this tiny ad smells like blueberry pie!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic