AnsweredAssumed Answered

How to install Alfresco on top of Tomcat 7 server

Question asked by sanjeewa190 on Sep 6, 2011
Latest reply on Sep 6, 2011 by loftux
Hi,
These days i'm trying to deploy  Alfresco.war on tomcat 7 server.I followed the steps found at your forums.
I copied jars
Created databases
Add .war file to webapps folder and started server. i got following following error.
Also can you point me good article on how to deploy  Alfresco on tomcat 7
=================================================================================================================
[2011-09-06 14:00:50,808] ERROR {org.apache.commons.digester.Digester} -  End event threw exception
java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter
   at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:802)
   at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:201)
   at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1057)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1543)
   at org.apache.catalina.startup.ContextConfig.parseWebXml(ContextConfig.java:1714)
   at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1208)
   at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
   at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:316)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)
   at org.apache.catalina.startup.Tomcat.addWebapp(Tomcat.java:509)
   at org.apache.catalina.startup.Tomcat.addWebapp(Tomcat.java:483)
   at org.apache.catalina.startup.Tomcat.addWebapp(Tomcat.java:171)
   at org.wso2.carbon.tomcat.BetterTomcat.addWebapp(BetterTomcat.java:103)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:189)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.handleWarWebappDeployment(TomcatGenericWebappsDeployer.java:151)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:123)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.deploy(TomcatGenericWebappsDeployer.java:95)
   at org.wso2.carbon.webapp.mgt.WebappDeployer.deploy(WebappDeployer.java:80)
   at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
   at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
   at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
   at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:371)
   at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
   at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142)
   at org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:389)
   at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
   at org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
   at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:374)
   at org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:272)
   at org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:117)
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916)
   at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
   at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
[2011-09-06 14:00:50,811] ERROR {org.apache.catalina.startup.ContextConfig} -  Parse error in application web.xml file at jndi:/defaulthost/alfresco/WEB-INF/web.xml
java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter
   at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2687)
   at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2713)
   at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1543)
   at org.apache.catalina.startup.ContextConfig.parseWebXml(ContextConfig.java:1714)
   at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1208)
   at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
   at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:316)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)
   at org.apache.catalina.startup.Tomcat.addWebapp(Tomcat.java:509)
   at org.apache.catalina.startup.Tomcat.addWebapp(Tomcat.java:483)
   at org.apache.catalina.startup.Tomcat.addWebapp(Tomcat.java:171)
   at org.wso2.carbon.tomcat.BetterTomcat.addWebapp(BetterTomcat.java:103)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:189)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.handleWarWebappDeployment(TomcatGenericWebappsDeployer.java:151)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:123)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.deploy(TomcatGenericWebappsDeployer.java:95)
   at org.wso2.carbon.webapp.mgt.WebappDeployer.deploy(WebappDeployer.java:80)
   at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
   at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
   at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
   at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:371)
   at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
   at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142)
   at org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:389)
   at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
   at org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
   at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:374)
   at org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:272)
   at org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:117)
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916)
   at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
   at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter
   at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:802)
   at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:201)
   at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1057)
   … 48 more
[2011-09-06 14:00:50,813] ERROR {org.apache.catalina.startup.ContextConfig} -  Occurred at line 87 column 13
[2011-09-06 14:00:50,815] ERROR {org.apache.catalina.startup.ContextConfig} -  Marking this application unavailable due to previous error(s)
[2011-09-06 14:00:53,431] ERROR {org.apache.catalina.core.StandardContext} -  Error getConfigured
[2011-09-06 14:00:53,432] ERROR {org.apache.catalina.core.StandardContext} -  Context [/alfresco] startup failed due to previous errors
[2011-09-06 14:00:53,451] ERROR {org.wso2.carbon.server.TomcatGenericWebappsDeployer} -  Cannot deploy webapp: StandardContext[alfresco.war].File[/home/sanjeewa/Desktop/wso2as-4.1.1/repository/deployment/server/webapps/alfresco.war]
org.wso2.carbon.tomcat.BetterTomcatException: Webapp StandardEngine[Tomcat].StandardHost[defaulthost].StandardContext[/alfresco] failed to deploy
   at org.wso2.carbon.tomcat.BetterTomcat.addWebapp(BetterTomcat.java:105)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:189)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.handleWarWebappDeployment(TomcatGenericWebappsDeployer.java:151)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:123)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.deploy(TomcatGenericWebappsDeployer.java:95)
   at org.wso2.carbon.webapp.mgt.WebappDeployer.deploy(WebappDeployer.java:80)
   at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
   at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
   at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
   at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:371)
   at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
   at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142)
   at org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:389)
   at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
   at org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
   at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:374)
   at org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:272)
   at org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:117)
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916)
   at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
   at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
[2011-09-06 14:00:53,452] ERROR {org.wso2.carbon.webapp.mgt.WebappDeployer} -  Error occurred while deploying webapp /home/sanjeewa/Desktop/wso2as-4.1.1/repository/deployment/server/webapps/alfresco.war
org.wso2.carbon.CarbonException: Cannot deploy webapp: StandardContext[alfresco.war].File[/home/sanjeewa/Desktop/wso2as-4.1.1/repository/deployment/server/webapps/alfresco.war]
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:212)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.handleWarWebappDeployment(TomcatGenericWebappsDeployer.java:151)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:123)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.deploy(TomcatGenericWebappsDeployer.java:95)
   at org.wso2.carbon.webapp.mgt.WebappDeployer.deploy(WebappDeployer.java:80)
   at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
   at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
   at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
   at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:371)
   at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
   at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142)
   at org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:389)
   at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
   at org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
   at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:374)
   at org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:272)
   at org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:117)
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916)
   at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
   at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: org.wso2.carbon.tomcat.BetterTomcatException: Webapp StandardEngine[Tomcat].StandardHost[defaulthost].StandardContext[/alfresco] failed to deploy
   at org.wso2.carbon.tomcat.BetterTomcat.addWebapp(BetterTomcat.java:105)
   at org.wso2.carbon.server.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:189)
   … 19 more
[2011-09-06 14:00:53,455]  INFO {org.apache.axis2.deployment.DeploymentEngine} -  org.apache.axis2.deployment.DeploymentException: Error occurred while deploying webapp /home/sanjeewa/Desktop/wso2as-4.1.1/repository/deployment/server/webapps/alfresco.war
=========================================================================================================

Outcomes