Comments (8)
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.
i'm have the same error in my maven application using atmophere jquery idon't know why.
from atmosphere-samples.
OK tested with 2.3.0 and every things works as expected. Please let me know if you still have issue.
from atmosphere-samples.
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.
Did you solve your problem? I seem to have the same problem as you had.
from atmosphere-samples.
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.
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.
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)
- in 2 minutes
- JSR-356 support unavailable HOT 1
- two socket events arrive with 1sec difference ignores first event and process second event in angular. HOT 1
- chat sample doesnt work HOT 2
- Long-polling: Broadcast to resource in quick succession - resource cannot be acquired
- Long-polling: Broadcast to resource in quick succession - resource cannot be acquired
- Runtime injection sample is missed
- Chat sample description regarding fallbacks is wrong
- SockJS sample does not use SockJsAtmosphereInterceptor
- How to access raw binary in websocket
- Unable to configure jsr356 at that stage. ServerContainer is null
- Samples point to Atmosphere 2.5.0-SNAPSHOT
- nettosphere-samples/jersey-chat gives wrong build instructions, and doesn't work
- Gwt 2.7 with Atmosphere
- Build error on osx el capitan
- Nettosphere socketio-chat fails to run
- XML Parsing Error: no root element found Location HOT 2
- Dev mode for gwt20-json sample not working when using gwt 2.8.2 HOT 1
- jersey2-chat example 400 Bad-Request with long-polling
- cannot create private chat service
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atmosphere-samples.