2012-02-28 5 views
1

春3.0.5のWebappにTomcatに大きな走るのJBoss EAPに開始されません....のtomcatで大きな動作しますEclipseを使用して作成した非常に簡単なwebapp、Spring 3.05はTomcat6.1で問題なく実行されていました。私の会社はJboss EAP 5.1に移行していて、次のエラーが発生しています。春3.0.5のWebappは5.1</p> <p>私が持っていた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) 
+0

[JBOSSサーバー5.0.1.GAのデプロイメント問題](http://stackoverflow.com/questions/4257462/deployment-problem-on-jboss-server-5-0-1ga) – skaffman

答えて

1

あなたは、JBossにバンドルHibernateバリと競合あなたのコードでHibernateバリを使用していて、そのバージョンが一致していないようです。

すべてのJavaEEコンテナには、コンテナライブラリより前のプロジェクトクラスのクラスをクラスローダで検索するためのプロパティがあります。

(JBoss固有のデプロイメント記述子内の)タグはわかりませんが、JBossドキュメントでそのタグを調べるだけです。

関連する問題