commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DAEMON-290) Property java.net.useSystemProxies does not apply when Tomcat runs as service.
Date Thu, 21 Mar 2013 18:49:17 GMT

     [ https://issues.apache.org/jira/browse/DAEMON-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mladen Turk resolved DAEMON-290.
--------------------------------

    Resolution: Invalid

Please use users or dev list for support questions.

Seems to everything is OK except JVM cannot read the list
of proxies which you have configured.
When running as service under LOCAL_SYSTEM account make
sure you have allowed access to that folder (where deployment.setting or net.properties is
stored). For browser setting thats probably inside
registry so access again.

Anyway, if works (and it does according to your own showcase) inside
console and not inside service, the answer is simple: security.

                
> 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.7, 1.0.14
>         Environment: Windows Server 2003 R2 x86 EN
> jdk-6u32-windows-i586
> Apache Tomcat 6.0.35 (windows installation)
>            Reporter: John Preston
>              Labels: Tomcat6, java.net.useSystemProxies, prunmgr
>
> 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

Mime
View raw message