[SOLVED] Are themes for 7.0GA4 incompatible with 7.0GA7?

thumbnail
Mirto Silvio Busico, modified 5 Years ago. Regular Member Posts: 240 Join Date: 1/18/12 Recent Posts
Forgive me.The war file was corrupted durin a copy.
Using the original file works correctly
______________________________________________________________________________-
Hi all,I have a theme developed for 7.0GA4.
Now I have a 7.0GA7 fresh install.
Trying to deploy the theme war file gives the error:
2019-11-03 08:48:09.699 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:263] Processing classic-msb-4-theme.war
2019-11-03 08:48:17.219 ERROR [fileinstall-/LH/liferay-ce-portal-7.0-ga7/osgi/war][WarArtifactUrlTransformer:95] Unable to check resources in /LH/liferay-ce-portal-7.0-ga7/osgi/war/classic-msb-4-theme.war
java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
&nbsp;&nbsp; &nbsp;at java.util.zip.ZipFile.<init>(ZipFile.java:225)
&nbsp;&nbsp; &nbsp;at java.util.zip.ZipFile.<init>(ZipFile.java:155)
&nbsp;&nbsp; &nbsp;at java.util.zip.ZipFile.<init>(ZipFile.java:169)
&nbsp;&nbsp; &nbsp;at com.liferay.portal.osgi.web.wab.generator.internal.artifact.WarArtifactUrlTransformer._hasResources(WarArtifactUrlTransformer.java:65)
&nbsp;&nbsp; &nbsp;at com.liferay.portal.osgi.web.wab.generator.internal.artifact.WarArtifactUrlTransformer.canHandle(WarArtifactUrlTransformer.java:52)
&nbsp;&nbsp; &nbsp;at org.apache.felix.fileinstall.internal.DirectoryWatcher.findListener(DirectoryWatcher.java:524)
&nbsp;&nbsp; &nbsp;at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:456)
&nbsp;&nbsp; &nbsp;at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
&nbsp;&nbsp; &nbsp;at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)
2019-11-03 08:48:17.308 ERROR [fileinstall-/LH/liferay-ce-portal-7.0-ga7/osgi/war][org_apache_felix_fileinstall:97] Failed to install artifact: /LH/liferay-ce-portal-7.0-ga7/osgi/war/classic-msb-4-theme.war&nbsp;

</init></init></init>
How can I deploy correctly the old theme?
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Mirto Silvio Busico:


2019-11-03 08:48:09.699 INFO &nbsp;[com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:263] Processing classic-msb-4-theme.war
2019-11-03 08:48:17.219 ERROR [fileinstall-/LH/liferay-ce-portal-7.0-ga7/osgi/war][WarArtifactUrlTransformer:95] Unable to check resources in /LH/liferay-ce-portal-7.0-ga7/osgi/war/classic-msb-4-theme.war
java.util.zip.ZipException: error in opening zip file
&nbsp;&nbsp; &nbsp;at java.util.zip.ZipFile.open(Native Method)

How can I deploy correctly the old theme?
That sounds like something is technically wrong with the zipfile. Can you unzip it using standard unzip tools? (you may need to rename it from .war to .zip)
thumbnail
Mirto Silvio Busico, modified 5 Years ago. Regular Member Posts: 240 Join Date: 1/18/12 Recent Posts
You are right: trying to extract with a GUI tool as ark it says that the file is damaged;  but  I can open it in readonly mode.
The content seems correct.
The problem is that I'm absolutely sure that I installed the theme using this file (well a year ago on a Liferay 7.0 GA4).
Now I'm trying to regenerate the theme (...and I encountered a problem in installing generator-liferay-theme - see https://liferay.dev/forums/-/message_boards/message/117649954 )
Any hint?
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
Is the content correct or just the index (the list of files)?
Can you extract all the important files?
If only some files are damaged, you might be able to just replace those files.
thumbnail
Mirto Silvio Busico, modified 5 Years ago. Regular Member Posts: 240 Join Date: 1/18/12 Recent Posts
Thanks Christoph
The files seems redable; but I prefer to regenerate the theme.It is a simple modification of the classic theme: only two css files to change the color and a colophon substitution in the main template.I'll try to create the theme as soon I'm able to use the generator-liferay-theme