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> </build> 

  • help people !! - Shadkirill
  • HELP ME !!!!!!!!! - Shadkirill

1 answer 1

If tomkat is installed, then either you configure it in the environment (run \ debug conf -> Tomcat Server -> Deployment -> Add your war exploded), or you put your boiler in Tomcat -> webapps and start Tomcat (after this localization: 8080 / YourWarName)

  • tried it. In the first variant, it gives out the start page of Tomcate, and in the second, it simply does not see the link to my war - Shadkirill
  • one
    lay out then pom file - m_br0_89
  • laid out. The fact is that with another project I had the same thing, although it was successfully launched on my friend's computer. - Shadkirill