Issue
- When deploying a license XML file which contains the string '-ext', an error will appear showing the following:
12:28:30,346 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:863] Deploying license-portalproduction-extension-6.2ee-test.xml
Expanding: /home/user1/liferay/bundles/licensetest/liferay-portal-6.2-ee-sp9/deploy/license-portalproduction-extension-6.2ee-test.xml into /home/user1/liferay/bundles/licensetest/liferay-portal-6.2-ee-sp9/tomcat-7.0.42/temp/20150318122830347
12:28:30,376 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:220] com.liferay.portal.kernel.deploy.auto.AutoDeployException: Error while expanding /home/user1/liferay/bundles/licensetest/liferay-portal-6.2-ee-sp9/deploy/license-portalproduction-extension-6.2ee-test.xml_java.io.IOException: Negative seek offset
com.liferay.portal.kernel.deploy.auto.AutoDeployException: Error while expanding /home/user1/liferay/bundles/licensetest/liferay-portal-6.2-ee-sp9/deploy/license-portalproduction-extension-6.2ee-test.xml_java.io.IOException: Negative seek offset
at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:216)
at com.liferay.portal.deploy.auto.ThreadSafeAutoDeployer.autoDeploy(ThreadSafeAutoDeployer.java:36)
at com.liferay.portal.deploy.auto.ExtAutoDeployListener.deploy(ExtAutoDeployListener.java:54)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.deploy(AutoDeployDir.java:50)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:211)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:275)
at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:58)
Caused by: Error while expanding /home/user1/liferay/bundles/licensetest/liferay-portal-6.2-ee-sp9/deploy/license-portalproduction-extension-6.2ee-test.xml_java.io.IOException: Negative seek offset
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:192)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:132)
at com.liferay.util.ant.ExpandTask.expand(ExpandTask.java:33)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:1062)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:996)
at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:213)
... 6 more
Caused by: java.io.IOException: Negative seek offset
at java.io.RandomAccessFile.seek(Native Method)
at org.apache.tools.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:467)
at org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:313)
at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:185)
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:170)
... 11 more
12:28:30,377 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:224] Add license-portalproduction-extension-6.2ee-test.xml to the blacklist - This also applies to any license files that include any additional characters that follow -ext, for example, -extension, -external, -ext1, -extra, and so on.
Environment
- Liferay Portal 6.1, Liferay Portal 6.2
Resolution
- Files containing the string '-ext' will be processed with the ext hotdeployer instead of the license deployer.
Please change the license filename to remove the string containing "-ext" and redeploy the license file.