We solve this a different way by just starting jetty with a main class. See http://wiki.apache.org/tapestry/Tapestry5RunViaMain for an example. This has the advantage of working the same in any IDE.
Ben Gidley www.gidley.co.uk b...@gidley.co.uk On Mon, Feb 22, 2010 at 12:39 AM, Raul Raja Martinez <raulr...@gmail.com>wrote: > Ok, I got this solved doing the following... > > Added the tomcat plugin to my webapp project's pom > > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>tomcat-maven-plugin</artifactId> > </plugin> > > You can run the server from the console by... > > mvn clean tomcat:run > > Then on intellij9 which already includes full maven support you just create > a new launch configuration for maven > Then execute those goals in the run configuration. > > The tomcat maven plugin is running your webapp exploded in place. > > Now I can hit breakpoints and get full page and components java reloads > without restarting the app server from Intellij 9. > > The maven tomcat plugin works pretty much the same way the jetty plugin > does. > > Note that when you build on debug mode it still tries to hotswap and it > will > give you a warning that it was not possible, but it actually works because > Tapestry reloads anyway and breakpoints that are flagged as unreachable > with > the little cross will work too. > > 2010/2/21 Raul Raja Martinez <raulr...@gmail.com> > > > I'm using version 9. > > I read somewhere in the list that to get the tapestry5 class reload > feature > > working in Tomcat I need to package the classes in a jar > > instead of plain .class files. > > I can't find a way to do this with Intellij 9, I remember being an option > > before but not on v9. > > I have that dialog checked to update both classes and resources but I > > always get the warning after building that hot swap is not possible. > > The strange thing is that if the class is not in the tapestry watched > > folder it works for method bodies. > > For tapestry watched folders hot swap seems to fail even when changing > > simple local variables and any method bodies no matter what the change > is. > > I tried both in run and debug mode. > > Is anybody able to run tapestry5 with class reloading in intellij9 with > > tomcat? > > > > > > 2010/2/21 Stephan Windmüller <stephan.windmuel...@cs.tu-dortmund.de> > > > > Raul Raja Martinez wrote: > >> > >> > Are there any tips or configuration that we have to consider when > >> developing > >> > with Intellij? > >> > >> Which version of IntelliJ do you use? The current one (Idea 9) has a new > >> dialog for updating running applications: > >> > >> > >> > http://blogs.jetbrains.com/idea/2009/10/update-a-running-javaee-application/ > >> > >> Regards > >> Stephan > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >> For additional commands, e-mail: users-h...@tapestry.apache.org > >> > >> > > > > > > -- > > Raul Raja > > > > > > -- > Raul Raja >