googlespellcheck sample fails to compile
----------------------------------------

                 Key: AXIS2-1813
                 URL: http://issues.apache.org/jira/browse/AXIS2-1813
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: samples
    Affects Versions: 1.1
            Reporter: Samisa Abeysinghe


I ran ant in samples/googlespellcheck as the README.txt told me to.
However I got a compilation error:

samples/googlespellcheck]$ ant
Buildfile: build.xml

clean:
   [delete] DEPRECATED - Use of the implicit FileSet is deprecated.  Use a 
nested fileset element instead.

prepare:
    [mkdir] Created dir: 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/build
    [mkdir] Created dir: 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/build/classes
    [mkdir] Created dir: 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/build/lib

run.client:

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: 
faultCode=INVALID_WSDL: IO Error: java.net.ConnectException: Connection refused
     [java]     at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:273)
     [java]     at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:97)
     [java]     ... 32 more
     [java] Caused by: java.net.ConnectException: Connection refused
     [java]     at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
     [java]     at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
     [java]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
     [java]     at java.net.Socket.connect(Socket.java:507)
     [java]     at java.net.Socket.connect(Socket.java:457)
     [java]     at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
     [java]     at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
     [java]     at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
     [java]     at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
     [java]     at sun.net.www.http.HttpClient.New(HttpClient.java:287)
     [java]     at sun.net.www.http.HttpClient.New(HttpClient.java:299)
     [java]     at 
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
     [java]     at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
     [java]     at 
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
     [java]     at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
     [java]     at 
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
     [java]     at 
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
     [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
     [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
     [java]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     [java]     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
     [java]     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown 
Source)
     [java]     at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:191)
     [java]     at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:236)
     [java]     at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:219)
     [java]     at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:262)
     [java]     ... 33 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: 
faultCode=INVALID_WSDL: IO Error: java.net.ConnectException: Connection refused
     [java]     at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:273)
     [java]     at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:97)
     [java]     ... 32 more
     [java] Caused by: java.net.ConnectException: Connection refused
     [java]     at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
     [java]     at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
     [java]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
     [java]     at java.net.Socket.connect(Socket.java:507)
     [java]     at java.net.Socket.connect(Socket.java:457)
     [java]     at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
     [java]     at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
     [java]     at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
     [java]     at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
     [java]     at sun.net.www.http.HttpClient.New(HttpClient.java:287)
     [java]     at sun.net.www.http.HttpClient.New(HttpClient.java:299)
     [java]     at 
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
     [java]     at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
     [java]     at 
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
     [java]     at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
     [java]     at 
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
     [java]     at 
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
     [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
     [java]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
     [java]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     [java]     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
     [java]     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown 
Source)
     [java]     at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:191)
     [java]     at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:236)
     [java]     at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:219)
     [java]     at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:262)
     [java]     ... 33 more

client.compile:
    [javac] Compiling 6 source files to 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/build/classes
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/FormModel.java:19:
 package sample.spellcheck.stub does not exist
    [javac] import sample.spellcheck.stub.SimplifiedSpellCheckStub;
    [javac]                               ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/FormModel.java:20:
 package sample.spellcheck.stub.SimplifiedSpellCheckStub does not exist
    [javac] import 
sample.spellcheck.stub.SimplifiedSpellCheckStub.DoSpellingSuggestions;
    [javac]                                                        ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/FormModel.java:21:
 package sample.spellcheck.stub.SimplifiedSpellCheckStub does not exist
    [javac] import 
sample.spellcheck.stub.SimplifiedSpellCheckStub.DoSpellingSuggestionsResponse;
    [javac]                                                        ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/SimplifiedSpellCheckCallbackHandlerImpl.java:3:
 package sample.spellcheck.stub does not exist
    [javac] import sample.spellcheck.stub.SimplifiedSpellCheckCallbackHandler;
    [javac]                               ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/SimplifiedSpellCheckCallbackHandlerImpl.java:4:
 package sample.spellcheck.stub.SimplifiedSpellCheckStub does not exist
    [javac] import 
