When building a maven project, I get the war file in the target folder. When you try to close it through the Tomcat configuration in the idea, the following happens: the standard Tomcat page is displayed

If you're seeing this, you have installed Tomcat. Congratulations! According to the actions does not go. Index.html does not go out either. How to fix? porm file:

<artifactId>SimpleInternetShop</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <properties> <java.version>1.7</java.version> <spring.version>4.1.4.RELEASE</spring.version> <cglib.version>3.2.0</cglib.version> </properties> <dependencies> <!-- Spring core & mvc --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <!-- CGLib for @Configuration --> <dependency> <groupId>cglib</groupId> <artifactId>cglib-nodep</artifactId> <version>${cglib.version}</version> <scope>runtime</scope> </dependency> <!-- Servlet Spec --> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> <scope>provided</scope> </dependency> </dependencies> <build> <finalName>Simple_internet_shop</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webXml>web\WEB-INF\web.xml</webXml> </configuration> </plugin> </plugins> 

  • and where are you deploying it? what address and what address do you go to - Vartlok
  • 2
    And you manually try to secure. Well, at least a couple of times, for educational purposes. Look at the interface of the Tomcat manager. And immediately begin to operate with terms such as context, docbase, connector. And not so - I put pom.xml in a pot, but he does not cook. - enzo
  • @enzo Trying to handle manually. The manager writes running, but when switching to localhost: 8080 / SpringMVC, it kicks out 404 The requested resource is not available. - Shadkirill
  • @Vartlok deployment in idea. I go to localhost: 8080 (shows the page that I successfully installed tomcat) and localhost: 8080 / SpringMVC (404 error) - Shadkirill
  • HELP !!!!!!!!!!! - Shadkirill

0