[
https://issues.apache.org/jira/browse/UIMA-1631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marshall Schor closed UIMA-1631.
--------------------------------
Resolution: Fixed
> UimaBootstrap Loader approach fails to work for classes loaded by logger (and
> maybe other parts of Java)
> --------------------------------------------------------------------------------------------------------
>
> Key: UIMA-1631
> URL: https://issues.apache.org/jira/browse/UIMA-1631
> Project: UIMA
> Issue Type: Bug
> Components: Tools
> Reporter: Marshall Schor
> Assignee: Marshall Schor
> Fix For: 2.3
>
>
> The bootstrap loader is creating a URLClassLoader whose parent is the
> application class loader - also the one obtained from
> ClassLoader.getSystemClassLoader() method. The Logger configuration is
> defined to load classes uses the application class loader, and fails to find
> any of the classes made available by the bootstrap class loader.
> An attempted fix that used the -Djava.system.class.loader failed to work for
> IBM Java 5 because that Java doesn't use the loader returned by
> ClassLoader.getSystemClassLoader() to load the logger classes.
> Fix this by not creating a new class loader, and just adding the new jars and
> directories to the current application class loader, using reflection to
> enable accessing the addUrl method. This approach presumes that the
> application class loader is a subclass of URLClassLoader, which seems to be
> true at least for Sun and IBM Javas, launched with the normal java command.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.