admin@glassfish.java.net

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

From: Jennifer Chou <jennifer.chou_at_oracle.com>
Date: Wed, 07 Apr 2010 21:56:41 +0100

Attached is the domain.xml with tokens. You may need to deploy
something to see the problem.
Attached is the java commandline.
The system property is under default-config:
<system-property name="HTTP_LISTENER_PORT" value="38080" />

And problem does not happen when the new config element is not present.

On 4/7/2010 6:22 PM, 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_at_glassfish.dev.java.net
>>> For additional commands, e-mail: admin-help_at_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_at_glassfish.dev.java.net For
> additional commands, e-mail: admin-help_at_glassfish.dev.java.net



C:\fishfry\v3\distributions\glassfish\target\glassfishv3\glassfish\bin>asadmin s
tart-domain --verbose
Apr 7, 2010 5:46:00 PM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: JVM invocation command line:
C:\Program Files\Java\jdk1.6.0_17\bin\java.exe
-cp
C:/fishfry/v3/distributions/glassfish/target/glassfishv3/glassfish/modules/glass
fish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=C:\fishfry\v3\distributions\glassfish\target\glassfishv3\glassfish\d
omains\domain1/logs/jvm.log
-Xmx512m
-client
-javaagent:C:/fishfry/v3/distributions/glassfish/target/glassfishv3/glassfish/li
b/monitor/btrace-agent.jar=unsafe=true,noServer=true
-Dosgi.shell.telnet.maxconn=1
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Dfelix.fileinstall.dir=C:\fishfry\v3\distributions\glassfish\target\glassfishv3
\glassfish/modules/autostart/
-Djavax.net.ssl.keyStore=C:\fishfry\v3\distributions\glassfish\target\glassfishv
3\glassfish\domains\domain1/config/keystore.jks
-Dosgi.shell.telnet.port=6666
-Djava.security.policy=C:\fishfry\v3\distributions\glassfish\target\glassfishv3\
glassfish\domains\domain1/config/server.policy
-Dfelix.fileinstall.poll=5000
-Dcom.sun.aas.instanceRoot=C:\fishfry\v3\distributions\glassfish\target\glassfis
hv3\glassfish\domains\domain1
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.
config.serverbeans.AppserverConfigEnvironmentFactory
-Dosgi.shell.telnet.ip=127.0.0.1
-Djava.endorsed.dirs=C:\fishfry\v3\distributions\glassfish\target\glassfishv3\gl
assfish/modules/endorsed;C:\fishfry\v3\distributions\glassfish\target\glassfishv
3\glassfish/lib/endorsed
-Dcom.sun.aas.installRoot=C:\fishfry\v3\distributions\glassfish\target\glassfish
v3\glassfish
-Djava.ext.dirs=C:\Program Files\Java\jdk1.6.0_17/lib/ext;C:\Program Files\Java\
jdk1.6.0_17/jre/lib/ext;C:\fishfry\v3\distributions\glassfish\target\glassfishv3
\glassfish\domains\domain1/lib/ext
-Dfelix.fileinstall.bundles.new.start=true
-Djavax.net.ssl.trustStore=C:\fishfry\v3\distributions\glassfish\target\glassfis
hv3\glassfish\domains\domain1/config/cacerts.jks
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Djava.security.auth.login.config=C:\fishfry\v3\distributions\glassfish\target\g
lassfishv3\glassfish\domains\domain1/config/login.conf
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Dfelix.fileinstall.debug=1
-Dorg.glassfish.web.rfc2109_cookie_names_enforced=false
-Djava.library.path=C:/fishfry/v3/distributions/glassfish/target/glassfishv3/gla
ssfish/lib;C:/WINDOWS/system32;C:/fishfry/v3/distributions/glassfish/target/glas
sfishv3/glassfish/bin;C:/WINDOWS/Sun/Java/bin;C:/WINDOWS;C:/Program Files/MKS To
olkit/bin;C:/Program Files/MKS Toolkit/bin/X11;C:/Program Files/MKS Toolkit/mksn
t;C:/WINDOWS/system32/wbem;C:/Program Files/QuickTime/QTSystem;C:/Program Files/
Mercurial;C:/WINDOWS/system32/windowspowershell/v1.0;C:/Program Files/CollabNet
Subversion;C:/apache-maven-2.0.9/bin;C:/GFV2/m_jws/publish/glassfish/bin;C:/Prog
ram Files/Java/jdk1.6.0_17;C:/Program Files/Java/jdk1.6.0_17/bin;C:/fishfry/v3/d
istributions/glassfish/target/glassfishv3/glassfish/bin/%ANT_HOME%;C:/fishfry/v3
/distributions/glassfish/target/glassfishv3/glassfish/bin/%ANT_HOME%/bin;C:/bin;
C:/Program Files/Apache Software Foundation/Maven 1.0.2/bin
com.sun.enterprise.glassfish.bootstrap.ASMain
-domainname
domain1
-asadmin-args
start-domain,,,--verbose
-instancename
server
-verbose
true
-debug
false
-asadmin-classpath
C:/fishfry/v3/distributions/glassfish/target/glassfishv3/glassfish/modules/admin
-cli.jar
-asadmin-classname
com.sun.enterprise.admin.cli.AsadminMain
-upgrade
false
-domaindir
C:/fishfry/v3/distributions/glassfish/target/glassfishv3/glassfish/domains/domai
n1
-read-stdin
true
Apr 7, 2010 5:46:01 PM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: Successfully launched in 78 msec.
Apr 7, 2010 5:46:02 PM com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Felix platform