java - Getting tomcat error while deploying Libreplan on windows -
i have forked codebase of libreplan repository , import in eclipse. trying deploy libreplan-webapp tomcat7. have configured data source file present inside tomcat-7.0.39\conf\catalina\localhost directory. libreplan-webapp.xml given below
<?xml version="1.0" encoding="utf-8"?> <context antijarlocking="true" path=""> <resource name="jdbc/libreplan-ds" auth="container" type="javax.sql.datasource" maxactive="100" maxidle="30" maxwait="10000" username="libreplan" password="libreplan" driverclassname="com.mysql.jdbc.driver" url="jdbc:mysql://localhost/libreplandev" /> </context>
i followed instruction given in manual [http://www.libreplan.org/install.html] build wepapp , deploy on tomcat. getting below error while starting of tomcat
severe: child container failed during start java.util.concurrent.executionexception: org.apache.catalina.lifecycleexception: failed start component [standardengine[catalina].standardhost[localhost].standardcontext[/libreplan-webapp]] @ java.util.concurrent.futuretask.report(unknown source) @ java.util.concurrent.futuretask.get(unknown source) @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:1123) @ org.apache.catalina.core.standardhost.startinternal(standardhost.java:800) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask.run(unknown source) @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source) caused by: org.apache.catalina.lifecycleexception: failed start component [standardengine[catalina].standardhost[localhost].standardcontext[/libreplan-webapp]] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154) ... 6 more caused by: java.lang.noclassdeffounderror: org/springframework/beans/factory/listablebeanfactory @ java.lang.class.getdeclaredfields0(native method)
here web.xml
<?xml version="1.0" encoding="utf-8"?> <web-app id="webapp_id" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>libreplan-webapp</display-name> <!-- searches libreplan-business-spring-config.xml files, can found several. there must @ least one. searches libreplan-webapp-spring-config.xml. there must one. searches libreplan-override-spring-config.xml override previous definitions. there several or none. --> <context-param> <param-name>contextconfiglocation</param-name> <param-value> classpath*:/libreplan-business-spring-config.xml classpath:/libreplan-webapp-spring-config.xml classpath*:/libreplan-override-spring-config.xml classpath:/libreplan-webapp-spring-security-config.xml </param-value> </context-param> <!-- /// --> <!-- dsp --> <servlet> <description><![cdata[the servlet loads dsp pages.]]></description> <servlet-name>dsploader</servlet-name> <servlet-class>org.zkoss.web.servlet.dsp.interpreterservlet</servlet-class> </servlet> <servlet> <description><![cdata[callback servlet]]></description> <servlet-name>callbackservlet</servlet-name> <servlet-class>org.zkoss.ganttz.servlets.callbackservlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>callbackservlet</servlet-name> <url-pattern>/callback/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>dsploader</servlet-name> <url-pattern>*.dsp</url-pattern> </servlet-mapping> <!-- /// --> <!-- spring security --> <filter> <filter-name>springsecurityfilterchain</filter-name> <filter-class>org.springframework.web.filter.delegatingfilterproxy</filter-class> </filter> <filter-mapping> <filter-name>springsecurityfilterchain</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!-- //// --> <listener> <listener-class>org.libreplan.web.loggingconfiguration</listener-class> </listener> <!-- zk --> <listener> <description>used cleanup when session destroyed</description> <display-name>zk session cleaner</display-name> <listener-class>org.zkoss.zk.ui.http.httpsessionlistener</listener-class> </listener> <!-- spring listeners --> <listener> <listener-class>org.springframework.web.context.contextloaderlistener</listener-class> </listener> <listener> <listener-class> org.springframework.web.context.request.requestcontextlistener</listener-class> </listener> <!-- end spring listeners --> <!-- loads idatabootstrap , executes them --> <listener> <listener-class>org.libreplan.web.bootstrap.bootstraplistener</listener-class> </listener> <servlet> <description>zk loader zuml pages</description> <servlet-name>zkloader</servlet-name> <servlet-class>org.zkoss.zk.ui.http.dhtmllayoutservlet</servlet-class> <!-- must. specifies uri of update engine (dhtmlupdateservlet). must same <url-pattern> update engine. --> <init-param> <param-name>update-uri</param-name> <param-value>/zkau</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>zkloader</servlet-name> <url-pattern>*.zul</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>zkloader</servlet-name> <url-pattern>*.zhtml</url-pattern> </servlet-mapping> <servlet> <description>the asynchronous update engine zk</description> <servlet-name>auengine</servlet-name> <servlet-class>org.zkoss.zk.au.http.dhtmlupdateservlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>auengine</servlet-name> <url-pattern>/zkau/*</url-pattern> </servlet-mapping> <!-- //// --> <!-- cxf --> <servlet> <display-name>cxf servlet</display-name> <servlet-name>cxfservlet</servlet-name> <servlet-class> org.apache.cxf.transport.servlet.cxfservlet </servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>cxfservlet</servlet-name> <url-pattern>/ws/rest/*</url-pattern> </servlet-mapping> <session-config> <!-- session timeout ten minutes. timer used keep session alive if there open page --> <session-timeout>10</session-timeout> </session-config> <welcome-file-list> <welcome-file>/common/index.zul</welcome-file> </welcome-file-list> <error-page> <exception-type>java.lang.throwable</exception-type> <location>/common/error.zul</location> </error-page> <error-page> <error-code>404</error-code> <location>/common/page_not_found.zul</location> </error-page> <error-page> <error-code>403</error-code> <location>/common/access_forbidden.zul</location> </error-page> </web-app>
configuration: java version : 1.7.0_55-b13 server :tomcat-7.0.39 os : window 7 db : mysql
the relevant error message "java.lang.noclassdeffounderror: org/springframework/beans/factory/listablebeanfactory"
so, appears either not have required spring library in classpath @ runtime, or have older version.
it's more it's missing old, since listablebeanfactory introduced in spring 2.0, quite while ago.
Comments
Post a Comment