cancel
Showing results for 
Search instead for 
Did you mean: 

Installing Alfresco War File On Tomcat With Liferay

wcameron
Champ in-the-making
Champ in-the-making
I am installing alfresco.war on the same tomcat instance that can with my liferay installation for 4.1.12

When i log into the alfresco application i get the following exception can anyone give me some idea of the cause of the problem.

javax.faces.FacesException: Error calling action method of component with id loginForm:submit
caused by:
javax.faces.el.EvaluationException: Exception while invoking expression #{LoginBean.login}
caused by:
java.lang.RuntimeException: class configured for MessageDigest(provider: CryptixCrypto)cannot be found.
caused by:
java.security.NoSuchAlgorithmException: class configured for MessageDigest(provider: CryptixCrypto)cannot be found.
caused by:
java.lang.ClassNotFoundException: cryptix.jce.provider.md.MD4


Regards Wendy
24 REPLIES 24

wcameron
Champ in-the-making
Champ in-the-making
This problem seem to go away once you stop tomcat and start again.

Anyone know the source of the problem and way around it?

Regards Wendy

joe_otero
Champ in-the-making
Champ in-the-making
I found a great post to facilitate the installation of Alfresco war with Liferay 4.3 (http://wiki.alfresco.com/wiki/Deploying_2.1WAR_Liferay4.3)

After several issues I'm now able to select a one of the installed Alfresco portlets..

However, when one is selected from the following..

  AlfrescoMyTasks
  AlfrescoDocList
  AlfrescoMySpaces 
  AlfrescoMyWebForms

There is an error message presented about the script cannot be found (404).. I do see the scripts are available.. Could this be a config setting? or perhaps a missing component?

Any help / pointers to possible cause would be much appreciated..

The error message produced is as follows..

The Web Script /alfresco/168s/ui/doclist has responded with a status of 404 - Not Found.


404 Description:    Requested resource is not available.
     
Message:    Script url /ui/doclist does not map to a Web Script.
     
Exception:    org.alfresco.web.scripts.WebScriptException - Script url /ui/doclist does not map to a Web Script.
    
   org.alfresco.web.scripts.WebScriptRuntime.executeScript(WebScriptRuntime.java:114)
   org.alfresco.web.scripts.portlet.WebScriptPortlet.doView(WebScriptPortlet.java:216)
   org.alfresco.web.scripts.portlet.WebScriptPortlet.render(WebScriptPortlet.java:133)
   com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:107)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
   org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594)
   org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
   com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:352)
   com.liferay.portlet.CachePortlet.render(CachePortlet.java:199)
   org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1012)
   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.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:261)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:125)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:136)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
   org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594)
   org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
   com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1402)
   com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1348)
   com.liferay.portal.action.RenderPortletAction.execute(RenderPortletAction.java:79)
   com.liferay.portal.action.UpdateLayoutAction.execute(UpdateLayoutAction.java:207)
   org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
   com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:157)
   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
   com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:280)
   com.liferay.portal.servlet.MainServlet.service(MainServlet.java:534)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:95)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:144)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:125)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:136)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
   org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
   java.lang.Thread.run(Thread.java:595)
    
Server:    Alfresco Community Network v2.1.0 (R1 443) schema 62

AlfrescoMyWebFiles - WCM modified files in any WebProject the user is assigned to.
I select one to add as content

joe_otero
Champ in-the-making
Champ in-the-making
If I navigate to Index of "All Web Scripts" using http://192.168.0.4:8080/alfresco/service/index/all I can see doclist is found..

Document List GET /alfresco/service/doclist?f={filter?}&p={path?}&q={query?} 
GET /alfresco/service/doclist.atom?f={filter?}&p={path?}&q={query?} 

Description: Generate the Document list portlet page 
Authentication: user 
Transaction: required 
Format Style: any 
Default Format: html 

Id: org/alfresco/portlets/doclist.get 
Description: classpath:alfresco/templates/webscripts/org/alfresco/portlets/doclist.get.desc.xml 

Document List Panel GET /alfresco/service/doclistpanel?f={filter}&p={path}&h={home};q={query?} 

Description: Generate the inner panel for the Document List portlet page 
Authentication: user 
Transaction: required 
Format Style: any 
Default Format: html 

Id: org/alfresco/portlets/doclistpanel.get 
Description: classpath:alfresco/templates/webscripts/org/alfresco/portlets/doclistpanel.get.desc.xml 


Not sure what to look for at this point.. Any pointers would be appreciated..

Thanks

Joe Otero

