axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From M K <mk_85...@yahoo.com>
Subject how to deploy customize wsdl
Date Wed, 17 Oct 2007 19:17:21 GMT
Hello,

I get the following exception when I run the AddressBookService client example from axis2
1.3 deployed in JBOSS 4.0.5:
**********************************************************************
adb.client.run:
     [java] org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected
subelement city
     [java]     at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
     [java]     at sample.addressbook.stub.AddressBookServiceStub.fromOM(Unknown  Source)
     [java]     at sample.addressbook.stub.AddressBookServiceStub.findEntry(Unknown Source)
     [java]     at sample.addressbook.adbclient.AddressBookADBClient.main(Unknown Source)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
     [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)

     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:357)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
     [java]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
     [java]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
     [java]     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:357)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
     [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1298)

     [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:698)
     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:199)
     [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
     [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
     [java] Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected
subelement city
     [java]     at sample.addressbook.stub.AddressBookServiceStub$Entry$Factory.parse(Unknown
Source)
     [java]     at sample.addressbook.stub.AddressBookServiceStub$FindEntryResponse$Factory.parse(Unknown
Source)
     [java]     ... 42 more
     [java] Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement city
     [java]     ... 44 more

BUILD SUCCESSFUL
Total time: 11 seconds
**********************************************************************

What I had done different is this:
1. First, I deploy the service as is
2. I would save a local copy of the wsdl file by going to my service - http://localhost:8080/axis2/services/AddressBookService?wsdl
3. I would include the wsdl file along with my services.xml file and redploy the same example.
When I execute the "ant adb.client -Dwsdl=http://localhost:8080/axis2/services/AddressBookService?wsdl"
as suggested by the README file in the, I get the exception shown above. Am I missing something?
Can I not deploy the axis-generated WSDL in my .aar file?

I have been struggling with this for about couple of week now. Any help or pointers would
be greatly appreciated.

Thanks,
-- MK



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Mime
View raw message