java.lang.ClassCastException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19410

  • via Oracle Community by arshadm, 11 months ago
    java.lang.String cannot be cast to org.apache.catalina.Host
  • org.apache.tomcat.util.http.mapper.Mapper$Host cannot be cast to org.apache.catalina.Host
  • cannot be cast to java.lang.String
  • Stack trace

    • java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.catalina.Host at org.apache.coyote.tomcat5.CoyoteRequest.getHost(CoyoteRequest.java:728) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:144) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:682) at java.lang.Thread.run(Thread.java:619)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.