IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Services Web Java Discussion :

wsdl2java cxf-codegen-plugin classnotfound neethi


Sujet :

Services Web Java

  1. #1
    Membre habitué
    Homme Profil pro
    Inscrit en
    Octobre 2007
    Messages
    190
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Octobre 2007
    Messages : 190
    Points : 182
    Points
    182
    Par défaut wsdl2java cxf-codegen-plugin classnotfound neethi
    Bonjour,

    je suis en quête d'un oeil neuf et d'idée,
    parce que je suis à cours de munition sur un problème bizarre et je tourne en rond dessus. je lance une bouteille à la mer.

    Ma config : seven 64, eclipse juno, maven 3, cxf , java 1.6.35

    j'ai un problème de classe not found sur la generation
    des classe java par le cxf-codegen-plugin 2.7.4 à partir
    du wsdl. mais lors
    de l'install, il fait un exit 1 sur le goal execution.

    Exit code: 1 Command line was: D:\Java\jdk1.6.0_35\jre\bin\java.exe -jar C:\Users\bordi\AppData\Local\Temp\cxf-tmp-43581\cxf-
    codegen8752940492418253213.jar C:\Users\bordi\AppData\Local\Temp\cxf-tmp-43581\cxf-w2j2119238723819165975args (org.apache.cxf:cxf-codegen-plugin:
    2.7.4:wsdl2java:generate-sources:generate-sources)

    Il plante sur java.lang.NoClassDefFoundError: org/apace/neethi/AssertionBuilderFactory

    de prime à bord, rien de redoutable, mais il insiste

    J'ai bien sur ajouter la dependency du jar neethi dans les dependences du pom
    et aussi dans les dependencies du plugin cxf-codegen, rien à faire
    il plante en classe not found, les classes sont bien presentes
    dans le jar de neethi. truc de fou. on le voit dans ma dependency
    tree.

    J'ai bien sur essayé pas mal de chose, eclipse indigo, java 7 d'autres version codegen jaxb 2.2, supprimer le m2, etc.. bref pas mal de truc, comme si il y avait une incompatibilité quelque part.

    J'ai pas trouvé grand chose sur internet, si personne n'a rencontré ce problème, je vais devoir me préparer des stocks de café pour les longues nuits à venir.

    Merci pour attention.
    JP

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    	<plugin>
    				<groupId>org.apache.cxf</groupId>
    				<artifactId>cxf-codegen-plugin</artifactId>
     
    				<dependencies>
    					<dependency>
    						<groupId>org.apache.neethi</groupId>
    						<artifactId>neethi</artifactId>
    						<version>3.0.2</version>
    						<scope>compile</scope>
    					</dependency>
    				</dependencies>
    				<executions>
    					<execution>
    						<id>generate-sources</id>
    						<phase>generate-sources</phase>
    						<configuration>					<sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
    							<wsdlOptions>
    								<wsdlOption>
    									<wsdl>${basedir}/src/main/resources/etc/report_incident.wsdl</wsdl>
    								</wsdlOption>
    							</wsdlOptions>
    						</configuration>
    						<goals>
    							<goal>wsdl2java</goal>
    						</goals>
    					</execution>
     
    				</executions>
     
    			</plugin>
    c'est un exemple camel, on peut le trouver ici. il utilise camel en proxy
    pour router vers un web-service.

    http://camel.apache.org/cxf-proxy-example.html

    on trouve les exemples inclut dans le fichier zip camel,
    je veux me former dessus, mais je suis tombé sur ce truc,
    qui d'habitude fonctionne.

    http://www.apache.org/dyn/closer.cgi...mel-2.11.0.zip

    voici la trace

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    [WARNING] Exception in thread "main" org.apache.cxf.tools.common.ToolException: org.apache.cxf.bus.extension.ExtensionException: Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
    [WARNING] 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:420)
    [WARNING] 	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
    [WARNING] 	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
    [WARNING] 	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
    [WARNING] 	at org.apache.cxf.maven_plugin.wsdl2java.ForkOnceWSDL2Java.main(ForkOnceWSDL2Java.java:51)
    [WARNING] Caused by: org.apache.cxf.bus.extension.ExtensionException: Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
    [WARNING] 	at org.apache.cxf.bus.extension.Extension.tryClass(Extension.java:173)
    [WARNING] 	at org.apache.cxf.bus.extension.Extension.getClassObject(Extension.java:185)
    [WARNING] 	at org.apache.cxf.bus.extension.ExtensionManagerImpl.activateAllByType(ExtensionManagerImpl.java:138)
    [WARNING] 	at org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:126)
    [WARNING] 	at org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:134)
    [WARNING] 	at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:40)
    [WARNING] 	at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:36)
    [WARNING] 	at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:32)
    [WARNING] 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:146)
    [WARNING] 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:122)
    [WARNING] 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:94)
    [WARNING] 	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:83)
    [WARNING] 	at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:106)
    [WARNING] 	at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:95)
    [WARNING] 	at org.apache.cxf.tools.common.toolspec.AbstractToolContainer.getBus(AbstractToolContainer.java:189)
    [WARNING] 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:195)
    [WARNING] 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:164)
    [WARNING] 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:412)
    [WARNING] 	... 4 more
    [WARNING] Caused by: java.lang.NoClassDefFoundError: org/apache/neethi/AssertionBuilderFactory
    [WARNING] 	at java.lang.ClassLoader.defineClass1(Native Method)
    [WARNING] 	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    [WARNING] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    [WARNING] 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    [WARNING] 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    [WARNING] 	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    [WARNING] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    [WARNING] 	at java.security.AccessController.doPrivileged(Native Method)
    [WARNING] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    [WARNING] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [WARNING] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    [WARNING] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    [WARNING] 	at java.lang.ClassLoader.defineClass1(Native Method)
    [WARNING] 	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    [WARNING] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    [WARNING] 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    [WARNING] 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    [WARNING] 	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    [WARNING] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    [WARNING] 	at java.security.AccessController.doPrivileged(Native Method)
    [WARNING] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    [WARNING] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [WARNING] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    [WARNING] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    [WARNING] 	at org.apache.cxf.bus.extension.Extension.tryClass(Extension.java:169)
    [WARNING] 	... 21 more
    [WARNING] Caused by: java.lang.ClassNotFoundException: org.apache.neethi.AssertionBuilderFactory
    [WARNING] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    [WARNING] 	at java.security.AccessController.doPrivileged(Native Method)
    [WARNING] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    [WARNING] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [WARNING] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    [WARNING] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    [WARNING] 	... 46 more
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE

    dependency:tree

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    [DEBUG] org.apache.camel:camel-example-cxf-proxy:bundle:2.11.0
    [DEBUG]    org.apache.camel:camel-core:jar:2.11.0:compile
    [DEBUG]       org.slf4j:slf4j-api:jar:1.6.6:compile
    [DEBUG]    org.apache.camel:camel-spring:jar:2.11.0:compile
    [DEBUG]       org.springframework:spring-context:jar:3.1.4.RELEASE:compile
    [DEBUG]          org.springframework:spring-expression:jar:3.1.4.RELEASE:compile
    [DEBUG]          org.springframework:spring-asm:jar:3.1.4.RELEASE:compile
    [DEBUG]       org.springframework:spring-aop:jar:3.1.4.RELEASE:compile
    [DEBUG]          aopalliance:aopalliance:jar:1.0:compile
    [DEBUG]       org.springframework:spring-tx:jar:3.1.4.RELEASE:compile
    [DEBUG]    org.apache.camel:camel-http:jar:2.11.0:compile
    [DEBUG]       org.apache.geronimo.specs:geronimo-servlet_2.5_spec:jar:1.2:compile
    [DEBUG]       commons-httpclient:commons-httpclient:jar:3.1:compile
    [DEBUG]          commons-logging:commons-logging:jar:1.1.2:compile (version managed from 1.0.4 by org.apache.camel:camel-parent:2.11.0)
    [DEBUG]       commons-codec:commons-codec:jar:1.6:compile
    [DEBUG]    org.apache.camel:camel-cxf:jar:2.11.0:compile
    [DEBUG]       org.apache.camel:camel-cxf-transport:jar:2.11.0:compile
    [DEBUG]       org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.7.4:compile
    [DEBUG]          javax.ws.rs:javax.ws.rs-api:jar:2.0-m10:compile
    [DEBUG]       org.springframework:spring-core:jar:3.1.4.RELEASE:compile
    [DEBUG]       org.springframework:spring-beans:jar:3.1.4.RELEASE:compile
    [DEBUG]       org.apache.cxf:cxf-rt-bindings-soap:jar:2.7.4:compile
    [DEBUG]          org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.7.4:compile
    [DEBUG]    org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.7.4:compile
    [DEBUG]       xml-resolver:xml-resolver:jar:1.2:compile
    [DEBUG]       asm:asm:jar:3.3.1:compile
    [DEBUG]       org.apache.cxf:cxf-api:jar:2.7.4:compile
    [DEBUG]          org.apache.ws.xmlschema:xmlschema-core:jar:2.0.3:compile
    [DEBUG]          org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.1:compile
    [DEBUG]          wsdl4j:wsdl4j:jar:1.6.3:compile
    [DEBUG]       org.apache.cxf:cxf-rt-core:jar:2.7.4:compile
    [DEBUG]          com.sun.xml.bind:jaxb-impl:jar:2.1.13:compile
    [DEBUG]       org.apache.cxf:cxf-rt-bindings-xml:jar:2.7.4:compile
    [DEBUG]       org.apache.cxf:cxf-rt-frontend-simple:jar:2.7.4:compile
    [DEBUG]       org.apache.cxf:cxf-rt-ws-addr:jar:2.7.4:compile
    [DEBUG]          org.apache.cxf:cxf-rt-ws-policy:jar:2.7.4:compile
    [DEBUG]    org.apache.cxf:cxf-rt-transports-http:jar:2.7.4:compile
    [DEBUG]    log4j:log4j:jar:1.2.17:compile
    [DEBUG]    org.slf4j:slf4j-log4j12:jar:1.7.5:compile
    [DEBUG]    org.apache.cxf:cxf-rt-transports-http-jetty:jar:2.7.4:compile
    [DEBUG]       org.eclipse.jetty:jetty-server:jar:7.6.8.v20121106:compile (version managed from 8.1.7.v20120910 by org.apache.camel:camel-parent:2.11.0)
    [DEBUG]          org.eclipse.jetty:jetty-continuation:jar:7.6.8.v20121106:compile
    [DEBUG]          org.eclipse.jetty:jetty-http:jar:7.6.8.v20121106:compile
    [DEBUG]             org.eclipse.jetty:jetty-io:jar:7.6.8.v20121106:compile
    [DEBUG]                org.eclipse.jetty:jetty-util:jar:7.6.8.v20121106:compile
    [DEBUG]       org.eclipse.jetty:jetty-security:jar:7.6.8.v20121106:compile (version managed from 8.1.7.v20120910 by org.apache.camel:camel-parent:2.11.0)
    [DEBUG]       org.apache.geronimo.specs:geronimo-servlet_3.0_spec:jar:1.0:compile
    [DEBUG]    junit:junit:jar:4.11:test
    [DEBUG]       org.hamcrest:hamcrest-core:jar:1.3:test
    [DEBUG]    org.apache.camel:camel-test:jar:2.11.0:test
    [DEBUG]    org.apache.neethi:neethi:jar:3.0.2:compile
    [DEBUG]       org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0:compile (version managed from 4.0.8 by org.apache.camel:camel-parent:2.11.0)
    [DEBUG]          org.codehaus.woodstox:stax2-api:jar:3.1.1:compile
    [INFO] org.apache.camel:camel-example-cxf-proxy:bundle:2.11.0
    [INFO] +- org.apache.camel:camel-core:jar:2.11.0:compile
    [INFO] |  \- org.slf4j:slf4j-api:jar:1.6.6:compile
    [INFO] +- org.apache.camel:camel-spring:jar:2.11.0:compile
    [INFO] |  +- org.springframework:spring-context:jar:3.1.4.RELEASE:compile
    [INFO] |  |  +- org.springframework:spring-expression:jar:3.1.4.RELEASE:compile
    [INFO] |  |  \- org.springframework:spring-asm:jar:3.1.4.RELEASE:compile
    [INFO] |  +- org.springframework:spring-aop:jar:3.1.4.RELEASE:compile
    [INFO] |  |  \- aopalliance:aopalliance:jar:1.0:compile
    [INFO] |  \- org.springframework:spring-tx:jar:3.1.4.RELEASE:compile
    [INFO] +- org.apache.camel:camel-http:jar:2.11.0:compile
    [INFO] |  +- org.apache.geronimo.specs:geronimo-servlet_2.5_spec:jar:1.2:compile
    [INFO] |  +- commons-httpclient:commons-httpclient:jar:3.1:compile
    [INFO] |  |  \- commons-logging:commons-logging:jar:1.1.2:compile
    [INFO] |  \- commons-codec:commons-codec:jar:1.6:compile
    [INFO] +- org.apache.camel:camel-cxf:jar:2.11.0:compile
    [INFO] |  +- org.apache.camel:camel-cxf-transport:jar:2.11.0:compile
    [INFO] |  +- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.7.4:compile
    [INFO] |  |  \- javax.ws.rs:javax.ws.rs-api:jar:2.0-m10:compile
    [INFO] |  +- org.springframework:spring-core:jar:3.1.4.RELEASE:compile
    [INFO] |  +- org.springframework:spring-beans:jar:3.1.4.RELEASE:compile
    [INFO] |  \- org.apache.cxf:cxf-rt-bindings-soap:jar:2.7.4:compile
    [INFO] |     \- org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.7.4:compile
    [INFO] +- org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.7.4:compile
    [INFO] |  +- xml-resolver:xml-resolver:jar:1.2:compile
    [INFO] |  +- asm:asm:jar:3.3.1:compile
    [INFO] |  +- org.apache.cxf:cxf-api:jar:2.7.4:compile
    [INFO] |  |  +- org.apache.ws.xmlschema:xmlschema-core:jar:2.0.3:compile
    [INFO] |  |  +- org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.1:compile
    [INFO] |  |  \- wsdl4j:wsdl4j:jar:1.6.3:compile
    [INFO] |  +- org.apache.cxf:cxf-rt-core:jar:2.7.4:compile
    [INFO] |  |  \- com.sun.xml.bind:jaxb-impl:jar:2.1.13:compile
    [INFO] |  +- org.apache.cxf:cxf-rt-bindings-xml:jar:2.7.4:compile
    [INFO] |  +- org.apache.cxf:cxf-rt-frontend-simple:jar:2.7.4:compile
    [INFO] |  \- org.apache.cxf:cxf-rt-ws-addr:jar:2.7.4:compile
    [INFO] |     \- org.apache.cxf:cxf-rt-ws-policy:jar:2.7.4:compile
    [INFO] +- org.apache.cxf:cxf-rt-transports-http:jar:2.7.4:compile
    [INFO] +- log4j:log4j:jar:1.2.17:compile
    [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.5:compile
    [INFO] +- org.apache.cxf:cxf-rt-transports-http-jetty:jar:2.7.4:compile
    [INFO] |  +- org.eclipse.jetty:jetty-server:jar:7.6.8.v20121106:compile
    [INFO] |  |  +- org.eclipse.jetty:jetty-continuation:jar:7.6.8.v20121106:compile
    [INFO] |  |  \- org.eclipse.jetty:jetty-http:jar:7.6.8.v20121106:compile
    [INFO] |  |     \- org.eclipse.jetty:jetty-io:jar:7.6.8.v20121106:compile
    [INFO] |  |        \- org.eclipse.jetty:jetty-util:jar:7.6.8.v20121106:compile
    [INFO] |  +- org.eclipse.jetty:jetty-security:jar:7.6.8.v20121106:compile
    [INFO] |  \- org.apache.geronimo.specs:geronimo-servlet_3.0_spec:jar:1.0:compile
    [INFO] +- junit:junit:jar:4.11:test
    [INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
    [INFO] +- org.apache.camel:camel-test:jar:2.11.0:test
    [INFO] \- org.apache.neethi:neethi:jar:3.0.2:compile
    [INFO]    \- org.codehaus.woodstox:woodstox-core-asl:jar:4.2.0:compile
    [INFO]       \- org.codehaus.woodstox:stax2-api:jar:3.1.1:compile
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------

  2. #2
    Membre habitué
    Homme Profil pro
    Inscrit en
    Octobre 2007
    Messages
    190
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Octobre 2007
    Messages : 190
    Points : 182
    Points
    182
    Par défaut
    J'ai détruit une nouvelle fois les jar neethi et stax2 dans le m2
    et cette fois ca passe. je l'avais fait plusieurs fois. les
    fichiers étaient peut être corrompus, pourtant on voyait l'arboressence
    des packages.

Discussions similaires

  1. Réponses: 1
    Dernier message: 18/01/2012, 09h26
  2. cxf-codegen-plugin problem wsdl2java
    Par sekaijin dans le forum Maven
    Réponses: 0
    Dernier message: 05/10/2011, 16h51
  3. WS-CXF-Plugin maven - Comment intégrer ?
    Par jlmateo dans le forum Services Web
    Réponses: 0
    Dernier message: 26/05/2009, 18h27
  4. CXF Plugins ça marche pas sous eclipse
    Par zainoun dans le forum Eclipse
    Réponses: 1
    Dernier message: 15/05/2009, 09h28
  5. [Plugin][WSDL2Java]utilisation de Eclipse WSDL2Java plugin
    Par furikuri dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 27/09/2005, 16h11

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo