GithubHelp home page GithubHelp logo

Comments (8)

TotalFluke avatar TotalFluke commented on September 27, 2024 1

I managed to solve my issue. The javascript for atmosphere was missing from the war directory. I used the following maven dependency...

<dependency>
    <groupId>org.atmosphere.client</groupId>
    <artifactId>javascript</artifactId>
    <version>2.3.1</version>
    <type>war</type>
    <scope>compile</scope>
</dependency>

But this did not actually place the javascript in a place where it could be found by my project. I'm not sure it placed it anywhere at all. This is probably because I'm not using Maven correctly. Instead I had to manually add this javascript to the project.

Also, I needed to manually include the javascript in the html file like so...

    <script type="text/javascript" language="javascript" src="javascript/atmosphere.js"></script>

This fixed the problems described in this thread.

from atmosphere-samples.

isairuiz avatar isairuiz commented on September 27, 2024

i'm have the same error in my maven application using atmophere jquery idon't know why.

from atmosphere-samples.

jfarcand avatar jfarcand commented on September 27, 2024

OK tested with 2.3.0 and every things works as expected. Please let me know if you still have issue.

from atmosphere-samples.

BenDol avatar BenDol commented on September 27, 2024

I am using 2.3.0-GWT27 with 2.3.0 runtime and still having this problem.

            <!-- Atmosphere -->
            <dependency>
                <groupId>org.atmosphere</groupId>
                <artifactId>atmosphere-runtime</artifactId>
                <version>2.3.0</version>
            </dependency>
            <dependency>
                <groupId>org.atmosphere.extensions</groupId>
                <artifactId>atmosphere-gwt20-client</artifactId>
                <version>2.3.0-GWT27</version>
            </dependency>
            <dependency>
                <groupId>org.atmosphere.extensions</groupId>
                <artifactId>atmosphere-gwt20-server</artifactId>
                <version>2.3.0-GWT27</version>
            </dependency>
            <dependency>
                <groupId>org.atmosphere.extensions</groupId>
                <artifactId>atmosphere-gwt20-jackson</artifactId>
                <version>2.3.0-GWT27</version>
            </dependency>

Getting this error:

Sat May 09 11:05:49 GMT+1200 2015 nz.co.doltech.actions.client.Application$PreApplicationImpl
SEVERE: (TypeError) : Cannot read property 'subscribe' of undefinedcom.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'subscribe' of undefined
    at Unknown.wrap_2_g$(Exceptions.java:36)
    at Unknown.$subscribeImpl_0_g$(Atmosphere.java:52)
    at Unknown.$subscribe_0_g$(Atmosphere.java:38)

from atmosphere-samples.

knutmoen avatar knutmoen commented on September 27, 2024

Did you solve your problem? I seem to have the same problem as you had.

from atmosphere-samples.

ternite avatar ternite commented on September 27, 2024

No, I did not. I was trying to learn about Atmosphere and quit doing so after not being able to apply it in my usage scenario. In case you would want to know my alternative: I did not find one. But I admit I was not intensely looking for it, as it was for educational purposes only.
Maybe @BenDol was more lucky?

from atmosphere-samples.

TotalFluke avatar TotalFluke commented on September 27, 2024

I'm also getting this exact same problem, I've tried a range of versions of atmosphere-gwt20-client and it happens in all of them.

Any ideas what else I can try to fix this?

from atmosphere-samples.

masterdany88 avatar masterdany88 commented on September 27, 2024

Thanks @TotalFluke. I had same issue and Your solution helped me to :D
I don't know why maven did not copy javascript directory ino /src/main/webapp.

I had to placed it there manually, ther run Development mode from eclipse.

from atmosphere-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.