Lines 38-43
Link Here
|
38 |
*/ |
38 |
*/ |
39 |
package org.netbeans.modules.web.jsf.editor.facelets; |
39 |
package org.netbeans.modules.web.jsf.editor.facelets; |
40 |
|
40 |
|
|
|
41 |
import java.io.IOException; |
42 |
import java.util.Enumeration; |
41 |
import org.netbeans.modules.web.jsf.editor.facelets.mojarra.FaceletsTaglibConfigProcessor; |
43 |
import org.netbeans.modules.web.jsf.editor.facelets.mojarra.FaceletsTaglibConfigProcessor; |
42 |
import com.sun.faces.config.DocumentInfo; |
44 |
import com.sun.faces.config.DocumentInfo; |
43 |
import com.sun.faces.spi.ConfigurationResourceProvider; |
45 |
import com.sun.faces.spi.ConfigurationResourceProvider; |
Lines 222-229
Link Here
|
222 |
Exceptions.printStackTrace(ex); |
224 |
Exceptions.printStackTrace(ex); |
223 |
} |
225 |
} |
224 |
} |
226 |
} |
225 |
|
227 |
|
226 |
ClassLoader proxyLoader = new URLClassLoader(urlsToLoad.toArray(new URL[]{}), originalLoader); |
228 |
ClassLoader proxyLoader = new URLClassLoader(urlsToLoad.toArray(new URL[]{}), originalLoader) { |
|
|
229 |
|
230 |
@Override |
231 |
public URL findResource(String name) { |
232 |
// we don't want to plug external services to our runtime |
233 |
if (name.startsWith("META-INF/services")) { // NOI18N |
234 |
return null; |
235 |
} |
236 |
return super.findResource(name); |
237 |
} |
238 |
|
239 |
@Override |
240 |
public Enumeration<URL> findResources(String name) throws IOException { |
241 |
// we don't want to plug external services to our runtime |
242 |
if (name.startsWith("META-INF/services")) { // NOI18N |
243 |
return Collections.enumeration(Collections.<URL>emptyList()); |
244 |
} |
245 |
return super.findResources(name); |
246 |
} |
247 |
}; |
227 |
|
248 |
|
228 |
try { |
249 |
try { |
229 |
Thread.currentThread().setContextClassLoader(proxyLoader); |
250 |
Thread.currentThread().setContextClassLoader(proxyLoader); |