[
https://jira.codehaus.org/browse/MEAR-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306325#comment-306325
]
Alex Halovanic commented on MEAR-146:
-------------------------------------
I checked that empty library directory works for my use case with WebLogic too.
But only in a way that worries me that these two scenarios don't entirely
match up.
Remember that /APP-INF/lib is the older WebLogic-specific magic library
classpath and /lib is supposed to be the standardized location since EAR v5.
These are the three scenarios defined according to the Sun XSD:
# Element not present - search in /lib
## WebLogic searches /lib and in /APP-INF/lib and some other special external
directories (exploded EARs, generic file overrides, etc.)
# Element empty - disable searching
## WebLogic still searches in /APP-INF/lib and the external directories, but
fails to search /lib.
# Element defined - search in given directory
## WebLogic exclusively searches in this directory and ignores all others.
So I think in Sean and my cases an empty element works, but *only* so long as
we stick to the WebLogic specific APP-INF/lib defaultLibBundleDir.
> Expose parameter to not write library-directory element in application.xml
> --------------------------------------------------------------------------
>
> Key: MEAR-146
> URL: https://jira.codehaus.org/browse/MEAR-146
> Project: Maven 2.x Ear Plugin
> Issue Type: Improvement
> Affects Versions: 2.7
> Environment: Oracle WebLogic
> Reporter: Alex Halovanic
> Priority: Minor
> Fix For: 2.8
>
> Attachments: ear-remove-librarydirectory-IT.patch,
> ear-remove-librarydirectory-IT.patch, ear-remove-librarydirectory.patch,
> ear-remove-librarydirectory.patch
>
>
> The current handling of defaultLibBundleDir leads to some issues on Oracle
> Weblogic 10+. The Ear plugin currently sets library-directory to the value
> of defaultLibBundleDir in the application.xml for EARs v5+. Some of Oracle's
> classloading features break (specifically "Generic File Loading") when this
> element is set. defaultLibBundleDir has to be set to APP-INF/lib since this
> is the magic library folder for WebLogic.
> The patch adds a parameter to prevent setting library-directory for cases
> like this.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira