cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with WSF 1.5

alexlod
Champ in-the-making
Champ in-the-making
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)
7 REPLIES 7

mikeh
Star Contributor
Star Contributor
org.alfresco.service.cmr.avm.AVMNotFoundException: /www/avm_webapps/ROOT/content/site-configuration/SC.xml has no content.
You need to copy/move the included SC.xml here. Also check the Navigation.xml file is in the correct place.

Thanks.
Mike

alexlod
Champ in-the-making
Champ in-the-making
org.alfresco.service.cmr.avm.AVMNotFoundException: /www/avm_webapps/ROOT/content/site-configuration/SC.xml has no content.
You need to copy/move the included SC.xml here. Also check the Navigation.xml file is in the correct place.

Thanks.
Mike
Thanks!  I apologize for not looking at the error more closely before posting.

appleholic
Champ in-the-making
Champ in-the-making
Hello,
I am having a similar problem here. I have tried to run the demo website in tomcat and provided all the files needed, also the configuration files are in the right place. But instead of showing the page, I get a NullPointerException:

Here is an excerpt from it:
java.lang.NullPointerException
   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(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   java.lang.reflect.Method.invoke(Unknown Source)


Does anyone know what I can check to make it work?

govardhan
Champ in-the-making
Champ in-the-making
Hi,
I am having problem with bulk import when trying to import WSF 1.5.
On the web client , the error reads
"Unable to perform JDBC batch update.Please correct and then click OK."

I have created a new web project and wanted to do bulk import, to play around with the demo website.

Can anyone suggest what I am missing here?

Thanks
Govardhan

kevinr
Star Contributor
Star Contributor
Are you using the default HSQL database? If so i suggest you switch to MySQL - I believe that is the cause of the problem.

Kevin

stevebate
Champ in-the-making
Champ in-the-making
org.alfresco.service.cmr.avm.AVMNotFoundException: /www/avm_webapps/ROOT/content/site-configuration/SC.xml has no content.
You need to copy/move the included SC.xml here. Also check the Navigation.xml file is in the correct place.

Thanks.
Mike

Hello, I'm an Alfresco newbie and I'm trying to do the WCM evaluation tutorial. Everything has been fine up to the error described above. I have searched for a file SC.xml in my alfresco+wcm installatation and cannot find it. Where would that file be located?

mikeh
Star Contributor
Star Contributor
Hi

The two files are in the zip file from the original post:
http://forge.alfresco.com/frs/download.php/300/wsf-1.5-website-war.zip

Thanks,
Mike