maven-tomcat-plugin

Web App (Spring, Angular, Grunt, Maven, Tomcat) running both grunt and tomcat servers

江枫思渺然 提交于 2019-12-04 08:11:35
问题 OK so I've been reading several of the other stack questions and trying to piece this together without much luck. Basically my approach is that I currently have one project with multiple sub-projects. I basically have the following: root |----backend |----|----src |----|----|----main |----|----|----|----java (individual java files not shown) |----|----|----|----resources |----|----|----|----|----META-INF |----|----|----|----|----|----applicationContext.xml |----|----|----|----webapp |----|---

Maven attempting to deploy to localhost instead of remote server

天涯浪子 提交于 2019-12-04 03:33:58
问题 This is my pom.xml build configuration: <build> <finalName>cfwd</finalName> <pluginManagement> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.0</version> <configuration> <url>http://xx.xxx.xxx.xxx:8080/manager/text</url> <server>cifServer</server> <path>/cfwd

tomcat-maven-plugin 403 error

↘锁芯ラ 提交于 2019-12-03 17:53:58
问题 When I use mvn tomcat:deploy of tomcat-maven-plugin there is a 403 error: Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.0:deploy (default-cli) on project my-webapp: Cannot invoke Tomcat manager: Server returned HTTP response code: 403 for URL: http://localhost:8080/manager/text/deploy?path=%2Fdms&war= I think it because of null war parameter. But why is it null??? In pom.xml there is: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId>

tomcat:deploy: “Cannot invoke Tomcat manager: Connection refused”

折月煮酒 提交于 2019-12-03 03:57:00
问题 I tried to deploy my app to Tomcat using Maven and I've found this sample. That's fragment of my pom.xml: <!-- Maven Tomcat Plugin --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <configuration> <url>http://127.0.0.1:8080/</url> <server>TomcatServer</server> </configuration> </plugin> <!-- Maven compiler plugin --> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> <

Web App (Spring, Angular, Grunt, Maven, Tomcat) running both grunt and tomcat servers

 ̄綄美尐妖づ 提交于 2019-12-02 21:14:57
OK so I've been reading several of the other stack questions and trying to piece this together without much luck. Basically my approach is that I currently have one project with multiple sub-projects. I basically have the following: root |----backend |----|----src |----|----|----main |----|----|----|----java (individual java files not shown) |----|----|----|----resources |----|----|----|----|----META-INF |----|----|----|----|----|----applicationContext.xml |----|----|----|----webapp |----|----|----|----|----WEB-INF |----|----|----|----|----|----web_servicesConfig.xml |----|----|----|----|----|

tomcat:deploy: “Cannot invoke Tomcat manager: Connection refused”

北战南征 提交于 2019-12-02 16:14:56
I tried to deploy my app to Tomcat using Maven and I've found this sample. That's fragment of my pom.xml: <!-- Maven Tomcat Plugin --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <configuration> <url>http://127.0.0.1:8080/</url> <server>TomcatServer</server> </configuration> </plugin> <!-- Maven compiler plugin --> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> And when I run tomcat:deploy I get this error: Cannot invoke Tomcat manager: Connection refused

Why can't I shutdown tomcat 7 embedded from maven plugin?

折月煮酒 提交于 2019-12-01 19:22:40
问题 I'm using tomcat7-maven-plugin 2.2 to run a webapp from command line (I'm on Windows 8.1, Java 1.7.0_51 and Maven 3.2.1). This is the configuration (pretty straightforward, I guess): <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <address>localhost</address> <port>8080</port> <path>/</path> <uriEncoding>UTF-8</uriEncoding> </configuration> </plugin> I run Maven with mvn tomcat7:run and it starts

Why can't I shutdown tomcat 7 embedded from maven plugin?

人走茶凉 提交于 2019-12-01 18:13:14
I'm using tomcat7-maven-plugin 2.2 to run a webapp from command line (I'm on Windows 8.1, Java 1.7.0_51 and Maven 3.2.1). This is the configuration (pretty straightforward, I guess): <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <address>localhost</address> <port>8080</port> <path>/</path> <uriEncoding>UTF-8</uriEncoding> </configuration> </plugin> I run Maven with mvn tomcat7:run and it starts correctly, the server starts up, the webapp loads, and I can interact with it. The command prompt in which I

Spring Java Config: Tomcat deploy without web.xml

久未见 提交于 2019-11-30 19:48:59
I built a java configured Spring MVC application without any XML. I can deploy and start the application on my laptop without any problems. But as soon as I try to deploy my application on my testserver (tomcat 7), I receive following message: HTTP Status 404 - The requested resource (/[application context]/) is not available. I build my applications using the Eclipse Maven plugin. Is it possible to deploy the application without the web.xml and if not, which is the basic web.xml I really need? Maven WAR Plugin: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin<

Spring Java Config: Tomcat deploy without web.xml

我怕爱的太早我们不能终老 提交于 2019-11-30 04:23:13
问题 I built a java configured Spring MVC application without any XML. I can deploy and start the application on my laptop without any problems. But as soon as I try to deploy my application on my testserver (tomcat 7), I receive following message: HTTP Status 404 - The requested resource (/[application context]/) is not available. I build my applications using the Eclipse Maven plugin. Is it possible to deploy the application without the web.xml and if not, which is the basic web.xml I really