You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2010/08/24 02:32:47 UTC
[jira] Commented: (SMXCOMP-790) IllegalStateException Deploying
CXF-SE Service Unit with JAX-WS Binding Files
[ https://issues.apache.org/activemq/browse/SMXCOMP-790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61347#action_61347 ]
Freeman Fang commented on SMXCOMP-790:
--------------------------------------
Hi,
>From the diff of generated classes, I can clearly see that the code generated by jaxb-xjc/jaxb-impl 2.1.3 has no @XmlMixed at all, so the jaxb binding file didn't get picked up for 2.1.3. With 2.1.3, just like no jaxb binding file at all.
I noticed in your pom.xml you use defaultOptions to configure cxf-codegen-plugin, I'm sure this is the correct to specify wsdls with binding files, your current configuration is like
{code}
<configuration>
<defaultOptions>
<extraargs>
<extraarg>-impl</extraarg>
</extraargs>
</defaultOptions>
</configuration>
{code}
I think you should use
{code}
<configuration>
<wsdlOptions>
<wsdlOption>
<wsdl>${basedir}/src/main/resources/wsdl/pinger.wsdl</wsdl>
<bindingFiles>
<bindingFile>${basedir}/src/main/resources/defaultBinding.xml</bindingFile>
</bindingFiles>
<extraargs>
<extraarg>-verbose</extraarg>
<extraarg>-impl</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
{code}
With this configuration, you may see there's actually something wrong in your jaxb binding files.
Freeman
> IllegalStateException Deploying CXF-SE Service Unit with JAX-WS Binding Files
> -----------------------------------------------------------------------------
>
> Key: SMXCOMP-790
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-790
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-cxf-se
> Affects Versions: servicemix-cxf-se-2010.01
> Environment: Linux x86_64
> java version "1.6.0_21"
> Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
> Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
> xjc version "JAXB 2.1.10 in JDK 6"
> JavaTM Architecture for XML Binding(JAXB) Reference Implementation, (build JAXB 2.1.10 in JDK 6)
> Reporter: Dan Powell
> Assignee: Freeman Fang
> Attachments: generated-sources.diff, jaxb-bindings-test-cxf.tar.gz, jaxb-bindings-test.tar.gz, pom.xml
>
>
> I need to use a binding file to customize the generated classes for my services (specifically generateMixedExtensions). The cxf-codegen-plugin correctly observes the binding file and generates the correct classes, but the cxf-se component throws an IllegalStateException deploying the SU. Without the binding file, my service deploys properly.
> If I specify version jaxb-xjc and jaxb-impl version 2.1.3 as plugin dependencies for the cxf-codegen-plugin then it deploys. I've tried building a servicemix-cxf-bc based on the 2010.01 tag but with 2.2.1.1 XJC but still get the same IllegalStateException.
> The service also starts correctly with the binding file on standalone CXF version 2.2.9.
> Information on this specific binding customization, if relevant, can be found at http://blogs.sun.com/mgrebac/entry/handling_extended_mixed_content_in.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.