[安装] liferay portal转web project,利用MyEclipse发布到liferay portal Tomcat6.0/. ROOT中,初步部署问题

weiqiulai 2010-03-16
大家好!我是将liferay_portal_ext工程转为web project,将其中的portal相关的jar包去掉引用portal源码。在利用MyEclipse启动tomcat过程中报错,debug后找到报错位置,但由于初次学习portal,并不知它要去加载的配置文件什么,哎!已经困扰了很久,望大家帮忙看看!切去开头部分log:
Starting Liferay Portal Standard Edition 5.2.3 (Augustine / Build 5203 / May 20, 2009)
05:45:03,056 INFO  [DBUtil:501] Database does not support case sensitive queries
05:45:04,837 ERROR [MainServlet:194] com.liferay.portal.kernel.xml.DocumentException: null Nested exception: null
com.liferay.portal.kernel.xml.DocumentException: null Nested exception: null
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:377)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:365)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:382)
at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:150)
at com.liferay.portal.plugin.PluginPackageUtil._readPluginPackageXml(PluginPackageUtil.java:1002)
at com.liferay.portal.plugin.PluginPackageUtil.readPluginPackageXml(PluginPackageUtil.java:202)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.readPluginPackage(PluginPackageHotDeployListener.java:157)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:190)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
weiqiulai 2010-03-21
终于解决了!谢谢关注
javaxiang 2010-03-22
利用ant deploy会好一点,我都是这么做的
weiqiulai 2010-03-25
谢谢!现在这个问题已经解决,问题的原因是dom4j解析portlet那几个xml不能解析DOCTYPE所致,去掉就ok了。已经成功搭建了portal web project!
liuwenbo200285 2010-03-26
楼主能发个帖说下步骤么,我上次也弄了很久没有成功。
真liuyake 2010-09-13
楼主,我也要做和你同样的工作,希望能得到你的帮助,麻烦加一下我qq273361737
Global site tag (gtag.js) - Google Analytics