Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
7.1.0.Final
-
None
-
Workaround Exists
-
-
Medium
Description
When deploying Liferay 6.1 I'm getting the following error
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"]
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
// Java system-wide extension dirs
javaExtDirs = getFilesFromProperty(JAVA_EXT_DIRS, props);
and line 524
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; }
This is causing that the server canĀ“t find the extensions and warning about it.