Tomcat:com.sun.jersey.spi.container.servlet.ServletContainer

UI Components for JSF
ITStudent
Posts: 64
Joined: 18 Oct 2011, 22:25

31 Jan 2014, 21:17

hey,

i use primefaces push (atmosphere 2.0.*) with tomcat 7.0.50 and why do I get this error message (loging level is TRACE)?

Code: Select all

WARN [org.atmosphere.cpr.DefaultAnnotationProcessor] - <Unable to detect annotations. Application may fail to deploy.>
  2014-01-31 20:08:55,777 INFO [org.atmosphere.cpr.AtmosphereFramework] - <Auto detecting atmosphere handlers /WEB-INF/classes/>
  2014-01-31 20:08:55,781 TRACE [org.atmosphere.cpr.AtmosphereFramework] - <>
  java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
	at org.atmosphere.cpr.AtmosphereFramework.detectSupportedFramework(AtmosphereFramework.java:1127)
	at org.atmosphere.cpr.AtmosphereFramework.loadConfiguration(AtmosphereFramework.java:1103)
	at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:654)
	at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:561)
	at org.atmosphere.cpr.AtmosphereServlet.configureFramework(AtmosphereServlet.java:91)
	at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:80)
	at org.primefaces.push.PushServlet.init(PushServlet.java:43)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5198)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5481)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:744)
Please somebody give me a rough idea!

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

01 Feb 2014, 07:59

can you reply with your web.xml and more details about libs in your classpath, and more details about your app? and your primefaces push xhtml and java bean code?

also, did you have primefaces push working sometime ago? what changes did you make to your app 'before' you started seeing the WARNING and the class not found exception?
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

ITStudent
Posts: 64
Joined: 18 Oct 2011, 22:25

02 Feb 2014, 21:45

With simple and detailed setting of web.xml appears this error message, it run on tomcat 7.0.50 (NIO).

The used libs:

- jsf-2.2.5
- primfaces-4.0
- atmospehere 2.0.*

I think, that is a primefaces push configuration problem.

the web.xml

Code: Select all

<servlet>

    <servlet-name>Push Servlet</servlet-name>
    <servlet-class>org.primefaces.push.PushServlet</servlet-class>
    <init-param>
      <param-name>org.atmosphere.websocket.maxTextMessageSize</param-name>
      <param-value>0</param-value>
    </init-param>  

    <load-on-startup>0</load-on-startup>
    <async-supported>true</async-supported>

  </servlet>

The primefaces push works fine under FF and chrome, but under IE and safari not right, thread are suspended by every side calling.

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

02 Feb 2014, 23:36

ITStudent wrote:The used libs:

- jsf-2.2.5
- primfaces-4.0
- atmospehere 2.0.*
Can you please state the actual version of atmosphere that you are using? Are you using Atmosphere 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, or 2.0.7?

Do you have jersey in your tomcat/lib or in your classpath? Please read this and let me know if it helps.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

ITStudent
Posts: 64
Joined: 18 Oct 2011, 22:25

03 Feb 2014, 14:16

hey,

here my maven dependencies:

Code: Select all

<dependencies>	
		
			
	   <dependency>
			<groupId>org.primefaces</groupId>
			<artifactId>primefaces</artifactId>
			<version>${pf.version}</version>
		</dependency>

		
		<dependency>
			<groupId>org.primefaces.extensions</groupId>
			<artifactId>primefaces-extensions</artifactId>
			<version>${pfExtention.version}</version>
		</dependency>
		
		<dependency>  
		    <groupId>org.primefaces.themes</groupId>  
		    <artifactId>all-themes</artifactId>  
		    <version>${theme.version}</version>
		</dependency> 
		
		
		
       	<!-- File Upload -->
        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>1.2.1</version>
        </dependency>     
      
		
		<dependency>
            <groupId>com.sun.faces</groupId>
            <artifactId>jsf-api</artifactId>
            <version>${jsf-version}</version>
        </dependency>
        <dependency>
            <groupId>com.sun.faces</groupId>
            <artifactId>jsf-impl</artifactId>
            <version>${jsf-version}</version>          
        </dependency>
        
        <dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<version>3.1.0</version>
		</dependency>
		
        <!-- JSF method expression parameters  -->
        <dependency>
		  <groupId>org.glassfish.web</groupId>
		  <artifactId>el-impl</artifactId>
		  <version>2.2</version>
	     </dependency>
	     
	    <dependency>
			<groupId>javax.el</groupId>
			<artifactId>el-api</artifactId>
			<version>2.2</version>			
		</dependency>

