28 questions
1 vote
0 answers
82 views
Tomcat 7 embedded server run in Intellij idea with JSP source and target compiler version 1.8 not working
I am using Intellij IDEA 2022.1.4 as my IDE. I have a spring MVC java 1.8 application running on Tomcat version 7.0.109. In my web.xml I have added the JSP servlet class and initialised the compiler ...
0 votes
0 answers
128 views
How to change tomcat default port when creating executable jar using tomcat7-maven-plugin?
I am using below snippet in pom.xml to create a executable jar file for my web application, it is creating the jar file properly and i am able to access it on port 8080. Now i want to change this ...
0 votes
2 answers
750 views
Jersey webapp using Tomcat plugin is not getting deployed
I am making a simple Jersey-Spring webapp. While deploying the app, I am getting errors like this ~/W/repo/webapp$ mvn tomcat7:run ...
0 votes
1 answer
36 views
SpringMVC - URL resource couldnt be found
I am a student working on the spring MVC framework. apologies in advance if this is a bad question I am using maven for deployment to tomcat7 I understood the flow of which how springMVC works and I ...
3 votes
0 answers
2k views
How to fix "Unable to process Jar entry [...] for annotations" error in Maven
I'm using tomcat7-maven-plugin version 2.2 along with spring version 5.1.6.RELEASE, hibernate-core 5.4.1.Final dependencies. When I'm running tomcat7:run goal I'm getting following errors: I thought ...
1 vote
1 answer
924 views
How to properly hot deploy/redeploy war on Tomcat with maven-tomcat7-plugin?
I know there are many threads talking about it, but I expose a situation that I have not been able to solve with their help. I hope that my problem and if in the future it is solved I can help more ...
3 votes
2 answers
601 views
mvn tomcat7:deploy not work if no restart tomcat
I'm trying to deploy a war on tomcat via maven (mvn clean install tomcat7:deploy). The deployment seems to work fine, but the application only works if I restart tomcat. It is normal? I think not.
0 votes
2 answers
1k views
Launch an application in using Tomcat Embedded with Maven
I'd like to launch a web application in using an embedded tomcat instead of the standalone version. In order to do that, I've declared the tomcat maven plugin in my pom.xml. When I tried to launch ...
0 votes
1 answer
155 views
No Spring WebApplicationInitializer when using tomcat7-maven-plugin and Initializer is inside war dependency
I have 2 Spring MVC apps using Spring 4.3. I'll call them app1 and app2. app1 works fine. I run it from within Intellij using the tomcat7-maven-plugin (jetty:run goal) and all is well. Its ...
4 votes
2 answers
2k views
Specifying which directory to package using tomcat7-maven-plugin
I am using tomcat7-maven-plugin, and my web application is stored in src/main/webapp. It is a React app, so I run npm run build to generate a "compiled" version in src/main/webapp/build. My problem is ...
0 votes
1 answer
771 views
tomcat7-maven-plugin - store server url outside of pom.xml
I'm working on some open-source project and wouldn't like to keep URL of production servers in public repository with source code, but at the same time I'd like to have an opportunity to deploy using ...
2 votes
0 answers
288 views
Maven embedded Tomcat plugin fails to print application logs
Everything works fine when deployed to Tomcat server & application logs get printed.But when I use mvn tomcat7:run no application logs are getting printed. My configurations are as follows: web....
0 votes
2 answers
1k views
Running cucumber-jvm tests in embedded tomcat 404 problems
So ive been following the following guide as to how to get maven tomcat7 and cucumber up and running together to run my integration tests. Integration tests with maven and tomcat When I run mvn ...
13 votes
3 answers
23k views
How to run tomcat7-maven-plugin in debug mode with IntelliJ IDEA
My issue is that i can't run remote debug with tomcat7-maven-plugin. What i use: Maven Tomcat7 plugin to maven IntelliJ IDEA Ultimate 2016.2.2 Ofc Maven is provided by default with IntelliJ. I already ...
0 votes
0 answers
153 views
use different configurations for different maven plugin goals
I've seen maven plugins setting configurations tied to goals. I'd like to do that with my tomcat7-maven-plugin. However, this doesn't seem to work; when I run deploy it's defaulting to localhost. ...