Open lgbwust opened 8 years ago
当maven仓库里面的jar包下不下来时,可以先将jar包下载下来,然后用如下命令行将其放到maven仓库里面
mvn install:install-file -DgroupId=com.aliyun.oss "-DartifactId=aliyun-sdk-oss" "-Dversion=2.2.3" "-Dpackaging=jar" "-Dfile=d:\code\aliyun-sdk-oss-2.2.3.jar"
这个问题可能有两个原因,如果你使用的是eclipse,那么请把maven添加的deploy...的输出中(具体是什么),可能我这么说不够详细,这个项目之前是用eclipse写的,而现在已经不用eclipse了。另外一个原因是我使用的spring是3.5的,我看到你使用的是4以上的,可能会有jar包问题。这个项目有点老了,之前也有人反应run不起来的问题,所以我近期会将项目的jar版本跟新一下,特别是spring的版本。另外新的项目将会在intellij中运行和部署,eclipse和intellij在classpath的配置上会有不同,之后也会推荐在intellij中运行。谢谢!
由于网络原因,maven项目的jar包下载不下来。我将其改为一般的web项目来加载。但是好像运行不起来,报错如下: 16:28:12.419 [localhost-startStop-1] INFO o.s.web.context.ContextLoader - Root WebApplicationContext: initialization started 16:28:12.741 [localhost-startStop-1] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [servletConfigInitParams] PropertySource with lowest search precedence 16:28:12.742 [localhost-startStop-1] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [servletContextInitParams] PropertySource with lowest search precedence 16:28:12.750 [localhost-startStop-1] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [jndiProperties] PropertySource with lowest search precedence 16:28:12.750 [localhost-startStop-1] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [systemProperties] PropertySource with lowest search precedence 16:28:12.753 [localhost-startStop-1] DEBUG o.s.w.c.s.StandardServletEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence 16:28:12.753 [localhost-startStop-1] DEBUG o.s.w.c.s.StandardServletEnvironment - Initialized StandardServletEnvironment with PropertySources [servletConfigInitParams,servletContextInitParams,jndiProperties,systemProperties,systemEnvironment] 16:28:12.764 [localhost-startStop-1] DEBUG o.s.w.c.s.StandardServletEnvironment - Replacing [servletContextInitParams] PropertySource with [servletContextInitParams] 16:28:12.765 [localhost-startStop-1] INFO o.s.w.c.s.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Wed Aug 03 16:28:12 CST 2016]; root of context hierarchy 16:28:12.869 [localhost-startStop-1] DEBUG o.s.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence 16:28:12.870 [localhost-startStop-1] DEBUG o.s.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence 16:28:12.870 [localhost-startStop-1] DEBUG o.s.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment] 16:28:12.889 [localhost-startStop-1] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring.xml] 16:28:12.905 [localhost-startStop-1] DEBUG o.s.b.f.xml.DefaultDocumentLoader - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl] 16:28:12.930 [localhost-startStop-1] DEBUG o.s.b.f.xml.PluggableSchemaResolver - Loading schema mappings from [META-INF/spring.schemas] 16:28:12.936 [localhost-startStop-1] DEBUG o.s.b.f.xml.PluggableSchemaResolver - Loaded schema mappings: {http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, http://www.springframework.org/schema/aop/spring-aop-4.1.xsd=org/springframework/aop/config/spring-aop-4.1.xsd, http://www.springframework.org/schema/context/spring-context-3.1.xsd=org/springframework/context/config/spring-context-3.1.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-4.1.xsd=org/springframework/jdbc/config/spring-jdbc-4.1.xsd, http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd=org/springframework/web/servlet/config/spring-mvc-4.1.xsd, http://www.springframework.org/schema/util/spring-util-3.0.xsd=org/springframework/beans/factory/xml/spring-util-3.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-4.1.xsd, http://www.springframework.org/schema/aop/spring-aop-3.2.xsd=org/springframework/aop/config/spring-aop-3.2.xsd, http://mybatis.org/schema/mybatis-spring-1.2.xsd=org/mybatis/spring/config/mybatis-spring-1.2.xsd, http://www.springframework.org/schema/lang/spring-lang-4.1.xsd=org/springframework/scripting/config/spring-lang-4.1.xsd, http://www.springframework.org/schema/context/spring-context-4.0.xsd=org/springframework/context/config/spring-context-4.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd=org/springframework/web/servlet/config/spring-mvc-3.2.xsd, http://www.springframework.org/schema/tool/spring-tool-4.1.xsd=org/springframework/beans/factory/xml/spring-tool-4.1.xsd, http://www.springframework.org/schema/lang/spring-lang-3.2.xsd=org/springframework/scripting/config/spring-lang-3.2.xsd, http://www.springframework.org/schema/cache/spring-cache-3.2.xsd=org/springframework/cache/config/spring-cache-3.2.xsd, http://www.springframework.org/schema/jee/spring-jee-4.1.xsd=org/springframework/ejb/config/spring-jee-4.1.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd=org/springframework/jdbc/config/spring-jdbc-3.1.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-3.2.xsd=org/springframework/beans/factory/xml/spring-tool-3.2.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/springframework/context/config/spring-context-4.1.xsd, http://www.springframework.org/schema/cache/spring-cache-4.1.xsd=org/springframework/cache/config/spring-cache-4.1.xsd, http://www.springframework.org/schema/aop/spring-aop-4.0.xsd=org/springframework/aop/config/spring-aop-4.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.2.xsd=org/springframework/ejb/config/spring-jee-3.2.xsd, http://www.springframework.org/schema/context/spring-context-3.0.xsd=org/springframework/context/config/spring-context-3.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd=org/springframework/jdbc/config/spring-jdbc-4.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd=org/springframework/web/servlet/config/spring-mvc-4.0.xsd, http://www.springframework.org/schema/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans-3.2.xsd=org/springframework/beans/factory/xml/spring-beans-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop-3.1.xsd=org/springframework/aop/config/spring-aop-3.1.xsd, http://www.springframework.org/schema/lang/spring-lang-4.0.xsd=org/springframework/scripting/config/spring-lang-4.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc.xsd=org/springframework/web/servlet/config/spring-mvc-4.1.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd=org/springframework/web/servlet/config/spring-mvc-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-4.1.xsd=org/springframework/beans/factory/xml/spring-beans-4.1.xsd, http://www.springframework.org/schema/tool/spring-tool-4.0.xsd=org/springframework/beans/factory/xml/spring-tool-4.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.2.xsd=org/springframework/transaction/config/spring-tx-3.2.xsd, http://www.springframework.org/schema/lang/spring-lang-3.1.xsd=org/springframework/scripting/config/spring-lang-3.1.xsd, http://www.springframework.org/schema/cache/spring-cache-3.1.xsd=org/springframework/cache/config/spring-cache-3.1.xsd, http://www.springframework.org/schema/jee/spring-jee-4.0.xsd=org/springframework/ejb/config/spring-jee-4.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd=org/springframework/jdbc/config/spring-jdbc-3.0.xsd, http://www.springframework.org/schema/task/spring-task-4.1.xsd=org/springframework/scheduling/config/spring-task-4.1.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc.xsd=org/springframework/jdbc/config/spring-jdbc-4.1.xsd, http://www.springframework.org/schema/tool/spring-tool-3.1.xsd=org/springframework/beans/factory/xml/spring-tool-3.1.xsd, http://www.springframework.org/schema/tx/spring-tx-4.1.xsd=org/springframework/transaction/config/spring-tx-4.1.xsd, http://www.springframework.org/schema/cache/spring-cache-4.0.xsd=org/springframework/cache/config/spring-cache-4.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.1.xsd=org/springframework/ejb/config/spring-jee-3.1.xsd, http://www.springframework.org/schema/task/spring-task-3.2.xsd=org/springframework/scheduling/config/spring-task-3.2.xsd, http://www.springframework.org/schema/beans/spring-beans-3.1.xsd=org/springframework/beans/factory/xml/spring-beans-3.1.xsd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-4.1.xsd, http://www.springframework.org/schema/aop/spring-aop-3.0.xsd=org/springframework/aop/config/spring-aop-3.0.xsd, http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd=org/springframework/web/servlet/config/spring-mvc-3.0.xsd, http://www.springframework.org/schema/beans/spring-beans-4.0.xsd=org/springframework/beans/factory/xml/spring-beans-4.0.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-4.1.xsd, http://www.springframework.org/schema/tx/spring-tx-3.1.xsd=org/springframework/transaction/config/spring-tx-3.1.xsd, http://www.springframework.org/schema/lang/spring-lang-3.0.xsd=org/springframework/scripting/config/spring-lang-3.0.xsd, http://mybatis.org/schema/mybatis-spring.xsd=org/mybatis/spring/config/mybatis-spring-1.2.xsd, http://www.springframework.org/schema/context/spring-context-2.5.xsd=org/springframework/context/config/spring-context-2.5.xsd, http://www.springframework.org/schema/task/spring-task-4.0.xsd=org/springframework/scheduling/config/spring-task-4.0.xsd, http://www.springframework.org/schema/tool/spring-tool-3.0.xsd=org/springframework/beans/factory/xml/spring-tool-3.0.xsd, http://www.springframework.org/schema/tx/spring-tx-4.0.xsd=org/springframework/transaction/config/spring-tx-4.0.xsd, http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springframework.org/schema/jee/spring-jee-3.0.xsd=org/springframework/ejb/config/spring-jee-3.0.xsd, http://www.springframework.org/schema/util/spring-util-4.1.xsd=org/springframework/beans/factory/xml/spring-util-4.1.xsd, http://www.springframework.org/schema/task/spring-task-3.1.xsd=org/springframework/scheduling/config/spring-task-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-3.0.xsd=org/springframework/beans/factory/xml/spring-beans-3.0.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-4.1.xsd, http://www.springframework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-aop-2.5.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://www.springframework.org/schema/util/spring-util-3.2.xsd=org/springframework/beans/factory/xml/spring-util-3.2.xsd, http://www.springframework.org/schema/task/spring-task.xsd=org/springframework/scheduling/config/spring-task-4.1.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/tx/spring-tx-3.0.xsd=org/springframework/transaction/config/spring-tx-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/springframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/springframework/ejb/config/spring-jee-2.5.xsd, http://www.springframework.org/schema/util/spring-util-4.0.xsd=org/springframework/beans/factory/xml/spring-util-4.0.xsd, http://www.springframework.org/schema/task/spring-task-3.0.xsd=org/springframework/scheduling/config/spring-task-3.0.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-4.1.xsd, http://www.springframework.org/schema/context/spring-context-3.2.xsd=org/springframework/context/config/spring-context-3.2.xsd, http://www.springframework.org/schema/util/spring-util-3.1.xsd=org/springframework/beans/factory/xml/spring-util-3.1.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://www.springframework.org/schema/cache/spring-cache.xsd=org/springframework/cache/config/spring-cache-4.1.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-4.1.xsd, http://www.springframework.org/schema/context/spring-context-4.1.xsd=org/springframework/context/config/spring-context-4.1.xsd, http://www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans-2.5.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/jdbc/spring-jdbc-3.2.xsd=org/springframework/jdbc/config/spring-jdbc-3.2.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-4.1.xsd} 16:28:12.938 [localhost-startStop-1] DEBUG o.s.b.f.xml.PluggableSchemaResolver - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.0.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.0.xsd 16:28:13.008 [localhost-startStop-1] DEBUG o.s.b.f.xml.PluggableSchemaResolver - Found XML schema [http://www.springframework.org/schema/context/spring-context-3.0.xsd] in classpath: org/springframework/context/config/spring-context-3.0.xsd 16:28:13.017 [localhost-startStop-1] DEBUG o.s.b.f.xml.PluggableSchemaResolver - Found XML schema [http://www.springframework.org/schema/tool/spring-tool-3.0.xsd] in classpath: org/springframework/beans/factory/xml/spring-tool-3.0.xsd 16:28:13.040 [localhost-startStop-1] DEBUG o.s.b.f.x.DefaultBeanDefinitionDocumentReader - Loading bean definitions 16:28:13.071 [localhost-startStop-1] DEBUG o.s.b.f.x.DefaultNamespaceHandlerResolver - Loaded NamespaceHandler mappings: {http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler, http://www.springframework.org/schema/mvc=org.springframework.web.servlet.config.MvcNamespaceHandler, http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler, http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler, http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler, http://www.springframework.org/schema/jdbc=org.springframework.jdbc.config.JdbcNamespaceHandler, http://www.springframework.org/schema/cache=org.springframework.cache.config.CacheNamespaceHandler, http://mybatis.org/schema/mybatis-spring=org.mybatis.spring.config.NamespaceHandler, http://www.springframework.org/schema/c=org.springframework.beans.factory.xml.SimpleConstructorNamespaceHandler, http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler, http://www.springframework.org/schema/task=org.springframework.scheduling.config.TaskNamespaceHandler, http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler, http://www.springframework.org/schema/context=org.springframework.context.config.ContextNamespaceHandler} 16:28:13.159 [localhost-startStop-1] DEBUG o.s.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence 16:28:13.160 [localhost-startStop-1] DEBUG o.s.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence 16:28:13.160 [localhost-startStop-1] DEBUG o.s.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment] 16:28:13.177 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning 16:28:13.196 [localhost-startStop-1] DEBUG o.s.c.i.s.PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service] 16:28:13.197 [localhost-startStop-1] DEBUG o.s.c.i.s.PathMatchingResourcePatternResolver - Searching directory [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service] for files matching pattern [E:/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/O2O/WEB-INF/classes/com/changyu/foryou/service//.class] 16:28:13.209 [localhost-startStop-1] DEBUG o.s.c.i.s.PathMatchingResourcePatternResolver - Resolved location pattern [classpath:com/changyu/foryou/service//_.class] to resources [file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service\CampusService.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service\FoodService.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service\HotSearchService.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service\KeyService.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service\NewsService.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service\OrderService.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service\PackageService.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service\PayService.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service\PreferentialService.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service\PushService.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service\ReceiverService.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service\SellerService.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\service\UserService.class]] 16:28:13.295 [localhost-startStop-1] DEBUG o.s.core.env.StandardEnvironment - Adding [systemProperties] PropertySource with lowest search precedence 16:28:13.295 [localhost-startStop-1] DEBUG o.s.core.env.StandardEnvironment - Adding [systemEnvironment] PropertySource with lowest search precedence 16:28:13.295 [localhost-startStop-1] DEBUG o.s.core.env.StandardEnvironment - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment] 16:28:13.296 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning 16:28:13.298 [localhost-startStop-1] DEBUG o.s.c.i.s.PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl] 16:28:13.298 [localhost-startStop-1] DEBUG o.s.c.i.s.PathMatchingResourcePatternResolver - Searching directory [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl] for files matching pattern [E:/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/O2O/WEB-INF/classes/com/changyu/foryou/serviceImpl//.class] 16:28:13.300 [localhost-startStop-1] DEBUG o.s.c.i.s.PathMatchingResourcePatternResolver - Resolved location pattern [classpath:com/changyu/foryou/serviceImpl//_.class] to resources [file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\CampusServiceImpl.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\FoodServiceImpl.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\HotSearchServiceImpl.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\KeyServiceImpl.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\NewsServiceImpl.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\OrderServiceImpl.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\PackageServiceImpl.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\PayServiceImpl.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\PreferentialServiceImpl.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\PushServiceImpl.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\ReceiverServiceImpl.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\SellerServiceImpl.class], file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\UserServiceImpl.class]] 16:28:13.330 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\CampusServiceImpl.class] 16:28:13.331 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\FoodServiceImpl.class] 16:28:13.332 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\HotSearchServiceImpl.class] 16:28:13.333 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\KeyServiceImpl.class] 16:28:13.334 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\NewsServiceImpl.class] 16:28:13.335 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\OrderServiceImpl.class] 16:28:13.336 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\PackageServiceImpl.class] 16:28:13.337 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\PayServiceImpl.class] 16:28:13.338 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\PreferentialServiceImpl.class] 16:28:13.340 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\PushServiceImpl.class] 16:28:13.341 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\ReceiverServiceImpl.class] 16:28:13.342 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\SellerServiceImpl.class] 16:28:13.350 [localhost-startStop-1] DEBUG o.s.c.a.ClassPathBeanDefinitionScanner - Identified candidate component class: file [E:\Java.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\O2O\WEB-INF\classes\com\changyu\foryou\serviceImpl\UserServiceImpl.class] 16:28:13.364 [localhost-startStop-1] DEBUG o.s.b.f.xml.XmlBeanDefinitionReader - Loaded 18 bean definitions from location pattern [classpath:spring.xml] 16:28:13.365 [localhost-startStop-1] INFO o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring-mybatis.xml] 16:28:13.378 [localhost-startStop-1] DEBUG o.s.b.f.xml.DefaultDocumentLoader - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl] 16:28:13.381 [localhost-startStop-1] DEBUG o.s.b.f.xml.PluggableSchemaResolver - Found XML schema [http://www.springframework.org/schema/beans/spring-beans-3.0.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-3.0.xsd 16:28:13.424 [localhost-startStop-1] DEBUG o.s.b.f.xml.PluggableSchemaResolver - Found XML schema [http://www.springframework.org/schema/tx/spring-tx-3.0.xsd] in classpath: org/springframework/transaction/config/spring-tx-3.0.xsd 16:28:13.427 [localhost-startStop-1] DEBUG o.s.b.f.xml.PluggableSchemaResolver - Found XML schema [http://www.springframework.org/schema/tool/spring-tool-3.0.xsd] in classpath: org/springframework/beans/factory/xml/spring-tool-3.0.xsd 16:28:13.436 [localhost-startStop-1] DEBUG o.s.b.f.xml.PluggableSchemaResolver - Found XML schema [http://www.springframework.org/schema/aop/spring-aop-3.0.xsd] in classpath: org/springframework/aop/config/spring-aop-3.0.xsd 16:28:13.448 [localhost-startStop-1] DEBUG o.s.b.f.x.DefaultBeanDefinitionDocumentReader - Loading bean definitions 16:28:13.466 [localhost-startStop-1] DEBUG o.s.b.f.x.BeanDefinitionParserDelegate - Neither XML 'id' nor 'name' specified - using generated bean name [org.mybatis.spring.mapper.MapperScannerConfigurer#0] 16:28:13.570 [localhost-startStop-1] DEBUG o.s.b.f.xml.XmlBeanDefinitionReader - Loaded 12 bean definitions from location pattern [classpath:spring-mybatis.xml] 16:28:13.570 [localhost-startStop-1] DEBUG o.s.w.c.s.XmlWebApplicationContext - Bean factory for Root WebApplicationContext: org.springframework.beans.factory.support.DefaultListableBeanFactory@4253495e: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,campusService,/foodService,/hotSearchService,keyService,/newsService,orderService,packageService,payService,preferentialService,pushService,receiverService,sellerService,userService,dataSource,jdbcTemplate,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,transactionAdvice,org.springframework.aop.config.internalAutoProxyCreator,transactionPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,druid-stat-interceptor,druid-stat-pointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1]; root of factory hierarchy 16:28:13.587 [localhost-startStop-1] ERROR o.s.web.context.ContextLoader - Context initialization failed java.lang.NoClassDefFoundError: org/springframework/expression/ParserContext at org.springframework.context.support.AbstractApplicationContext.prepareBeanFactory(AbstractApplicationContext.java:553) ~[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455) ~[spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403) ~[spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) ~[spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) [spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4842) [catalina.jar:8.0.36] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303) [catalina.jar:8.0.36] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) [catalina.jar:8.0.36] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407) [catalina.jar:8.0.36] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397) [catalina.jar:8.0.36] at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_91] at java.lang.Thread.run(Unknown Source) [na:1.8.0_91] Caused by: java.lang.ClassNotFoundException: org.springframework.expression.ParserContext at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1332) ~[catalina.jar:8.0.36] at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1166) ~[catalina.jar:8.0.36] ... 14 common frames omitted 八月 03, 2016 4:28:13 下午 org.apache.catalina.core.StandardContext listenerStart 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener java.lang.NoClassDefFoundError: org/springframework/expression/ParserContext at org.springframework.context.support.AbstractApplicationContext.prepareBeanFactory(AbstractApplicationContext.java:553) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4842) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.springframework.expression.ParserContext at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1332) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1166) ... 14 more
八月 03, 2016 4:28:13 下午 org.apache.catalina.core.StandardContext startInternal 严重: One or more listeners failed to start. Full details will be found in the appropriate container log file 八月 03, 2016 4:28:13 下午 org.apache.catalina.core.StandardContext startInternal 严重: Context [/O2O] startup failed due to previous errors 八月 03, 2016 4:28:13 下午 org.apache.catalina.core.ApplicationContext log 信息: Closing Spring root WebApplicationContext 16:28:13.636 [localhost-startStop-1] INFO o.s.w.c.s.XmlWebApplicationContext - Closing Root WebApplicationContext: startup date [Wed Aug 03 16:28:12 CST 2016]; root of context hierarchy 16:28:13.640 [localhost-startStop-1] WARN o.s.w.c.s.XmlWebApplicationContext - Exception thrown from ApplicationListener handling ContextClosedEvent java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Wed Aug 03 16:28:12 CST 2016]; root of context hierarchy at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:344) [spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331) [spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:869) [spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:836) [spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:579) [spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:115) [spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4889) [catalina.jar:8.0.36] at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5526) [catalina.jar:8.0.36] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224) [catalina.jar:8.0.36] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159) [catalina.jar:8.0.36] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407) [catalina.jar:8.0.36] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397) [catalina.jar:8.0.36] at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_91] at java.lang.Thread.run(Unknown Source) [na:1.8.0_91] 16:28:13.640 [localhost-startStop-1] WARN o.s.w.c.s.XmlWebApplicationContext - Exception thrown from LifecycleProcessor on context close java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Wed Aug 03 16:28:12 CST 2016]; root of context hierarchy at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:357) [spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:877) [spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:836) [spring-context-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:579) [spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:115) [spring-web-4.1.4.RELEASE.jar:4.1.4.RELEASE] at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4889) [catalina.jar:8.0.36] at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5526) [catalina.jar:8.0.36] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224) [catalina.jar:8.0.36] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159) [catalina.jar:8.0.36] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407) [catalina.jar:8.0.36] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397) [catalina.jar:8.0.36] at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_91] at java.lang.Thread.run(Unknown Source) [na:1.8.0_91] 16:28:13.641 [localhost-startStop-1] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4253495e: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,campusService,/foodService,/hotSearchService,keyService,/newsService,orderService,packageService,payService,preferentialService,pushService,receiverService,sellerService,userService,dataSource,jdbcTemplate,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,transactionAdvice,org.springframework.aop.config.internalAutoProxyCreator,transactionPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,druid-stat-interceptor,druid-stat-pointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1]; root of factory hierarchy