当前位置: 代码迷 >> Web前端 >> ModelBuilder.class) needs 2.1 API
  详细解决方案

ModelBuilder.class) needs 2.1 API

热度:546   发布时间:2013-09-11 17:27:29.0
ModelBuilder.class) needs 2.1 API.
 [DH-OFFICE] 2012-12-17 22:56:35 INFO [main] MyLocalSessionFactoryBean.buildSessionFactory(730) | Building new Hibernate SessionFactory
[DH-OFFICE] 2012-12-17 22:57:00 INFO [main] MyLocalSessionFactoryBean.destroy(246) | Closing Hibernate SessionFactory
[DH-OFFICE] 2012-12-17 22:57:00 ERROR [main] ContextLoader.initWebApplicationContext(215) | Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/F:/apache-tomcat-6.0.16/webapps/dhoffice/WEB-INFb/jaxb-impl-2.1.13.jar!/com/xml/bind2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method) 

我的异常网推荐解决方案:org.springframework.beans.factory.BeanCreationException:,http://www.myexception.cn/j2ee/10759.html
  相关解决方案