admin@glassfish.java.net

Re: put latest 3.1 default-config.xml in lib\templates for now

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Wed, 07 Apr 2010 11:22:38 -0700
I did a few experiments.  In order for the port number to get replaced at runtime you have to specify the value in one of two places:

1) <system-property name="MY_PORT" value="7777"/>  (in the config element)
2) <jvm-options>-DMY_PORT=9999</jvm-options>

When both are set then (2) wins.


On 4/7/2010 10:22 AM, Byron Nevins wrote:
Launcher does Token replacement.  So does the Server itself.  I'll try and reproduce this problem.
It would be easier if you email domain.xml

1. What is the java commandline that was logged?  I.e. is there a $HTTP... coming in as a System property?  Launcher most definitely does an exhaustive replacement of tokens at launch time

2. The problem does NOT happen when the new config element is not present -- right?


On 4/7/2010 9:56 AM, Jennifer Chou wrote:
I think it's on our task list so that would probably be me or Byron.

Here's the exception I got when using the tokens:

[#|2010-04-07T17:46:37.093+0100|SEVERE|glassfishv3.0|javax.enterprise.system.container.web.com.sun.enterprise.v3.services.impl|_ThreadID=15;_ThreadName=Configuration Updater;|Unable to start container com.sun.enterprise.web.WebContainer
java.lang.IllegalArgumentException: WEB0313: Unable to parse port number ${HTTP_LISTENER_PORT} of network-listener http-listener-1
        at com.sun.enterprise.web.WebContainer.createHttpListener(WebContainer.java:779)
        at com.sun.enterprise.web.WebContainer.createHttpListener(WebContainer.java:756)
        at com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:542)
        at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
        at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
        at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
        at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
        at org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:91)
        at com.sun.enterprise.v3.services.impl.WebContainerStarter.startWebContainer(WebContainerStarter.java:198)
        at com.sun.enterprise.v3.services.impl.WebContainerStarter.postConstruct(WebContainerStarter.java:132)
        at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
        at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
        at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
        at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
        at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:236)
        at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:456)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:400)
        at org.jvnet.hk2.osgiadapter.HK2Main$StartupContextService.updated(HK2Main.java:102)
        at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1389)
        at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:88)|#]

On 4/7/2010 5:36 PM, Bill Shannon wrote:
Jennifer Chou wrote on 4/7/10 9:07 AM:
  
It uses "3####" port numbers directly instead of tokens for now until
token support is implemented.
    

I thought token support was already implemented.  If not, who's doing it?


---------------------------------------------------------------------
To unsubscribe, e-mail: admin-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: admin-help@glassfish.dev.java.net
 
 

-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188
  
--------------------------------------------------------------------- To unsubscribe, e-mail: admin-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: admin-help@glassfish.dev.java.net

-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188