Bug 44522

Summary: Https doesn't work on APR+OpenSSL
Product: Tomcat Native Reporter: wanghan <hanwan>
Component: LibraryAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED INVALID    
Severity: critical Keywords: PortForward
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: server.xml

Description wanghan 2008-03-03 21:33:25 UTC
Tomcat6.0, JDK6.0, WindowsXP

APR works well under Tomcat5.5, but failed under tomcat6.0;

Tomcat seems is infinite loop to output below log when I try to access https://localhost:443,

FINE: Checking context[/host-manager] reload resource C:\Data\Home\Softwares\tomcat6.0\conf\context.xml
Mar 4, 2008 1:21:47 PM org.apache.catalina.startup.HostConfig checkResources
FINE: Checking context[/host-manager] reload resource C:\Data\Home\Softwares\tomcat6.0\webapps\host-manager\META-INF\context.xml
Mar 4, 2008 1:21:47 PM org.apache.catalina.startup.HostConfig checkResources
FINE: Checking context[/host-manager] reload resource C:\Data\Home\Softwares\tomcat6.0\conf\web.xml
Mar 4, 2008 1:21:47 PM org.apache.catalina.startup.HostConfig checkResources


Case reproduce:
 
I can see below info while starting tomcat server, which should mean the tomcat starts successfully under the APR mode:
Mar 3, 2008 4:58:17 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080 Mar 3, 2008 4:58:17 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-443

But I always fail to access localhost:443, which gives me some info like "The connection was interrupted" after very long wait.


Attached my server.xml.
Comment 1 wanghan 2008-03-03 21:35:23 UTC
Created attachment 21615 [details]
server.xml
Comment 2 Mark Thomas 2008-03-04 06:15:21 UTC
The problem appears to be the infinite redeployment loop rather than the APR configuration. I can't tell the cause but it is probably related to your context configuration.

I suggest you seek help from the users list. You'll need to include any changes you made to conf\context.xml and webapps\host-manager\META-INF\context.xml
Comment 3 wanghan 2008-03-04 17:50:16 UTC
hi Mark,
Thanks for your reply.
But I'm sure I only changed the server.xml after I download tomcat6.0.14 from official site,no any other changes on it.
I compared both of context.xml you mentioned with the one in original version, they are same.
I can enable APR by tomcat5.5 successfully.