Skip to main content

wonderland server port configuration

2 replies [Last post]
seungchan
Offline
Joined: 2008-02-02

Hello,

I am running two different wonderland server on the same physical server.
So, I have two .wonderland-server directory in different user account directory.
Those two directories have separate wonderland source code. Our system only allow a port number 8090 for wonderland server.
I set my.build.properties file to be set in both locations.

wonderland.webserver.port=8090
wonderland.web.url=http://**********.missouri.edu:8090
#Added by seungchan on 2/1/2010
wonderland.webserver.host=128.206.**.**

I also set my.run.properties file to be set in both locations.
# Whether or not to automatically start any configured apps (such as the
# Darkstar server) when the web server starts up
wonderland.runner.autostart=true

# Whether or not to shutdown any applications launched through the web
# UI when the web server exits
wonderland.runner.autostop=true

#The IP address of the web server
wonderland.webserver.host=128.206.**.**

#Enable persistence of the virtual world between server restarts
# None - the database is cleared on each restart
# Full - all state is persisted between restarts
#wonderland.sgs.persistence=none

When I run wonderland server in one location, I got a successful message.
-----------------------------------------------------------
Wonderland web server started successfully.
Log files are in /home/*********.missouri.edu/.wonderland-server/0.5-dev/log
Web server running on http://128.206.**.**:8090/
-----------------------------------------------------------

But, when I run wonderland server in other location, I got an error message. And the port number has been changed to 8080, not 8090.

...........
Shutdown hook registered
Feb 2, 2010 3:43:38 PM org.jdesktop.wonderland.runner.RunManager$1 startupComplete
WARNING: Error during initialization
org.jdesktop.wonderland.runner.RunnerException: java.io.FileNotFoundException: http://128.206.**.**:8080/wonderland-web-runner/services/checksums
at org.jdesktop.wonderland.runner.BaseRunner.start(BaseRunner.java:222)
at org.jdesktop.wonderland.modules.darkstar.server.DarkstarRunnerImpl.start(DarkstarRunnerImpl.java:210)
at org.jdesktop.wonderland.runner.RunManager.doInit(RunManager.java:197)
at org.jdesktop.wonderland.runner.RunManager$1.startupComplete(RunManager.java:137)
at org.jdesktop.wonderland.utils.AppServerMonitor.fireStartupComplete(AppServerMonitor.java:84)
at org.jdesktop.wonderland.webserver.RunAppServer.(RunAppServer.java:118)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.jdesktop.wonderland.webserver.launcher.WebServerLauncher.main(WebServerLauncher.java:194)
Caused by: java.io.FileNotFoundException: http://128.206.**.**:8080/wonderland-web-runner/services/checksums
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1311)
at java.net.URL.openStream(URL.java:1010)
at org.jdesktop.wonderland.runner.BaseRunner.getServerChecksums(BaseRunner.java:491)
at org.jdesktop.wonderland.modules.darkstar.server.DarkstarRunnerImpl.getServerChecksums(DarkstarRunnerImpl.java:324)
at org.jdesktop.wonderland.runner.BaseRunner.checkForUpdates(BaseRunner.java:446)
at org.jdesktop.wonderland.runner.BaseRunner.deployFiles(BaseRunner.java:375)
at org.jdesktop.wonderland.modules.darkstar.server.DarkstarRunnerImpl.deployFiles(DarkstarRunnerImpl.java:239)
at org.jdesktop.wonderland.runner.BaseRunner.start(BaseRunner.java:220)
... 12 more
-----------------------------------------------------------
Wonderland web server started successfully.
Log files are in /home/leeseungc/.wonderland-server/0.5-dev/log
Web server running on http://128.206.**.**:8080/
-----------------------------------------------------------

I guess the error comes because the server location is pointed by the port 8080.
Is there any other place to set port other than two properties file in wonderland?
What might be helpful for me to fix this problem?
Thank you,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
matty_x
Offline
Joined: 2008-06-16
seungchan
Offline
Joined: 2008-02-02

Hi Matt,

The thread could not solve the problem perfectly.
It still shows the problem.