java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.catalina.Host

Oracle Community | arshadm | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Glasfish with mod_jk and Apache 2.2.11

    Oracle Community | 8 years ago | arshadm
    java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.catalina.Host

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to org.apache.catalina.Host

      at org.apache.coyote.tomcat5.CoyoteRequest.getHost()
    2. org.apache.coyote
      CoyoteRequest.getHost
      1. org.apache.coyote.tomcat5.CoyoteRequest.getHost(CoyoteRequest.java:728)
      1 frame
    3. Glassfish Core
      ContainerBase.invoke
      1. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:144)
      2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      3. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      4. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      5. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
      5 frames
    4. org.apache.coyote
      CoyoteAdapter.service
      1. org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
      1 frame
    5. Embedded GlassFish Web
      ChannelSocket$SocketConnection.runIt
      1. org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
      2. org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
      3. org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
      4. org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
      5. org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
      5 frames
    6. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:682)
      1 frame
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame