Hi Don,

unfortunately also the snapshot version doesn't work with the examples we have 
submitted with the first mail. We still get the following exception:

mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cxf-jibx-foobar 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.eclipse:osgi:jar:v20080605-1900 is missing, no 
dependency information available
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ cxf-jibx-foobar ---
[INFO] Deleting C:\FooBar\workspaces\spin\cxf-jibx-foobar\target
[INFO]
[INFO] --- cxf-codegen-plugin:2.5.0-SNAPSHOT:wsdl2java (generate-sources) @ 
cxf-jibx-foobar ---
Retrieving document at 
'file:/C:/FooBar/workspaces/spin/cxf-jibx-foobar/src/main/resources/fooBar.wsdl'.
Retrieving schema at 'fooBar.xsd', relative to 
'file:/C:/FooBar/workspaces/spin/cxf-jibx-foobar/src/main/resources/fooBar.w
sdl'.
28.07.2011 10:13:03 org.apache.cxf.jibx.tools.JibxToolingProblemHandler 
handleWarning
WARNUNG: No schema loaded for customization with name 
file:/C:/FooBar/workspaces/spin/cxf-jibx-foobar/src/main/resources/fo
oBar.xsd for SchemaCustom at (source unknown)
28.07.2011 10:13:03 org.apache.cxf.jibx.tools.JibxToolingProblemHandler 
handleWarning
WARNUNG: No schema loaded for customization with name 
file:/C:/FooBar/workspaces/spin/cxf-jibx-foobar/src/main/resources/fo
oBar.wsdl for SchemaCustom at (source unknown)
28.07.2011 10:13:03 org.apache.cxf.jibx.tools.JibxToolingProblemHandler report
INFO: Loaded and validated 1 specified schema(s) and 1 referenced schema(s)
28.07.2011 10:13:04 org.apache.cxf.jibx.tools.JibxToolingProblemHandler report
INFO: Generated 6 top-level classes in package bar.foo.data
28.07.2011 10:13:04 org.apache.cxf.jibx.tools.JibxToolingProblemHandler report
INFO: Total classes in model: 6
28.07.2011 10:13:04 org.apache.cxf.jibx.tools.JibxToolingProblemHandler 
handleSevere
SCHWERWIEGEND:
java.lang.NullPointerException
        at org.jibx.binding.model.BindingUtils$1.visit(BindingUtils.java:65)
        at org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:161)
        at org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:238)
        at org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:124)
        at 
org.jibx.binding.model.BindingUtils.getDefinitions(BindingUtils.java:71)
        at 
org.apache.cxf.jibx.tools.JibxToolingDataBinding.generate(JibxToolingDataBinding.java:165)
        at 
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:592)
        at 
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:240)
        at 
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:138)
        at 
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:283)
        at 
org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
        at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
        at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
        at 
org.apache.cxf.maven_plugin.WSDL2JavaMojo.callWsdl2Java(WSDL2JavaMojo.java:610)
        at 
org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:436)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.607s
[INFO] Finished at: Thu Jul 28 10:13:05 CEST 2011
[INFO] Final Memory: 20M/495M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.cxf:cxf-codegen-plugin:2.5.0-SNAPSHOT:wsdl2java (generate-sources) 
on project
cxf-jibx-foobar: Failed to create java parameter for part 
[getAllUsersRequestPart] in method [getAllUsers] - this wsdl i
s invalid, please use the wsdlvalidator tool to validate this wsdl -> [Help 1]

This dependecy-tree shows the libraries that are used.

mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cxf-jibx-foobar 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.eclipse:osgi:jar:v20080605-1900 is missing, no 
dependency information available
[INFO]
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ cxf-jibx-foobar ---
[INFO] foo.bar:cxf-jibx-foobar:jar:0.0.1-SNAPSHOT
[INFO] +- org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.5.0-SNAPSHOT:compile
[INFO] |  +- xml-resolver:xml-resolver:jar:1.2:compile
[INFO] |  +- asm:asm:jar:3.3:compile
[INFO] |  +- org.apache.cxf:cxf-api:jar:2.5.0-SNAPSHOT:compile
[INFO] |  |  +- org.apache.cxf:cxf-common-utilities:jar:2.5.0-SNAPSHOT:compile
[INFO] |  |  +- org.apache.ws.xmlschema:xmlschema-core:jar:2.0:compile
[INFO] |  |  \- org.apache.neethi:neethi:jar:3.0.1:compile
[INFO] |  |     \- org.codehaus.woodstox:woodstox-core-asl:jar:4.1.1:compile
[INFO] |  |        +- javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO] |  |        \- org.codehaus.woodstox:stax2-api:jar:3.0.2:compile
[INFO] |  +- org.apache.cxf:cxf-rt-core:jar:2.5.0-SNAPSHOT:compile
[INFO] |  |  +- com.sun.xml.bind:jaxb-impl:jar:2.1.13:compile
[INFO] |  |  \- 
org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.7.1:compile
[INFO] |  +- org.apache.cxf:cxf-rt-bindings-soap:jar:2.5.0-SNAPSHOT:compile
[INFO] |  |  \- 
org.apache.cxf:cxf-rt-databinding-jaxb:jar:2.5.0-SNAPSHOT:compile
[INFO] |  +- org.apache.cxf:cxf-rt-bindings-xml:jar:2.5.0-SNAPSHOT:compile
[INFO] |  +- org.apache.cxf:cxf-rt-frontend-simple:jar:2.5.0-SNAPSHOT:compile
[INFO] |  \- org.apache.cxf:cxf-rt-ws-addr:jar:2.5.0-SNAPSHOT:compile
[INFO] +- org.apache.cxf:cxf-rt-databinding-jibx:jar:2.5.0-SNAPSHOT:compile
[INFO] |  +- org.apache.cxf:cxf-tools-common:jar:2.5.0-SNAPSHOT:compile
[INFO] |  |  +- org.apache.velocity:velocity:jar:1.7:compile
[INFO] |  |  |  +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] |  |  |  \- commons-lang:commons-lang:jar:2.4:compile
[INFO] |  |  +- wsdl4j:wsdl4j:jar:1.6.2:compile
[INFO] |  |  \- com.sun.xml.bind:jaxb-xjc:jar:2.1.13:compile
[INFO] |  +- org.jibx:jibx-bind:jar:1.2.3:compile
[INFO] |  |  +- bcel:bcel:jar:5.1:compile
[INFO] |  |  +- log4j:log4j:jar:1.2.15:compile
[INFO] |  |  |  \- javax.mail:mail:jar:1.4:compile
[INFO] |  |  |     \- javax.activation:activation:jar:1.1:compile
[INFO] |  |  \- com.thoughtworks.qdox:qdox:jar:1.6.2:compile
[INFO] |  |     +- ant:ant:jar:1.5.1:compile
[INFO] |  |     +- junit:junit:jar:3.8.1:compile
[INFO] |  |     \- jmock:jmock:jar:1.0.0:compile
[INFO] |  +- org.jibx:jibx-run:jar:1.2.3:compile
[INFO] |  |  +- joda-time:joda-time:jar:1.6.2:compile
[INFO] |  |  \- xpp3:xpp3:jar:1.1.3.4.O:compile
[INFO] |  +- org.jibx:jibx-schema:jar:1.2.3:compile
[INFO] |  |  \- org.jibx:jibx-extras:jar:1.2.3:compile
[INFO] |  |     +- dom4j:dom4j:jar:1.6.1:compile
[INFO] |  |     |  \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] |  |     \- org.jdom:jdom:jar:1.1:compile
[INFO] |  \- org.jibx:jibx-tools:jar:1.2.3:compile
[INFO] |     +- org.eclipse.jdt:core:jar:3.3.0-v_771:compile
[INFO] |     |  +- org.eclipse.core:resources:jar:3.3.0-v20070604:compile
[INFO] |     |  |  \- org.eclipse.core:expressions:jar:3.4.0-depot:compile
[INFO] |     |  +- org.eclipse.core:runtime:jar:3.4.0-depot:compile
[INFO] |     |  +- org.eclipse.core:filesystem:jar:1.1.0-v20070606:compile
[INFO] |     |  |  +- org.eclipse.equinox:registry:jar:3.4.0-depot:compile
[INFO] |     |  |  \- org.eclipse:osgi:jar:3.6.2.R36x_v20110210:compile
[INFO] |     |  \- org.eclipse:text:jar:3.3.0-v20070606-0010:compile
[INFO] |     |     \- org.eclipse.core:commands:jar:3.3.0-I20070605-0010:compile
[INFO] |     \- org.eclipse.equinox:common:jar:3.3.0-v20070426:compile
[INFO] +- org.apache.cxf:cxf-rt-transports-http:jar:2.5.0-SNAPSHOT:compile
[INFO] |  +- org.apache.cxf:cxf-rt-transports-common:jar:2.5.0-SNAPSHOT:compile
[INFO] |  \- org.springframework:spring-web:jar:3.0.5.RELEASE:compile
[INFO] |     +- aopalliance:aopalliance:jar:1.0:compile
[INFO] |     +- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
[INFO] |     +- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
[INFO] |     |  +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
[INFO] |     |  +- 
org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
[INFO] |     |  \- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
[INFO] |     \- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
[INFO] |        \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] \- org.apache.cxf:cxf-rt-transports-http-jetty:jar:2.5.0-SNAPSHOT:compile
[INFO]    +- org.eclipse.jetty:jetty-server:jar:7.4.4.v20110707:compile
[INFO]    |  +- org.eclipse.jetty:jetty-continuation:jar:7.4.4.v20110707:compile
[INFO]    |  \- org.eclipse.jetty:jetty-http:jar:7.4.4.v20110707:compile
[INFO]    |     \- org.eclipse.jetty:jetty-io:jar:7.4.4.v20110707:compile
[INFO]    |        \- org.eclipse.jetty:jetty-util:jar:7.4.4.v20110707:compile
[INFO]    +- org.eclipse.jetty:jetty-security:jar:7.4.4.v20110707:compile
[INFO]    +- org.slf4j:slf4j-api:jar:1.6.1:runtime
[INFO]    \- org.apache.geronimo.specs:geronimo-servlet_3.0_spec:jar:1.0:compile

