问题描述
解决方案二:
解决方案三:
解决方案四:
解决方案五:
解决方案六:
解决方案七:
配置代码:<beanid="methodInvokingJobDetail"class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"><propertyname="targetObject"><refbean="test"/></property><propertyname="targetMethod"><value>test</value></property></bean><beanid="cronTrigger"class="org.springframework.scheduling.quartz.CronTriggerBean"><propertyname="jobDetail"><refbean="methodInvokingJobDetail"/></property><propertyname="cronExpression"><value>006,12,20**?</value></property></bean><beanclass="org.springframework.scheduling.quartz.SchedulerFactoryBean"><propertyname="triggers"><list><reflocal="cronTrigger"/></list></property></bean>
解决方案八:
解决方案九:
解决方案十:
解决方案十一:
解决方案十二:
解决方案十三:
解决方案十四:
##出错位置<beanid="methodInvokingJobDetail"class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"><propertyname="targetObject"><refbean="test"/></property><propertyname="targetMethod"><value>test</value></property></bean>
解决方案十五:
解决方案:
解决方案:
解决方案:
解决方案:
解决方案:
解决方案:
解决方案:
错误信息2011-8-314:50:49org.apache.catalina.startup.HostConfigcheckResources信息:Reloadingcontext[/efax]2011-8-314:50:49org.apache.catalina.core.StandardContextstop信息:Containerorg.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/efax]hasnotbeenstartedERROR[ContextLoader:203]Contextinitializationfailedorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'methodInvokingJobDetail'definedinclasspathresource[beans.xml]:Invocationofinitmethodfailed;nestedexceptionisjava.lang.NoSuchMethodError:org.apache.commons.collections.SetUtils.orderedSet(Ljava/util/Set;)Ljava/util/Set;Causedby:java.lang.NoSuchMethodError:org.apache.commons.collections.SetUtils.orderedSet(Ljava/util/Set;)Ljava/util/Set;atorg.quartz.JobDetail.<init>(JobDetail.java:85)atorg.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean.afterPropertiesSet(MethodInvokingJobDetailFactoryBean.java:188)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)atcom.iskyinfo.core.container.WebContextLoaderListener$WebContextLoader.createWebApplicationContext(WebContextLoaderListener.java:94)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)atcom.iskyinfo.core.container.WebContextLoaderListener.contextInitialized(WebContextLoaderListener.java:34)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4252)atorg.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1170)atorg.apache.catalina.startup.HostConfig.check(HostConfig.java:1268)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:301)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)atorg.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)atjava.lang.Thread.run(Thread.java:595)ERROR[[/efax]:3799]Exceptionsendingcontextinitializedeventtolistenerinstanceofclasscom.iskyinfo.core.container.WebContextLoaderListenerorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'methodInvokingJobDetail'definedinclasspathresource[beans.xml]:Invocationofinitmethodfailed;nestedexceptionisjava.lang.NoSuchMethodError:org.apache.commons.collections.SetUtils.orderedSet(Ljava/util/Set;)Ljava/util/Set;Causedby:java.lang.NoSuchMethodError:org.apache.commons.collections.SetUtils.orderedSet(Ljava/util/Set;)Ljava/util/Set;atorg.quartz.JobDetail.<init>(JobDetail.java:85)atorg.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean.afterPropertiesSet(MethodInvokingJobDetailFactoryBean.java:188)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)atcom.iskyinfo.core.container.WebContextLoaderListener$WebContextLoader.createWebApplicationContext(WebContextLoaderListener.java:94)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)atcom.iskyinfo.core.container.WebContextLoaderListener.contextInitialized(WebContextLoaderListener.java:34)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3795)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4252)atorg.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1170)atorg.apache.catalina.startup.HostConfig.check(HostConfig.java:1268)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:301)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)atorg.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)atjava.lang.Thread.run(Thread.java:595)2011-8-314:50:58org.apache.catalina.core.StandardContextstart严重:ErrorlistenerStart2011-8-314:50:58org.apache.catalina.core.StandardContextstart严重:Context[/efax]startupfailedduetopreviouserrors2011-8-314:51:01org.apache.catalina.loader.WebappClassLoaderloadClass信息:Illegalaccess:thiswebapplicationinstancehasbeenstoppedalready.Couldnotloadjava.net.BindException.Theeventualfollowingstacktraceiscausedbyanerrorthrownfordebuggingpurposesaswellastoattempttoterminatethethreadwhichcausedtheillegalaccess,andhasnofunctionalimpact.java.lang.IllegalStateExceptionatorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1324)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)atjava.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)atcom.mysql.jdbc.CommunicationsException.<init>(CommunicationsException.java:161)atcom.mysql.jdbc.Connection.createNewIO(Connection.java:2847)atcom.mysql.jdbc.Connection.<init>(Connection.java:1555)atcom.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)atcom.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:81)atcom.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:96)atcom.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.acquireResource(C3P0PooledConnectionPool.java:89)atcom.mchange.v2.resourcepool.BasicResourcePool.acquireUntil(BasicResourcePool.java:665)atcom.mchange.v2.resourcepool.BasicResourcePool.access$500(BasicResourcePool.java:32)atcom.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1206)atcom.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:368)