joe_otero
Champ in-the-making
Champ in-the-making
Poking around (All this is very new to me (Java, Tomcat, etc) I see the following that looks like an issue.. Not sure its related.

Web Script Status 500 - Internal Error

The Web Script /alfresco/service/doclist.atom has responded with a status of 500 - Internal Error. 

500 Description: An error inside the HTTP server which prevented it from fulfilling the request. 
  
Message: Error during processing of the template 'Error: on line 38, column 56 in org/alfresco/portlets/doclist.get.atom.ftl Expecting a number here, found: {filter?}'. Please contact your system administrator. 
  
Exception: freemarker.core.NonNumericalException - Error: on line 38, column 56 in org/alfresco/portlets/doclist.get.atom.ftl Expecting a number here, found: {filter?} 
   
freemarker.core.StringBuiltins$numberBI.calculateResult(StringBuiltins.java:186) 
freemarker.core.StringBuiltins$StringBuiltIn._getAsTemplateModel(StringBuiltins.java:71) 
freemarker.core.Expression.getAsTemplateModel(Expression.java:89) 
freemarker.core.Assignment.accept(Assignment.java:90) 
freemarker.core.Environment.visit(Environment.java:196) 
freemarker.core.IfBlock.accept(IfBlock.java:82) 
freemarker.core.Environment.visit(Environment.java:196) 
freemarker.core.MixedContent.accept(MixedContent.java:92) 
freemarker.core.Environment.visit(Environment.java:196) 
freemarker.core.Environment.process(Environment.java:176) 
freemarker.template.Template.process(Template.java:232) 
org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:193) 
org.alfresco.web.scripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:329) 
org.alfresco.web.scripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:239) 
org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:165) 
org.alfresco.web.scripts.WebScriptRuntime.wrappedExecute(WebScriptRuntime.java:342) 
org.alfresco.web.scripts.WebScriptRuntime.authenticatedExecute(WebScriptRuntime.java:308) 
org.alfresco.web.scripts.WebScriptRuntime$1.execute(WebScriptRuntime.java:163) 
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:225) 
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:155) 
org.alfresco.web.scripts.WebScriptRuntime.executeScript(WebScriptRuntime.java:174) 
org.alfresco.web.scripts.WebScriptServlet.service(WebScriptServlet.java:111) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) 
java.lang.Thread.run(Thread.java:595) 
   
Exception: org.alfresco.service.cmr.repository.TemplateException - Error during processing of the template 'Error: on line 38, column 56 in org/alfresco/portlets/doclist.get.atom.ftl Expecting a number here, found: {filter?}'. Please contact your system administrator. 
   
org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:197) 
   
Server: Alfresco Community Network v2.1.0 (R1 443) schema 62 
Time: Aug 16, 2007 3:05:58 AM 
  
Diagnostics: Inspect Web Script (org/alfresco/portlets/doclist.get) 


Again.. any help would be appreciated…


Joe Otero

patrik
Champ on-the-rise
Champ on-the-rise
Hi! I'm just trying to deploy alfresco 2.1 in liferay 4.3, according to http://wiki.alfresco.com/wiki/Deploying_2.1WAR_Liferay4.3, without being successful. After I place the alfresco.war in the liferay deploy directory the log shows "processing alfresco.war" but nothing more happens. I've seen that the war-file is missing a portlet.xml file. When I add some other portlet.xml file it starts unpacking and do everything that should be done during deployment but of course i get errors due to the wrong portlet.xml file. Must there not be a portlet.xml file in the war package?

My aim is mainly to be able to use the web script portlets.

joe_otero
Champ in-the-making
Champ in-the-making
Patrik,

I didn't have any problems related to a missing file.. I did have problems preventing an install due to DB and memory..

DB issue (I'm using MySQL) was resolved using the files found to define the account and db found in the downloaded Alfresco package (alfresco\extras\databases\mysql)

Storage issue was resolved by updating the Catalina.bat file to increase memory.. (set java_opts statement - found instructions in Liferay install doc (http://content.liferay.com/4.3/doc/installation/liferay_4_installation_guide/onepage/) section on Alfresco install


Please let me know if you experience the 404 issue I reported..

szimano
Champ in-the-making
Champ in-the-making
It's missing portlet.xml - i took the one that is in the svn. Alfresco loads but has the problem that you can't upload files.

Cheers,
Tomek

joe_otero
Champ in-the-making
Champ in-the-making
portlet.xml was in the package I downloaded.. It was deployed to E:\liferay-portal-tomcat-5.5-4.3.0\webapps\alfresco\WEB-INF.

your not getting the 404 error when one of the Alfresco portlets? I take it your using Jboss?

To what extent of the following portlets functioning..

AlfrescoMyTasks
AlfrescoDocList
AlfrescoMySpaces
AlfrescoMyWebForms

szimano
Champ in-the-making
Champ in-the-making
no - i tried with tomcat 6.0.