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
>
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/) 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
>>>
>>> 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: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Olivier Lamy
Talend : http://talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to