Yup, the webclient hosted by the webserver works just fine.
I wanted a go at making my own customized client though.
It seemed, from a quick glance of the code, pretty trival to change
where the client looks for the server so that was the only change I
made. (just changing a dynamically made string by
"getWebSocketBaseUrl" to a hard-coded one for now).
I think that part is correct, as the server is getting the requests,
they are just formated badly....which I assume is due to the other
compile errors.
I do get the permutations.
The full compile log at the moment is;
===============================================================
Compiling module org.waveprotocol.wave.examples.client.webclient.WebClient
Validating newly compiled units
[WARN] Warnings in
'jar:file:/C:/TomsProjects/SimpleWaveMapClient/tomswaveserverthing/third_party/runtime/wave-libraries/client-src.jar!/org/waveprotocol/wave/client/common/util/IntMapJsoView.java'
[WARN] Line 111: Referencing deprecated class
'org.waveprotocol.wave.client.common.util.IntMapJsoView'
[WARN] Line 114: Referencing deprecated class
'org.waveprotocol.wave.client.common.util.IntMapJsoView'
[WARN] Line 118: Referencing deprecated class
'org.waveprotocol.wave.client.common.util.IntMapJsoView'
[WARN] Line 121: Referencing deprecated class
'org.waveprotocol.wave.client.common.util.IntMapJsoView'
[WARN] Line 144: Referencing deprecated class
'org.waveprotocol.wave.client.common.util.IntMapJsoView'
[WARN] Line 153: Referencing deprecated class
'org.waveprotocol.wave.client.common.util.IntMapJsoView'
[WARN] Line 165: Referencing deprecated class
'org.waveprotocol.wave.client.common.util.IntMapJsoView'
[WARN] Line 176: Referencing deprecated class
'org.waveprotocol.wave.client.common.util.IntMapJsoView'
[WARN] Line 201: Referencing deprecated class
'org.waveprotocol.wave.client.common.util.IntMapJsoView'
[WARN] Line 231: Referencing deprecated class
'org.waveprotocol.wave.client.common.util.IntMapJsoView'
[ERROR] Errors in
'jar:file:/C:/TomsProjects/SimpleWaveMapClient/tomswaveserverthing/third_party/runtime/wave-libraries/common-src.jar!/org/waveprotocol/wave/common/util/JavaWaverefEncoder.java'
[ERROR] Line 43: No source code is available for type
java.net.URLDecoder; did you forget to inherit a required module?
[ERROR] Errors in
'jar:file:/C:/TomsProjects/SimpleWaveMapClient/tomswaveserverthing/third_party/runtime/wave-libraries/model-src.jar!/org/waveprotocol/wave/model/schema/impl/UserDataSchemas.java'
[ERROR] Line 65: No source code is available for type
org.waveprotocol.wave.model.supplement.WaveletBasedSupplement; did you
forget to inherit a required module?
[ERROR] Line 209: No source code is available for type
org.waveprotocol.wave.model.supplement.DocumentBasedAbuseStore<N,E>;
did you forget to inherit a required module?
Compiling 3 permutations
Compiling permutation 0...
Compiling permutation 1...
Compiling permutation 2...
Compile of permutations succeeded
Linking into C:\TomsProjects\SimpleWaveMapClient\war\webclient
Link succeeded
Compilation succeeded -- 209.375s
===============================================================
I'm compiling this by right clicking on WebClient.xml and going
"Compile GWT Application" in eclipse.
Strangely though, this is all from a version I checked out after
Friday, so it should have had your fix already in it.
Thanks,
Thomas
On 27 September 2010 03:53, Joseph Gentle <[email protected]> wrote:
> If you're running the server on another machine, just run:
> ant compile_gwt
> on the server and then when you ./run-server.sh it'll also host the
> web frontend as well. (Usually at http://hostname:9898/)
>
> The web frontend isn't designed to let you connect to arbitrary wave
> servers, it assumes you're connecting to the machine that is hosting
> the page.
>
> As for windows builds, all that looks troubling. I put in a change to
> fix the JavaWaverefEncoder error last friday. Do those errors just
> crop up when you're building? Does it go on to say:
> [java] Compiling 3 permutations
> [java] Compiling permutation 0...
> [java] Compiling permutation 1...
> ... etc?
>
> We really need to clean up our windows build bits. I think its a bit
> painful at the moment. (Or at the very least, write some docs which
> explain how to do it)
>
> -J
>
>
> On Mon, Sep 27, 2010 at 6:00 AM, ThomasWrobel <[email protected]> wrote:
>> I'm trying to compile the simple web client using eclipse.
>> I have a working wave server on another pc already, so I'm merely
>> trying to compile a client and connect to it.
>>
>> I got the web client from here;
>> http://code.google.com/p/wave-protocol/source/browse?repo=default#hg/src/org/waveprotocol/wave/examples/client/webclient
>>
>> And imported it into eclipse.
>> At first I got a few errors about "String" not being recognized in
>> WebSockets,java, which were fixed by add;
>>
>> <inherits name="com.google.gwt.user.User"/>
>>
>> To some of the module.xmls.
>>
>> I also had to add a startup URL, pointing to copy of the starting
>> page.
>> With this it will compile and load in the browser (chrome) but fails
>> to connect.
>> Giving a "attempting to reconnect" error every few seconds.
>> (on the server end these are producing parser errors)
>>
>> Looking at the compile logs I got;
>>
>> 21:17:03.468 [ERROR] [webclient] Errors in 'jar:file:/C:/TomsProjects/
>> SimpleWaveMapClient/tomswaveserverthing/third_party/runtime/wave-
>> libraries/common-src.jar!/org/waveprotocol/wave/common/util/
>> JavaWaverefEncoder.java'
>>
>> 21:17:03.484 [ERROR] [webclient] Line 20: The import java.net cannot
>> be resolved
>>
>> 21:17:03.546 [ERROR] [webclient] Line 43: URLDecoder cannot be
>> resolved
>>
>> and
>>
>> 21:17:03.718 [ERROR] [webclient] Errors in 'jar:file:/C:/TomsProjects/
>> SimpleWaveMapClient/tomswaveserverthing/third_party/runtime/wave-
>> libraries/model-src.jar!/org/waveprotocol/wave/model/schema/impl/
>> UserDataSchemas.java'
>>
>> 21:17:03.734 [ERROR] [webclient] Line 65: No source code is available
>> for type
>> org.waveprotocol.wave.model.supplement.WaveletBasedSupplement; did you
>> forget to inherit a required module?
>>
>> 21:17:03.750 [ERROR] [webclient] Line 209: No source code is available
>> for type
>> org.waveprotocol.wave.model.supplement.DocumentBasedAbuseStore<N,E>;
>> did you forget to inherit a required module?
>>
>>
>> errors.
>> I read around the group and it seems some errors are expected when
>> compiling, but I dont think these ones are and the URLDecoder could be
>> the source of my error?
>> any ideas?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Wave Protocol" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/wave-protocol?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Wave Protocol" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/wave-protocol?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Wave
Protocol" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/wave-protocol?hl=en.