Bug 44522 - Https doesn't work on APR+OpenSSL
Summary: Https doesn't work on APR+OpenSSL
Status: RESOLVED INVALID
Alias: None
Product: Tomcat Native
Classification: Unclassified
Component: Library (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 critical (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords: PortForward
Depends on:
Blocks:
 
Reported: 2008-03-03 21:33 UTC by wanghan
Modified: 2008-10-05 02:36 UTC (History)
0 users



Attachments
server.xml (6.68 KB, text/plain)
2008-03-03 21:35 UTC, wanghan
Details

Note You need to log in before you can comment on or make changes to this bug.
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.