8 Replies Latest reply on Sep 12, 2010 10:10 PM by jdestef

    JBossErraiServlet Problem

    jdestef

      Hi,

       

      Is there any documentation on using the JBossErraiServlet. I am using JBoss 5.1 with Apache Tomcat Native library 1.1.20 installed, ubuntu 10.04 64bit. When I configure my app to us the JBossErraiServlet I get an error saying that the server has disconnected the bus. Prehaps there is some configuration detail I am missing? When I use the default errai servlet everything works fine.

       

      Thx

        • 1. Re: JBossErraiServlet Problem
          cbrock

          Are there any console error messages?

           

          In order for it to work, your JBoss instance must be correctly configured to use the APR connector with comet support enabled.

          • 2. Re: JBossErraiServlet Problem
            jdestef

            Hi,

             

            No errors on the console. When I put the application url in and press enter the Message Bus Error Window pops up with the following error:

             

             

            The bus was disconnected by the server
            Additional details:
            Reason: There is no queue associated with this session.

            Additional Details:
            There is no error message on the server console.
            Thx
            • 3. Re: JBossErraiServlet Problem
              cbrock

              You may be experiencing a problem with the build output containing stuff that shouldn't be there for jboss.  You might want to look at the "jboss6" profile here: https://anonsvn.jboss.org/repos/errai/trunk/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml


              Are you building with Maven?

              • 4. Re: JBossErraiServlet Problem
                jdestef

                Hi,

                 

                I use the GWT compile option in Eclipse to build the project and this I have a build.xml to create the war file. Also, I am deploying to JBoss 5.1. Would that make a difference.

                 

                Thx

                • 5. Re: JBossErraiServlet Problem
                  jdestef

                  Hi,

                   

                  Since there are no exceptions being thrown on the server console what is the best approach to tracking this problem down. Any help would be appreciated.

                   

                  Thx

                  • 6. Re: JBossErraiServlet Problem
                    jdestef

                    Hi,

                     

                    I'm using jboss 5.1. Will the above maven build run on 5.1 or are there JBoss 6 dependencies?

                     

                    Thx

                    • 7. Re: JBossErraiServlet Problem
                      cbrock

                      We support JBoss 5.1.  But for CDI integration, we only support AS6.

                      • 8. Re: JBossErraiServlet Problem
                        jdestef

                        Hi,

                         

                        The app has no CDI related code in it. Also, I tried the same code on Tomcat 6, after configuring the Tomcat comet servlet in the web.xml. I receieved the following exception:

                         

                        SEVERE: Servlet.service() for servlet TomcatErraiServlet threw exception

                        java.lang.UnsupportedOperationException

                        at org.apache.catalina.connector.CometEventImpl.setTimeout(CometEventImpl.java:124)

                        at org.jboss.errai.bus.server.servlet.TomcatCometServlet.event(TomcatCometServlet.java:102)

                        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterEvent(ApplicationFilterChain.java:470)

                        at org.apache.catalina.core.ApplicationFilterChain.doFilterEvent(ApplicationFilterChain.java:363)

                        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)

                        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

                        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

                        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)

                        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)

                        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)

                        at java.lang.Thread.run(Thread.java:619)

                         

                        I'm running this on Ubuntu 10.04. After a short period of time the tomcat java process pegged the CPU and I had to kill it. If I use the default blocking servlet I have no problems.

                         

                        Are there specific versions of Tomcat that the current comet servlet implementation is targeted to?

                         

                        Thx

                        SEVERE: Servlet.service() for servlet TomcatErraiServlet threw exception
                        java.lang.UnsupportedOperationException
                        at org.apache.catalina.connector.CometEventImpl.setTimeout(CometEventImpl.java:124)
                        at org.jboss.errai.bus.server.servlet.TomcatCometServlet.event(TomcatCometServlet.java:102)
                        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterEvent(ApplicationFilterChain.java:470)
                        at org.apache.catalina.core.ApplicationFilterChain.doFilterEvent(ApplicationFilterChain.java:363)
                        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
                        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
                        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
                        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
                        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
                        at java.lang.Thread.run(Thread.java:619)