License files containing '-ext' will result in error
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
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.
Did this article resolve your issue ?