2010-11-15 9 views
3

Je construis un service web avec le printemps. Je peux construire et déployer le projet à tomcat mais quand le serveur démarre j'obtiens l'erreur suivante:spring webservice Invalid NamespaceHandler problème (jaxws)

Invalid NamespaceHandler class [org.apache.cxf.jaxws.spring.NamespaceHandler] for namespace [http://cxf.apache.org/jaxws]: problem with handler class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/beans/factory/xml/NamespaceHandlerSupport

J'ai déjà inclus le CxF-rt-frontend-jaxws.jar dans mon classpath.

Ma définition de haricot sont ici:

<jaxws:endpoint id="helloWebservice" 
    implementor="#com.xxx.impl.HelloWebserviceImpl" 
    address="/hellows"> 
</jaxws:endpoint> 

Mon dossier lib contient (WEB-INF/lib):

antlr-2.7.6.jar 
asinus-api.jar 
asinus-ri.jar 
aspectjrt.jar 
aspectjweaver.jar 
backport-util-concurrent-3.0.jar 
cglib-nodep-2.1_3.jar 
commons-beanutils-1.6.jar 
commons-codec-1.4.jar 
commons-collections-3.2.1.jar 
commons-fileupload-1.2.jar 
commons-httpclient-3.1.jar 
commons-io-1.4.jar 
commons-lang-2.4.jar 
commons-logging-1.1.1.jar 
com.springsource.javax.validation-1.0.0.GA.jar 
com.springsource.org.aopalliance-1.0.0.jar 
dom4j-1.6.1.jar 
ehcache-core-1.7.2.jar 
ezmorph-1.0.4.jar 
freemarker-2.3.15.jar 
hibernate3.jar 
hibernate-validator-4.0.2.GA.jar 
javassist.jar 
jdom.jar 
jpa-api-2.0-cr-1.jar 
json-lib-2.2.jar 
jta-spec1_0_1.jar 
lib.txt 
log4j-1.2.15.jar 
memcached-2.4.2.jar 
org.springframework.aop-3.0.2.RELEASE.jar 
org.springframework.asm-3.0.2.RELEASE.jar 
org.springframework.aspects-3.0.2.RELEASE.jar 
org.springframework.beans-3.0.2.RELEASE.jar 
org.springframework.context-3.0.2.RELEASE.jar 
org.springframework.context.support-3.0.2.RELEASE.jar 
org.springframework.core-3.0.2.RELEASE.jar 
org.springframework.expression-3.0.2.RELEASE.jar 
org.springframework.jdbc-3.0.2.RELEASE.jar 
org.springframework.orm-3.0.2.RELEASE.jar 
org.springframework.test-3.0.2.RELEASE.jar 
org.springframework.transaction-3.0.2.RELEASE.jar 
org.springframework.web-3.0.2.RELEASE.jar 
owasp.jar 
quartz-1.7.3.jar 
rome-1.0.jar 
slf4j-api-1.5.6.jar 
slf4j-log4j12-1.5.6.jar 
spring-modules-cache.jar 

et mes pots externes:

cxf-2.2.5.jar 
geronimo-activation_1.1_spec-1.0.2.jar 
geronimo-jaxws_2.1_spec-1.0.jar 
geronimo-ws-metadata_2.0_spec-1.1.2.jar 
jaxb-api-2.1.jar 
jaxb-impl-2.1.12.jar 
neethi-2.0.4.jar 
saaj-api-1.3.jar 
saaj-impl-1.3.2.jar 
stax-api-1.0.1.jar 
wsdl4j-1.6.2.jar 
wss4j-1.5.8.jar 
wstx-asl-3.2.9.jar 
xml-resolver-1.2.jar 
XmlSchema-1.4.5.jar 
xmlsec-1.4.3.jar 
WEB-INF/lib/cxf-rt-frontend-jaxws.jar 
+0

Bonjour, avez-vous pu résoudre ce problème? J'ai le même problème avec JBoss 5.1, Spring 3.0.3 et Mule embarqué dans webapp. -Om –

+0

salut, oui j'ai surmonté cette erreur mais malheureusement j'ai oublié comment faire :( – dds

+0

En ajoutant à vos beans. xml? – redben

Répondre

0

Il apparaît soit vous manquez un pot de printemps, ou vous avez une version plus ancienne. Essayez d'obtenir la dernière spring-beans.jar sur le classpath. Assurez-vous également qu'il n'y a pas un autre jar sur le classpath qui est plus ancien.

+0

J'ai com.springframework.beans-3.0.3.RELEASE.jar est celui dont vous parlez .. – dds

+0

Eh bien, j'ai télécharger et remplacer beans.jar mais l'erreur reste la même.Toute autre idée? – dds

+0

@ dds est-il sur le classpath? – Bozho

Questions connexes