Index: src/main/java/org/jboss/wsf/framework/deployment/ResourceResolverImpl.java =================================================================== --- src/main/java/org/jboss/wsf/framework/deployment/ResourceResolverImpl.java (revision 18125) +++ src/main/java/org/jboss/wsf/framework/deployment/ResourceResolverImpl.java (working copy) @@ -117,10 +117,23 @@ } } } - if (vfResource == null) - throw new IOException("Could not find " + resourcePath + " in the additional metadatafiles!"); - - resourceURL = vfResource.toURL(); + + if (resourceURL == null && resourcePath.startsWith("classpath:")) { + + resourcePath = resourcePath.substring("classpath:".length()); + ClassLoader cl = this.getClass().getClassLoader(); + resourceURL = cl.getResource(resourcePath); + + if (resourceURL == null) + throw new IOException("Could not find " + resourcePath + " in the server classpath!"); + + } else { + + if (vfResource == null) + throw new IOException("Could not find " + resourcePath + " in the additional metadatafiles!"); + + resourceURL = vfResource.toURL(); + } } } return resourceURL;