DISID / bootstrap-theme

Template to create Liferay portals with a new theme developed using the amazing Twitter Bootstrap framework
GNU General Public License v3.0
19 stars 16 forks source link

war deployment errors #3

Open datyger opened 11 years ago

datyger commented 11 years ago

Hi -

I am very excited to preview this and contribute to the project. We are a large university system.

Having some trouble getting started, though...:

When I try and deploy this theme either via local server sdk or by dropping the .war into my deploy folder, it fails.

Other themes are deploying fine with both these methods.

I was also able to cherry-pick your _diffs files and with the LR IDE and a generated theme managed to get a partial version up and running but wonder what is happening with these deployment probs.

Here is my error when dropping .war >> /deploy (an unzipping problem?):

com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.util.zip.ZipException: error in opening zip file at com.liferay.portal.kernel.deploy.auto.BaseAutoDeployListener.isMatchingFile(BaseAutoDeployListener.java:87) at com.liferay.portal.kernel.deploy.auto.BaseAutoDeployListener.isHookPlugin(BaseAutoDeployListener.java:43) at com.liferay.portal.deploy.auto.HookAutoDeployListener.deploy(HookAutoDeployListener.java:43) at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:193) at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:235) at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:54) Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:127) at java.util.zip.ZipFile.(ZipFile.java:143) at com.liferay.portal.kernel.deploy.auto.BaseAutoDeployListener.isMatchingFile(BaseAutoDeployListener.java:72) ... 5 more 17:09:56,841 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:216] Add bootstrap-theme-6.1.1.1.war to the blacklist

and here is the sdk-side error (a REGEXP component problem? isMatching file...):

== Subsequent attempts fail due to blacklisting i think...===

BUILD FAILED /appserver/liferay-portal-6.1.1-ce-ga2/sdk/themes/build-common-theme.xml:41: The following error occurred while executing this line: /appserver/liferay-portal-6.1.1-ce-ga2/sdk/themes/build-common-theme.xml:49: No supported regular expression matcher found: java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp

Any ideas how I can get your entire native package working on my server?

daniel

pilarargudo commented 11 years ago

Hi Daniel,

how you solved it? you downloaded /docroot directory?

We appreciate your feedback.

Thanks, Pilar.

datyger commented 11 years ago

I solved this by doing the following:

Download the DISID files via GIT repo to my server. In Eclipse / Liferay IDE, created a new theme Copied the /docroot/_diffs files from disid git repo i downloaded to the new theme project's docroot/ folder Started deploying to my server via the remote-server-connector that works with Eclipse/Liferay IDE when that component is installed on the server.

I still can not get the DISID site template to unpack on my LR 6.1.1 server.

But, I am functional and adapting the theme now w rapid dev cycles and testing...

pilarargudo commented 11 years ago

We follow the instructions explained in section Import Bootstrap site template and it's ok in our server. We are glad you are working with our theme.

datyger commented 11 years ago

I am following the instructions exactly, as well, and it fails. I could show this to you in a webinar, if you'd like. There must be some pre-requisite or some other IMPORT option(s) I need to check / uncheck for success to occur... I have tried a few combinations / omissions... -daniel

pilarargudo commented 11 years ago

Hi Daniel,

you can read more information about importing resources in themes in Liferay here http://www.liferay.com/es/documentation/liferay-portal/6.1/development/-/ai/6-1-importing-resources-with-themes

It's important to check your theme’s docroot/WEB-INF/liferay-plugin-package.properties file for two entries related the resources importer:

required-deployment-contexts=\
    resources-importer-web
resources-importer-developer-mode-enabled=true