sample.spellcheck.stub.SimplifiedSpellCheckStub.DoSpellingSuggestionsResponse;
    [javac]                                                        ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/SimplifiedSpellCheckCallbackHandlerImpl.java:22:
 cannot find symbol
    [javac] symbol: class SimplifiedSpellCheckCallbackHandler
    [javac] public class SimplifiedSpellCheckCallbackHandlerImpl extends 
SimplifiedSpellCheckCallbackHandler {
    [javac]                                                              ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/SimplifiedSpellCheckCallbackHandlerImpl.java:32:
 cannot find symbol
    [javac] symbol  : class DoSpellingSuggestionsResponse
    [javac] location: class 
sample.spellcheck.editor.SimplifiedSpellCheckCallbackHandlerImpl
    [javac]     public void 
receiveResultdoSpellingSuggestions(DoSpellingSuggestionsResponse param1) {
    [javac]                                                    ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/FormModel.java:38:
 cannot find symbol
    [javac] symbol  : class SimplifiedSpellCheckStub
    [javac] location: class sample.spellcheck.editor.FormModel
    [javac]             SimplifiedSpellCheckStub stub = new 
SimplifiedSpellCheckStub();
    [javac]             ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/FormModel.java:38:
 cannot find symbol
    [javac] symbol  : class SimplifiedSpellCheckStub
    [javac] location: class sample.spellcheck.editor.FormModel
    [javac]             SimplifiedSpellCheckStub stub = new 
SimplifiedSpellCheckStub();
    [javac]                                                 ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/FormModel.java:40:
 cannot find symbol
    [javac] symbol  : class DoSpellingSuggestions
    [javac] location: class sample.spellcheck.editor.FormModel
    [javac]             DoSpellingSuggestions doSpellingSuggestions = new 
DoSpellingSuggestions();
    [javac]             ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/FormModel.java:40:
 cannot find symbol
    [javac] symbol  : class DoSpellingSuggestions
    [javac] location: class sample.spellcheck.editor.FormModel
    [javac]             DoSpellingSuggestions doSpellingSuggestions = new 
DoSpellingSuggestions();
    [javac]                                                               ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/FormModel.java:55:
 cannot find symbol
    [javac] symbol  : class SimplifiedSpellCheckStub
    [javac] location: class sample.spellcheck.editor.FormModel
    [javac]             SimplifiedSpellCheckStub stub = new 
SimplifiedSpellCheckStub();
    [javac]             ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/FormModel.java:55:
 cannot find symbol
    [javac] symbol  : class SimplifiedSpellCheckStub
    [javac] location: class sample.spellcheck.editor.FormModel
    [javac]             SimplifiedSpellCheckStub stub = new 
SimplifiedSpellCheckStub();
    [javac]                                                 ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/FormModel.java:57:
 cannot find symbol
    [javac] symbol  : class DoSpellingSuggestions
    [javac] location: class sample.spellcheck.editor.FormModel
    [javac]             DoSpellingSuggestions suggestions = new 
DoSpellingSuggestions();
    [javac]             ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/FormModel.java:57:
 cannot find symbol
    [javac] symbol  : class DoSpellingSuggestions
    [javac] location: class sample.spellcheck.editor.FormModel
    [javac]             DoSpellingSuggestions suggestions = new 
DoSpellingSuggestions();
    [javac]                                                     ^
    [javac] 
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/src/sample/spellcheck/editor/FormModel.java:60:
 cannot find symbol
    [javac] symbol  : class DoSpellingSuggestionsResponse
    [javac] location: class sample.spellcheck.editor.FormModel
    [javac]             DoSpellingSuggestionsResponse response = 
stub.doSpellingSuggestions(suggestions);
    [javac]             ^
    [javac] 16 errors

BUILD FAILED
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/build.xml:51: The 
following error occurred while executing this line:
/home/samisa/downloads/axis2-1.1/samples/googlespellcheck/build.xml:75: Compile 
failed; see the compiler error output for details.


-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to