Fehler beim erstellen bean mit dem Namen 'cxf'
Ich erhalte die folgende Fehlermeldung, läuft auf meinem Programm
Exception in thread "main" java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' 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.bus.spring.SpringBus]: Constructor threw exception; nested exception is org.apache.cxf.bus.extension.ExtensionException: Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
meine test.xml Datei
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cxf="http://cxf.apache.org/core"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
<bean id="clientI"
class="LI" />
<bean id="clientL"
class="LIn" />
<cxf:bus>
<cxf:outInterceptors>
<ref bean="clientI" />
</cxf:outInterceptors>
<cxf:inInterceptors>
<ref bean="clientL" />
</cxf:inInterceptors>
</cxf:bus>
</beans>
Sie haben cxf-bundle-xxx.jar in den classpath?
können Sie fügen Sie die gesamte exception-Kette - einschließlich aller Ursachen?
können Sie fügen Sie die gesamte exception-Kette - einschließlich aller Ursachen?
InformationsquelleAutor Suraj Menon | 2013-09-20
Du musst angemeldet sein, um einen Kommentar abzugeben.
Haben Sie die cxf-bundle-JAR in den classpath? Denn das könnte das problem sein.
Können Sie es von hier: http://mvnrepository.com/artifact/org.apache.cxf/cxf-bundle/2.7.6 (die neueste version).
InformationsquelleAutor Ernestas Kardzys
Könnte es möglich sein, da Sie eine alte version von neethi (vielleicht 2.X.X), und Sie sollten mit der version 3.0.2. Überprüfen Sie Ihre Abhängigkeiten.
InformationsquelleAutor gregoriomunoz
Für eine Auflösung, die ich hatte, um beide cxf-bundle-xxx.jar und aktualisiert die neethi Glas mit der neuesten version.
InformationsquelleAutor bhaumikananda
Wenn dies geschieht auf einem OHR, darunter ein cxf-WebService bereitgestellt, die in WebSphere AS,
kann es Ergebnis aus der class-loader der des cxf-WebService-Modul. Werden Sie sicher, dass Sie legen Sie die class-loader der das WebService-Modul PARENT_LAST
InformationsquelleAutor Gio