Hi there is a tomcat web.xml (conf/web.xml) which can handle this parameter as well. Can be put in src/main/tomee/conf.
Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-05-01 11:57 GMT+02:00 LG Optimusv <[email protected]>: > Yes, I can see the log lines saying that. Although the jsp file is changed, > it's not recompiled maybe because the target/apache-tomee/conf/web.xml > still has this: > > <servlet> > <servlet-name>jsp</servlet-name> > <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> > <init-param> > <param-name>fork</param-name> > <param-value>false</param-value> > </init-param> > <init-param> > <param-name>xpoweredBy</param-name> > <param-value>false</param-value> > </init-param> > <init-param> > <param-name>*development*</param-name> > <param-value>*false*</param-value> > </init-param> > <load-on-startup>3</load-on-startup> > </servlet> > > Am I right? > > I had to copy that jsp servlet declaration into my web.xml (fortunately I > still use web.xml) and change the developement parameter. > > It's not a perfect solution but still acceptable. Thanks, Romain. > > > On Tue, Apr 29, 2014 at 5:55 AM, Romain Manni-Bucau > <[email protected]>wrote: > >> that's a timer synchronizing data so you have to wait a bit, there are >> log lines saying what it does. You can change the refresh interval >> btw: https://github.com/rmannibucau/JeBlog/blob/master/pom.xml >> >> >> Romain Manni-Bucau >> Twitter: @rmannibucau >> Blog: http://rmannibucau.wordpress.com/ >> LinkedIn: http://fr.linkedin.com/in/rmannibucau >> Github: https://github.com/rmannibucau >> >> >> 2014-04-29 11:36 GMT+02:00 LG Optimusv <[email protected]>: >> > Very quick as usual, Romain. Thanks a lot. >> > >> > However, it doesn't work for me (I tried mvn package tomee:run and >> > tomee:debug. Could you please check it ( >> > https://github.com/dxxvi/test-tomee-maven-plugin.git)? The jsp file is >> at >> > http://localhost:8080/ly/down. >> > >> > My plugin declaration is >> > >> > <plugin> >> > <groupId>org.apache.openejb.maven</groupId> >> > <artifactId>tomee-maven-plugin</artifactId> >> > <version>1.6.0.1</version> >> > <configuration> >> > <tomeeVersion>1.6.0.1</tomeeVersion> >> > <tomeeClassifier>jaxrs</tomeeClassifier> >> > <synchronization> >> > </synchronization> >> > <!--<reloadOnUpdate>true</reloadOnUpdate>--> >> > </configuration> >> > </plugin> >> > >> > Regards. >> > >> > >> > On Tue, Apr 29, 2014 at 4:42 AM, Romain Manni-Bucau >> > <[email protected]>wrote: >> > >> >> Hi >> >> >> >> use synchronization block >> http://tomee.apache.org/tomee-maven-plugin.html >> >> >> >> just adding in <configuration> an empty <synchronization> block should >> >> work >> >> >> >> >> >> Romain Manni-Bucau >> >> Twitter: @rmannibucau >> >> Blog: http://rmannibucau.wordpress.com/ >> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau >> >> Github: https://github.com/rmannibucau >> >> >> >> >> >> 2014-04-29 10:32 GMT+02:00 LG Optimusv <[email protected]>: >> >> > Hi, >> >> > >> >> > What I like to have is the ability to edit jsp, html, css, even image >> >> files >> >> > in the IDE, then "compile" them (in IDEA it's Ctrl+Shift+F9) and see >> the >> >> > changes in the browser. It seems that this plugin works with .war file >> >> not >> >> > the exploded format of a web app. So everything has to be re-packaged >> and >> >> > the whole web app has to be reloaded. I'm pretty sure that I'm using >> this >> >> > plugin wrongly because nobody writes a plugin like that. >> >> > >> >> > Before using the plugin, I used to write a context xml file in >> >> > $TOMEE_HOME/conf/Catalina/localhost pointing to the exploded web app >> >> > created by maven (after modifying the $TOMEE_HOME/conf/web.xml with >> >> > >> >> > <init-param> >> >> > <param-name>development</param-name> >> >> > <param-value>true</param-value> >> >> > </init-param> >> >> > <init-param> >> >> > <param-name>checkInterval</param-name> >> >> > <param-value>1</param-value> >> >> > </init-param> >> >> > >> >> > in the jsp servlet. And it works really well. But I love to use the >> >> plugin >> >> > (jetty-maven-plugin works perfectly, it allows us to specify the >> web.xml, >> >> > the webapp directory ...). >> >> > >> >> > Thanks. >> >> >>
