Thursday, 15 January 2015

maven tomcat7 plugin authentication fail, 403 Forbidden -



maven tomcat7 plugin authentication fail, 403 Forbidden -

i'm posting after weeks of effort. seek , seek because felt guilty of posting because there thread similar this. still i'm getting different error. have simple spring(no need spring of course of study bcz problem maven) application maven.

this plugins section pom.

<plugins> <plugin> <groupid>org.apache.tomcat.maven</groupid> <artifactid>tomcat7-maven-plugin</artifactid> <version>2.0</version> <configuration> <url>http://localhost:8080/manager</url> <username>tomcat</username> <password>s3cret</password> <path>/test</path> <port>8080</port> </configuration> </plugin> <plugin> <artifactid>maven-compiler-plugin</artifactid> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins>

earlier have problems maven tomcat plugin not working tomcat 7 etc etc "tomcat7-maven-plugin" there solved. i'm using 'http://localhost:8080/manager' url. threads maven tomcat compiler plugin build failure. build succeed(i run tomcat7:deploy). problem tomcat replying

tomcatmanager status code:403, reasonphrase:forbidden

along html see when got authentication failure on browser. same code works fine under linux box. seek different scenarios of using server element in settings.xml within .m2 , within maven_home/conf etc. still not working.

as figure out maven cannot authenticate tomcat. username , password find , can log in using gui. expecting help here.

p.s - tomcat-users.xml fiel

<role rolename="manager-gui" /> <user username="tomcat" password="s3cret" roles="manager-gui"/>

url not right seek :

<url>http://localhost:8080/manager/text</url>

what content of tomcat-users.xml file. did correctly set permissions ? see http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html

maven tomcat7 maven-tomcat-plugin

No comments:

Post a Comment