You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Anbu Ponniah (JIRA)" <de...@tuscany.apache.org> on 2009/05/12 17:13:45 UTC

[jira] Created: (TUSCANY-3018) EarContributionProcessor's URL.setURLStreamHandlerFactory() fails with factory already defined error

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.


[jira] Updated: (TUSCANY-3018) EarContributionProcessor's URL.setURLStreamHandlerFactory() fails with factory already defined error

Posted by "Vamsavardhana Reddy (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated TUSCANY-3018:
-----------------------------------------

    Assignee: Vamsavardhana Reddy

Completed: At revision: 788271  in branches\sca-java-1.x
 o Handle "archive" URLs without setting the StreamHandlerFactory

> 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
>            Assignee: Vamsavardhana Reddy
>            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.