Closed glassfishrobot closed 14 years ago
@glassfishrobot Commented sirajg said: This has been fixed in 3.1 - see http://forums.java.net/jive/thread.jspa?messageID=475385
@glassfishrobot Commented Was assigned to sirajg
@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-12333
@glassfishrobot Commented Reported by hotngui
@glassfishrobot Commented Marked as fixed on Tuesday, June 22nd 2010, 5:14:44 am
In the embedded version of Glassfish V3 Prelude I was able to pass the port numbers to use from my Java code to my domain.xml using system properties. Similar to how glassfish passes other variables such as installRoot, instanceRoot, etc.
<http-listener address="0.0.0.0" default-virtual-server="vserver-secure" id="http-listener-1" port="$
{com.cadence.ccps.http_listener_port}" server- name=""/>
But I am finally converting, or trying to at least, over to Glassfish V3 embedded and get an error with the equivalent configuration.
<network-listener port="${com.cadence.ccps.http_listener_port}
" protocol="http- listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread- pool" />
I get the following stacktrace which makes me think that for some reason my system property is not being parsed.
[#|2010-06-22T10:25:57.351- 0700|SEVERE|glassfish3.0.1|null|_ThreadID=10;_ThreadName=main;|Unable to start v3. Closing all ports java.lang.NumberFormatException: For input string: "$
{com.cadence.ccps.http_listener_port}
" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:449) at java.lang.Integer.parseInt(Integer.java:499) at com.sun.grizzly.config.GrizzlyEmbeddedHttp.configure (GrizzlyEmbeddedHttp.java:203) at com.sun.grizzly.config.GrizzlyServiceListener.initializeListener (GrizzlyServiceListener.java:86) at com.sun.grizzly.config.GrizzlyServiceListener.configure (GrizzlyServiceListener.java:71) at com.sun.enterprise.v3.services.impl.GrizzlyListener.configure (GrizzlyListener.java:73) at com.sun.enterprise.v3.services.impl.GrizzlyProxy.configureGrizzly (GrizzlyProxy.java:135) at com.sun.enterprise.v3.services.impl.GrizzlyProxy.
(GrizzlyProxy.java:120)
at com.sun.enterprise.v3.services.impl.GrizzlyService.createNetworkProxy
(GrizzlyService.java:369)
at com.sun.enterprise.v3.services.impl.GrizzlyService.postConstruct
(GrizzlyService.java:288)
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:457)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:310)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:303)
at com.sun.enterprise.glassfish.bootstrap.ASEmbedded.run(ASEmbedded.java:101)
at com.sun.enterprise.glassfish.bootstrap.AbstractMain.start
(AbstractMain.java:78)
at org.glassfish.api.embedded.Server.(Server.java:288)
at org.glassfish.api.embedded.Server.(Server.java:61)
at org.glassfish.api.embedded.Server$Builder.build(Server.java:158)
at org.glassfish.api.embedded.Server$Builder.build(Server.java:140)
at com.chipestimate.server.AppServer.start(AppServer.java:90)
at com.chipestimate.server.CCPSServer.startAppServer(CCPSServer.java:110)
at com.chipestimate.server.CCPSServer.main(CCPSServer.java:938)
Environment
Operating System: All Platform: All
Affected Versions
[v3.0.1]