<!-- Logging -->
	    <dependency>
	        <groupId>org.slf4j</groupId>
	        <artifactId>slf4j-api</artifactId>
	        <version>${org.slf4j.version}</version>
	    </dependency>
	    <dependency>
	        <groupId>org.slf4j</groupId>
	        <artifactId>jcl-over-slf4j</artifactId>
	        <version>${org.slf4j.version}</version>
	        <scope>runtime</scope>
	    </dependency>
	    <dependency>
	        <groupId>org.slf4j</groupId>
	        <artifactId>slf4j-log4j12</artifactId>
	        <version>${org.slf4j.version}</version>
	        <scope>runtime</scope>
	    </dependency>
	    <dependency>
	        <groupId>log4j</groupId>
	        <artifactId>log4j</artifactId>
	        <version>1.2.16</version>
	        <scope>runtime</scope>
	    </dependency>
	    
	    
	    		 <!-- Atmosphere -->
     	<dependency>
            <groupId>org.atmosphere</groupId>
             <artifactId>atmosphere-runtime</artifactId>
         	<version>${atmosphere.version}</version>
         	<exclusions>         		
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-api</artifactId>
                </exclusion>               
            </exclusions>
        </dependency>

</dependencies>	


And here is the psotion for the "analyse":

Code: Select all

1080    public void More ...loadConfiguration(ServletConfig sc) throws ServletException {
1081
1082        if (!autoDetectHandlers) return;
1083
1084        try {
1085            URL url = sc.getServletContext().getResource(handlersPath);
1086            URLClassLoader urlC = new URLClassLoader(new URL[]{url},
1087                    Thread.currentThread().getContextClassLoader());
1088            loadAtmosphereDotXml(sc.getServletContext().
1089                    getResourceAsStream(atmosphereDotXmlPath), urlC);
1090
1091            if (atmosphereHandlers.size() == 0) {
1092                autoDetectAtmosphereHandlers(sc.getServletContext(), urlC);
1093
1094                if (atmosphereHandlers.size() == 0) {
1095                    detectSupportedFramework(sc);
1096                }
1097            }
1098
1099            autoDetectWebSocketHandler(sc.getServletContext(), urlC);
1100        } catch (Throwable t) {
1101            throw new ServletException(t);
1102        }
1103    }

The tomcat hasn't jersey libraries! And i have tested with all atmosphere from 2.0.1 to 2.0.7 version

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

03 Feb 2014, 16:59

very good response, thanks!
ITStudent wrote:The tomcat hasn't jersey libraries! And i have tested with all atmosphere from 2.0.1 to 2.0.7 version
okay, thanks for letting me know that. since you are using PrimeFaces 4.0 + Tomcat 7.0.50 (latest release/version), please use 'at least' atmosphere 2.0.3(+).

now, suggestion. is it necessary for you to use Java servlet 3.1.0 (which is Java EE 7 servlet spec)? tomcat 7.0.x != java ee 7 compliant or servlet 3.1 compliant. right? what happens when you change the below to use 3.0.0? does that fix your issue? :)

Code: Select all

        <dependency>
         <groupId>javax.servlet</groupId>
         <artifactId>javax.servlet-api</artifactId>
         <version>3.1.0</version>
      </dependency>
FYI, i saw some chatter/discussion on atmosphere google groups mail list about Tomcat 8.0 + atmosphere 2.x. tomcat 8.0 == java ee 7 (and servlet 3.1) compliant.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

ITStudent
Posts: 64
Joined: 18 Oct 2011, 22:25

05 Feb 2014, 17:15

hey,

