users@glassfish.java.net

Glasfish with mod_jk and Apache 2.2.11

From: <glassfish_at_javadesktop.org>
Date: Thu, 07 May 2009 12:35:15 PDT

Hi,

I am trying to get Glassfish working with an Apache frontend via mod_jk. I am using the latest v2.1 release (glassfish-installer-v2.1-b60e-linux-ml.jar) with JDK jdk1.6.0_12.

I have followed the instructions in the developers manual (using the ancient 5.5.16 tomcat-ajp.jar) but when I try and connect I get the following error:-

[#|2009-05-07T20:22:11.350+0100|SEVERE|sun-appserver2.1|org.apache.coyote.tomcat5.CoyoteAdapter|_ThreadID=16;_ThreadName=TP-Processor3;_RequestID=9ac8ef96-298c-4a85-b28c-94694cfeeb9d;|PWC3989: An exception or error occurred in the container during the request processing
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)
|#]

Does anyone know if there is any way of getting mod_jk to work with Glassfish.

I am trying to conver a Seam App from JBoss to Glassfish (performance reasons). I really thought Seam and EJB would cause me problems, not mod_jk !!!

Any help much appreciated.

Regards.
[Message sent by forum member 'arshadm' (arshadm)]

http://forums.java.net/jive/thread.jspa?messageID=345441