[ 
https://issues.apache.org/activemq/browse/SMXCOMP-790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61541#action_61541
 ] 

Freeman Fang commented on SMXCOMP-790:
--------------------------------------

Hi,

I get something new. 
Your testcase for cxf standalone actually build servicemodel from wsdl(but in 
smx actually it will build servicemodel from class), when you run it with mvn 
-Pserver, you can see a log like
Aug 31, 2010 5:20:00 PM 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
In this case, it works well(I guess your extra binding file get picked up in 
this case)

You generated impl class automatically which has wsdlLocation annotation, so in 
standalone cxf it will build servicemodel from wsdl.
I will append the testcase I modified a little bit which intend to build 
servicemodel from class(same as we do in smx), you can see the same problem in 
SMX, when you run with mvn -Pserver you will see error like
[INFO] An exception occured while executing the Java class. null

start tag has already been written


So now we get same behavior for both smx and cxf side, with extra jaxb binding 
files, we get error when build servicemodel from class. Currently I'm not sure 
this is a real cxf side issue or there's something wrong in your binding 
files(or the way you didn't specify binding file correctly), you may need post 
questions on cxf maillinglist, where I believe you can get more help.

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.

Reply via email to