Trying to migrate from 3.12 to latest Payara. Seems that my last stumbling block is our mod_jk integration.
Whenever I try to access anything from the server, I get a 400 Bad Request result.
I've stood up a brand new domain, set up the jk enabled listener, set up the port, deployed a Hello World war, and that worked fine from Apache. So that tells me that Apache side is working. That tells me that jk support in Payara is working.
On my actual domain, with my application, I get the 400s.
I tried deploying a "hello world" war to the server, and it's still getting 400's
I have Grizzly logging turned on to FINE (it was the only thing I could think of, frankly), and I see the request hitting the server.
[2017-07-20T16:10:24.230-0700] [Payara 4.1] [FINE] [] [org.glassfish.grizzly.nio.transport.TCPNIOTransport] [tid: _ThreadID=44 _ThreadName=http-thread-pool::jk-connector(3)] [timeMillis: 1500592224230] [levelValue: 500] [CLASSNAME: org.glassfish.grizzly.nio.transport.TCPNIOUtils] [METHODNAME: allocateAndReadBuffer] [[
TCPNIOConnection (TCPNIOConnection{localSocketAddress={/
127.0.0.1:10009}, peerSocketAddress={/127.0.0.1:45826}}) (allocated) read 5 bytes]]
[2017-07-20T16:10:24.230-0700] [Payara 4.1] [FINE] [] [org.glassfish.grizzly.nio.transport.TCPNIOTransport] [tid: _ThreadID=44 _ThreadName=http-thread-pool::jk-connector(3)] [timeMillis: 1500592224230] [levelValue: 500] [CLASSNAME: org.glassfish.grizzly.nio.transport.TCPNIOUtils] [METHODNAME: writeSimpleBuffer] [[
TCPNIOConnection (TCPNIOConnection{localSocketAddress={/
127.0.0.1:10009}, peerSocketAddress={/127.0.0.1:45826}}) (plain) write 5 bytes]]
[2017-07-20T16:10:24.231-0700] [Payara 4.1] [FINE] [] [org.glassfish.grizzly.nio.transport.TCPNIOTransport] [tid: _ThreadID=45 _ThreadName=http-thread-pool::jk-connector(4)] [timeMillis: 1500592224231] [levelValue: 500] [CLASSNAME: org.glassfish.grizzly.nio.transport.TCPNIOUtils] [METHODNAME: allocateAndReadBuffer] [[
TCPNIOConnection (TCPNIOConnection{localSocketAddress={/
127.0.0.1:10009}, peerSocketAddress={/127.0.0.1:45826}}) (allocated) read 374 bytes]]
[2017-07-20T16:10:24.231-0700] [Payara 4.1] [FINE] [] [org.glassfish.grizzly.websockets.BaseWebSocketFilter] [tid: _ThreadID=45 _ThreadName=http-thread-pool::jk-connector(4)] [timeMillis: 1500592224231] [levelValue: 500] [CLASSNAME: org.glassfish.grizzly.websockets.BaseWebSocketFilter] [METHODNAME: handleRead] [[
handleRead websocket: null content-size=0 headers=
HttpRequestPacket (
method=GET
url=/will/index.html
query=null
protocol=HTTP/1.1
content-length=0
headers=[
user-agent=curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
host=localhost
accept=*/*
SSL_CLIENT_S_DN=(null)
SSL_CLIENT_I_DN=(null)
SSL_SERVER_S_DN_OU=Domain Control Validated
SSL_CLIENT_VERIFY=NONE
content-length=0]
)]]
[2017-07-20T16:10:24.233-0700] [Payara 4.1] [FINE] [] [org.glassfish.grizzly.nio.transport.TCPNIOTransport] [tid: _ThreadID=45 _ThreadName=http-thread-pool::jk-connector(4)] [timeMillis: 1500592224233] [levelValue: 500] [CLASSNAME: org.glassfish.grizzly.nio.transport.TCPNIOUtils] [METHODNAME: writeSimpleBuffer] [[
TCPNIOConnection (TCPNIOConnection{localSocketAddress={/
127.0.0.1:10009}, peerSocketAddress={/127.0.0.1:45826}}) (plain) write 23 bytes]]
[2017-07-20T16:10:24.233-0700] [Payara 4.1] [FINE] [] [org.glassfish.grizzly.nio.transport.TCPNIOTransport] [tid: _ThreadID=45 _ThreadName=http-thread-pool::jk-connector(4)] [timeMillis: 1500592224233] [levelValue: 500] [CLASSNAME: org.glassfish.grizzly.nio.transport.TCPNIOUtils] [METHODNAME: writeSimpleBuffer] [[
TCPNIOConnection (TCPNIOConnection{localSocketAddress={/
127.0.0.1:10009}, peerSocketAddress={/127.0.0.1:45826}}) (plain) write 6 bytes]]
So, it's something deeper.
The config is pretty basic:
<network-listeners>
<network-listener port="10080" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool"></network-listener>
<network-listener port="10081" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool"></network-listener>
<network-listener port="10048" protocol="pu-protocol" transport="tcp" name="admin-listener" thread-pool="admin-thread-pool"></network-listener>
<network-listener port="10009" protocol="http-listener-1" transport="tcp" name="jk-connector" jk-enabled="true" thread-pool="http-thread-pool"></network-listener>
</network-listeners>
Not a lot to do there, I don't think.
I've diffed the domain.xmls and nothing stands out that shouldn't be there.
So, I'm at a bit of a loss as to what the next step might be.
Thanks.
Regards,
Will Hartung