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]

Reply via email to