Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001842 [Resin] major always 07-02-07 00:57 07-30-07 11:25
Reporter sergek View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.3 Product Version 3.1.2
  Product Build
Summary 0001842: Environment variables no longer work in resin.conf
Description In the 3.1.2 snapshot, you can no longer pass environment variables into the conf file to use as EL. Here is an example that works in 3.0.x and 3.1.1 and earlier.

httpd.exe -DDEV_HOME=%CD%

resin.conf
<web-app id="/" root-directory="${DEV_HOME}/site-public" />
Steps To Reproduce
Additional Information Tested against snapshot on 6/18.
Attached Files

- Relationships

- Notes
(0002096)
ferg
07-02-07 08:41

In Resin 3.1, you need -J-DDEV_HOME. The top-level -D would only affect the watchdog manager.

I'm leaving this bug open in case it's possible to propagate the -D directly to the child without the -J.
 
(0002097)
sergek
07-02-07 08:47

Thanks for the explanation. The -D works in 3.1.0 and 3.1.1, and it's only the snapshot that this doesn't work. I also tried passing the value explicitly in <jvm-args> and that didn't get it picked up either.
 
(0002098)
sergek
07-02-07 22:02

Just confirmed that -D works in 3.1.1 but not 3.1.2 snapshot. The -J-D works in 3.1.1 and 3.1.2.

Assuming you intend to leave this change going forward, then you probably want to change the documentation in httpd.exe -h as well as http://www.caucho.com/resin-3.1/doc/resin-web-server.xtp#JDK%20arguments [^]

Thanks.
 
(0002154)
ferg
07-30-07 09:52

The -J-D will have to be the replacement. There doesn't appear to be a way to find out the -D arguments directly, and any heuristic propagation of System.getProperty values would introduce more uncertainty about the normal operation.
 
(0002155)
ferg
07-30-07 11:25

The arguments are available through JMX.
 

- Issue History
Date Modified Username Field Change
07-02-07 00:57 sergek New Issue
07-02-07 00:57 sergek Issue Monitored: sergek
07-02-07 08:41 ferg Note Added: 0002096
07-02-07 08:47 sergek Note Added: 0002097
07-02-07 22:02 sergek Note Added: 0002098
07-30-07 09:52 ferg Note Added: 0002154
07-30-07 09:52 ferg Assigned To  => ferg
07-30-07 09:52 ferg Status new => closed
07-30-07 09:52 ferg Resolution open => no change required
07-30-07 11:25 ferg Note Added: 0002155
07-30-07 11:25 ferg Resolution no change required => fixed
07-30-07 11:25 ferg Fixed in Version  => 3.1.3


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
38 total queries executed.
30 unique queries executed.
Powered by Mantis Bugtracker