Cool... thanks a lot. I will check this out tomorrow! Thanks for sharing this piece & have a nice evening.
Roman Zechner | Liland wrote: > > don't worry, we had our own problems in the beginning to get this stuff > working. > here we go - hope I haven't forgotten anything. you need to modify > pom.xml > jetty-env.xml > set MAVEN_OPTS > > > pom.xml: > > <properties> > <jetty.version>6.1.4</jetty.version> > </properties> > > <dependency> > <groupId>org.mortbay.jetty</groupId> > <artifactId>jetty</artifactId> > <version>${jetty.version}</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>org.mortbay.jetty</groupId> > <artifactId>jetty-util</artifactId> > <version>${jetty.version}</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>org.mortbay.jetty</groupId> > <artifactId>jetty-management</artifactId> > <version>${jetty.version}</version> > <scope>provided</scope> > </dependency> > <!-- jdbc drivers (needed for execution in jetty) --> > <dependency> > <groupId>mysql</groupId> > <artifactId>mysql-connector-java</artifactId> > <version>5.0.8</version> > <scope>runtime</scope> > </dependency> > > > <plugins> > <plugin> > <groupId>org.mortbay.jetty</groupId> > <artifactId>maven-jetty-plugin</artifactId> > <configuration> > <scanIntervalSeconds>7</scanIntervalSeconds> > <jettyEnvXml>${basedir}/etc/jetty-env.xml</jettyEnvXml> > </configuration> > </plugin> > > > jetty-env.xml: > > <?xml version="1.0"?> > <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" > "http://jetty.mortbay.org/configure.dtd"> > > <Configure class="org.mortbay.jetty.webapp.WebAppContext"> > <New id="jdbc/eventmanager" > class="org.mortbay.jetty.plus.naming.Resource"> > <Arg>jdbc/myDB</Arg> > <Arg> > <New class="org.apache.commons.dbcp.BasicDataSource"> > <Set name="DriverClassName">com.mysql.jdbc.Driver</Set> > <Set name="Url"> > jdbc:mysql://localhost:3306/myDB?autoReconnect=true > </Set> > <Set name="Username">myusr</Set> > <Set name="Password">mypwd</Set> > </New> > </Arg> > </New> > </Configure> > > > set env variable MAVEN_OPTS to get debugging port > -Xdebug -Xnoagent > -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n > > > > Hope that helps! > > Cheers, Roman > > pixologe wrote: >> Hi Roman, >> >> even though my current main project is not under maven control, i'd be >> happy >> to have a look at your config, if you are willing to share it. >> Obviously there are quite some things not 100% clear to me yet... both >> with >> and without maven and maven jetty plugin :-/ >> >> Cheers+thanks >> >> >> >> Roman Zechner | Liland wrote: >> >>> I am using the maven jetty plugin in development and it works fine for >>> me. I don't see why you shouldn't use it as Martijn pointed out? >>> If there's a need, I can post the required configuration here. I am >>> working under WinXP, all my stuff is redeployed after changes have been >>> made when working with `cmd`, only if I am working with cygwin, it >>> doesn't recognize changes made to files other than .java >>> >>> Roman >>> >>> Eyal Golan wrote: >>> >>>> Regarding the embedded jetty, do you know if it is possible to point it >>>> to >>>> an external WAR so it will be as if deployed as well? >>>> I looked into Jetty's document but didn't find. >>>> >>>> On Wed, Sep 10, 2008 at 4:17 PM, Martijn Dashorst < >>>> [EMAIL PROTECTED]> wrote: >>>> >>>> >>>> >>>>> The maven jetty plugin is not meant for development, but for quick >>>>> demos. Stop trying to use the jetty plugin for something it is not >>>>> intended for. The Wicket quickstart project provides a very well >>>>> functioning embedded jetty server, which runs like a charm in the >>>>> Eclipse debugger (and IDEA and Netbeans debugger) providing everything >>>>> Java offers without *any* additional configuration. >>>>> >>>>> Setting up your Wicket project is described in detail in Wicket in >>>>> Action's bonus chapter, available from the Manning website >>>>> (http://manning.com/dashorst) >>>>> >>>>> Martijn >>>>> >>>>> On Wed, Sep 10, 2008 at 3:05 PM, pixologe <[EMAIL PROTECTED]> >>>>> wrote: >>>>> >>>>> >>>>>> Hi Martijn, >>>>>> >>>>>> So this means that the wicket quickstart project does NOT do it out >>>>>> of >>>>>> >>>>>> >>>>> the >>>>> >>>>> >>>>>> box? Which obviously goes for non-maven-projects too then? That's >>>>>> good >>>>>> to >>>>>> know, I obviously have been terribly misinformed then... >>>>>> >>>>>> Even though it will obviously take me some more time to figure out >>>>>> how >>>>>> >>>>>> >>>>> this >>>>> >>>>> >>>>>> can be achieved, all the more in a project that does not use maven - >>>>>> if >>>>>> anybody knows a good site regarding to this, i'd be happy to see a >>>>>> link >>>>>> >>>>>> >>>>> :) >>>>> >>>>> >>>>>> Thanks a lot >>>>>> >>>>>> >>>>>> Martijn Dashorst wrote: >>>>>> >>>>>> >>>>>>> The maven jetty plugin needs to be configured separately. See its >>>>>>> documentation regarding hot deployment. >>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>>>> View this message in context: >>>>>> >>>>>> >>>>> http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19413161.html >>>>> >>>>> >>>>>> Sent from the Wicket - User mailing list archive at Nabble.com. >>>>>> >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>>> >>>>>> >>>>>> >>>>>> >>>>> -- >>>>> Become a Wicket expert, learn from the best: http://wicketinaction.com >>>>> Apache Wicket 1.3.4 is released >>>>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> -- >>> Liland ...does IT better >>> >>> Liland IT GmbH >>> Creative Master >>> email: [EMAIL PROTECTED] >>> >>> office: +43 (0)463 220-111 | fax: +43 (0)463 220-288 >>> http://www.Liland.at >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >> >> > > -- > Liland ...does IT better > > Liland IT GmbH > Creative Master > email: [EMAIL PROTECTED] > > office: +43 (0)463 220-111 | fax: +43 (0)463 220-288 http://www.Liland.at > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Hot-deployment---code-swapping-tp19410295p19415044.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]