Liferay 启动异常
Liferay之前用的时候一直很正常,但是突然开始报这个错误,不能正常启动了,换了4.1还是这个问题。我的Liferay服务器直接从官方下载的,解开之后没有修改任何东西。
我才可能是读liferay-portlet.xml的错误,可是奇怪的是,另外一台机器也有这样的问题。
谁知道应该使用哪个版本Dom4j才正确?
下面是错误信息(部分):
Starting Liferay Portal Professional 4.1.0 (Cowper / Build 3100 / July 31, 2006)
org.dom4j.DocumentException: Error on line 573 of document http://java.sun.com/x
ml/ns/portlet/portlet-app_1_0.xsd : src-resolve: Cannot resolve the name 'xml:la
ng' to a(n) 'attribute declaration' component. Nested exception: src-resolve: Ca
nnot resolve the name 'xml:lang' to a(n) 'attribute declaration' component.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at com.liferay.portal.service.impl.PortletLocalServiceImpl._readPortletX
ML(PortletLocalServiceImpl.java:502)
at com.liferay.portal.service.impl.PortletLocalServiceImpl._readPortletX
ML(PortletLocalServiceImpl.java:464)
at com.liferay.portal.service.impl.PortletLocalServiceImpl.initEAR(Portl
etLocalServiceImpl.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.