1
春3.0.5的webapp運行在tomcat的偉大....不會到JBoss EAP啓動5.1春3.0.5的webapp運行在tomcat的偉大....不會到JBoss EAP啓動5.1
我有一個我使用Eclipse製作的非常簡單的webapp,Spring 3.05,它在tomcat6.1中runnig沒有任何問題,我的公司正在轉向Jboss EAP 5.1,並且出現以下錯誤。
Jboss EAP 5.1 Error.
16:29:20,695 INFO [STDOUT] [DEBUG,Configuration] processing association property references
16:29:20,695 INFO [STDOUT] [DEBUG,Configuration] processing foreign key constraints
16:29:20,798 INFO [STDOUT] [INFO,DefaultListableBeanFactory] Destroying singletons in org.s[email protected]784f63b5: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,requestController,memberInquiryServiceImpl,articleDao,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,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,jspViewResolver,dataSource,requestTrackerConfig,sessionFactory,hibernateTransactionManager]; parent: org.s[email protected]79063635
16:29:20,834 INFO [STDOUT] [ERROR,DispatcherServlet] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.uftwf.service.MemberInquiryService org.uftwf.controller.RequestController.memberInquiryService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'memberInquiryServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.uftwf.dao.MemberInquiryDao org.uftwf.service.MemberInquiryServiceImpl.memberInquiryDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory org.uftwf.dao.MemberInquiryDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1055)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
[JBOSS server 5.0.1.GA上的部署問題]的可能重複(http://stackoverflow.com/questions/4257462/deployment-problem-on-jboss-server-5-0-1-ga) – skaffman 2012-02-28 21:47:24