`
Tyler_Zhou
  • 浏览: 217000 次
  • 性别: Icon_minigender_1
  • 来自: 湖北->上海
社区版块
存档分类
最新评论

liferay5.0+oralce10启动报DocumentException

阅读更多
liferay5.0+oracle10配置好后启动报如下错误:
15 May 2007 01:44:59,453 CPOR ERROR [http-8080-Processor24] util.ContentTransformerListener: org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at com.liferay.portlet.journal.util.ContentTransformerListener.replaceContent(ContentTransformerListener.java:90)
at com.liferay.portlet.journal.util.ContentTransformerListener.onXml(ContentTransformerListener.java:58)
at com.liferay.portlet.journal.util.JournalUtil.transform(JournalUtil.java:757)
at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.getArticleContent(JournalArticleLocalServiceImpl.java:709)
at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.getArticleContent(JournalArticleLocalServiceImpl.java:585)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:280)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
at $Proxy12.getArticleContent(Unknown Source)
at com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil.getArticleContent(JournalArticleLocalServiceUtil.java:269)
at com.liferay.portlet.journalcontent.util.JournalContentUtil.getContent(JournalContentUtil.java:78)
at com.liferay.portlet.journalcontent.action.ViewAction.render(ViewAction.java:69)
at com.liferay.portal.struts.PortletAction.execute(PortletAction.java:102)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at com.liferay.portal.struts.PortletRequestProcessor.processActionPerform(PortletRequestProcessor.java:249)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:131)
at com.liferay.portlet.StrutsPortlet.include(StrutsPortlet.java:223)
at com.liferay.portlet.StrutsPortlet.doView(StrutsPortlet.java:194)
at com.liferay.portlet.LiferayPortlet.doDispatch(LiferayPortlet.java:51)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:365)
at com.liferay.portlet.CachePortlet.render(CachePortlet.java:182)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:953)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:260)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:124)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:169)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1108)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1054)
at com.liferay.portal.action.RenderPortletAction.execute(RenderPortletAction.java:72)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:156)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:479)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:877)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:143)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:169)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Nested exception:
根据错误可以看出是XML解析错误,在网上找了好久找到一些人的回答:
# DocumentTransformerListener does not work
journal.transformer.listener=com.liferay.portlet.journal.util.TokensTransformerListener,com.liferay.portlet.journal.util.PropertiesTransformerListener,com.liferay.portlet.journal.util.LocaleTransformerListener

The issue happens because DocumentTransformerListener, which used to be disabled in Liferay 4.2.0, is now enabled by default. However, if the filter breaks, that does not disable the journal content, only the filter.
按他回答的修改后,错误依旧.没办法,自已找原因.用sqldeveloper打开数据库发现journalarticle表content字段,有的显示很多"\n",有的是正确的换行,只要是显示"\n"运行就会报错,自已写了三个存储过程,分别针对journalarticle,journaltemplate,journalstructure三个表修改,代码如下:

create or replace PROCEDURE ARTICLE AS
BEGIN
   FOR RESULT_ IN (SELECT * FROM JOURNALARTICLE WHERE CONTENT LIKE '%\n%') LOOP
  UPDATE JOURNALARTICLE SET CONTENT =
    Replace(RESULT_.CONTENT,'\n',CHR(10)) WHERE ID_=RESULT_.ID_;
  END LOOP;
END ARTICLE;


create or replace PROCEDURE STRUCTRUE AS
BEGIN
FOR RESULT_ IN (SELECT * FROM JOURNALSTRUCTURE WHERE XSD LIKE '%\n%') LOOP
  UPDATE JOURNALSTRUCTURE SET XSD =
    Replace(RESULT_.XSD,'\n',CHR(10)) WHERE ID_=RESULT_.ID_;
  END LOOP;
END STRUCTRUE;


create or replace PROCEDURE TEMPLATE AS
BEGIN
   FOR RESULT_ IN (SELECT * FROM JOURNALTEMPLATE WHERE XSL LIKE '%\n%') LOOP
  UPDATE JOURNALTEMPLATE SET XSL =
    Replace(RESULT_.XSL,'\n',CHR(10)) WHERE ID_=RESULT_.ID_;
  END LOOP;
END TEMPLATE;
分享到:
评论

相关推荐

    Liferay5.1.2配置Oracle10G数据库操作说明书

    完成以上步骤后,启动 Liferay 服务,通过运行 `/liferay/bin/startup.bat` 文件,Liferay 应该已经成功连接到 Oracle 10G 数据库。在配置过程中,如果遇到错误,务必仔细检查配置文件和日志,确保所有步骤都已正确...

    liferay6+struts2集成项目

    **Liferay 6 + Struts 2 集成项目详解** 在Web应用程序开发中,Liferay Portal和Struts 2框架的结合使用可以提供强大的功能和灵活性。Liferay是一款开源的企业级门户平台,它提供了内容管理、社交网络、工作流等...

    Liferay5.1.2+Netbeans6.5开发环境配置

    - 这一步骤较为复杂,可以参考专门的《Liferay5.1.2配置Oracle10G》SOP文档。这里不赘述详细步骤,但主要包括安装Oracle数据库服务器、配置数据库参数等。 **第四步:创建配置文件** 1. **下载并解压Liferay源代码...

    liferay + cas + ldap 集成配置

    标题 "Liferay + CAS + LDAP 集成配置" 涉及到的是在企业级内容管理系统 Liferay 中集成 Central Authentication Service (CAS) 和 Lightweight Directory Access Protocol (LDAP) 的过程。这种集成允许用户通过CAS...

    liferay的oracle部署

    - Oracle JDBC驱动库(如`ojdbc14.jar`或`ojdbc14_g.jar`)需要复制到Tomcat的`lib/ext`目录,以便在服务器启动时自动加载。 6. **创建数据库和数据**: - 在Oracle数据库中创建新的数据库实例,确保其名称和配置...

    liferay6 整合 Orcale10g

    ### Liferay 6 整合 Oracle 10g 步骤详解 在当前的企业级应用环境中,Liferay作为一款强大的企业门户系统,被广泛应用于构建各类业务应用平台。然而,在实际部署过程中,尤其是在与数据库的整合方面,经常会遇到...

    LifeRay+CAS+LDAP+Tomcat 单点登录门户.pdf

    【LifeRay+CAS+LDAP+Tomcat 单点登录门户】是一种常见的企业级身份验证解决方案,它结合了多个组件来实现高效、安全的用户登录管理。在这个架构中,LifeRay 是一个开源的内容管理系统,用于构建企业门户;CAS...

    liferay+Portal+二次开发指南

    ### Liferay Portal 二次开发指南 #### 一、Liferay Portal 概览 **Liferay Portal** 是一款开源的企业级门户平台,它基于Java技术构建,支持多种标准,包括JSR 168和WSRP等。Liferay Portal 提供了一个高度可定制...

    liferay + struts2 + spring + ibatis整合开发案例

    "liferay + struts2 + spring + ibatis"的整合开发案例就是一个典型示例,它展示了如何将这四个强大的技术结合在一起,构建出一个功能丰富的Web应用程序。下面我们将详细探讨这些技术以及它们在整合中的作用。 **...

    Liferay+Portal+5[1].2+Systems+Development.pdf

    10. **社区与资源**:介绍Liferay的社区支持、论坛、文档资源和开发工具,以便于开发者获取更多帮助和支持。 通过深入学习这份指南,开发者不仅可以掌握Liferay Portal 5.1.2的开发技能,还能了解如何在实际项目中...

    Liferay+Portal+二次开发指南_java_

    Liferay Portal 二次开发指南 pdf格式,本文从Liferay Portal的架构入手,详细讲解Portal的用户策略、内容布局、桌面和品质的要素,引导读者完成Liferay Portal初步的二次开发,在Liferay Portal上定制自己的Portlet...

    liferay + struts2 + spring + ibatis 修改版

    【标题】"liferay + struts2 + spring + ibatis 修改版"是一个基于特定技术栈构建的Liferay门户平台的定制版本。这个项目整合了四个关键的Java Web开发框架,即Liferay、Struts2、Spring和iBatis,旨在提供更高效、...

    Liferay 开源全面资料

    Liferay+CMS系统培训.ppt Liferay+Portal+数据库介绍+.doc Liferay+权限管理.doc liferay-portal-5-2-systems-development-sample-chapter-5-managing-pages[1].pdf LiferayPortal二次开发指南.pdf...

    java-oracle.rar_liferay_oracle

    标题 "java-oracle.rar_liferay_oracle" 暗示了这个压缩包是关于使用Java技术在Liferay门户系统中连接Oracle数据库的资源。Liferay是一个开源的企业级内容管理系统,而Oracle是一种广泛应用的关系型数据库管理系统。...

    ArcGIS+ Liferay +Flex 安装部署

    ArcGIS+ Liferay +Flex 安装部署

    LIFERAY + JAVA WEB START + OSWORKFLOW设计器

    【LIFERAY + JAVA WEB START + OSWORKFLOW设计器】是一个结合了三个关键技术的集成解决方案,用于在Liferay门户平台上构建和管理工作流。Liferay是一个开源的企业级门户平台,提供了一整套内容管理系统、社交协作...

    Liferay 配置oracle DB的脚本

    新建Liferay的DB,然后将该文件导入该DB后,即可创建Liferay所需要的Table,并insert提供的初始值。

    liferay 6.2开发指南+用户手册

    Liferay 6.2是一款流行的开源企业级门户平台,它提供了丰富的功能,包括内容管理、社交媒体集成、工作流程以及自定义开发能力。本指南将基于提供的"liferay 6.2开发指南+用户手册"来深入讲解其核心知识点。 1. **...

    Liferay+Portal_数据库结构介绍

    Liferay+Portal_数据库结构介绍,详细描述了liferay portal的数据库。

Global site tag (gtag.js) - Google Analytics