Many thanks for your tips, i have the same error with javax.servlet-api-3.0.0 :(

I want now trying the push-example from primefaces-showcase -project from http://repository.primefaces.org/org/pr ... -showcase/ with tomcat 7.0.50 (NIO), then I'll give you my feedback

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

05 Feb 2014, 17:28

ITStudent wrote:i use primefaces push (atmosphere 2.0.*) with tomcat 7.0.50 and why do I get this error message (loging level is TRACE)?

Code: Select all

  java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
	at org.atmosphere.cpr.AtmosphereFramework.detectSupportedFramework(AtmosphereFramework.java:1127)
	at org.atmosphere.cpr.AtmosphereFramework.loadConfiguration(AtmosphereFramework.java:1103)
	at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:654)
	at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:561)
	at org.atmosphere.cpr.AtmosphereServlet.configureFramework(AtmosphereServlet.java:91)
	at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:80)
	at org.primefaces.push.PushServlet.init(PushServlet.java:43)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5198)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5481)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:744)
Please somebody give me a rough idea!
hmmm, there is something in your tomcat/lib folder, web.xml, and/or in your app that is causing that error that 'needs' jersey. you should reply with your entire web.xml and/or upload a test project somewhere that duplicates this issue. please consider asking your question on atmosphere google groups mail list, and reply here with any/your findings.

also, per your pom.xml,

Code: Select all

      <dependency>
            <groupId>com.sun.faces</groupId>
            <artifactId>jsf-api</artifactId>
            <version>${jsf-version}</version>
        </dependency>
        <dependency>
            <groupId>com.sun.faces</groupId>
            <artifactId>jsf-impl</artifactId>
            <version>${jsf-version}</version>          
        </dependency>
        
        <dependency>
         <groupId>javax.servlet</groupId>
         <artifactId>javax.servlet-api</artifactId>
         <version>3.1.0</version>
      </dependency>
      
        <!-- JSF method expression parameters  -->
        <dependency>
        <groupId>org.glassfish.web</groupId>
        <artifactId>el-impl</artifactId>
        <version>2.2</version>
        </dependency>
        
       <dependency>
         <groupId>javax.el</groupId>
         <artifactId>el-api</artifactId>
         <version>2.2</version>         
      </dependency>
i wonder why you are using tomcat + mojarra + glassfish (stuff) instead of tomee 1.6.0 (tomee = tomcat + myfaces 2.1.x and more) and I recommend that you should use JUEL 2.2.6 (or latest version), too.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

ITStudent
Posts: 64
Joined: 18 Oct 2011, 22:25

05 Feb 2014, 18:53

hey,
thank you for tip the JUEL 2.2.6.

i have tested push with primefaces-showcase :

- With primefaces-3.5 and atmosphere-1.0.0-RC works perfectly without problem on all browser

- with primefaces-4.0 and atmoshere-2.0.7 the push dons't work and i have the same exception wit jersey.. :(

Code: Select all

 2014-02-05 17:27:23,730 WARN [org.atmosphere.cpr.DefaultAnnotationProcessor] - <Unable to detect annotations. Application may fail to deploy.>
 2014-02-05 17:27:23,740 INFO [org.atmosphere.cpr.AtmosphereFramework] - <Auto detecting atmosphere handlers /WEB-INF/classes/>
 2014-02-05 17:27:23,874 TRACE [org.atmosphere.cpr.AtmosphereFramework] - <>
 java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
       at org.atmosphere.cpr.AtmosphereFramework.detectSupportedFramework(AtmosphereFramework.java:1127)
       at org.atmosphere.cpr.AtmosphereFramework.loadConfiguration(AtmosphereFramework.java:1103)
       at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:654)
       at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:561)
       at org.atmosphere.cpr.AtmosphereServlet.configureFramework(AtmosphereServlet.java:91)
       at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:80)
       at org.primefaces.push.PushServlet.init(PushServlet.java:43)
       at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
       at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
       at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:865)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:136)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
       at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
       at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
       at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
       at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721)
       at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
       at java.lang.Thread.run(Thread.java:744)
