Foros de discusión

Liferay 6.2 + Issue in build-common-plugin.xml

thumbnail
Nithin KV, modificado hace 7 años.

Liferay 6.2 + Issue in build-common-plugin.xml

Junior Member Mensajes: 56 Fecha de incorporación: 23/07/12 Mensajes recientes
Hi,

I have created a new theme in Liferay 6.2 but while generating war I am getting the below issue. Can you please me to resolve this issue ?

BUILD FAILED
C:\Liferay\Liferay6.2\PluginsSDK\build-common-plugin.xml:775: The following error occurred while executing this line:
C:\Liferay\Liferay6.2\PluginsSDK\build-common.xml:1783: The following error occurred while executing this line:
C:\Liferay\Liferay6.2\PluginsSDK\build-common.xml:175: Java returned: 1
thumbnail
Kailash Yadav, modificado hace 7 años.

RE: Liferay 6.2 + Issue in build-common-plugin.xml

Regular Member Mensajes: 211 Fecha de incorporación: 18/10/11 Mensajes recientes
Is it complete stacktarce? There should be more lines about these.
Generally building theme through OutOfMemoryError error. If you are getting same, try to set ANT_OPTS like :
ANT_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
thumbnail
Nithin KV, modificado hace 7 años.

RE: Liferay 6.2 + Issue in build-common-plugin.xml

Junior Member Mensajes: 56 Fecha de incorporación: 23/07/12 Mensajes recientes
Hi,

Thanks for the suggestion. Please find the stack trace. I believe it is some other issue as I am able to deploy portlets in Liferay 6.2 but not themes.

[Console output redirected to file:C:\NewMaven\NewWorkspace\.metadata\.plugins\com.liferay.ide.sdk.core\sdk.log]
Buildfile: C:\Liferay\Liferay6.2\PluginsSDK\themes\NewsFeed-theme\build.xml
war:
[copy] Copying 674 files to C:\Liferay\Liferay6.2\PluginsSDK\themes\NewsFeed-theme\docroot
[copy] Copying 5 files to C:\Liferay\Liferay6.2\PluginsSDK\themes\NewsFeed-theme\docroot\templates
[copy] Copying 66 files to C:\Liferay\Liferay6.2\PluginsSDK\themes\NewsFeed-theme\docroot
[java] Loading jar:file:/C:/Liferay/Liferay6.2/TomcatServer/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
[java] Loading jar:file:/C:/Liferay/Liferay6.2/TomcatServer/tomcat-7.0.62/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
[java] Loading file:/C:/Liferay/Liferay6.2/TomcatServer/tomcat-7.0.62/webapps/ROOT/WEB-INF/classes/portal-ext.properties
[java] Parsed C:/Liferay/Liferay6.2/PluginsSDK/themes/NewsFeed-theme/docroot/assets/css/animate.css in 4477 ms
[java] Parsed C:/Liferay/Liferay6.2/PluginsSDK/themes/NewsFeed-theme/docroot/assets/css/bootstrap.min.css in 2317 ms
[java] Parsed C:/Liferay/Liferay6.2/PluginsSDK/themes/NewsFeed-theme/docroot/assets/css/font-awesome.min.css in 443 ms
[java] Parsed C:/Liferay/Liferay6.2/PluginsSDK/themes/NewsFeed-theme/docroot/assets/css/font.css in 77 ms
[java] Parsed C:/Liferay/Liferay6.2/PluginsSDK/themes/NewsFeed-theme/docroot/assets/css/jquery.fancybox.css in 236 ms
[java] Parsed C:/Liferay/Liferay6.2/PluginsSDK/themes/NewsFeed-theme/docroot/assets/css/li-scroller.css in 81 ms
[java] Parsed C:/Liferay/Liferay6.2/PluginsSDK/themes/NewsFeed-theme/docroot/assets/css/slick.css in 230 ms
[java] Sass::SyntaxError: Invalid CSS after "...i{width:32.1%}}": expected "}", was ""
[java] expected at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1147
[java] expected at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1084
[java] tok! at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:1079
[java] block at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:535
[java] media_directive at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:348
[java] send at org/jruby/RubyKernel.java:2093
[java] special_directive at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:174
[java] directive at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:146
[java] block_child at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:552
[java] block_contents at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:545
[java] stylesheet at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:82
[java] parse at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/scss/parser.rb:27
[java] _to_tree at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:342
[java] _render at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:315
[java] render at C:/Users/NVENKA~1/AppData/Local/Temp/liferay/ruby/gems/sass-3.2.12/lib/sass/../sass/engine.rb:262
[java] (root) at <script>:48
[java] Exception in thread "main" org.jruby.embed.EvalFailedException: (SyntaxError) Invalid CSS after "...i{width:32.1%}}": expected "}", was ""
[java] at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:127)
[java] at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1231)
[java] at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1224)
[java] at com.liferay.portal.scripting.ruby.RubyExecutor.doEval(RubyExecutor.java:189)
[java] at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:229)
[java] at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:129)
[java] at com.liferay.portal.tools.SassToCssBuilder._parseSassFile(SassToCssBuilder.java:355)
[java] at com.liferay.portal.tools.SassToCssBuilder._cacheSass(SassToCssBuilder.java:186)
[java] at com.liferay.portal.tools.SassToCssBuilder._parseSassDirectory(SassToCssBuilder.java:317)
[java] at com.liferay.portal.tools.SassToCssBuilder.<init>(SassToCssBuilder.java:172)
[java] at com.liferay.portal.tools.SassToCssBuilder.main(SassToCssBuilder.java:125)
[java] Caused by: org.jruby.exceptions.RaiseException: (SyntaxError) Invalid CSS after "...i{width:32.1%}}": expected "}", was ""
[java] Unable to parse /assets/css/style.css

BUILD FAILED
C:\Liferay\Liferay6.2\PluginsSDK\build-common-plugin.xml:774: The following error occurred while executing this line:
C:\Liferay\Liferay6.2\PluginsSDK\build-common.xml:1783: The following error occurred while executing this line:
C:\Liferay\Liferay6.2\PluginsSDK\build-common.xml:175: Java returned: 1

Total time: 11 seconds
thumbnail
Kailash Yadav, modificado hace 7 años.

RE: Liferay 6.2 + Issue in build-common-plugin.xml

Regular Member Mensajes: 211 Fecha de incorporación: 18/10/11 Mensajes recientes
Nithin KV:


[java] Parsed C:/Liferay/Liferay6.2/PluginsSDK/themes/NewsFeed-theme/docroot/assets/css/slick.css in 230 ms
[java] Sass::SyntaxError: Invalid CSS after "...i{width:32.1%}}": expected "}", was ""
...
....
[java] Exception in thread "main" org.jruby.embed.EvalFailedException: (SyntaxError) Invalid CSS after "...i{width:32.1%}}": expected "}", was ""
......
.....
[java] Caused by: org.jruby.exceptions.RaiseException: (SyntaxError) Invalid CSS after "...i{width:32.1%}}": expected "}", was ""
[java] Unable to parse /assets/css/style.css


There are some CSS syntex issue in your css file. Please check if there is extra "}" near {width:32.1%}
thumbnail
Nithin KV, modificado hace 7 años.

RE: Liferay 6.2 + Issue in build-common-plugin.xml

Junior Member Mensajes: 56 Fecha de incorporación: 23/07/12 Mensajes recientes
Thanks. Issue got resolved. it was due to CSS parse error. emoticon