Thank you I got the maven jetty plugin working with jetty 7. On 15 December 2010 14:09, LLTYK <ll...@mailinator.com> wrote:
> > This is for jetty 7. Jetty 6 has different package names, different plugin > names, etc. A chore to switch between the two but much of the syntax is the > same. > > <plugin> > <groupId>org.mortbay.jetty</groupId> > <artifactId>jetty-maven-plugin</artifactId> > <version>7.2.0.v20101020</version> > <dependencies> > <dependency> > <groupId>commons-dbcp</groupId> > <artifactId>commons-dbcp</artifactId> > <version>1.4</version> > </dependency> > <dependency> > <groupId>mysql</groupId> > <artifactId>mysql-connector-java</artifactId> > <version>5.1.13</version> > </dependency> > <dependency> > <groupId>xalan</groupId> > <artifactId>xalan</artifactId> > <version>2.7.0</version> > </dependency> > </dependencies> > <configuration> > <connectors> > <connector > implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> > <host>0.0.0.0</host> > <port>8081</port> > <maxIdleTime>120000</maxIdleTime> > <acceptors>10</acceptors> > </connector> > </connectors> > <requestLog > implementation="org.eclipse.jetty.server.NCSARequestLog"> > <append>true</append> > </requestLog> > </configuration> > </plugin> > > Then in WEB-INF/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.eclipse.jetty.webapp.WebAppContext"> > <New id="ds" class="org.eclipse.jetty.plus.jndi.Resource"> > <Arg>java:jdbc/db</Arg> > <Arg> > <New > class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"> > <Set name="serverName"></Set> > <Set name="databaseName"></Set> > <Set name="user"></Set> > <Set name="password"></Set> > </New> > </Arg> > </New> > </Configure> > -- > View this message in context: > http://tapestry-users.832.n2.nabble.com/Tapestry-5-jetty-jdbc-drivers-class-reloading-tp5837594p5837937.html > Sent from the Tapestry Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Thanks A Jabbar Azam