java - building maven project causing error -


when deploying maven project using command

mvn clean install

i got following error

error :

failed execute goal org.codehaus.mojo: tomcat-maven-plugin:1.1 : deploy-only (deault - cli) on project testapp : cannot invoke tomcat manager : server returned http response code : 403 url : http : //localhost : 8080/manager/html/deploy?path=%2ftestapp&war = ->

i changed code in pom.xml

<plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>tomcat-maven-plugin</artifactid> <version>1.1</version> <configuration>   <url>http://localhost:8080/manager/html</url>      <warfile>target/testapp.war</warfile> </configuration> </plugin> 

when changed configuration url

http://localhost:8080/manager/html

    chaned 

http://localhost:8080/manager/text

then maven project deployed successfully.

am doing correct?

may know exact difference between them?

thank you.

basically, maven trying invoke commands in tomcat.

tomcat 7 provides separate manager roles gui (manager-gui), status (manager-status), scripting (manager-script) , jmx proxy (manager-jmx), defined in webapps/manager/web-inf/web.xml.

a user role - manager-script can't use tomcat's web-interface ( i.e. /html url of manager) while manager-script role 1 used maven plug in.

so basically, have understand difference between tomcat's manager-script , manager-gui manager roles. /html not accessible role - manager-script , accessible manager-gui role.

coming original question, /text url means using tomcat's text-based-interface , /html url means using tomcat's web-interface.

some additional information here


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -