Apache Tomcat Maven Plugin
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-121

Plugin gets 403 unauthorized errors after upgrading from SNAPSHOT

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: 2.0-beta-1
    • Fix Version/s: None
    • Component/s: tomcat6
    • Labels:
      None
    • Environment:

      Description

      I updated from 2.0-SNAPSHOT to 2.0-beta-1 and stopped being able to deploy war files to tomcat. No changes were made to tomcat. The tomcat manager application is configured to allow access using username 'admin' and no password. The plugin configuration is:

      <plugin>
      <groupId>org.apache.tomcat.maven</groupId>
      <artifactId>tomcat6-maven-plugin</artifactId>
      <version>2.0-beta-1</version>
      <configuration>
      <path>/</path>
      <warFile>$

      {project.build.directory}/${project.build.finalName}.war</warFile>
      <!-- Always undeploy before deploy -->
      <update>true</update>
      <mode>both</mode>
      <tag>Britebill</tag>
      <contextFile>${project.build.directory}

      /$

      {project.build.finalName}

      /META-INF/context.xml</contextFile>
      </configuration>
      </plugin>

      1. tomcat-maven-log.txt
        18 kB
        Eamonn Linehan

        Issue Links

          Activity

          Hide
          Olivier Lamy (*$^¨%`£) added a comment -

          see logs.
          You need to configure tomcat-users.xml

          Show
          Olivier Lamy (*$^¨%`£) added a comment - see logs. You need to configure tomcat-users.xml
          Hide
          Eamonn Linehan added a comment -

          Here is the debug output from running the plugin with the goal 'deploy-only'

          Show
          Eamonn Linehan added a comment - Here is the debug output from running the plugin with the goal 'deploy-only'
          Hide
          Olivier Lamy (*$^¨%`£) added a comment -

          probably duplicates of MTOMCAT-116

          Show
          Olivier Lamy (*$^¨%`£) added a comment - probably duplicates of MTOMCAT-116
          Hide
          Rick Reumann added a comment -

          ok.. I think the issue was I using mvn tomcat6:deploy ... If I run just mvn tomcat:deploy then it authenticates.

          Show
          Rick Reumann added a comment - ok.. I think the issue was I using mvn tomcat6:deploy ... If I run just mvn tomcat:deploy then it authenticates.
          Hide
          Olivier Lamy (*$^¨%`£) added a comment -

          did you try last 2.0-SNAPSHOT ?

          Show
          Olivier Lamy (*$^¨%`£) added a comment - did you try last 2.0-SNAPSHOT ?
          Hide
          Rick Reumann added a comment -

          I'm noticing the same thing. Found this post googling trying to understand why I'm not getting authenticated.

          Show
          Rick Reumann added a comment - I'm noticing the same thing. Found this post googling trying to understand why I'm not getting authenticated.
          Hide
          Olivier Lamy (*$^¨%`£) added a comment -

          any logs ?

          Show
          Olivier Lamy (*$^¨%`£) added a comment - any logs ?

            People

            • Assignee:
              Olivier Lamy (*$^¨%`£)
              Reporter:
              Eamonn Linehan
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development