EarContributionProcessor's URL.setURLStreamHandlerFactory() fails with factory
already defined error
----------------------------------------------------------------------------------------------------
Key: TUSCANY-3018
URL: https://issues.apache.org/jira/browse/TUSCANY-3018
Project: Tuscany
Issue Type: Bug
Reporter: Anbu Ponniah
Priority: Critical
org.apache.tuscany.sca.contribution.jee.impl.EarContributionProcessor's static
initializer calls URL.setURLStreamHandlerFactory(). In Websphere, the factory
is already set causing tuscany's call to fail with "factory already defined"
error.
Since URL.setURLStreamHandler() can only be called once per JVM and since the
application server may already register it to safeguard their supported
protocols, other options (like using URL(context, spec, handler) or
URL(protocol, host, port, file, handler)) would be more suitable.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.