[jboss-jira] [JBoss JIRA] (AS7-3160) Could not find Extension-List entry ExtensionListEntry because of Java 6+ Extension Mecanism
Cristhian Lopez (Issue Comment Edited) (JIRA)
jira-events at lists.jboss.org
Mon Jan 2 21:42:09 EST 2012
[ https://issues.jboss.org/browse/AS7-3160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653418#comment-12653418 ]
Cristhian Lopez edited comment on AS7-3160 at 1/2/12 9:40 PM:
--------------------------------------------------------------
In the domain.xml config file.
{code}
<system-properties>
<!-- IPv4 is not required, but setting this helps avoid unintended use of IPv6 -->
<property name="java.net.preferIPv4Stack" value="true"/>
<property name="java.ext.dirs" value="path to the ext dirs of the jre"/>
</system-properties>
{code}
was (Author: cristhiank):
In the domain.xml config file.
<system-properties>
<!-- IPv4 is not required, but setting this helps avoid unintended use of IPv6 -->
<property name="java.net.preferIPv4Stack" value="true"/>
<property name="java.ext.dirs" value="path to the ext dirs of the jre"/>
</system-properties>
> Could not find Extension-List entry ExtensionListEntry because of Java 6+ Extension Mecanism
> --------------------------------------------------------------------------------------------
>
> Key: AS7-3160
> URL: https://issues.jboss.org/browse/AS7-3160
> Project: Application Server 7
> Issue Type: Bug
> Components: Class Loading
> Affects Versions: 7.1.0.Final
> Environment: JDK 1.6.0_30 b12
> JBoss AS 7.1 CR1b
> Reporter: Cristhian Lopez
> Assignee: David Lloyd
>
> When deploying Liferay 6.1 I'm getting the following error
> {code}08:08:38,561 WARN [org.jboss.as.server.deployment.module.module-extension-list-processor] (MSC service thread 1-1) Could not find Extension-List entry ExtensionListEntry [name=javax.crypto, title=crypto] referenced from ResourceRoot [root="/D:/Development/Servers/jboss-as-7.1.0.CR1b/content/ROOT.war/WEB-INF/classes"]{code}
> After some debug on the JBoss 7.1 CR1b source I found that it uses the java.ext.dirs property to find the ext libs, but since java 1.6 the property returns a classpath formated string with more than one path where the extensions are located(http://docs.oracle.com/javase/tutorial/ext/basics/install.html), but on the JBoss code I found that it's trying to parse the property value as a File path directly.
> As you can se on the ServerEnvironment.java line 292
> {code}// Java system-wide extension dirs
> javaExtDirs = getFilesFromProperty(JAVA_EXT_DIRS, props);{code}
> and line 524
> {code}
> private File getFileFromProperty(final String name, final Properties props) {
> String value = props.getProperty(name, null);
> if (value != null) {
> File f = new File(value);
> return f;
> }
> return null;
> }
> {code}
> This is causing that the server can´t find the extensions and warning about it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list