users@glassfish.java.net

Re: Running GlassFish with Apache httpd

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 20 Sep 2007 12:54:53 -0400

Hi,

can you file an issue here:

https://glassfish.dev.java.net/servlets/ProjectIssues

it seems the version of mod_jk you are using no longer use the same API
as GlassFish. Can you also add the version?

Thanks

-- Jeanfrancois

glassfish_at_javadesktop.org wrote:
> Sorry for jumping in... but I am trying to configure apache with glassfish using mod_proxy_ajp and mod_proxy and used ProxyPass when sending request I get Service unavailable with two errors in glassfish Log file:
>
> Timestamp
>
> Sep 19, 2007 20:29:32.171
> Log Level
>
> WARNING
> Logger
>
> javax.enterprise.system.stream.err
> Name-Value Pairs
>
> _ThreadID=14;_ThreadName=TP-Processor3;_RequestID=2de2d20f-4d67-4f81-b2c6-c3f1ff230997;
> Record Number
>
> 557
> Message ID
>
> java.lang.NoSuchMethodError
> Complete Message
>
> org.apache.coyote.Response.getContentLengthLong()J at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:303) at org.apache.jk.core.MsgContext.action(MsgContext.java:267) at org.apache.coyote.Response.action(Response.java:221) at org.apache.coyote.Response.sendHeaders(Response.java:416) at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:353) at org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:320) at org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse.java:577) at org.apache.coyote.tomcat5.CoyoteAdapter.afterService(CoyoteAdapter.java:316) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:299) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apa
che.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666) at java.lang.Thread.run(Thread.java:619)
>
> With the second being:
> Timestamp
>
> Sep 19, 2007 20:29:32.175
> Log Level
>
> SEVERE
> Logger
>
> org.apache.tomcat.util.threads.ThreadPool
> Name-Value Pairs
>
> _ThreadID=14;_ThreadName=TP-Processor3;_RequestID=2de2d20f-4d67-4f81-b2c6-c3f1ff230997;
> Record Number
>
> 558
> Message ID
>
> PWC5752
> Complete Message
>
> Caught exception (java.lang.NoSuchMethodError: org.apache.coyote.Response.getContentLengthLong()J) executing org.apache.jk.common.ChannelSocket$SocketConnection_at_fcc070, terminating thread
>
> while in apache log i get the following
>
> )
> [Wed Sep 19 20:29:32 2007] [error] (70014)End of file found: ajp_ilink_receive() can't receive header
> [Wed Sep 19 20:29:32 2007] [error] ajp_read_header: ajp_ilink_receive failed
> [Wed Sep 19 20:29:32 2007] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (127.0.0.1)
>
> can anyone explain these errors to me or what I need to do to enable this to work.
> A couple of questions i do have is that while using proxypass instead of mod_jk
> do I only need the three jar files copied to glassfish_home/lib ?
>
> so longs I have enabled the correct modules in apache for proxy and ajp
> the configuration I have is
> <IfModule proxy_module>
> <IfModule proxy_ajp_module>
> <Location />
> Proxypass ajp://127.0.0.1:8009/
> </Location>
> </IfModule>
> </IfModule>
> would this be correct?
>
> and lastly just on another note just to clarify somthing for me on Amy Roh's blog she shows that you can use glassfish-jk.properties file I take you would use this if you were using mod_jk and not while using mod_proxy and mod_ajp_proxy but if you were using mod_jk would the same informaition be placed in the glassfish-jk.properties file as would be in the workers file?
>
> I appreciate anyone taking the time to try to answer my questions.
> [Message sent by forum member 'chainy' (chainy)]
>
> http://forums.java.net/jive/thread.jspa?messageID=236081
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>