1 2 Previous Next 19 Replies Latest reply on Nov 15, 2012 10:51 AM by jhollerer Go to original post
      • 15. Re: Find Connection to HTTP Transport Servlet
        ataylor

        i have seen this error before when the wrong client libs have been used, check you are using matching libs

        • 16. Re: Find Connection to HTTP Transport Servlet
          jhollerer

          Hi Andy,

           

          i am actually using the test within the servlet (embedded) - so everything is within one project (and even within the same vm)!

           

          At Jetty startup the Servlet is launched - then my servlet is launched and starts the server and my testcode - to check if i can connect - so actually there is no server  / client code - its all within one codebase!

           

          and i am using maven - so there should not be any type mismatch - or do i miss something ?

           

          {code}

              <properties>

                  <hornetq_version>2.2.19.Final</hornetq_version>

              </properties>

           

           

           

           

              <dependencies>

                  <dependency>

                      <groupId>com.amergy</groupId>

                      <artifactId>logging_module</artifactId>

                      <version>1.0</version>

                  </dependency>

           

           

                  <dependency>

                      <groupId>org.hornetq</groupId>

                      <artifactId>hornetq-core</artifactId>

                      <version>${hornetq_version}</version>

                      <scope>compile</scope>

                  </dependency>

                  <dependency>

                      <groupId>org.hornetq</groupId>

                      <artifactId>hornetq-jms</artifactId>

                      <version>${hornetq_version}</version>

                      <scope>compile</scope>

                  </dependency>

                  <dependency>

                      <groupId>org.hornetq</groupId>

                      <artifactId>hornetq-logging</artifactId>

                      <version>${hornetq_version}</version>

                      <scope>compile</scope>

                  </dependency>

                  <dependency>

                      <groupId>org.hornetq</groupId>

                      <artifactId>hornetq-transports</artifactId>

                      <version>2.0.0.GA</version>

                      <scope>compile</scope>

                  </dependency>

                  <dependency>

                      <groupId>org.jboss.netty</groupId>

                      <artifactId>netty</artifactId>

                      <version>3.2.3.Final</version>

                  </dependency>

                  <dependency>

                      <groupId>org.jboss.javaee</groupId>

                      <artifactId>jboss-jms-api</artifactId>

                      <version>1.1.0.GA</version>

                      <scope>compile</scope>

                  </dependency>

          </dependencies>

           

          {code}

           

          Br

          Johannes

          • 17. Re: Find Connection to HTTP Transport Servlet
            ataylor

            actually that code is in hornetq-core or hornetq-core-client

            • 18. Re: Find Connection to HTTP Transport Servlet
              gaohoward

              It works for me but my client is a standalone. Important jars you should check are hornetq-core-client.jar (like andy already pointed out) and netty.jar.

               

              You can try standalone client and see if it works.

              1 of 1 people found this helpful
              • 19. Re: Find Connection to HTTP Transport Servlet
                jhollerer

                Hi Andy,

                Hi Howard,

                 

                With a standalone client (with the same maven dependencies) it works !!!

                I have no idea why it does not work when used within the servlet ?

                 

                thanks for your great support !

                1 2 Previous Next