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.
mvn tomcat7:deploy not work if no restart tomcat
556 Views Asked by un0tec At
2
There are 2 best solutions below
0
AudioBubble
On
By setting contextReloadable>true</contextReloadable> like this:
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<path>/yourApp</path>
<contextReloadable>true</contextReloadable>
</configuration>
</plugin>
you get a workaround: tomcat reloads the application whenever detects a change. It's not hot-deploy but, at least, you don't restart it manually.
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in MAVEN
- Auto reload with play2
- maven pom.xml dependencies order vs classpath/build path order
- How to ignore or fix the duplicate classes warning?
- Scala Eclipse IDE compiler giving errors until "clean" is run
- How to run multiple "mvn test"-commands from batch file?
- Not able to send email in java using SMTP,its blocked by firewall in my office.Is there any other method by which we can send mail?
- javaCV Maven project
- Logging error when executing Maven SonarQube plugin
- Gradle: Override transitive dependency by version classifier
- Why we need maven if there's javac that compiles the code?
- jar file input == null while java app is working
- JPA and web app
- Test Selector Plugin Jenkins returns No tests were executed
- Eclipse OSGI unsatisfied constraint
- GlassFish 4.0 CDI deployment failure + Apache Spark
Related Questions in TOMCAT7
- ClassNotFoundException: com.ibm.mq.jms.MQConnectionFactory (Websphere MQ 7.5 + spring jms + maven tomcat 7 plugin)
- swagger ui not working for swagger version 2
- Tomcat Manager is not accessible in multi-domain configuration
- Tomcat LDAP User Auth
- Error creating .war file
- Eclipse & Tomcat - Class loading
- Getting EOFException with embeded tomcat 7
- Tomcat7 not starting successfully
- OpenShift - Tomcat 7 (JBoss EWS 2.0) + PostgreSQL 9.2 + Hibernate 4.3.5
- Apache Tomcat 7 -Parameters lost
- JFileChooser not opening on tomcat server but it opens when it runs using eclipse
- how do I configure Apache 2.4 to have a domain name poiting to my webapp
- Apache tomcat issue with Eclipse dynamic web module 3.0
- Tomcat 7 PermGen Space or Failed to Create JVM
- reg add invalid syntax cmd
Related Questions in TOMCAT7-MAVEN-PLUGIN
- build web files with maven
- why am I getting this error in deployiing my maven basen web application on tomcat server:-
- mvn tomcat7:deploy not work if no restart tomcat
- How to properly hot deploy/redeploy war on Tomcat with maven-tomcat7-plugin?
- how to start tomcat server automatically through tomcat 7 maven plugin
- Running cucumber-jvm tests in embedded tomcat 404 problems
- How to fix "Unable to process Jar entry [...] for annotations" error in Maven
- The target server failed to respond
- No Spring WebApplicationInitializer when using tomcat7-maven-plugin and Initializer is inside war dependency
- Launch an application in using Tomcat Embedded with Maven
- Why "mvn install" is running my tomcat in Install Phase?
- Self contained JAR with Tomcat and JNDI placeholders
- @FacesConverter annotation not working with tomcat7-maven-plugin
- Jersey webapp using Tomcat plugin is not getting deployed
- maven pom.xml error with configuration in IntelliJ
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
tomcat7:deploy only responsible to put the updated WAR file to Tomcat:
To use Tomcat hot deploy when war file changes, see answers