4 Replies Latest reply on Aug 24, 2003 10:23 PM by kristoff

    httpclient with 3.2.1

    zohar

      I have a servlet that works fine on 3.0.4 . I installed 3.2.1 and now I get an exception:
      java.lang.NoSuchMethodError: org.apache.commons.httpclient.Header.toExternalForm()Ljava/lang/String;

      What might be the problem?

        • 1. Re: httpclient with 3.2.1
          haraldgliebe

          Is there a stacktrace on the console or in the log file to see who is trying to call this method?

          Regards,
          Harald

          • 2. Re: httpclient with 3.2.1
            zohar

            java.lang.NoSuchMethodError: org.apache.commons.httpclient.Header.toExternalForm()Ljava/lang/String;

            at com.openwave.wappush.MimeEntity.getAllHeaderLines(MimeEntity.java:181)
            at com.openwave.wappush.MimeEntity.writeHeaderTo(MimeEntity.java:367)
            at com.openwave.wappush.MimeEntity.writeTo(MimeEntity.java:360)
            at com.openwave.wappush.MimeEntity.toString(MimeEntity.java:332)
            at KannelPushProxy.doPost(Unknown Source)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
            at org.mortbay.jetty.servlet.Invoker.service(Invoker.java:184)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
            at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
            at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
            at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
            at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
            at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
            at org.mortbay.http.HttpServer.service(HttpServer.java:863)
            at org.jboss.jetty.Jetty.service(Jetty.java:460)
            at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
            at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
            at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
            at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
            at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
            at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

            • 3. Re: httpclient with 3.2.1
              ndrake

              I think this is because JBoss uses HttpClient itself and is using an older version. I've tried replacing the commons-httpclient.jar in <jboss-install-dir>/lib with HttpClient 2 RC 1, but then it barfs saying it can't find Commons Logging. Putting that into JBoss' lib dir doesn't seem to work.

              Did you ever solve this problem??

              Thanks,

              Nate

              • 4. Re: httpclient with 3.2.1
                kristoff