Websocket protocol not supported

UI Components for JSF
Post Reply
fiyaka16
Posts: 3
Joined: 17 Feb 2015, 21:19

23 May 2016, 13:10

13:52:29,319 WARN [org.atmosphere.cpr.AsynchronousProcessor] (http-localhost-127.0.0.1-8088-1) Websocket protocol not supported

What could be the reason for this warning ?


Primefaces Version : 5.3
Server : jboss-as-7.1.1.Final
Eclipse : Luna Service Release 2 (4.4.2)
atmosphere-runtime : 2.4.2
jboss-as-websockets : 0.5

Pom.xml

Code: Select all

				<dependency>
				    <groupId>org.atmosphere</groupId>
				    <artifactId>atmosphere-runtime</artifactId>
				    <version>2.4.2</version>
				</dependency>
			    <dependency>
			        <groupId>org.atmosphere.jboss.as</groupId>
			        <artifactId>jboss-as-websockets</artifactId>
			        <version>0.5</version>
			    </dependency>

standalone.xml

Code: Select all

 
  <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="true">
            <configuration>
                <jsp-configuration development="true"/>
            </configuration>
            <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
            <virtual-server name="default-host" enable-welcome-root="true">
                <alias name="localhost"/>
                <alias name="example.com"/>
            </virtual-server>
        </subsystem>
web.xml

Code: Select all

	<context-param>
		<param-name>primefaces.PUSH_SERVER_URL</param-name>
		<param-value>http://127.0.0.1:8088</param-value>
	</context-param>
	<servlet>
		<servlet-name>Push Servlet</servlet-name>
		<servlet-class>org.primefaces.push.PushServlet</servlet-class>
		
		 <init-param>
            <param-name>org.atmosphere.cpr.EndpointMapper</param-name>
            <param-value>org.primefaces.push.impl.PushEndpointMapper</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.cpr.asyncSupport</param-name>
            <param-value>org.atmosphere.container.BlockingIOCometSupport</param-value>
        </init-param>
        
		<init-param>
            <param-name>org.atmosphere.cpr.broadcasterCacheClass</param-name>
            <param-value>org.atmosphere.cache.UUIDBroadcasterCache</param-value>
        </init-param>
		<init-param>
			<param-name>org.atmosphere.useWebSocket</param-name>
			<param-value>false</param-value>
		</init-param>
		<init-param>
			<param-name>org.atmosphere.cpr.sessionSupport</param-name>
			<param-value>true</param-value>
		</init-param>
		<init-param>
			<param-name>org.atmosphere.useNative</param-name>
			<param-value>true</param-value>
		</init-param>
		<init-param>
			<param-name>org.atmosphere.resumeOnBroadcast</param-name>
			<param-value>true</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
		<async-supported>true</async-supported>
	</servlet>
	<listener>
	    <listener-class>org.atmosphere.cpr.SessionSupport</listener-class>
	</listener>
	<listener>
	     <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
	</listener>
	<context-param>
	    <param-name>org.atmosphere.cpr.sessionSupport</param-name>
	    <param-value>true</param-value>
	</context-param>
	<servlet-mapping>
		<servlet-name>Push Servlet</servlet-name>
		<url-pattern>/primepush/*</url-pattern>
	</servlet-mapping>

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

07 Sep 2016, 16:31

Check to see if your server does support WebSocket. If not then this is the reason for the warning.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now

JefferyJame
Posts: 1
Joined: 15 Apr 2019, 20:02
Contact:

15 Apr 2019, 20:07

fiyakas wrote:
06 Mar 2434, 03:23
13:52:29,319 WARN [org.atmosphere.cpr.AsynchronousProcessor] (http-localhost-127.0.0.1-8088-1) Websocket protocol not supported

What could be the reason for this warning ?


Primefaces Version : 5.3
Server : jboss-as-7.1.1.Final
Eclipse : Luna Service Release 2 (4.4.2)
atmosphere-runtime : 2.4.2
jboss-as-websockets : 0.5
web sockets causes the following error in the error log and push stops working.

NOTiFY
Posts: 393
Joined: 25 May 2016, 22:57

16 Apr 2019, 14:33

I've successfully used a 'push' with PrimeFaces 6.2.x and JBoss WildFly 10.x using the OmniFaces 2.6.8.

I would recommend if you can, upgrading to JBoss WildFly 16, you're nine versions behind and also PrimeFaces to 7. I'm currently using OmniFaces 3,2.

http://showcase.omnifaces.org/push-test

http://showcase.omnifaces.org/push/socket
PF 13.0.0--Jakarta. Jakarta Faces 4.0.1/Kotlin Multiplatform 1.9.10
Mojarra 4.0.2, OmniFaces 4.2
WildFly 29.0.1.Final 'preview' Jakarta EE 10.0.0
JDK 20.0.2, Kotlin 1.9.10, Gradle 8.3 Groovy DSL, MongoDB 7.0.0
IntelliJ IDEA 2023.2.1, macOS Ventura 13.5.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 37 guests