014-02-05 17:27:23,897 INFO [org.atmosphere.cpr.AtmosphereFramework] - <Auto detecting WebSocketHandler in /WEB-INF/classes/>
 2014-02-05 17:27:23,904 INFO [org.atmosphere.cpr.AtmosphereFramework] - <Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol >
 2014-02-05 17:27:30,981 INFO [org.atmosphere.cpr.AtmosphereFramework] - <Installing Default AtmosphereInterceptor>
 2014-02-05 17:27:30,984 INFO [org.atmosphere.cpr.AtmosphereFramework] - <     org.atmosphere.interceptor.DefaultHeadersInterceptor : Default Response's Headers Interceptor>
 2014-02-05 17:27:30,989 INFO [org.atmosphere.cpr.AtmosphereFramework] - <     org.atmosphere.interceptor.PaddingAtmosphereInterceptor : Browser Padding Interceptor Support>
 2014-02-05 17:27:30,990 INFO [org.atmosphere.cpr.AtmosphereFramework] - <     org.atmosphere.interceptor.AndroidAtmosphereInterceptor : Android Interceptor Support>
 2014-02-05 17:27:30,991 INFO [org.atmosphere.cpr.AtmosphereFramework] - <     org.atmosphere.interceptor.SSEAtmosphereInterceptor : SSE Interceptor Support>
 2014-02-05 17:27:30,992 INFO [org.atmosphere.cpr.AtmosphereFramework] - <     org.atmosphere.interceptor.JSONPAtmosphereInterceptor : JSONP Interceptor Support>
 2014-02-05 17:27:30,998 INFO [org.atmosphere.cpr.AtmosphereFramework] - <     org.atmosphere.interceptor.JavaScriptProtocol : Atmosphere JavaScript Protocol>
 2014-02-05 17:27:30,998 INFO [org.atmosphere.cpr.AtmosphereFramework] - <     org.atmosphere.interceptor.OnDisconnectInterceptor : Browser disconnection detection>
 2014-02-05 17:27:30,999 INFO [org.atmosphere.cpr.AtmosphereFramework] - <Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults to disable them.>
 2014-02-05 17:27:31,013 WARN [org.atmosphere.cpr.AtmosphereFramework] - <No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recommended to configure the org.atmosphere.cache.UUIDBroadcasterCache>
 2014-02-05 17:27:31,014 INFO [org.atmosphere.cpr.AtmosphereFramework] - <Broadcaster Polling Wait Time 100>
 2014-02-05 17:27:31,016 INFO [org.atmosphere.cpr.AtmosphereFramework] - <Shared ExecutorService supported: true>
 2014-02-05 17:27:31,017 INFO [org.atmosphere.cpr.AtmosphereFramework] - <HttpSession supported: false>
 2014-02-05 17:27:31,017 INFO [org.atmosphere.cpr.AtmosphereFramework] - <Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory>
 2014-02-05 17:27:31,018 INFO [org.atmosphere.cpr.AtmosphereFramework] - <Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor>
 2014-02-05 17:27:31,019 INFO [org.atmosphere.cpr.AtmosphereFramework] - <Using Broadcaster: org.atmosphere.cpr.DefaultBroadcaster>
 2014-02-05 17:27:31,020 INFO [org.atmosphere.cpr.AtmosphereFramework] - <Atmosphere is using async support: org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket running under container: Apache Tomcat/7.0.50 using javax.servlet/3.0>
 2014-02-05 17:27:31,025 INFO [org.atmosphere.cpr.AtmosphereFramework] - <Atmosphere Framework 2.0.7 started.>
 2014-02-05 17:27:31,026 INFO [org.atmosphere.cpr.AtmosphereFramework] - <

       For Atmosphere Framework Commercial Support, visit
       http://www.async-io.org/ or send an email to support@async-io.org
and there is many issues in logging (without stopping):

Code: Select all

