Hello, I added a comment in the JIRA (TOMCAT-68) [1] in order to explain how to configure the tomcat-maven-plugin for Tomcat 6.x and Tomcat 7. I hope this will help.
[1] http://jira.codehaus.org/browse/MTOMCAT-68?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel Regards. Maxime Gréau. mgreau.com *Auteur du livre **Apache Maven - Maîtrisez l'infrastructure d'un projet Java EE* <http://mvnbook.mgreau.com/> 2011/9/15 Steve Cohen <[email protected]> > I already did. Apparently it is not quite as I said. This was changed in > some version of 6.0.x > than the one I was using (6.0.20). Still, the doc > purports to be the documentation for 6.0.x, not 6.0.latest, so it's at least > a little misleading. > > > On 09/15/2011 07:51 AM, Olivier Lamy wrote: > >> 2011/9/15 Steve Cohen<[email protected]>: >> >>> >>> Thanks, I solved this. >>> >>> There is a bad error on the Tomcat 6.0 documentation website: >>> http://tomcat.apache.org/**tomcat-6.0-doc/manager-howto.** >>> html#Configuring_Manager_**Application_Access<http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Configuring_Manager_Application_Access> >>> >>> good catch ! >> can you load an issue in the tomcat project ? >> >>> in which they give the 7.0 syntax for manager role names. 6.0 requires >>> "manager", not "manager-gui" or "manager-script" and it was leading me >>> astray. >>> >>> Speaking of documentation, it would be nice if this plugin could have >>> some >>> beefed-up documentation. I'm still not clear which commands work with an >>> embedded tomcat server and which ones (if any) work with an existing >>> tomcat >>> server and how to configure the latter. >>> >>> On 09/14/2011 03:17 PM, Olivier Lamy wrote: >>> >>>> >>>> Hello, >>>> Do you have any logs in your tomcat ? >>>> Can you try with adding username and password in the mojo >>>> configuration ? (with removing server id). >>>> >>>> <username> and<password> >>>> >>>> 2011/9/14 Steve Cohen<[email protected]>: >>>> >>>>> >>>>> I am trying to use the Tomcat Maven Plugin >>>>> >>>>> (http://mojo.codehaus.org/**tomcat-maven-plugin/<http://mojo.codehaus.org/tomcat-maven-plugin/>) >>>>> which seems to be >>>>> partially >>>>> migrated to apache, though most of the information is still at this >>>>> site. >>>>> >>>>> I am trying to do this because the following "simple" tutorial >>>>> instructed >>>>> me >>>>> to do so: >>>>> >>>>> http://www.insaneprogramming.**be/?p=140<http://www.insaneprogramming.be/?p=140> >>>>> >>>>> However, I find that my tomcat installation will not let me access the >>>>> manager functions the plugin requires, even though I set up my >>>>> tomcat-users.xml and server.xml files as the tomcat (6.0.20 by the way) >>>>> documentation indicates is correct: >>>>> >>>>> tomcat-users.xml: >>>>> >>>>> <tomcat-users> >>>>> <user username="maven" password="tomcat" >>>>> roles="manager-script,**standard"/> >>>>> </tomcat-users> >>>>> >>>>> server.xml: >>>>> >>>>> <Realm className="org.apache.**catalina.realm.MemoryRealm"> >>>>> >>>>> my pom: >>>>> >>>>> <plugin> >>>>> <groupId>org.codehaus.mojo</**groupId> >>>>> <artifactId>tomcat-maven-**plugin</artifactId> >>>>> <version>1.0-beta-1</version> >>>>> <configuration> >>>>> <port>8080</port> >>>>> <path>/cxf</path> >>>>> <warFile>${project.basedir}/**target >>>>> /${project.build.finalName}.**war</warFile> >>>>> <server>tomcat</server> >>>>> </configuration> >>>>> </plugin> >>>>> >>>>> my maven settings.xml >>>>> <servers> >>>>> <server> >>>>> <id>tomcat</id> >>>>> <username>maven</username> >>>>> <password>tomcat</password> >>>>> </server> >>>>> </servers> >>>>> >>>>> No matter what I do, none of the commands for the plugin, even the >>>>> simple >>>>> ones such as tomcat:info fail with 403 errors. >>>>> >>>>> What am I doing wrong? >>>>> >>>>> >>>>> >>>>> ------------------------------**------------------------------** >>>>> --------- >>>>> To unsubscribe, e-mail: >>>>> users-unsubscribe@maven.**apache.org<[email protected]> >>>>> For additional commands, e-mail: [email protected] >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> ------------------------------**------------------------------** >>> --------- >>> To unsubscribe, e-mail: >>> users-unsubscribe@maven.**apache.org<[email protected]> >>> For additional commands, e-mail: [email protected] >>> >>> >>> >> >> > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > users-unsubscribe@maven.**apache.org<[email protected]> > For additional commands, e-mail: [email protected] > >
