[
https://issues.apache.org/jira/browse/FELIX-827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karl Pauls updated FELIX-827:
-----------------------------
Fix Version/s: felix-1.4.1
Issue Type: Improvement (was: Bug)
Yeah, what you see is the current state of the URLHandlers implementation. It
would be nice if we would swap out our handler in all cases but currently, we
only do that if no handler was set previously. In your second case, there was a
handler set which we did swap out. As a consequence, we don't swap-out our
handler but continue to delegate to the previous handler.
I think our behaviour is not to bad. Problem is, somebody else (tomcat) is
trying to do magic too. Together, the result is not what we want. We should
look into swapping the previous handler back in.
As a workaround, one could disable urlhandlers inside felix or (in case that is
needed) try to set
org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES to false.
Could you let us know whether the later makes a difference?
> URLHandlers does not restore the previous URLStreamHandlerFactory after
> stopping Felix
> --------------------------------------------------------------------------------------
>
> Key: FELIX-827
> URL: https://issues.apache.org/jira/browse/FELIX-827
> Project: Felix
> Issue Type: Improvement
> Components: Framework
> Affects Versions: felix-1.2.1
, felix-1.4.0
> Reporter: Tim Moore
> Assignee: Karl Pauls
> Fix For: felix-1.4.1
>
> Attachments: test-felix-handler-1.0-SNAPSHOT.jar,
> test-felix-handler.zip
>
>
> I'm running Felix embedded inside a webapp, running in Tomcat.
> Tomcat installs its own URLStreamHandlerFactory. Felix swaps it out correctly
> when I start it, and seems to delegate properly. When the webapp is unloaded,
> however, and it stops Felix, it does not restore the previous implementation,
> but rather leaves the existing URLHandlers instance installed. Then, if I try
> to redeploy the webapp without restarting the JVM, I get errors, because
> Tomcat automatically sets the URLHandlers class's static members to null when
> it unloads the webapp. (see
> https://issues.apache.org/bugzilla/show_bug.cgi?id=41939)
> I've tested this on 1.2.1 and 1.4.0, and both versions have this problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.