Ah ha! This is a good find. The web container is mistakenly getting
the config for "default-config" instead of "server-config". That's
fairly reasonable behavior at this point.
Test your config by making it the one-and-only config. That will make
the above problem go away. Then you can concentrate on the content of
the config and not have to worry about this temporary problem with
multiple configs...
Status: I'm working hard on the starting of instances. It's
complicated but it's coming around. The client-side is done for now
and I'm working on the backend...
On 4/7/2010 1:56 PM, Jennifer Chou wrote:
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@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
---------------------------------------------------------------------
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