John Preston created DAEMON-290:
-----------------------------------
Summary: Property java.net.useSystemProxies does not apply when
Tomcat runs as service.
Key: DAEMON-290
URL: https://issues.apache.org/jira/browse/DAEMON-290
Project: Commons Daemon
Issue Type: Bug
Components: Procrun
Affects Versions: 1.0.14, 1.0.7
Environment: Windows Server 2003 R2 x86 EN
jdk-6u32-windows-i586
Apache Tomcat 6.0.35 (windows installation)
Reporter: John Preston
Predefined conditions:
1. Configured system proxies.
2. Web application deployed to Tomcat with sample code retrieves list of system
proxies like this:
String property = System.getProperty("java.net.useSystemProxies");
List<proxy> list = ProxySelector.getDefault().select(uri);
Steps to reproduce:
1. Start Tomcat6w.exe (prunmgr.exe).
2. Open "Java" tab, go to "Java Options" section.
3. Add option "-Djava.net.useSystemProxies=true".
4. Go to "General" tab and press "Start".
5. Waiting while web application will starts and sample code runs.
Expected result:
1. "property" value contains "true".
2. "list" value contains a list of system proxies.
Actual result:
1. "property" value contains "true".
2. "list" value contains one item "DIRECT". It means system has no any
configured proxies.
Additionally, it's no problem when:
1) starts tomcat with startup.bat with specified java.net.useSystemProxy
property
2) starts tomcat directly with Tomcat6.exe (prunsrv.exe).
It seems, when Tomcat runs with prunmgr.exe than java.net.useSystemProxy
property sets with delay and has no any effect.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira