ssh集成,项目启动报错(struts2.3.15.3+spring3.2.4+hibernate4.2.7.sp1),数据库oracle11g
本帖最后由 wlgpep 于 2013-11-04 23:57:30 编辑 ssh集成,项目启动报错(struts2.3.15.3+spring3.2.4+hibernate4.2.7.sp1),数据库oracle11g
工程已经引用commons-lang3-3.1.jar
工程编译没有异常的!请各位指点一下!
谢谢了!
2013-11-4 23:08:04 org.springframework.beans.factory.support.DefaultListableBeanFactory destroySingletons
信息: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@38d30fb: defining beans [hibernateSessionFactory,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,loginDAOImpl,studentDAOImpl,loginServiceImpl,studentServiceImpl,environmentVariablesConfiguration,configurationEncryptor,propertyConfigurer,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,commonsConfigurationFactoryBean,propertiesConfiguration,methodLoggerAdvisor,springUtil,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.aspectj.AspectJPointcutAdvisor#0,loggerPointCut,org.springframework.jdbc.core.JdbcTemplate#0,dataSource,transactionManager,txAdvice,serviceMethod,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
2013-11-4 23:08:04 org.springframework.web.context.ContextLoader initWebApplicationContext
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginServiceImpl': Injection of resource dependencies failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/lang/text/StrLookup
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:306)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1116)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) ssh集成项目启动报错 struts2.3.15.3 spring3.2.4 +hibernate4.2.7.sp1 oracle11g
[解决办法]
还是lang包的问题,不知道你在哪找到的这个包,去看看jar中有没有这个StrLookup类。。。
[解决办法]
缺少了apache的common-lang包,
package org.apache.commons.lang.text;
public abstract class StrLookup