Foros de discusión

Theme Deployment: An unexpected system error occurred.

Clay Banks, modificado hace 10 años.

Theme Deployment: An unexpected system error occurred.

New Member Mensajes: 16 Fecha de incorporación: 15/04/14 Mensajes recientes
Hello LR,

I'm getting strange errors when I try to deploy a custom theme to my LR Portal. This happens on my local workstation as well as my server.

1) Create a theme in the Plugins 6.2.0 SDK titled "My Theme"
2) Run the "deploy" function to create a .war for "My Theme" which is copied into the liferay-plugins-sdk-6.2.0/dist folder
3) Copy the .war and paste it manually into my liferayHome/deploy folder
4) The logs tell me it was deployed successfully, however I see error on my home screen upon selection of my theme:

An unexpected system error occurred.

javax.servlet.jsp.JspException: com.liferay.portal.kernel.template.TemplateException: Unable to process template Peaks-2.0_SERVLET_CONTEXT_/templates/portal_normal.ftl

and get this stack trace:

Caused by: freemarker.template.TemplateException: Error reading included file /
iferayPortal_SERVLET_CONTEXT_/html/themes/_unstyled/templates/init.ftl
at freemarker.core.Include.accept(Include.java:167)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
...
...
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:169)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:293)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:169)
at com.liferay.portal.servlet.filters.jsoncontenttype.JSONContentTypeFilter.processFilter(JSONContentTypeFilter.java:42)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:160)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:169)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:359)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:169)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFi
lter.java:123)
... etc ...

Any ideas why this is happening and how to fix?
Priyanka M, modificado hace 9 años.

RE: Theme Deployment: An unexpected system error occurred. (Respuesta)

New Member Mensajes: 7 Fecha de incorporación: 26/09/11 Mensajes recientes
Hello Clay,

I had run into the same issue when using FreeMarker on a theme I was building. On searching around found the following issue submitted. https://issues.liferay.com/browse/LPS-41917

Further to this I converted the theme to use Velocity and redid the few changes I had done and tested the Velocity Theme deploy but I used the same name to ensure the theme gets replaced when deploying. It worked after the redeploy. I was using WAR files through the hot deploy method.

Hope this helps.
Priyanka.
Clay Banks, modificado hace 9 años.

RE: Theme Deployment: An unexpected system error occurred.

New Member Mensajes: 16 Fecha de incorporación: 15/04/14 Mensajes recientes
Converting to vm from FreeMarker worked for me as well, thanks Pryanka
Priyanka M, modificado hace 9 años.

RE: Theme Deployment: An unexpected system error occurred.

New Member Mensajes: 7 Fecha de incorporación: 26/09/11 Mensajes recientes
Excellent Clay! Glad I could help.

Regards, Priyanka.
thumbnail
Cyril Barillet, modificado hace 9 años.

RE: Theme Deployment: An unexpected system error occurred.

New Member Mensajes: 4 Fecha de incorporación: 28/02/11 Mensajes recientes
Very helpful !! Thanks Clay...
For information:
1) Deployment works with freemarker in my development environment but doesn't work in production, even though liferay versions are the same in the both environments : Liferay Portal Community Edition 6.2 CE GA2 (Newton / Build 6201 / March 20, 2014)
2) I think our error is different from error described here : https://issues.liferay.com/browse/LPS-41917

What do you think ?