AnsweredAssumed Answered

Error on webserver: parseXMLDocument

Question asked by suleyman on Jul 31, 2008
Latest reply on Aug 1, 2008 by suleyman
Hi,

I have the following situation:
- Using alfresco 2.1.1 enterprise with WCM
- Used the WSF to make a new website
- Used the same structure as WSF:
   - /content/navigation/Navigatie.xml
   - /content/site-configuration/SC.xml
   - pages in /views/pages

When previewing the site through virtual server everything works good. I deployed it on the same machine as a web app. to a tomcat instance. All files are located in the ROOT of webapps folder. When I go to the url of the server I can see the page. When I click on a main navigation item I get an errormessage below. I think that it tries to read the site configuration file to locate the navigation file. I have tried everything but can't solve the problem.

Site configuration file:

<?xml version="1.0" encoding="UTF-8"?>
<sc:site-configuration xmlns:sc="http://www.alfresco.org/alfresco/sc" xmlns:alf="http://www.alfresco.org" xmlns:chiba="http://chiba.sourceforge.net/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><sc:configration-variable><sc:name>Navigation</sc:name><sc:value>/content/navigation/Navigatie.xml</sc:value></sc:configration-variable><sc:configration-variable><sc:name>Header</sc:name><sc:value>/content/documents/header.html</sc:value></sc:configration-variable><sc:configration-variable><sc:name>Footer</sc:name><sc:value>/content/documents/footer.html</sc:value></sc:configration-variable><sc:configration-variable><sc:name>Style</sc:name><sc:value>/views/common/css/main.css</sc:value></sc:configration-variable><sc:configration-variable><sc:name>Toolbar</sc:name><sc:value>true</sc:value></sc:configration-variable><sc:configration-variable><sc:name>Locale</sc:name><sc:value>en_US</sc:value></sc:configration-variable><sc:configration-variable><sc:name>RefreshButton</sc:name><sc:value>true</sc:value></sc:configration-variable><sc:configration-variable><sc:name>Map</sc:name><sc:value>Google</sc:value></sc:configration-variable></sc:site-configuration>

Error message

exception

org.apache.jasper.JasperException: Exception in JSP: /views/pages/showpage.jsp:81

78:       <tr>
79:         <td width="100%">       
80:         <c:if test="${!empty channel}">
81:            <jsp:include page="/views/components/feature-items.jsp">
82:             <jsp:param name="channel" value="${channel}" />
83:            </jsp:include>
84:         </c:if>


Stacktrace:
   org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause

org.apache.jasper.JasperException: Exception in JSP: /views/components/feature-items.jsp:20

17: <c:set var="postfix" value="-feature.html"/>
18: </c:if>
19:
20: <c:forEach items="${ds:getItemsWithTypes(pageContext,channel,'Feature')}" var="item"  varStatus="status">   
21:    <c:forEach items="${item.value}" var="link">
22:       <jsp:include page="${link}">   
23:          <jsp:param name="channel" value="${channel}" />   


Stacktrace:
   org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965)
   org.apache.jsp.views.pages.showpage_jsp._jspx_meth_c_005fif_005f0(showpage_jsp.java:265)
   org.apache.jsp.views.pages.showpage_jsp._jspService(showpage_jsp.java:156)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause

javax.servlet.ServletException: javax.servlet.jsp.el.ELException: An error occurred while evaluating function "ds:getItemsWithTypes"
   org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:837)
   org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
   org.apache.jsp.views.components.feature_002ditems_jsp._jspService(feature_002ditems_jsp.java:105)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965)
   org.apache.jsp.views.pages.showpage_jsp._jspx_meth_c_005fif_005f0(showpage_jsp.java:265)
   org.apache.jsp.views.pages.showpage_jsp._jspService(showpage_jsp.java:156)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause

java.lang.NullPointerException
   at org.alfresco.web.forms.FormDataFunctions.parseXMLDocument(FormDataFunctions.java:70)
   at org.alfresco.web.forms.ServletContextFormDataFunctionsAdapter.parseXMLDocument(ServletContextFormDataFunctionsAdapter.java:70)
   at org.alfresco.web.content.ConfigurationBean.load(ConfigurationBean.java:59)
   at org.alfresco.web.content.ConfigurationBean.getConfiguration(ConfigurationBean.java:91)
   at org.alfresco.web.content.NavigationBean.load(NavigationBean.java:79)
   at org.alfresco.web.content.NavigationBean.getItemsWithTypes(NavigationBean.java:180)
   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.commons.el.FunctionInvocation.evaluate(FunctionInvocation.java:172)
   at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
   at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
   at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:924)
   at org.apache.jsp.views.components.feature_002ditems_jsp._jspx_meth_c_005fforEach_005f0(feature_002ditems_jsp.java:260)
   at org.apache.jsp.views.components.feature_002ditems_jsp._jspService(feature_002ditems_jsp.java:96)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
   at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965)
   at org.apache.jsp.views.pages.showpage_jsp._jspx_meth_c_005fif_005f0(showpage_jsp.java:265)
   at org.apache.jsp.views.pages.showpage_jsp._jspService(showpage_jsp.java:156)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
   at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
   at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
   at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
   at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   at java.lang.Thread.run(Thread.java:595)

Any help is much appreciated.

Thanks in advance.

Outcomes