I'm trying to setup prime-push on my web application, but I'm unable to figure out the correct steps.
I'm using primefaces 3.0.M4-SNAPSHOT on tomcat 6.0.26, under eclipse..
I've modified my server.xml adding the new connector:
Code: Select all
<Connector connectionTimeout="20000" port="6080" protocol="org.apache.coyote.http11.Http11NioProtocol" redirectPort="8443"/>
Code: Select all
<context-param>
<param-name>primefaces.PUSH_SERVER_URL</param-name>
<!-- <param-value>ws://www.primefaces.org:9090/prime-pushserver</param-value> -->
<param-value>ws://localhost:6080</param-value>
</context-param>
<servlet>
<servlet-name>Atmosphere Servlet</servlet-name>
<servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
<init-param>
<param-name>org.atmosphere.useWebSocket</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.cpr.WebSocketProcessor</param-name>
<param-value>org.atmosphere.cpr.HttpServletRequestWebSocketProcessor</param-value>
</init-param>
<init-param>
<param-name>org.atmosphere.cpr.broadcastFilterClasses</param-name>
<param-value>org.atmosphere.client.JavascriptClientFilter</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Atmosphere Servlet</servlet-name>
<url-pattern>/prime-push/*</url-pattern>
</servlet-mapping>
- Oct 24, 2011 2:36:40 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.22.
Oct 24, 2011 2:36:40 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Oct 24, 2011 2:36:40 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:InquisCRMJSF2' did not find a matching property.
Oct 24, 2011 2:36:40 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context/Loader} Setting property 'useSystemClassLoaderAsParent' to 'false' did not find a matching property.
Oct 24, 2011 2:36:41 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Oct 24, 2011 2:36:41 PM org.apache.coyote.http11.Http11NioProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-6080
Oct 24, 2011 2:36:41 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-6009
Oct 24, 2011 2:36:41 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 782 ms
Oct 24, 2011 2:36:41 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 24, 2011 2:36:41 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
Oct 24, 2011 2:36:41 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
Oct 24, 2011 2:36:42 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.1.2 (FCS 20110613) for context '/InquisCRMJSF2'
Oct 24, 2011 2:36:45 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent
INFO: Running on PrimeFaces 3.0.M4-SNAPSHOT
Oct 24, 2011 2:36:45 PM org.richfaces.javascript.ClientServiceConfigParser parse
WARNING: Found JavaScript function definition for class javax.validation.constraints.NotNull, but that class is not presented
Oct 24, 2011 2:36:45 PM org.richfaces.javascript.ClientServiceConfigParser parse
WARNING: Found JavaScript function definition for class org.hibernate.validator.constraints.NotEmpty, but that class is not presented
Oct 24, 2011 2:36:45 PM org.richfaces.javascript.ClientServiceConfigParser parse
WARNING: Found JavaScript function definition for class javax.validation.constraints.Size, but that class is not presented
Oct 24, 2011 2:36:45 PM org.richfaces.javascript.ClientServiceConfigParser parse
WARNING: Found JavaScript function definition for class javax.validation.constraints.Pattern, but that class is not presented
Oct 24, 2011 2:36:45 PM org.richfaces.javascript.ClientServiceConfigParser parse
WARNING: Found JavaScript function definition for class javax.validation.constraints.Min, but that class is not presented
Oct 24, 2011 2:36:45 PM org.richfaces.javascript.ClientServiceConfigParser parse
WARNING: Found JavaScript function definition for class javax.validation.constraints.Max, but that class is not presented
Oct 24, 2011 2:36:45 PM org.richfaces.javascript.ClientServiceConfigParser parse
WARNING: Found JavaScript function definition for class javax.validation.constraints.AssertTrue, but that class is not presented
Oct 24, 2011 2:36:45 PM org.richfaces.javascript.ClientServiceConfigParser parse
WARNING: Found JavaScript function definition for class javax.validation.constraints.AssertFalse, but that class is not presented
Oct 24, 2011 2:36:45 PM org.richfaces.cache.CacheManager getCacheFactory
INFO: Selected fallback cache factory
Oct 24, 2011 2:36:45 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache
INFO: Creating LRUMap cache instance using parameters: {org.apache.myfaces.DETECT_JAVASCRIPT=false, org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS=true, org.apache.myfaces.PRETTY_HTML=true, org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS=false, org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG=true, org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE=false, org.apache.myfaces.VIEWSTATE_JAVASCRIPT=false, org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE=false, org.apache.myfaces.CONFIG_REFRESH_PERIOD=2, org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON=false, org.apache.myfaces.RESOURCE_VIRTUAL_PATH=/faces/myFacesExtensionResource, org.apache.myfaces.ADD_RESOURCE_CLASS=org.apache.myfaces.renderkit.html.util.DefaultAddResource, javax.faces.PROJECT_STAGE=Development, com.sun.faces.enableMissingResourceLibraryDetection=true, org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE=false, org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS=auto, org.richfaces.enableControlSkinningClasses=false, org.apache.myfaces.AUTO_SCROLL=false, javax.faces.FACELETS_REFRESH_PERIOD=2, org.apache.myfaces.ALLOW_JAVASCRIPT=true, org.apache.myfaces.EXPRESSION_FACTORY=org.apache.el.ExpressionFactoryImpl, primefaces.PUSH_SERVER_URL=ws://localhost:6080, org.richfaces.enableControlSkinning=false, org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL=true, javax.servlet.jsp.jstl.fmt.localizationContext=resources.application, org.apache.myfaces.CHECK_EXTENSIONS_FILTER=true, org.apache.myfaces.VALIDATE_XML=false, org.apache.myfaces.STRICT_XHTML_LINKS=true, primefaces.THEME=aristo, javax.faces.STATE_SAVING_METHOD=server, javax.faces.DEFAULT_SUFFIX=.xhtml, org.apache.myfaces.RENDER_VIEWSTATE_ID=true}
Oct 24, 2011 2:36:45 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache
INFO: Creating LRUMap cache instance of 512 items capacity
Oct 24, 2011 2:36:45 PM org.richfaces.application.InitializationListener onStart
INFO: RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.0.0.Final SVN r.22269
Oct 24, 2011 2:36:45 PM com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor$Monitor <init>
INFO: Monitoring jndi:/localhost/InquisCRMJSF2/WEB-INF/faces-config.xml for modifications
14:36:46,008 INFO [AtmosphereServlet] Auto detecting atmosphere handlers in WEB-INF/classes
14:36:46,106 INFO [AtmosphereServlet] Atmosphere is using async support: org.atmosphere.container.TomcatCometSupport running under container: Apache Tomcat/6.0.26
14:36:46,121 INFO [AtmosphereServlet] Installed AtmosphereHandler null mapped to context-path: /*
14:36:46,122 INFO [AtmosphereServlet] Using broadcaster class: org.atmosphere.cpr.DefaultBroadcaster
14:36:46,124 INFO [AtmosphereServlet] Atmosphere Framework 0.8.0-RC1 started.
Oct 24, 2011 2:36:46 PM org.apache.coyote.http11.Http11NioProtocol start
INFO: Starting Coyote HTTP/1.1 on http-6080
Oct 24, 2011 2:36:46 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-6009
Oct 24, 2011 2:36:46 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5142 ms
- "NetworkError: 404 Not Found - http://localhost:6080/prime-push/chat"
chat
Firefox can't establish a connection to the server at ws://localhost:6080/prime-push/chat.
Thanks for any help,
llper