2014-02-05 17:27:31,232 TRACE [org.atmosphere.cpr.AtmosphereResourceEventListener] - <AtmosphereResourceEventImpl{
        message=null
        isCancelled=false
        isClosedByClient=false
        isClosedByApplication=false
        isResumedOnTimeout=false
        throwable=null
        resource=null}>
 2014-02-05 17:27:31,238 TRACE [org.atmosphere.cpr.AtmosphereResourceEventListener] - <AtmosphereResourceEventImpl{
        message=null
        isCancelled=false
        isClosedByClient=false
        isClosedByApplication=false
        isResumedOnTimeout=false
        throwable=null
        resource=null}>
 2014-02-05 17:27:31,244 TRACE [org.atmosphere.cpr.AsynchronousProcessor] - <Action for 6a180e4f-5658-4281-8ee1-b27fd3ced62d was Action{timeout=-1, type=SUSPEND} with transport long-polling>
 2014-02-05 17:27:31,244 ERROR [org.atmosphere.cpr.AtmosphereFramework] - <AtmosphereFramework exception>
 java.lang.IllegalStateException: Not supported.
       at org.apache.catalina.connector.Request.startAsync(Request.java:1678)
       at org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1031)
       at org.atmosphere.cpr.AtmosphereRequest.startAsync(AtmosphereRequest.java:526)
       at org.atmosphere.container.Servlet30CometSupport.suspend(Servlet30CometSupport.java:128)
       at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:103)
       at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.doService(Tomcat7Servlet30SupportWithWebSocket.java:67)
       at org.atmosphere.container.TomcatWebSocketUtil.doService(TomcatWebSocketUtil.java:95)
       at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.service(Tomcat7Servlet30SupportWithWebSocket.java:62)
       at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1692)
       at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:201)
       at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:187)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
       at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
       at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
       at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
       at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
       at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721)
       at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
       at java.lang.Thread.run(Thread.java:744)

I have not adjusted the tomcat 7.0.50 libs:

Code: Select all

-annotations-api.jar
-catalina.jar
-catalina-ant.jar
-catalina-ha.jar
-catalina-tribes.jar
-ecj-4.3.1.jar
-el-api.jar
-jasper.jar
-jasper-el.jar
-jsp-api.jar
-servlet-api.jar
-tomcat7-websocket.jar
-tomcat-api.jar
-tomcat-coyote.jar
-tomcat-dbcp.jar
-tomcat-i18n-es.jar
-tomcat-i18n-fr.jar
-tomcat-i18n-ja.jar
-tomcat-jdbc.jar
-tomcat-util.jar
-websocket-api.jar
The primefaces-showcase.war with log4j.lib http://www.file-upload.net/download-858 ... e.war.html

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

05 Feb 2014, 20:22

hmmm, back to this below,

Code: Select all

java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
   at org.atmosphere.cpr.AtmosphereFramework.detectSupportedFramework(AtmosphereFramework.java:1127)
   at org.atmosphere.cpr.AtmosphereFramework.loadConfiguration(AtmosphereFramework.java:1103)
okay, you shared this earlier, too, below...
ITStudent wrote:And here is the psotion for the "analyse":

Code: Select all

1080    public void More ...loadConfiguration(ServletConfig sc) throws ServletException {
1081
1082        if (!autoDetectHandlers) return;
1083
1084        try {
1085            URL url = sc.getServletContext().getResource(handlersPath);
1086            URLClassLoader urlC = new URLClassLoader(new URL[]{url},
1087                    Thread.currentThread().getContextClassLoader());
1088            loadAtmosphereDotXml(sc.getServletContext().
1089                    getResourceAsStream(atmosphereDotXmlPath), urlC);
1090
1091            if (atmosphereHandlers.size() == 0) {
1092                autoDetectAtmosphereHandlers(sc.getServletContext(), urlC);
1093
1094                if (atmosphereHandlers.size() == 0) {
1095                    detectSupportedFramework(sc);
1096                }
1097            }
1098
1099            autoDetectWebSocketHandler(sc.getServletContext(), urlC);
1100        } catch (Throwable t) {
1101            throw new ServletException(t);
1102        }
1103    }
The tomcat hasn't jersey libraries! And i have tested with all atmosphere from 2.0.1 to 2.0.7 version
I wonder what will happen if you disable 'autoDetectHandlers', so the code below will exit/return at the beginning of the method, loadConfiguration().

Code: Select all

1080    public void More ...loadConfiguration(ServletConfig sc) throws ServletException {
1081
1082        if (!autoDetectHandlers) return;
also, i still have not seen your entire web.xml. also, I posted my primefaces push web.xml config (many times) in this forum. did you see the web.xml that I shared in other topics in this forum, and did you try that in your config?
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 42 guests