Thx in advance

Juergen

Von: Don Corley [mailto:d...@donandann.com]
Gesendet: Mittwoch, 27. Juli 2011 03:33
An: jibx-users@lists.sourceforge.net
Betreff: Re: [jibx-users] Trouble using jibx databinding in CXF 2.4.0

Juergen,

There is a bug in CXF 2.4 when you use JiBX databinding. It has been fixed in 
CXF 2.5. Until 2.5 is released, you will have to use the apache/fusesource 
snapshot version.

Instructions on building CXF from source are here:
http://cxf.apache.org/building.html

I'll create another post today with a link to a working CXF/JiBX example.

Don Corley
JiBX contributor

Message: 3
Date: Tue, 26 Jul 2011 13:16:33 +0200
From: J?rgen Bockhorn 
<juergen.bockh...@heuboe.de<mailto:juergen.bockh...@heuboe.de>>
Subject: [jibx-users] Trouble using jibx databinding in CXF 2.4.0
To: "jibx-users@lists.sourceforge.net<mailto:jibx-users@lists.sourceforge.net>"
       
<jibx-users@lists.sourceforge.net<mailto:jibx-users@lists.sourceforge.net>>
Message-ID:
       
<128DB53227227D43B4AAEED73E89A81902CF59D814@vm-exchg-2k8.heuboe.hbintern<mailto:128DB53227227D43B4AAEED73E89A81902CF59D814@vm-exchg-2k8.heuboe.hbintern>>

Content-Type: text/plain; charset="iso-8859-1"

Hi,

we are trying to move from AXIS2 with JiBX databinding to CXF/JiBX. 
Unforunately we are running into an error.
Both CXF/JAXB and AXIS2/JiBX are working fine with the example.


wsdl2java with jibx data-binding crashes if the schema contains simpleType 
definitions (stacktrace below).

To reproduce this behaviour I attached a maven project including
- pom.xml
- src/main/resources/fooBar.wsdl
- src/main/resources/fooBar.xsd

The fooBar.xsd schema contains a simpleType definition 'EnumErrorType'. If this 
definition (and its usage) is removed the compile process works like expected. 
Using JAXB data binding the wsdl2java process runs also with the simpleType 
included.

The fooBar.wsdl passes the wsdlvalidation tool without errors.

Any hints how to make the jibx databinding work would be appreciated.

Thanks

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to