【问题标题】:Portlet not getting deployed properly through hot deployPortlet 未通过热部署正确部署
【发布时间】:2014-05-08 07:47:40
【问题描述】:

我有一个 Spring MVC portlet,我试图通过 STS 中的热部署来部署它。我已经在我的 STS 上配置了 Liferay 服务器运行时。但是 portlet 似乎没有正确初始化。如果我将与 WAR 相同的 portlet 导出到 liferay/deploy 文件夹,它工作正常。我错过了什么?请帮忙。

进行热部署时打印的输出是

Mar 28, 2014 5:43:42 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\liferay-portal-6.1.1-ce-ga2\tomcat-7.0.27\webapps\SinglePortlet Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/portlet is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://www.springframework.org/tags/form is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://www.springframework.org/tags is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined Mar 28, 2014 5:43:43 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://tiles.apache.org/tags-tiles is already defined Mar 28, 2014 5:43:44 PM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://java.sun.com/portlet is already defined SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/lib/ext/slf4j-jdk14.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/lib/ext/util-java.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/SPP-SinglePortlet/WEB-INF/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. log4j: reset attribute= "false". log4j: Threshold ="null". log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. log4j: System property is :null log4j: Standard DocumentBuilderFactory search succeded. log4j: DocumentBuilderFactory is: com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl log4j: debug attribute= "true". log4j: reset attribute= "false". log4j: Threshold ="null".

看不出来什么。

【问题讨论】:

    标签: eclipse spring liferay liferay-6


    【解决方案1】:

    Liferay 有 maven 插件来部署 portlet。 Liferay Maven Plugin

    【讨论】:

      【解决方案2】:

      看看下面的链接,它可能对你有帮助,..

      http://www.liferaysavvy.com/2013/12/liferay-spring-portlet.html

      【讨论】:

      • 请说明您的链接将如何提供帮助。不要只是粘贴链接并说“看那里”
      • 看看我们什么时候在liferay中部署任何portlet首先应该放在deploy文件夹中,然后liferay自动部署器负责添加一些附加配置文件和附加配置到portlet配置中。只需您在服务器部署文件夹中放置它就不会正常工作。在部署之前先查看portlet配置文件或war文件,然后将其放入部署文件夹并部署在部署目录中,然后您就可以了解所有内容了。每次我们都不需要在你问好的地方回答所有问题。要有耐心。不要低估人民,谢谢
      • 用那个更新你的答案:P
      猜你喜欢
      • 1970-01-01
      • 2013-05-04
      • 1970-01-01
      • 2020-12-13
      • 1970-01-01
      • 1970-01-01
      • 2019-11-30
      • 2011-03-08
      • 1970-01-01
      相关资源
      最近更新 更多