簡體   English   中英

Spring 3.0.5 Webapp在tomcat中運行良好……將無法在JBoss EAP 5.1中啟動

[英]Spring 3.0.5 Webapp runs great in tomcat… will not start in JBoss EAP 5.1

Spring 3.0.5 Webapp在tomcat中運行良好。...將無法在JBoss EAP 5.1中啟動

我有一個非常簡單的Web應用程序,該應用程序是使用Eclipse,Spring 3.05創建的,該應用程序在tomcat6.1中運行,沒有任何問題,我的公司正在遷移到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.springframework.beans.factory.support.DefaultListableBeanFactory@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.springframework.beans.factory.support.DefaultListableBeanFactory@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)

似乎您在代碼中使用了Hibernate Validator,這與JBoss中捆綁的Hibernate Validator沖突,並且它們的版本不匹配。

每個JavaEE容器都有一些屬性,可以使類加載器在容器庫之前搜索項目類中的類。

我不知道標簽(在JBoss特定的部署描述符中),只需在JBoss文檔中查找即可。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM