Author: alessio.soldano(a)jboss.com
Date: 2012-07-19 13:15:56 -0400 (Thu, 19 Jul 2012)
New Revision: 438
Modified:
core/trunk/core/src/main/java/org/jboss/wise/core/consumer/impl/jbossws/DefaultWSImportImpl.java
Log:
[WISE-177] Removing hack not required anymore
Modified:
core/trunk/core/src/main/java/org/jboss/wise/core/consumer/impl/jbossws/DefaultWSImportImpl.java
===================================================================
---
core/trunk/core/src/main/java/org/jboss/wise/core/consumer/impl/jbossws/DefaultWSImportImpl.java 2012-07-19
17:15:10 UTC (rev 437)
+++
core/trunk/core/src/main/java/org/jboss/wise/core/consumer/impl/jbossws/DefaultWSImportImpl.java 2012-07-19
17:15:56 UTC (rev 438)
@@ -26,12 +26,10 @@
import java.net.MalformedURLException;
import java.security.AccessController;
import java.security.PrivilegedAction;
-import java.util.LinkedList;
import java.util.List;
import net.jcip.annotations.ThreadSafe;
-import org.apache.log4j.Logger;
import org.jboss.wise.core.consumer.WSConsumer;
import org.jboss.wise.core.exception.WiseRuntimeException;
import org.jboss.ws.api.tools.WSContractConsumer;
@@ -44,11 +42,6 @@
@ThreadSafe
public class DefaultWSImportImpl extends WSConsumer {
- private final String[] neededClasses = { "javax/jws/WebResult.class",
- "javax/xml/ws/Action.class",
- "javax/xml/bind/JAXBElement.class",
- "com/sun/xml/bind/XmlAccessorFactory.class" };
-
public DefaultWSImportImpl() {
}
@@ -79,8 +72,6 @@
wsImporter.setMessageStream(messageStream);
}
- wsImporter.setAdditionalCompilerClassPath(defineAdditionalCompilerClassPath());
-
if (bindingFiles != null && bindingFiles.size() > 0) {
wsImporter.setBindingFiles(bindingFiles);
}
@@ -96,25 +87,6 @@
wsImporter.consume(wsdlURL);
}
- /*
- * This is used load libraries required by tests and usually not available
- * when running out of container.
- *
- * @return A list of paths
- */
- protected List<String> defineAdditionalCompilerClassPath() throws
WiseRuntimeException {
- List<String> cp = new LinkedList<String>();
- for (String jar : neededClasses) {
- try {
- cp.add(getContextClassLoader().getResource(jar).getPath().split("!")[0]);
- } catch (NullPointerException npe) {
- Logger.getLogger(this.getClass()).debug("Did not find jar needed by wsImport
API:" + jar);
- }
-
- }
- return cp;
- }
-
private static ClassLoader getContextClassLoader()
{
SecurityManager sm = System.getSecurityManager();