AnsweredAssumed Answered

Problem with WSF 1.5

Question asked by alexlod on Oct 12, 2007
Latest reply on Nov 10, 2007 by mikeh
I created a new web project and imported the war I downloaded from the forge site (http://forge.alfresco.com/frs/download.php/300/wsf-1.5-website-war.zip).  It looks like all the content was imported correctly, but I get the attached JSP error when trying to preview the site.  I also tried to have Tomcat explode the WAR, but it wasn't able to run the WAR due to a filter error.  I can give more info on this filter error if it would help.

Any ideas?  Is this an error with the WSF or with my configuration?  Thanks!

org.apache.jasper.JasperException: Exception in JSP: /views/components/common-include.jsp:33

30:      xmlns:ds="http://www.alfresco.org/alfresco/ds"
31:           xmlns:fmt="http://java.sun.com/jsp/jstl/fmt">
32:  
33:   <c:set var="style" value="${ds:getConfiguration(pageContext,'Style')}"/>
34:   <c:set var="toolbar" value="${ds:getConfiguration(pageContext,'Toolbar')}"/>
35:   <c:set var="locale" value="${ds:getConfiguration(pageContext,'Locale')}"/>
36:   <fmt:setBundle basename="org.alfresco.wsf.messages.Messages" scope="session"/>


Stacktrace:
   org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:467)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.ssi.SSIFilter.doFilter(SSIFilter.java:125)
   org.alfresco.filter.CacheControlFilter.doFilter(CacheControlFilter.java:187)

root cause

javax.servlet.ServletException: javax.servlet.jsp.el.ELException: An error occurred while evaluating function "ds:getConfiguration"
   org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:842)
   org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
   org.apache.jsp.views.pages.index_jsp._jspService(index_jsp.java:142)
   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:328)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.ssi.SSIFilter.doFilter(SSIFilter.java:125)
   org.alfresco.filter.CacheControlFilter.doFilter(CacheControlFilter.java:187)

root cause

org.alfresco.service.cmr.avm.AVMNotFoundException: /www/avm_webapps/ROOT/content/site-configuration/SC.xml has no content.
   org.alfresco.repo.avm.AVMStoreImpl.getInputStream(AVMStoreImpl.java:539)
   org.alfresco.repo.avm.AVMRepository.getInputStream(AVMRepository.java:918)
   org.alfresco.repo.avm.AVMServiceImpl.getFileInputStream(AVMServiceImpl.java:102)
   sun.reflect.GeneratedMethodAccessor702.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
   org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
   org.alfresco.repo.search.AVMSnapShotTriggeredIndexingMethodInterceptor.invoke(AVMSnapShotTriggeredIndexingMethodInterceptor.java:154)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:92)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   $Proxy22.getFileInputStream(Unknown Source)
   org.alfresco.repo.avm.AVMRemoteTransportService.getInputHandle(AVMRemoteTransportService.java:245)
   sun.reflect.GeneratedMethodAccessor701.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
   org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
   org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:70)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   $Proxy61.getInputHandle(Unknown Source)
   sun.reflect.GeneratedMethodAccessor718.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:181)
   org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(DefaultRemoteInvocationExecutor.java:38)
   org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:76)
   org.springframework.remoting.rmi.RmiBasedExporter.invoke(RmiBasedExporter.java:72)
   org.springframework.remoting.rmi.RmiInvocationWrapper.invoke(RmiInvocationWrapper.java:62)
   sun.reflect.GeneratedMethodAccessor685.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
   sun.rmi.transport.Transport$1.run(Transport.java:153)
   java.security.AccessController.doPrivileged(Native Method)
   sun.rmi.transport.Transport.serviceCall(Transport.java:149)
   sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
   sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
   java.lang.Thread.run(Thread.java:595)
   org.springframework.remoting.support.RemoteInvocationUtils.fillInClientStackTraceIfPossible(RemoteInvocationUtils.java:44)
   org.springframework.remoting.rmi.RmiClientInterceptor.doInvoke(RmiClientInterceptor.java:352)
   org.springframework.remoting.rmi.RmiClientInterceptor.invoke(RmiClientInterceptor.java:259)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   $Proxy1.getInputHandle(Unknown Source)
   sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
   org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
   org.alfresco.catalina.host.ReauthenticatingAdvice.invoke(ReauthenticatingAdvice.java:103)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
   $Proxy1.getInputHandle(Unknown Source)
   org.alfresco.repo.remote.AVMRemoteImpl.getFileInputStream(AVMRemoteImpl.java:233)
   org.alfresco.web.forms.FormDataFunctions.parseXMLDocument(FormDataFunctions.java:70)
   org.alfresco.web.forms.ServletContextFormDataFunctionsAdapter.parseXMLDocument(ServletContextFormDataFunctionsAdapter.java:70)
   org.alfresco.web.content.ConfigurationBean.load(ConfigurationBean.java:59)
   org.alfresco.web.content.ConfigurationBean.getConfiguration(ConfigurationBean.java:91)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:585)
   org.apache.commons.el.FunctionInvocation.evaluate(FunctionInvocation.java:172)
   org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
   org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
   org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:929)
   org.apache.jsp.views.pages.index_jsp._jspx_meth_c_005fset_005f0(index_jsp.java:157)
   org.apache.jsp.views.pages.index_jsp._jspService(index_jsp.java:78)
   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:328)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.ssi.SSIFilter.doFilter(SSIFilter.java:125)
   org.alfresco.filter.CacheControlFilter.doFilter(CacheControlFilter.java:187)

Outcomes