cancel
Showing results for 
Search instead for 
Did you mean: 

Installation Alfresco LABS 3 on Glassfish 2.1

artem
Champ in-the-making
Champ in-the-making
I am trying to install Alfresco LABS 3 on Glassfish 2.1. All seems ok. WARs are correctly deployed. http://localhost:8080/alfresco work fine. But when i try http://localhost:8080/share application, then, after login page, I see following exception:

A problem has occurred.
This page could not be rendered:
site-index
Please notify your system administrator.

Details…


org.alfresco.web.framework.exception.RendererExecutionException: Unable to execute 'body' JSP include: /site-index.jsp
   at org.apache.jsp.core.error_002dviewer_jsp._jspService(error_002dviewer_jsp.java from :98)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
   at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
   at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:875)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:679)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:594)
   at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1013)
   at org.apache.jsp.core.page_002derror_jsp._jspService(page_002derror_jsp.java from :71)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
   at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
   at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:875)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:679)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:594)
   at org.alfresco.web.framework.render.bean.JSPProcessor.doInclude(JSPProcessor.java:145)
   at org.alfresco.web.framework.render.bean.JSPProcessor.executeBody(JSPProcessor.java:122)
   at org.alfresco.web.framework.render.RenderUtil.renderErrorHandlerPage(RenderUtil.java:817)
   at org.alfresco.web.framework.render.PresentationUtil.handlePageRenderProblem(PresentationUtil.java:222)
   at org.alfresco.web.framework.render.PresentationUtil.renderPage(PresentationUtil.java:89)
   at org.alfresco.web.site.servlet.DispatcherServlet.dispatchPage(DispatcherServlet.java:459)
   at org.alfresco.web.site.servlet.DispatcherServlet.dispatch(DispatcherServlet.java:336)
   at org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:153)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
   at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
   at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
   at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
   at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
   at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
   at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
   at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
   at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
   at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
   at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
   at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
   at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
   at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: java.lang.ClassCastException: org.alfresco.tools.FakeHttpServletResponse cannot be cast to org.apache.coyote.tomcat5.CoyoteResponseFacade
   at org.apache.catalina.core.ApplicationDispatcherForward.getResponseFacade(ApplicationDispatcherForward.java:398)
   at org.apache.catalina.core.ApplicationDispatcherForward.commit(ApplicationDispatcherForward.java:113)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:384)
   at org.alfresco.web.framework.render.bean.JSPProcessor.doInclude(JSPProcessor.java:140)
   at org.alfresco.web.framework.render.bean.JSPProcessor.executeBody(JSPProcessor.java:122)
   at org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
   at org.alfresco.web.framework.render.RenderHelper.processTemplate(RenderHelper.java:376)
   at org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.calculateComponentDependencies(TemplateInstanceRenderer.java:69)
   at org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:124)
   at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   at org.alfresco.web.framework.render.bean.PageRenderer.body(PageRenderer.java:81)
   at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   at org.alfresco.web.framework.render.RenderUtil.startPageRenderer(RenderUtil.java:144)
   at org.alfresco.web.framework.render.RenderUtil.renderPage(RenderUtil.java:117)
   at org.alfresco.web.framework.render.PresentationUtil.renderPage(PresentationUtil.java:85)
   … 31 more

Caused By…
java.lang.ClassCastException: org.alfresco.tools.FakeHttpServletResponse cannot be cast to org.apache.coyote.tomcat5.CoyoteResponseFacade
   at org.apache.catalina.core.ApplicationDispatcherForward.getResponseFacade(ApplicationDispatcherForward.java:398)
   at org.apache.catalina.core.ApplicationDispatcherForward.commit(ApplicationDispatcherForward.java:113)
   at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:384)
   at org.alfresco.web.framework.render.bean.JSPProcessor.doInclude(JSPProcessor.java:140)
   at org.alfresco.web.framework.render.bean.JSPProcessor.executeBody(JSPProcessor.java:122)
   at org.alfresco.web.framework.render.AbstractProcessor.execute(AbstractProcessor.java:85)
   at org.alfresco.web.framework.render.RenderHelper.processTemplate(RenderHelper.java:376)
   at org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.calculateComponentDependencies(TemplateInstanceRenderer.java:69)
   at org.alfresco.web.framework.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:124)
   at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   at org.alfresco.web.framework.render.bean.PageRenderer.body(PageRenderer.java:81)
   at org.alfresco.web.framework.render.AbstractRenderer.render(AbstractRenderer.java:105)
   at org.alfresco.web.framework.render.RenderUtil.startPageRenderer(RenderUtil.java:144)
   at org.alfresco.web.framework.render.RenderUtil.renderPage(RenderUtil.java:117)
   at org.alfresco.web.framework.render.PresentationUtil.renderPage(PresentationUtil.java:85)
   at org.alfresco.web.site.servlet.DispatcherServlet.dispatchPage(DispatcherServlet.java:459)
   at org.alfresco.web.site.servlet.DispatcherServlet.dispatch(DispatcherServlet.java:336)
   at org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:153)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
   at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
   at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
   at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
   at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
   at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
   at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
   at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
   at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
   at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
   at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
   at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
   at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
   at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
   at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Does anyone know solution of problem?
Thanks.
3 REPLIES 3

iaranda
Champ in-the-making
Champ in-the-making
Create a file called sun-web.xml with the following contents:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
<sun-web-app>
<class-loader delegate="false"/>
<property name="useMyFaces" value="true"/>
</sun-web-app>

and then add that file to the alfresco.war file into WEB_INF.

Regards

iaranda
Champ in-the-making
Champ in-the-making
Create a file called sun-web.xml with the following contents:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
<sun-web-app>
<class-loader delegate="false"/>
<property name="useMyFaces" value="true"/>
</sun-web-app>

and then add that file to the alfresco.war file, into WEB-INF directory.

Regards

altus34
Champ in-the-making
Champ in-the-making
Same probleme here Smiley Wink

It's not a myFaces issue.

I've posted in Glassfish forum see :

http://forums.java.net/jive/thread.jspa?messageID=337275