Ah, I didn't think to try the Axis2 code with a precompiled binding. 
I'll fix this and issue a new Axis2 update over the weekend.

Thanks,

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Serkan Camurcuoglu wrote:
> Hi Dennis,
> Sorry for the late response. Even if I use the 
> axis2-jibx-1.4-SNAPSHOT.jar and the latest jibx_1_2_1 release, I still get:
>
> Exception in thread "main" 
> org.apache.axis2.wsdl.codegen.CodeGenerationException: Non emitter class 
> found!
>         at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:269)
>         at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>         at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: java.lang.ClassCastException: 
> org.jibx.binding.model.PrecompiledMappingElement
>         at 
> org.apache.axis2.jibx.CodeGenerationUtility.collectTopLevelComponents(CodeGenerationUtility.java:1090)
>         at 
> org.apache.axis2.jibx.CodeGenerationUtility.collectTopLevelComponents(CodeGenerationUtility.java:1077)
>         at 
> org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility.java:314)
>         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:585)
>         at 
> org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtension.java:77)
>         at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
>         ... 2 more
>
> As far as I understand it's trying to cast an instance of 
> PrecompiledMappingElement to MappingElement but 
> PrecompiledMappingElement extends MappingElementBase instead of 
> MappingElement. I'm not sure whether this problem is caused by my setup 
> (or binding) or if it's a bug, and I hope you can clarify it :)
>
> Best regards,
>
> SerkanC
>
>
>
>
>
> Dennis Sosnoski wrote:
>   
>> Hi Serkan,
>>
>> The changes in JiBX 1.2 broke the old Axis2 code. I've added a new 
>> "jibx-axis2" package to the Sourceforge download page, with a 
>> update-axis2-1.4.X.zip download which will update an Axis2 installation 
>> to work with the latest JiBX code. Give that a try, and please respond 
>> on the list when you've tried it out.
>>
>>   - Dennis
>>
>> Dennis M. Sosnoski
>> SOA and Web Services in Java
>> Training and Consulting
>> http://www.sosnoski.com - http://www.sosnoski.co.nz
>> Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
>>
>>
>>
>> Serkan Camurcuoglu wrote:
>>   
>>     
>>> Hi Dennis,
>>> Congratulations for the 1.2 release, it was really on time. What do we 
>>> have to do to use axis2 code generation for the new release? I couldn't 
>>> find nightly builds or maven snapshots for axis2java. Will it work if I 
>>> use existing Axis2Java 1.4.1 release?
>>>
>>> Regards,
>>>
>>> SerkanC
>>>
>>>
>>>
>>>
>>> Dennis Sosnoski wrote:
>>>   
>>>     
>>>       
>>>> I've released JiBX 1.2, which provides major new features:
>>>>
>>>>     * Improved binding and schema generation from code, including
>>>>       extensive customization support
>>>>     * Improved code and binding generation from schema, again with
>>>>       extensive customization support
>>>>     * Modular binding compiles, where bindings can use other bindings
>>>>       without needing to be compiled at the same time
>>>>
>>>> There's also a host of other, less dramatic, changes.
>>>>
>>>> You can learn more about the new binding and schema generation from code 
>>>> from this IBM developerWorks tutorial: 
>>>> http://www.ibm.com/developerworks/java/tutorials/j-jibx1/ The companion 
>>>> tutorial, at http://www.ibm.com/developerworks/java/tutorials/j-jibx2/ 
>>>> covers the code and binding generation from schema.
>>>>
>>>> The documentation is still lacking in some areas, and there are also 
>>>> bugs from 1.1.6 that need to be fixed, so expect a 1.2.1 release before 
>>>> the end of the month. I'll also try to take care of any major issues 
>>>> people experience with the new features in the 1.2.1 release.
>>>>
>>>> My thanks to the users who've taken the time to sign up for Ohloh and 
>>>> add JiBX to their open source stacks: http://www.ohloh.net/projects/jibx 
>>>> If you haven't done this yet, please take a few minutes to do so. It'll 
>>>> help raise JiBX's profile and encourage me and the other developers 
>>>> involved in the project. Of course, if you don't want to do that you can 
>>>> always just send money instead... :-)
>>>>
>>>> Cheers,
>>>>
>>>>   - Dennis
>>>>
>>>>   
>>>>     
>>>>       
>>>>         
>>> ------------------------------------------------------------------------------
>>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
>>> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
>>> -Strategies to boost innovation and cut costs with open source participation
>>> -Receive a $600 discount off the registration fee with the source code: SFAD
>>> http://p.sf.net/sfu/XcvMzF8H
>>> _______________________________________________
>>> jibx-users mailing list
>>> jibx-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jibx-users
>>>
>>>   
>>>     
>>>       
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
>> -Strategies to boost innovation and cut costs with open source participation
>> -Receive a $600 discount off the registration fee with the source code: SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> jibx-users mailing list
>> jibx-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jibx-users
>>   
>>     
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>   

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to