Hi Serkan,

Because of changes in some of the JiBX APIs the 1.2 code is not 
compatible with Axis2 at present. I need to modify the Axis2 JiBX hooks 
to make this work, which I plan to get done before the end of the month. 
I'll see if I can move that date up if it'll help.

  - 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 all,
> We want to use the precompiled binding feature of jibx 1.2 with Axis2. 
> However, when we try to run wsdl2java with the following command (when 
> JiBX 1.2 beta 1 and Axis2 1.4.1 are on the classpath):
>
> java org.apache.axis2.wsdl.WSDL2Java -ss -sd -uw -ssi -d jibx -o 
> generated/ -p ws.server -Ebindingfile binding/binding.xml -uri 
> wsdl/mywsdl.wsdl
>
> we get the following exception:
>
> 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.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
>
> is there a quick fix for this? We are trying to make a proof of concept 
> webservice application using the precompiled binding feature.
>
> Best regards,
>
> SerkanC
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>   

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to