Tomcat отказывается от соединения при попытке развертывания из затмения с использованием maven - PullRequest
0 голосов
/ 19 ноября 2011

Почему Tomcat отказывается от подключения при попытке развертывания из затмения с использованием maven?

Как это можно исправить?

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
                             http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.jj.cd</groupId>
  <artifactId>dashboard</artifactId>
  <packaging>war</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <name>dashboard Maven Webapp</name>
  <url>http://maven.apache.org</url>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <finalName>dashboard</finalName>
    <pluginManagement>
      <plugins>
    <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>tomcat-maven-plugin</artifactId>
      <configuration>
        <server>mytomcat</server>
        <url>http://localhost:8686/manager/html</url>
      </configuration>
    </plugin>
      </plugins>
    </pluginManagement>
  </build>
</project>

Maven settings.xml

 <settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0  http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <activeProfiles>        
        <activeProfile>dev-build</activeProfile>        
    </activeProfiles>
    <servers>
        <server>
            <id>mytomcat</id>
            <username>admin</username>
            <password>test</password>
        </server>
    </servers>
 </settings>

Запись в tomcat-users.xml

<role rolename="manager"/>
<user username="admin" password="test" roles="manager"/>
</tomcat-users>

Ответы [ 2 ]

0 голосов
/ 20 ноября 2011

В более поздних версиях tomcat роль менеджера была разделена на более мелкие.Попробуйте еще раз, чтобы у вашего пользователя была роль manager-gui?

0 голосов
/ 19 ноября 2011

Попробуйте удалить часть "/ html" настроенного URL-адреса менеджера Tomcat:

    <url>http://localhost:8686/manager</url>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...