WAR file: No Annotated class using @PushEndpoint found

Push Framework with Atmosphere
Post Reply
atruszek
Posts: 11
Joined: 21 Jul 2010, 14:11

21 Sep 2016, 14:32

Hi,

if You use Spring Boot (java -jar myapp.war) or You don't unpack WAR in servlet container (Tomcat: unpackWARs="false") Push aka Atmosphere can't scan / detect @PushEndpoint annotation, because he can't load classes from WAR file.

ERROR - No Annotated class using @PushEndpoint found. Push will not work.

I've tried with all version of Atmosphere...no luck

Maven dependencies:
...
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>5.3</version>
</dependency>

<dependency>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-runtime</artifactId>
<version>2.4.1</version>
</dependency>
...


If You start Primefaces showcase in Tomcat without unpacking war, Push will not work too. Give a try!
PrimeFaces 3.2
Testing on: Tomcat 6, Windows 7 x64, MySQL 5.x

jluismoran
Posts: 1
Joined: 17 Apr 2017, 01:28

17 Apr 2017, 01:44

In my case, it was because an incompatibility between primefaces and atmosphere-runtime versions. The weird thing is that I need different atmosphere-runtime versions in Linux and Windows even if I'm using the same versions of primefaces, wildfly and java in both machines :shock: :shock: :shock: . In example, in Linux my application works with atmosphere-runtime 2.3.1 and in windows I need the 2.4.6 version but in both OS I am using primefaces 6, wildfly 10 and java 8.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest