]> source.dussan.org Git - archiva.git/commitdiff
MRM-855 - java.lang.NoClassDefFoundError: org/apache/xml/serialize/OutputFormat
authorJames William Dumay <jdumay@apache.org>
Wed, 2 Jul 2008 04:11:34 +0000 (04:11 +0000)
committerJames William Dumay <jdumay@apache.org>
Wed, 2 Jul 2008 04:11:34 +0000 (04:11 +0000)
* removed excludes for xerces:*
* updated enforcer rules
* excluded xerces from shade in archiva-cli

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@673269 13f79535-47bb-0310-9956-ffa450edef68

archiva-cli/pom.xml
archiva-jetty/pom.xml
archiva-modules/archiva-web/archiva-webdav/pom.xml
archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavResourceFactory.java
archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/maven/archiva/webdav/ArchivaDavSessionProvider.java
pom.xml

index 03512a1a59012f1d9179e7e9ae07d2f6ac80a55d..6344a198ba703161914ee445210bb6f24f2bafe2 100644 (file)
@@ -84,6 +84,7 @@
               </transformers>
               <artifactSet>
                 <excludes>
+                 <exclude>xerces:xercesImpl</exclude>
                   <exclude>xml-apis:xml-apis</exclude>
                   <exclude>xalan:xalan</exclude>
                   <exclude>commons-beanutils:commons-beanutils</exclude>
index a655722d2f0afa1cd389104d1d46c5f96250b4ee..68f2d91e80c56f9f74fce563b230120a3b0f62e5 100644 (file)
       <groupId>commons-dbcp</groupId>
       <artifactId>commons-dbcp</artifactId>
       <version>1.2.1</version>
-      <exclusions>
-        <exclusion>
-          <groupId>xerces</groupId>
-          <artifactId>xercesImpl</artifactId>
-        </exclusion>
-      </exclusions>
     </dependency>
   </dependencies>
   <build>
index 228df0fee49758d9d6fbd2832f075d7ce53ed65c..c37e47c5f91746fbeef1ddb3dc9c223dae4828c4 100644 (file)
           <groupId>nekohtml</groupId>
           <artifactId>nekohtml</artifactId>
         </exclusion>
+        <exclusion>
+          <groupId>nekohtml</groupId>
+          <artifactId>xercesMinimal</artifactId>
+        </exclusion>
       </exclusions>
     </dependency>
   </dependencies>
index 1914be4aad9a99546930f5dcb981fdb403858fc8..3cec4936f5b424bc35f4f9bb1e138db0f59f3d41 100644 (file)
@@ -68,6 +68,7 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.io.*;
+import org.apache.commons.lang.StringUtils;
 import org.apache.jackrabbit.webdav.lock.LockManager;
 import org.apache.jackrabbit.webdav.lock.SimpleLockManager;
 
@@ -167,6 +168,12 @@ public class ArchivaDavResourceFactory
         {
             repositories.add( ( (RepositoryLocator) locator ).getRepositoryId() );
         }
+       
+        //MRM-419 - Windows Webdav support. Should not 404 if there is no content.
+        if (StringUtils.isEmpty(archivaLocator.getRepositoryId()))
+        {
+            throw new DavException(HttpServletResponse.SC_NO_CONTENT);
+        }
 
         DavResource resource = null;
         DavException e = null;
index 085a6e77024f7772d469998ece0394b229098d5d..ad96939d118b64702cf7b6137b38db44905a9e66 100644 (file)
@@ -32,7 +32,6 @@ import org.codehaus.plexus.redback.policy.AccountLockedException;
 import org.codehaus.plexus.redback.xwork.filter.authentication.HttpAuthenticator;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
-import org.springframework.context.ApplicationContext;
 
 /**
  * @author <a href="mailto:james@atlassian.com">James William Dumay</a>
diff --git a/pom.xml b/pom.xml
index 4d0aa7093c6267ca8309499b3f933160d4904ee5..b0eed37080530aebf902e8903a959382d7ef7653 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -80,8 +80,6 @@
                     <exclude>velocity:velocity-dep</exclude>
                     <exclude>classworlds:classworlds</exclude>
                     <exclude>javax.transaction:jta</exclude>
-                    <exclude>xerces:xercesImpl</exclude>
-                    <exclude>xerces:xmlParserAPIs</exclude>
                     <exclude>javax.sql:jdbc-stdext</exclude>
                     <exclude>ant:ant-optional</exclude>
                     <!-- exclude>org.apache.maven.wagon:wagon-http-lightweight</exclude -->
         <groupId>org.apache.jackrabbit</groupId>
         <artifactId>jackrabbit-webdav</artifactId>
         <version>1.4</version>
-        <exclusions>
-          <exclusion>
-            <groupId>xerces</groupId>
-            <artifactId>xercesImpl</artifactId>
-          </exclusion>
-          <exclusion>
-            <groupId>commons-logging</groupId>
-            <artifactId>commons-logging</artifactId>
-          </exclusion>
-        </exclusions>
       </dependency>
       <dependency>
         <groupId>javax.activation</groupId>
             <groupId>xom</groupId>
             <artifactId>xom</artifactId>
           </exclusion>
-          <exclusion>
-            <groupId>xerces</groupId>
-            <artifactId>xmlParserAPIs</artifactId>
-          </exclusion>
-          <exclusion>
-            <groupId>xerces</groupId>
-            <artifactId>xercesImpl</artifactId>
-          </exclusion>
         </exclusions>
       </dependency>
       <dependency>