axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eran Chinthaka (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-1593) POJO Sample does not work with ADB
Date Fri, 03 Nov 2006 08:22:16 GMT
POJO Sample does not work with ADB
----------------------------------

                 Key: AXIS2-1593
                 URL: http://issues.apache.org/jira/browse/AXIS2-1593
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: samples
            Reporter: Eran Chinthaka
         Assigned To: Sanka Samaranayake
            Priority: Critical


I tested POJO sample with RPC client and it is working fine.

But when I tested it with ADB, as described in the README.txt of the sample, I got an error.
Here is the complete trace for your information.

aragorn@extreme:/more/Axis2-Release/axis2-1.1-RC2/samples/pojo$ ant adb.client -Dwsdl=http://localhost:8080/axis2/services/AdressBookService?wsdl
Buildfile: build.xml

check-parameters:

print-usage:

adb.client:

clean:
   [delete] Deleting directory /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/build
   [delete] DEPRECATED - Use of the implicit FileSet is deprecated.  Use a nested fileset
element instead.

prepare:
    [mkdir] Created dir: /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/build
    [mkdir] Created dir: /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/build/classes
    [mkdir] Created dir: /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/build/lib
    [mkdir] Created dir: /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/build/classes/META-INF

adb.client.codegen-stub:
     [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
     [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
     [java]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
     [java]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
     [java]     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
     [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
     [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
     [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
     [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
     [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
     [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:114)
     [java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
     [java]     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
     [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:585)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
     [java]     ... 24 more
     [java] Caused by: javax.wsdl.WSDLException: WSDLException (at /html): faultCode=INVALID_WSDL:
Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'.
     [java]     at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown Source)
     [java]     at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
     [java]     at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
     [java]     at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
     [java]     at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
     [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:276)
     [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:97)
     [java]     ... 32 more
     [java] --- Nested Exception ---
     [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
     [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:114)
     [java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
     [java]     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
     [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:585)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
     [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
     [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
     [java]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
     [java]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
     [java]     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
     [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
     [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
     [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
     [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
     [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
     [java]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
     [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
     [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
     [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
     [java] Caused by: javax.wsdl.WSDLException: WSDLException (at /html): faultCode=INVALID_WSDL:
Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'.
     [java]     at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown Source)
     [java]     at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
     [java]     at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
     [java]     at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
     [java]     at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
     [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:276)
     [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:97)
     [java]     ... 32 more

adb.client.compile:
    [javac] Compiling 1 source file to /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/build/classes
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:18:
package sample.addressbook.stub does not exist
    [javac] import sample.addressbook.stub.AddressBookServiceStub;
    [javac]                                ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:19:
package sample.addressbook.stub.AddressBookServiceStub does not exist
    [javac] import sample.addressbook.stub.AddressBookServiceStub.AddEntry;
    [javac]                                                       ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:20:
package sample.addressbook.stub.AddressBookServiceStub does not exist
    [javac] import sample.addressbook.stub.AddressBookServiceStub.Entry;
    [javac]                                                       ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:21:
package sample.addressbook.stub.AddressBookServiceStub does not exist
    [javac] import sample.addressbook.stub.AddressBookServiceStub.FindEntry;
    [javac]                                                       ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:22:
package sample.addressbook.stub.AddressBookServiceStub does not exist
    [javac] import sample.addressbook.stub.AddressBookServiceStub.FindEntryResponse;
    [javac]                                                       ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:32:
cannot find symbol
    [javac] symbol  : class AddressBookServiceStub
    [javac] location: class sample.addressbook.adbclient.AddressBookADBClient
    [javac]             AddressBookServiceStub stub;
    [javac]             ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:35:
cannot find symbol
    [javac] symbol  : class AddressBookServiceStub
    [javac] location: class sample.addressbook.adbclient.AddressBookADBClient
    [javac]                 stub = new AddressBookServiceStub(args[0]);
    [javac]                            ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:38:
cannot find symbol
    [javac] symbol  : class AddressBookServiceStub
    [javac] location: class sample.addressbook.adbclient.AddressBookADBClient
    [javac]                 stub = new AddressBookServiceStub(URL);
    [javac]                            ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:41:
cannot find symbol
    [javac] symbol  : class AddEntry
    [javac] location: class sample.addressbook.adbclient.AddressBookADBClient
    [javac]             AddEntry addEntry = new AddEntry();
    [javac]             ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:41:
cannot find symbol
    [javac] symbol  : class AddEntry
    [javac] location: class sample.addressbook.adbclient.AddressBookADBClient
    [javac]             AddEntry addEntry = new AddEntry();
    [javac]                                     ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:42:
cannot find symbol
    [javac] symbol  : class Entry
    [javac] location: class sample.addressbook.adbclient.AddressBookADBClient
    [javac]             Entry entry = new Entry();
    [javac]             ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:42:
cannot find symbol
    [javac] symbol  : class Entry
    [javac] location: class sample.addressbook.adbclient.AddressBookADBClient
    [javac]             Entry entry = new Entry();
    [javac]                               ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:53:
cannot find symbol
    [javac] symbol  : class FindEntry
    [javac] location: class sample.addressbook.adbclient.AddressBookADBClient
    [javac]             FindEntry findEntry = new FindEntry();
    [javac]             ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:53:
cannot find symbol
    [javac] symbol  : class FindEntry
    [javac] location: class sample.addressbook.adbclient.AddressBookADBClient
    [javac]             FindEntry findEntry = new FindEntry();
    [javac]                                       ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:57:
cannot find symbol
    [javac] symbol  : class FindEntryResponse
    [javac] location: class sample.addressbook.adbclient.AddressBookADBClient
    [javac]             FindEntryResponse response = stub.findEntry(findEntry);
    [javac]             ^
    [javac] /more/Axis2-Release/axis2-1.1-RC2/samples/pojo/src/sample/addressbook/adbclient/AddressBookADBClient.java:58:
cannot find symbol
    [javac] symbol  : class Entry
    [javac] location: class sample.addressbook.adbclient.AddressBookADBClient
    [javac]             Entry responseEntry = response.get_return();
    [javac]             ^
    [javac] 16 errors

BUILD FAILED
/more/Axis2-Release/axis2-1.1-RC2/samples/pojo/build.xml:111: The following error occurred
while executing this line:
/more/Axis2-Release/axis2-1.1-RC2/samples/pojo/build.xml:133: Compile failed; see the compiler
error output for details.

Total time: 3 seconds
aragorn@extreme:/more/Axis2-Release/axis2-1.1-RC2/samples/pojo$


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message