留言板
Porlet/VelocityServletResourceParser question
William Gosse,修改在7 年前。
Porlet/VelocityServletResourceParser question
Liferay Master 帖子: 533 加入日期: 10-7-4 最近的帖子
I've been seeing the following kinds of statements in my log
18:37:58,574 DEBUG [ajp-hal-pptla-q01.dc.fmcna.com/10.5.75.183:8009-1][VelocityServletResourceParser:65] /templates/portlet.MyLoginPortlet_WAR_myportal001SNAPSHOT.vm is associated with the servlet context mylogin-theme org.apache.catalina.core.ApplicationContextFacade@217b9236
MyLoginPortlet is a custom portlet that's deployed in myportal.war. MyLoginPortlet is developed using Spring MVC. Hows is it winding up as a velocity template in myLogin theme. Is Liferay generating a template for my custom portlet on the fly when it deploys it. The reason i'm asking is because sometimes I get naming exception under the covers saying that it can't find this .vm file.
avax.naming.NamingException: JBWEB006704: Resource /templates/portlet.MyLoginPortlet_WAR_myportal001SNAPSHOT.vm not found
org.apache.naming.resources.ProxyDirContext lookup
18:37:58,574 DEBUG [ajp-hal-pptla-q01.dc.fmcna.com/10.5.75.183:8009-1][VelocityServletResourceParser:65] /templates/portlet.MyLoginPortlet_WAR_myportal001SNAPSHOT.vm is associated with the servlet context mylogin-theme org.apache.catalina.core.ApplicationContextFacade@217b9236
MyLoginPortlet is a custom portlet that's deployed in myportal.war. MyLoginPortlet is developed using Spring MVC. Hows is it winding up as a velocity template in myLogin theme. Is Liferay generating a template for my custom portlet on the fly when it deploys it. The reason i'm asking is because sometimes I get naming exception under the covers saying that it can't find this .vm file.
avax.naming.NamingException: JBWEB006704: Resource /templates/portlet.MyLoginPortlet_WAR_myportal001SNAPSHOT.vm not found
org.apache.naming.resources.ProxyDirContext lookup
Sushil Patidar,修改在7 年前。
RE: Porlet/VelocityServletResourceParser question
Expert 帖子: 467 加入日期: 11-10-31 最近的帖子
Hi,
Problem may be related to custom theme.Are you getting the same problem on default theme for the same portlet?
Regards
Problem may be related to custom theme.Are you getting the same problem on default theme for the same portlet?
Regards