cancel
Showing results for 
Search instead for 
Did you mean: 

FileReceiver and Deploy to Tomcat

major_king
Champ in-the-making
Champ in-the-making
Hey everybody,

i've deployed the alfrescowww-sample to a file-receiver 2.1. After that i created a war-file.

Now, i can deploy this war successfully to a stand-alone tomcat 6.0.14 with the tomcat application manager, but wenn i want to start this application, i receive the following error message in the log. Has anybody seen this before?

12.12.2007 16:58:19 org.apache.catalina.core.StandardContext filterStart
SCHWERWIEGEND: Exception starting filter ssi
java.lang.SecurityException: Filter of class org.apache.catalina.ssi.SSIFilter is privileged and cannot be loaded by this web application
   at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:251)
   at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
   at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
   at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
   at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1237)
   at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:591)
   at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:128)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Unknown Source)

Thanks for help.

Greeting.
christian
8 REPLIES 8

kvc
Champ in-the-making
Champ in-the-making
Christian:


Doesn't look like it's something to do with Alfresco.   Did you need to have SSIs enable on your runtime tomcat?  If not, can you comment out the SSI servlet in your web.xml and see if you get the same error?


Kevin

major_king
Champ in-the-making
Champ in-the-making
Hi Kevin,

i've comment out the SSi-section in the web.xml. Now i can deploy the alfrescowww.war and the website is running. But when i browse to the website, i become a "http status 404 - /alfrescowww/index.jsp"-error. In the webapps-folder i can see the alfrescowww.war and the alfrescowww-folder with META-INF and WEB-INF, but no index.jsp. Are there any configurations in the website i have to do or is this a tomcat-problem?

Thanks for help.
christian

iapilgrim
Champ in-the-making
Champ in-the-making
I've got these following cases
1. I deployed alfresco sample in tomcat 6.0.13 but I can't start the webapp. I got error "SEVERE: Error filterStart".
2. I tried to comment SSI filter in the webapp. It was running but when I run /media/release/index.jsp. I got this error
javax.el.ELException: Problems calling function 'pr:getPressReleases'
….

root cause

java.lang.NoClassDefFoundError: org/alfresco/jndi/AVMFileDirContext
   org.alfresco.web.forms.ServletContextFormDataFunctionsAdapter.<init>(ServletContextFormDataFunctionsAdapter.java:41)

   org.alfresco.web.pr.PressReleaseBean.getPressReleases(PressReleaseBean.java:50)
3. I uncomment SSI filter in conf/web.xml, uncomment SSI filter in webapp/web.xml. But  the webapp failed to start up.
4. I tried to uncommnet SSI servlet instead of SSI filter in conf/web.xml. But still got error filterStart when start tomcat.

How can I deploy/run alfresco sample correctly?
Thanks

iapilgrim
Champ in-the-making
Champ in-the-making
Hi,
To enable SSI, I also add privileged="true" in context.xml.
I also modified SSI mapping, url-pattern to /*.jsp. Now the webapp can run. But when I request ../media/release/index.jsp, It just display some headers, It even don't display the navigation. Note that it run normally when I run in virtualization server.
I tried to change url-pattern to  /*.html. Then I got the error
java.lang.NoClassDefFoundError: org/alfresco/jndi/AVMFileDirContext
I found an similar issue in Jira (http://issues.alfresco.com/browse/WCM-955)
Are there any idea ??

ribz33
Champ on-the-rise
Champ on-the-rise
I have same problem.

Alfresco wcm is working
Virtual server is working
Preview my press release on virtual server is working
deploy to ROOT folder on same tomcat where alfresco is deployed is working
navigate on sample alfresco.com website is working
If i go to "About us"->News i have error

This is error
org.apache.jasper.JasperException: Exception in JSP: /media/releases/index.jsp:74

71:      <h1>Alfresco Press Releases</h1>
72:     
73:      <!– load all PressReleaseBeans by using the function defined in /WEB-INF/pr.tld –>
74:      <c:forEach items="${pr:getPressReleases(pageContext)}" var="pressRelease">
75:        <h2 class="headline">
76:          <jsp:element name="a">
77:       <jsp:attribute name="href"><c:out value="${pressRelease.href}"/></jsp:attribute>


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)

cause mère

javax.servlet.ServletException: javax.servlet.jsp.el.ELException: An error occurred while evaluating function "pr:getPressReleases"
   org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:842)
   org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
   org.apache.jsp.media.releases.index_jsp._jspService(index_jsp.java:236)
   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)

cause mère

java.lang.NoClassDefFoundError: org/alfresco/jndi/AVMFileDirContext
   org.alfresco.web.forms.ServletContextFormDataFunctionsAdapter.<init>(ServletContextFormDataFunctionsAdapter.java:41)
   org.alfresco.web.pr.PressReleaseBean.getPressReleases(PressReleaseBean.java:50)
   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.media.releases.index_jsp._jspx_meth_c_005fforEach_005f0(index_jsp.java:252)
   org.apache.jsp.media.releases.index_jsp._jspService(index_jsp.java:165)
   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)

Alfresco website sample can't be deployed ?
Is there a way to solve this ?

Thanks in advance.

jgrocha
Champ in-the-making
Champ in-the-making
I was also unable do run the deployed site, with the error:
SEVERE: Exception starting filter ssi
java.lang.SecurityException: Filter of class org.apache.catalina.ssi.SSIFilter is privileged and cannot be loaded by this web application

I've changed the tomcat configuration to include the "privileged" option. My configuration is:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/alfresquinho"
   docBase="/opt/www/ROOT"
   antiResourceLocking="false" privileged="true" />

Finally, I was able to deploy the alfresco demo web site (it took days!).

msubash26
Champ in-the-making
Champ in-the-making
Hi,

I try to access a file locally from my app, but context root is set to C:\Apache\Tomcat_6.0\ not with the webapps,

private static String ISSUETRACKERMAP = "config\\config\\application\\issueTrackerMap.xml";

and I placed under C:\Apache\Tomcat_6.0\webapps\issuetracker-1.0\WEB-INF\classes\config\config\application\issueTrackerMap.xml

I got exception,
java.io.FileNotFoundException: C:\Apache\Tomcat_6.0\config\config\application\issueTrackerMap.xml (The system cannot find the path specified)

where did you put the context entry ?

I created a context.xml under META-INF and added the following entry,

<Context path="/issuetracker-1.0" docBase="webapps/issuetracker-1.0" antiResourceLocking="false" privileged="true">
</Context>


also I have entry in tomcat web.xml,
<servlet>
        <servlet-name>ssi</servlet-name>
        <servlet-class>
          org.apache.catalina.ssi.SSIServlet
        </servlet-class>
        <init-param>
          <param-name>buffered</param-name>
          <param-value>1</param-value>
        </init-param>
        <init-param>
          <param-name>debug</param-name>
          <param-value>0</param-value>
        </init-param>
        <init-param>
          <param-name>expires</param-name>
          <param-value>666</param-value>
        </init-param>
        <init-param>
          <param-name>isVirtualWebappRelative</param-name>
          <param-value>1</param-value>
        </init-param>
        <load-on-startup>4</load-on-startup>
    </servlet>

anything else I'm missing? anything else to be done to map the local file with context root of the web application?

Thanks
Subash

mt44555
Champ in-the-making
Champ in-the-making
hi  jgrocha


[Finally, I was able to deploy the alfresco demo web site (it took days!).]

is this one in a stand alone tomcat , if so please write down the procedure

thanks in advance!