You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2007/10/03 01:57:51 UTC
[jira] Closed: (GSHELL-34) Get rid of the URLHandlerFactory
[ https://issues.apache.org/jira/browse/GSHELL-34?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet closed GSHELL-34.
---------------------------------
Resolution: Won't Fix
I have redefined my own GShell class.
> Get rid of the URLHandlerFactory
> --------------------------------
>
> Key: GSHELL-34
> URL: https://issues.apache.org/jira/browse/GSHELL-34
> Project: GShell
> Issue Type: Improvement
> Security Level: public(Regular issues)
> Components: Core
> Reporter: Guillaume Nodet
> Assignee: Jason Dillon
>
> In OSGi, the URLHandlerFactory is already set and can not be overriden:
> org.osgi.framework.BundleException: Activator start error.
> at org.apache.felix.framework.Felix._startBundle(Felix.java:1579)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1469)
> at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1064)
> at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
> at java.lang.Thread.run(Thread.java:613)
> Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.apache.geronimo.gshell.URLHandlerFactory', it could not be started
> at org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:156)
> at org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:69)
> at org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:81)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:512)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:506)
> at org.apache.geronimo.gshell.GShell.<init>(GShell.java:85)
> at org.apache.geronimo.gshell.osgi.Activator.start(Activator.java:29)
> at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
> at org.apache.felix.framework.Felix._startBundle(Felix.java:1535)
> ... 4 more
> Caused by: org.codehaus.plexus.component.repository.exception.ComponentLifecycleException: Error starting component
> at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:146)
> at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:132)
> at org.codehaus.plexus.component.manager.KeepAliveSingletonComponentManager.getComponent(KeepAliveSingletonComponentManager.java:72)
> at org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:147)
> ... 12 more
> Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException: Error initialising component
> at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:37)
> at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:128)
> at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:142)
> ... 15 more
> Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException: Failed to install URL stream handler factory
> at org.apache.geronimo.gshell.URLHandlerFactory.initialize(URLHandlerFactory.java:73)
> at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:33)
> ... 17 more
> Caused by: java.lang.Error: factory already defined
> at java.net.URL.setURLStreamHandlerFactory(URL.java:1074)
> at org.apache.geronimo.gshell.URLHandlerFactory.initialize(URLHandlerFactory.java:68)
> ... 18 more
> What's the purpose of this url factory ? Can we use a pluggable strategy for that ?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.