]> source.dussan.org Git - archiva.git/commitdiff
try to fix jetty run with new version but still issue with redback war and jar
authorOlivier Lamy <olamy@apache.org>
Fri, 28 Oct 2011 10:53:00 +0000 (10:53 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 28 Oct 2011 10:53:00 +0000 (10:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1190245 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/pom.xml
archiva-modules/archiva-web/archiva-webapp/src/jetty-env.xml

index dfe50b907c61e4149890e6775d38966ca813d181..b0334c71a6066ee4ce0418f70cd0f838e72b3aa4 100644 (file)
         <artifactId>jetty-maven-plugin</artifactId>
         <version>${jettyVersion}</version>
         <configuration>
-          <webAppConfig>
+          <webApp>
             <contextPath>/</contextPath>
-            <baseResource implementation="org.mortbay.resource.ResourceCollection">
+            <baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection">
               <resourcesAsCSV>src/main/webapp,target/archiva,target/redback</resourcesAsCSV>
             </baseResource>
+          </webApp>
+          <webAppConfig>
+            <contextPath>/</contextPath>
+            <descriptor>${basedir}/src/main/webapp/WEB_INF/web.xml</descriptor>
+            <jettyEnvXml>${basedir}/src/jetty-env.xml</jettyEnvXml>
           </webAppConfig>
+
           <scanIntervalSeconds>10</scanIntervalSeconds>
-          <jettyEnvXml>src/jetty-env.xml</jettyEnvXml>
+          <!--
+          <jettyConfig>${basedir}/src/jetty-env.xml</jettyConfig>
+          -->
           <connectors>
-            <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+            <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
               <port>9091</port>
               <maxIdleTime>60000</maxIdleTime>
             </connector>
index c4557d310a6dca6b2e2dafec23204ce7e65326d2..8beae6efacfe250d2df162ed68b3456144b27a84 100644 (file)
   -->
 
 <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
-<Configure id='wac' class="org.mortbay.jetty.webapp.WebAppContext">
+<Configure id='wac' class="org.eclipse.jetty.webapp.WebAppContext">
 
-  <New id="validation_mail" class="org.mortbay.jetty.plus.naming.Resource">
+  <New id="validation_mail" class="org.eclipse.jetty.plus.jndi.Resource">
     <Arg>mail/Session</Arg>
     <Arg>
-      <New class="org.mortbay.naming.factories.MailSessionReference">
+      <New class="org.eclipse.jetty.jndi.factories.MailSessionReference">
         <Set name="user"></Set>
         <Set name="password"></Set>
         <Set name="properties">
@@ -40,7 +40,7 @@
   </New>
 
   <!-- Users / Security Database -->
-  <New id="users" class="org.mortbay.jetty.plus.naming.Resource">
+  <New id="users" class="org.eclipse.jetty.plus.jndi.Resource">
     <Arg><Ref id="wac"/></Arg>
     <Arg>jdbc/users</Arg>
     <Arg>
@@ -52,7 +52,7 @@
     </Arg>
   </New>
 
-  <New id="usersShutdown" class="org.mortbay.jetty.plus.naming.Resource">
+  <New id="usersShutdown" class="org.eclipse.jetty.plus.jndi.Resource">
     <Arg><Ref id="wac"/></Arg>
     <Arg>jdbc/usersShutdown</Arg>
     <Arg>