Hi all,

I'm trying to create a web service using jibx as the databinding, but having
some problems, here is what I do

1. Compile the classes from web service schema

java -cp ~/jibx/lib/jibx-tools.jar org.jibx.schema.codegen.CodeGen -w
EchoSchema.xsd

2.  Compile the classes then made in 1

3. Bind the classes like this,

 java -jar ~/jibx/lib/jibx-bind.jar binding.xml

4. Create a jar with all the class files, and the binding factory classes

5. create the web service skeleton using wsdl2java

 wsdl2java.sh -uri EchoService.wsdl -d jibx -sd -ss -g -Ebindingfile
../schema/binding.xml

Then I implement the service and deploy it, but when I calling the service I
always get this error

[ERROR] Unable to access binding 'binding'
Make sure classes generated by the binding compiler are available at runtime
org.apache.axis2.AxisFault: Unable to access binding 'binding'

I tried putting the jar made in step 4, inside the aar file and also inside
axis2/WEB-INF/lib but nothing seems to work. Does anyone have any tips??

My environment is

axis2-1.5.1
tomcat 6.0.18
jibx 1.2.1



cheers, Håkon

Reply via email to