---
title: "spring mvc3 整合hibernate jar包问题"
author: "wenjun00"
date: "2012-06-07T13:08:48Z"
tags: []
categories: ["编程语言"]
slug: "spring-mvc3-hibernate-jar"
draft: false
lastmod: "2012-06-07T13:08:48Z"
id: 1554331
url: "https://wenjun00.iteye.com/blog/1554331"
---

严重: StandardWrapper.Throwable

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0': Cannot create inner bean '(inner bean)' of type \[org.springframework.http.converter.ByteArrayHttpMessageConverter] while setting bean property 'messageConverters' with key \[0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#2': Initialization of bean failed; nested exception is java.lang.ClassCastException: org.aspectj.weaver.ResolvedType$Array cannot be cast to org.aspectj.weaver.ReferenceType

整合spring mvc3 和hibernate时老是报错，开始以为是jar包冲突，后来看了下原来spring 3以后就没有这个&lt;mvc:annotation-driven/&gt;声明了。把这个去掉就可以了。