Sunit
<tomic...@yahoo.com> wrote in message
news:919535123.1169628029...@ltsgwas009.sby.ibm.com...
I did that and now I got this error in IHS/WAS plugin:
[Wed Jan 24 15:41:32 2007] 0000112c 000004c0 - ERROR: lib_stream:
openStream: Failed in r_gsk_secure_soc_init: GSK_ERROR_BAD_MESSAGE(gsk rc =
410)
[Wed Jan 24 15:41:32 2007] 0000112c 000004c0 - ERROR: ws_common:
websphereGetStream: Could not open stream
[Wed Jan 24 15:41:32 2007] 0000112c 000004c0 - ERROR: ws_common:
websphereExecute: Failed to create the stream
[Wed Jan 24 15:41:32 2007] 0000112c 000004c0 - ERROR: ws_common:
websphereHandleRequest: Failed to execute the transaction to
'bernvsrvNode01_server1'on host 'bernvsrv'; will try another one
[Wed Jan 24 15:41:32 2007] 0000112c 000004c0 - ERROR: ws_common:
websphereWriteRequestReadResponse: Failed to find an app server to handle
this request
[Wed Jan 24 15:41:32 2007] 0000112c 000004c0 - ERROR: ESI: getResponse:
failed to get response: rc = 2
[Wed Jan 24 15:41:32 2007] 0000112c 000004c0 - ERROR: ws_common:
websphereHandleRequest: Failed to handle request
and this in my web server (IHS) access.log:
10.9.72.251 - - [24/Jan/2007:15:49:56 +0100] "GET /snoop HTTP/1.1" 500 651
and there is no errors or any informations about this request in WAS logs.
Thank you for your help.
Sunit
"John Smith" <john....@microsoft.com> wrote in message
news:ep7s13$1eo6k$1...@news.boulder.ibm.com...
Probably plugin trying to talk SSL to a non-SSL port on the
ApplicationServer
IHS listens 443 port. My app under WAS works under 9443 port. I am not sure
which port IHS and WAS use to communicate, but I expect IHS to forward HTTPS
requests from 443 port to 9443 port.
I have this configuration:
Browser<->HTTPS<->IHS<->HTTPS<->WAS
I require client certificate authentication on both IHS and WAS. I have
imported WAS certificate into plugin and plugin's certificate into WAS key
store.
Do I need to ser ProxyPass in httpd.conf? Something like this:
LoadModule was_ap20_module
"C:\IBM\HTTPServer\Plugins\bin\mod_was_ap20_http.dll"
WebSpherePluginConfig
"C:\IBM\HTTPServer\Plugins\config\webserver1\plugin-cfg.xml"
<VirtualHost 0.0.0.0:443>
SSLEnable
SSLServerCert selfSigned
SSLClientAuth 2
KeyFile "C:/IBM/HTTPServer/webserver1.kdb"
SSLProxyEngine on
ProxyPass /snoop https://193.77.98.85:9443/snoop
ProxyPassReverse /snoop https://193.77.98.85:9443/snoop
</VirtualHost>
SSLDisable
I have tried above code, but still the same "Internal Server Error" :(
Thank you.
Sunit
"John Smith" <john....@microsoft.com> wrote in message
news:ep7uh6$s056$1...@news.boulder.ibm.com...
ProxyPass performs a similiar function to the plug-in -- you don't want
to use IHS mod_proxy on the same set of URLs as you expect the plug-in
to handle.
What does an IP trace between IHS and WAS say is going on? The GSKit
error quoted earlier implies something that wasn't valid SSL was read
when the plugin tried to communicate using SSL.
And those are mine Listen directives from httpd.conf, which shows that my
web server is not listening any other ports except 80 and 443:
Listen 0.0.0.0:443
Listen 0.0.0.0:80
I am guessing that you have not imported the public-key correctly.
Sunit
"John Smith" <john....@microsoft.com> wrote in message
news:ep7uru$1gs30$1...@news.boulder.ibm.com...
>
>> Probably plugin trying to talk SSL to a non-SSL port on the
>> ApplicationServer
>
> I disagree. Below are last lines from plugin log. Pay attention to the
> line "lib_stream: openStream: Stream is SSL" and it seems that correct
> 9443 port was used.
>
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: ws_common:
> websphereFindTransport: Finding the transport
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - DETAIL: ws_common:
> websphereFindTransport: Setting the transport(case 1):
> bernardvsrv.adriatic.snt.eu on port 9443
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: ws_common:
> websphereExecute: Executing the transaction with the app server
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - DEBUG: ws_common:
> websphereGetStream: Getting the stream to the app server
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: ws_transport:
> transportStreamDequeue: Checking for existing stream from the queue
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - DEBUG: ws_common:
> websphereGetStream: socket 10712 connected to
> bernardvsrv.adriatic.snt.eu:9443
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - DEBUG: lib_stream:
> openStream: Opening the stream
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - DEBUG: lib_stream:
> openStream: Stream is SSL
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - ERROR: lib_stream:
> openStream: Failed in r_gsk_secure_soc_init: GSK_ERROR_IO(gsk rc = 406)
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - DEBUG: lib_stream:
> destroyStream: Destroying the stream
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - ERROR: ws_common:
> websphereGetStream: Could not open stream
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: ws_common:
> websphereGetStream: socket 10712 closed - failed to open stream
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - ERROR: ws_common:
> websphereExecute: Failed to create the stream
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - DEBUG: ws_server:
> serverSetFailoverStatus: Request to mark bernardvsrvNode01_server1 down
> ignored.
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - STATS: ws_server:
> serverSetFailoverStatus: Server bernardvsrvNode01_server1 :
> pendingRequests 0 failedRequests 7 affinityRequests 0 totalRequests 0.
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - ERROR: ws_common:
> websphereHandleRequest: Failed to execute the transaction to
> 'bernardvsrvNode01_server1'on host 'bernardvsrv.adriatic.snt.eu'; will try
> another one
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - ERROR: ws_common:
> websphereWriteRequestReadResponse: Failed to find an app server to handle
> this request
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - ERROR: ESI: getResponse:
> failed to get response: rc = 2
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: ESI:
> esiHandleRequest: failed to get response
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: ESI:
> esiRequestUrlStackDestroy
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - DETAIL: ESI:
> esiRequestPopUrl: '/snoop/'
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: ESI: esiUrlDestroy:
> '/snoop/'
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - ERROR: ws_common:
> websphereHandleRequest: Failed to handle request
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: ws_common:
> websphereCloseConnection
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - DETAIL: ws_common:
> websphereEndRequest: Ending the request
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: mod_was_ap20_http:
> as_handler: set env WAS "bernardvsrv.adriatic.snt.e:9443"
> [Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: mod_was_ap20_http:
> in as_logger
>
>
Sunit
"John Smith" <john....@microsoft.com> wrote in message
news:ep7vbf$1fk1s$1...@news.boulder.ibm.com...
>
>> Are there any ports other that 9443 defined as listener ports for the web
>> container? If yes, remove them or mark them as SSL enabled and regenerate
>> the plug-in config.
>
> I belive, you were referencing plugin's configuration XML file
> (plugin-cfg.xml)? Those are VHosts I have there:
>
> <VirtualHostGroup Name="default_host">
> <VirtualHost Name="*:9080"/>
> <VirtualHost Name="*:80"/>
> <VirtualHost Name="*:9443"/>
> <VirtualHost Name="*:5060"/>
> <VirtualHost Name="*:5061"/>
> <VirtualHost Name="*:443"/>
> </VirtualHostGroup>
>
>
I belive, you were referencing plugin's configuration XML file
I disagree. Below are last lines from plugin log. Pay attention to the line
[Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - ERROR: ws_common:
websphereGetStream: Could not open stream
[Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: ws_common:
websphereGetStream: socket 10712 closed - failed to open stream
[Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - ERROR: ws_common:
websphereExecute: Failed to create the stream
[Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - DEBUG: ws_server:
serverSetFailoverStatus: Request to mark bernardvsrvNode01_server1 down
ignored.
[Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - STATS: ws_server:
serverSetFailoverStatus: Server bernardvsrvNode01_server1 : pendingRequests
0 failedRequests 7 affinityRequests 0 totalRequests 0.
[Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - ERROR: ws_common:
websphereHandleRequest: Failed to execute the transaction to
'bernardvsrvNode01_server1'on host 'bernardvsrv.adriatic.snt.eu'; will try
another one
[Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - ERROR: ws_common:
websphereWriteRequestReadResponse: Failed to find an app server to handle
this request
[Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - ERROR: ESI: getResponse:
failed to get response: rc = 2
[Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: ESI: esiHandleRequest:
failed to get response
[Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: ESI:
esiRequestUrlStackDestroy
[Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - DETAIL: ESI:
esiRequestPopUrl: '/snoop/'
[Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - TRACE: ESI: esiUrlDestroy:
'/snoop/'
[Wed Jan 24 16:30:42 2007] 00000f24 00000d1c - ERROR: ws_common:
websphereHandleRequest: Failed to handle request
Sunit
"Sunit Patke" <sup...@nospam.com> wrote in message
news:ep89pu$1o034$1...@news.boulder.ibm.com...
But when you try to access our CLIENT_CERT J2EE web app. via IHS there is no response. To be more exact the app. respond only on uri-s where atuhentication isn't required. If we go to 9443 the app works like a charm.
Any ideas, anyone?
PS
I've had a similar discussion on the WAS forum about this and it didn't resove the issue.
Sunit
<bern...@gmail.com> wrote in message
news:447046343.1171554233...@ltsgwas010.sby.ibm.com...
thanks, br, Bernard Velkaverh
This is not specified in the security handbook, but it appears to make sense.
As I said, UriGroup isn't mentioned in the WAS Security handbook, I guess it should be.
PS
Perhaps some other app might work without adding anything to UriGroup. There is an element with "*.jsp" pattern. But we use JSF with "*.faces" (since RAD 7.0) like uri's and it just doesnt fit any of the existing entries.
Sunit
<bern...@gmail.com> wrote in message
news:374294696.1171896703...@ltsgwas009.sby.ibm.com...
I hope this helps.