Announcement Announcement Module
Collapse
No announcement yet.
Spring 3.0.5 Webapp runs in tomcat6.1 but not JBoss EAP 5.1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring 3.0.5 Webapp runs in tomcat6.1 but not JBoss EAP 5.1

    I have a very easy webapp that I made using Eclipse, Spring 3.05 that was runnig in tomcat6.1 without any issues and my firm is moving to Jboss EAP 5.1 and I am getting the following error.

    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.DefaultL istableBeanFactory@784f63b5: defining beans [org.springframework.beans.factory.config.PropertyP laceholderConfigurer#0,requestController,memberInq uiryServiceImpl,articleDao,org.springframework.con text.annotation.internalConfigurationAnnotationPro cessor,org.springframework.context.annotation.inte rnalAutowiredAnnotationProcessor,org.springframewo rk.context.annotation.internalRequiredAnnotationPr ocessor,org.springframework.context.annotation.int ernalCommonAnnotationProcessor,org.springframework .context.annotation.internalPersistenceAnnotationP rocessor,org.springframework.aop.config.internalAu toProxyCreator,org.springframework.transaction.ann otation.AnnotationTransactionAttributeSource#0,org .springframework.transaction.interceptor.Transacti onInterceptor#0,org.springframework.transaction.co nfig.internalTransactionAdvisor,org.springframewor k.web.servlet.mvc.annotation.DefaultAnnotationHand lerMapping#0,org.springframework.format.support.Fo rmattingConversionServiceFactoryBean#0,org.springf ramework.validation.beanvalidation.LocalValidatorF actoryBean#0,org.springframework.web.servlet.mvc.a nnotation.AnnotationMethodHandlerAdapter#0,org.spr ingframework.web.servlet.handler.MappedInterceptor #0,jspViewResolver,dataSource,requestTrackerConfig ,sessionFactory,hibernateTransactionManager]; parent: org.springframework.beans.factory.support.DefaultL istableBeanFactory@79063635
    16:29:20,834 INFO [STDOUT] [ERROR,DispatcherServlet] Context initialization failed
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'requestController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: private org.uftwf.service.MemberInquiryService org.uftwf.controller.RequestController.memberInqui ryService; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'memberInquiryServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: private org.uftwf.dao.MemberInquiryDao org.uftwf.service.MemberInquiryServiceImpl.memberI nquiryDao; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'articleDao': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire field: private org.hibernate.SessionFactory org.uftwf.dao.MemberInquiryDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationExce ption: 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.Reflec tionManager)
    at org.springframework.beans.factory.annotation.Autow iredAnnotationBeanPostProcessor.postProcessPropert yValues(AutowiredAnnotationBeanPostProcessor.java: 286)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1055)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:511)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:450)

  • #2
    Please use [ code][/code ] tags when posting code/xml/stacktraces.

    JBoss ships with its own version of hibernate, judging from the stacktrace it uses the one from jboss instead of the one from the web app. I suggest a read of the jboss reference guide and find out how to switch class loading to only (or first) load/check classes from the web app classpath instead of its parent. (This differs between JBoss versions).

    Comment

    Working...
    X