Hi,

I'm using the jetty-maven plugin with...
<reload>automatic</reload>
<scanIntervalSeconds>1</scanIntervalSeconds>

When the server detects a change and subsequently reloads/redeploys, the
ServletContextListeners declared in web.xml have their 'contextDestroyed()'
methods invoked, but their 'contextInitialized()' methods aren't reinvoked
with the new 'ServletContextEvent'.

This prevents me from using the reload feature.  I'm fairly new to jetty,
so it's entirely possible that my configuration is incorrect in some way.

This is the plugin declaration within my pom.xml file:
     <plugin>
     <groupId>org.eclipse.jetty</groupId>
     <artifactId>jetty-maven-plugin</artifactId>
     <version>9.0.0.RC2</version>
     <configuration>
     <jettyXml>src/jetty/jetty.xml</jettyXml>
     <scanIntervalSeconds>1</scanIntervalSeconds>
     <webApp>
     <contextPath>/</contextPath>
     <overrideDescriptor>src/jetty/override-web.xml</overrideDescriptor>
     </webApp>
     </configuration>
     <dependencies>
     <dependency>
     <groupId>mysql</groupId>
     <artifactId>mysql-connector-java</artifactId>
     <version>5.1.24</version>
     </dependency>
     </dependencies>
     </plugin>


The "jetty.xml" file referenced by the pom:


<Configure id="Server" class="org.eclipse.jetty.server.Server">
<New id="AccountDB" class="org.eclipse.jetty.plus.jndi.Resource">
<Arg></Arg>
<Arg>jdbc/AccountDB</Arg>
<Arg>
<New class="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource">
<Set name="Url">jdbc:mysql://localhost:3306/somepath</Set>
<Set name="User">???</Set>
<Set name="Password">???</Set>
</New>
</Arg>
</New>

</Configure>

Thanks in advance for any help,
Pete
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to