403 error means “Forbidden”. The good news is - Maven deployer is obviously connecting to the Tomcat Manager app before it gets turned away for being unauthorized. So you’re 95% of the way there! The remote does a “HTTP PUT” request that contains the application that you’re trying to deploy. It just means Tomcat is saying “no”.
The 403 means the Maven deployer client failed to authenticate to the Tomcat deployer application. I’m not sure the exact incantation to get it to work, but it probably has something to do with ‘conf/tomcat-users.xml’ in the tomcat folder. You need to create a user id that has the ‘manager-script’ role (more info in http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Deploy_A_New_Application_Archive_%28WAR%29_Remotely). You’ll also have to make the user id and password available to the Tomcat Maven plugin. Information on this appears to be at http://tomcat.apache.org/maven-plugin-2.0/tomcat7-maven-plugin/usage.html Sorry I can’t give you a more detailed answer, but hopefully that points you in the right direction. Cheers, Greg Trasuk > On Oct 9, 2015, at 3:29 PM, K R <[email protected]> wrote: > > I do see this: > [09/Oct/2015:19:14:49 +0000] "PUT > /manager/deploy?path=%2FYT-100_ATU_Controller HTTP/1.1" 403 3196 > > > > > On Fri, Oct 9, 2015 at 9:39 AM, Wayne Fay <[email protected]> wrote: > >> Also check for error messages on the Tomcat server side, in the Tomcat >> logs. >> >> Wayne >> On Oct 8, 2015 6:49 PM, "[email protected]" <[email protected]> wrote: >> >>> I tried tomcat plugin and it starts to upload and stops no error. >>> >>> >>> On October 8, 2015 2:13:18 PM [email protected] wrote: >>> >>> Check the Tomcat site for the Tomcat Maven plug-in. Not sure if it will >>>> use sftp, though. I believe it can use https. >>>> >>>> Cheers, >>>> >>>> Greg Trasuk. >>>> >>>> >>>> Sent from my BlackBerry 10 smartphone. >>>> Original Message >>>> From: [email protected] >>>> Sent: Thursday, October 8, 2015 4:58 PM >>>> To: Maven Users List >>>> Reply To: Maven Users List >>>> Subject: Re: War file name and sftp to server >>>> >>>> Tomcat7 running on Raspberry Pi >>>> >>>> >>>> On October 8, 2015 1:36:53 PM Curtis Rueden <[email protected]> wrote: >>>> >>>> Hi K R, >>>>> >>>>> How do I sftp it to the server? >>>>>> >>>>> >>>>> What kind of server? Web server? Maven repository? Something else? >>>>> >>>>> == Web server == >>>>> >>>>> If it's just a web server, typically that is done outside of the Maven >>>>> build. You can also rename the file at that point. Alternately, you can >>>>> use >>>>> the exec-maven-plugin to automate whatever steps you want during any >>>>> phase(s) of your Maven build. >>>>> >>>>> == Maven repository == >>>>> >>>>> If you want to transfer the final artifact to a Maven repository, this >> is >>>>> called "deploying" the artifact, and is done by Maven's deploy phase. >> You >>>>> have to configure the "wagon" plugin you want to use. For SFTP you'd >> use >>>>> wagon-ssh [1]. >>>>> >>>>> You have to add a distributionManagement section to your POM, and put >>>>> your >>>>> credentails in your ~/.m2/settings.xml. See: >>>>> https://maven.apache.org/plugins/maven-deploy-plugin/usage.html >>>>> >>>>> However, note that you cannot override the final name of the artifact >> in >>>>> your remote Maven repository, since Maven repos use a standard naming >>>>> scheme which includes the version suffix. >>>>> >>>>> == Something else == >>>>> >>>>> Feel free to elaborate on your question. ;-) >>>>> http://stackoverflow.com/help/how-to-ask >>>>> >>>>> Regards, >>>>> Curtis >>>>> >>>>> [1] https://maven.apache.org/wagon/wagon-providers/wagon-ssh/ >>>>> >>>>> On Thu, Oct 8, 2015 at 3:16 PM, K R <[email protected]> wrote: >>>>> >>>>> I have this in pom.xml >>>>>> >>>>>> <version>0.0.1-SNAPSHOT</version> >>>>>> <name>YT-100_ATU_Controller</name> >>>>>> >>>>>> and I get YT-100_ATU_Controller-0.0.1-SNAPSHOT.war how do I get >>>>>> YT-100_ATU_Controller.war? >>>>>> >>>>>> How do I sftp it to the server? >>>>>> >>>>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> 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] >>>> >>>> >>> >>> >>> --------------------------------------------------------------------- >>> 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]
