Official Community Forums
 
HomeHome  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  The Wiki  Website  github Project  

Share | 
 

 alloc_domain_name failed ETC...

View previous topic View next topic Go down 
AuthorMessage
Telepathetic
Experienced Newbie
Experienced Newbie
avatar

Posts : 26
Join date : 2013-01-31
Location : Whidbey Island, WA

PostSubject: alloc_domain_name failed ETC...   Sat 9 Mar - 15:01

I don't understand what's going on...

Code:
*** Starting world sampleworld ***
MV_HOME is ..
Using .jar files from the /dist hierarchy
Using property file ../bin/multiverse.properties
Using world file
Using world script directory ../config/sampleworld
Using log directory ../logs/sampleworld
Using common directory ../config/common, bin directory ../bin
JAVA_FLAGS="-server  -cp ../other/rhino1_5R5/js.jar:/usr/share/mysql-connector-java/mysql-connector-java-5.1.23-bin.jar:../dist/lib/injected.jar:../dist/lib/multiverse.jar:../dist/lib/mars.jar:../dist/lib/sampleworld.jar:../other/java-getopt-1.0.11.jar:../other/jython.jar:../other/log4j-1.2.14.jar:../other/bcel-5.2.jar:. -Dmultiverse.propertyfile=../bin/multiverse.properties  -Dmultiverse.worldname=sampleworld -Dmultiverse.logs=../logs/sampleworld"
Starting domain server:        SUCCESS
Multiverse server version 1.5 0 (- -)
alloc_domain_name failed
Starting  ...          SUCCESS
Starting combat server:        SUCCESS
Starting instance server:      SUCCESS
Starting object manager:        SUCCESS
Starting login manager:        SUCCESS
Exception in thread "main" Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/ScriptableObject
java.lang.NoClassDefFoundError: org/mozilla/javascript/ScriptableObject
        at multiverse.server.engine.Engine.processPreScripts(Engine.java:482)
        at multiverse.server.engine.Engine.main(Engine.java:322)
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.ScriptableObject
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 2 more
        at multiverse.server.engine.Engine.processPreScripts(Engine.java:482)
        at multiverse.server.engine.Engine.main(Engine.java:322)
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.ScriptableObject
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 2 more
Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/ScriptableObject
        at multiverse.server.engine.Engine.processPreScripts(Engine.java:482)
        at multiverse.server.engine.Engine.main(Engine.java:322)
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.ScriptableObjectException in thread "main"
java.lang.NoClassDefFoundError: org/mozilla/javascript/ScriptableObject
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)  at multiverse.server.engine.Engine.processPreScripts(Engine.java:482)
        at multiverse.server.engine.Engine.main(Engine.java:322)
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.ScriptableObject
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 2 more
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 2 more
Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/ScriptableObject
        at multiverse.server.engine.Engine.processPreScripts(Engine.java:482)
        at multiverse.server.engine.Engine.main(Engine.java:322)
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.ScriptableObject
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 2 more
alloc_domain_name failed
Starting  ...          SUCCESS
Starting mob server:            SUCCESS
Starting voice server:          SUCCESS
Wait for finished initializing msg...
tiwaz@meepmurp:~/multiverse/bin$ Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/ScriptableObject
        at multiverse.server.engine.Engine.processPreScripts(Engine.java:482)
        at multiverse.server.engine.Engine.main(Engine.java:322)
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.ScriptableObject
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 2 more
Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/ScriptableObject
        at multiverse.server.engine.Engine.processPreScripts(Engine.java:482)
        at multiverse.server.engine.Engine.main(Engine.java:322)
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.ScriptableObject
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 2 more
Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/ScriptableObject
        at multiverse.server.engine.Engine.processPreScripts(Engine.java:482)
        at multiverse.server.engine.Engine.main(Engine.java:322)
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.ScriptableObject
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 2 more

The first thing that appears to deviate from the "getting started" page is the "alloc_domain_name failed" line as well as the ... instead of this (copypaste from tutorial):

Code:
*** Starting world sampleworld ***
Enabling JMX mgmt & monitoring
MV_HOME is ..
Using property file ../bin/multiverse.properties
Using world file ../config/sampleworld/sampleworld.mvw
Using world script directory ../config/sampleworld
Using log directory ../logs/sampleworld
Using common directory ../config/common, bin directory ../bin
Dual World Manager Flag = 0
JAVA_FLAGS="-Dcom.sun.management.jmxremote -cp ../other/rhino1_5R5/js.jar;c:/mys
ql-jdbc/mysql-connector-java-3.1.14-production-bin.jar;../dist/lib/multiverse.ja
r;../dist/lib/mars.jar;../other/java-getopt-1.0.11.jar;../other/jython_2_1.jar;.
./other/log4j-1.2.14.jar;. -Dmultiverse.propertyfile=../bin/multiverse.propertie
s  -Dmultiverse.logs=../logs/sampleworld"
Starting domain server:        SUCCESS
Starting animation server:      SUCCESS
Starting combat server:        SUCCESS
Starting object manager:        SUCCESS
Starting login manager:        SUCCESS
Starting world manager 1:      SUCCESS
Starting proxy server:          SUCCESS
Starting world reader:          SUCCESS
Starting mob server:            SUCCESS
Wait for finished initializing msg...

Anyways if you have any idea what's going on please help! I'd love to get to the stage where I can add all my artwork... Smile

Cheers,
Tele
Back to top Go down
rotello
Super Contributor
Super Contributor
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: Re: alloc_domain_name failed ETC...   Sat 9 Mar - 21:14

Hey there Telepathic,

I see you are trying to run a linux install of the server. Have you tried a clean one again and clearing out your log files? Another thing to note is to carefully check your properties file and create valid master server keys.

Hope that helps.
Back to top Go down
Telepathetic
Experienced Newbie
Experienced Newbie
avatar

Posts : 26
Join date : 2013-01-31
Location : Whidbey Island, WA

PostSubject: Re: alloc_domain_name failed ETC...   Sat 9 Mar - 23:09

Thanks for the response Rotello,

I am running the linux version, it's a slackware VPS. I'll definitely check the log files and properties file. Valid master server keys eh? Never heard of that... time to go back to school! Smile

Cheers,
Tele
Back to top Go down
rotello
Super Contributor
Super Contributor
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: Re: alloc_domain_name failed ETC...   Sat 9 Mar - 23:12

No problem. Yes, the master server keys are located in your /master directory with a corresponding script file (.sh).

Configure, execute and it will produce the corresponding masterserverkeys.txt. You should be on your way Cool
Back to top Go down
Telepathetic
Experienced Newbie
Experienced Newbie
avatar

Posts : 26
Join date : 2013-01-31
Location : Whidbey Island, WA

PostSubject: Re: alloc_domain_name failed ETC...   Sun 10 Mar - 4:06

Okay so I checked out log files but I'm not sure why those would be affecting anything - aren't they just the output from running the program? What should I be looking for in the properties file? Is that the master.properties file? I think I should talk to my friend about how to access these files, most are permission denied, and the master.properties file definitely is Surprised (server belongs to a buddy of mine). Anywho, am I on the right track? How do I check to see if the master server keys are correct?

I don't seem to have a masterserverkey.txt file anywhere either... could be a windows/linux discrepancy in naming though.

THanks again!
Tele
Back to top Go down
rotello
Super Contributor
Super Contributor
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: Re: alloc_domain_name failed ETC...   Sun 10 Mar - 11:14

There are two properties file, corresponding to each server (master and world). The server keys are located on the master server. 'master.sh' is the name of the script file for linux.

We have not done any live testing locally and ours is installed in Windows, so I suggest testing the server locally first so you have a test run installation. This way you can diagnose problems faster and checking always set the right folder/file permissions.

Here's a complete Ubuntu guide (from MV wiki) to install it properly on a Linux machine:

http://www.multiversemmo.com/site/w/index.php/Setting_up_a_Multiverse_Server_on_Ubuntu

good luck! Wink
Back to top Go down
Telepathetic
Experienced Newbie
Experienced Newbie
avatar

Posts : 26
Join date : 2013-01-31
Location : Whidbey Island, WA

PostSubject: Re: alloc_domain_name failed ETC...   Fri 15 Mar - 11:44

FML apparently the server was already running >.<

now to connect........


Last edited by Telepathetic on Fri 15 Mar - 12:26; edited 2 times in total
Back to top Go down
rotello
Super Contributor
Super Contributor
avatar

Posts : 215
Join date : 2012-12-06

PostSubject: Re: alloc_domain_name failed ETC...   Fri 15 Mar - 12:18

Hi Telepathic,

Sorry to hear you're still having problem with the server installation. As for the linux part, you don't need to follow and apply the same setup as you can skip to the part after the linux os installation.

Software to use:

- A web server to simulate or handle the master server login process (Apache/IIS).
- Webmin to easily import and manage the default sql records (accounts, worlds, etc) I'm using PhpMyAdmin
- MySQL/MySQL JDBC driver for the database part
- Java SDK for the server.

I'm sure you have a copy of the server key generator script but here's the link again when generating server keys (linux) under Master Server Encryption Key

http://www.multiversemmo.com/site/w/index.php/Master_Server


If you're really having trouble with the linux server installation, I suggest trying the windows version first and play around with it. I have not tried the linux server method myself (as we've been concentrating on the development part) but once we got around how the server works, I'm know we won't have any major problems porting to the linux server version.

hope that helps-





Back to top Go down
conartist6
Newbie
Newbie
avatar

Posts : 3
Join date : 2013-03-16
Location : San Francisco

PostSubject: Re: alloc_domain_name failed ETC...   Sat 16 Mar - 14:58

I've been working on this. You can skip this, Rotello, I put it here mostly in case other people with these errors search the forums.

First I got an IE error page that said simply: "Navigation to the webpage was canceled". This went away when I passed the --noupdate flag to the client.

Next I got a webpage that says Invalid Asset Repository. This message, like its predecessor, is the same regardless of whether the remote servers are actually running. This turned out to be because at some point when I had even less of an idea of what I was doing than I do now I created a worldsettings.xml which contained bad data.

I now am faced with a screen that says "The Multiverse Servers are unavailable. Please visit the Platform Tutorial for instructions about setting up your own server and create your very own virtual world!" [sic]. Google says that this is http://login.multiversemmo.com/login.jsp. Ok, so now I give the --login-url command line paramterer and the client definitely goes to that page. Excellent! First time it has ever done anything I wanted it to.

After that was the login page. Ripping the page out of the trunk wasn't working for some reason so I stole a working one from the TrollWarrior project. Tried to add in a javascript function to hash the password to avoid sending plaintext, but that didn't work. Oh well.

Next the master server was receiving requests and throwing master key exceptions, which I fixed by respecifying the location of master_server.py in master.sh.

I was able to log in successfully and my remote asset cache worked on the first try.

Now I get an error saying 'unable to connect to server'. I checked the world server's status, it is defienitely running, I checked the machine's ports in use, and There is definitely a server listening on 5040. Following advice from a different thread I found these four errors:

Code:
instance.out:ERROR [2013-03-16 01:12:32,549] Instance-2          CreateInstanceHook: world file not found fileName=../config//.mvw
instance.out:ERROR [2013-03-16 01:12:32,561] Instance-4          CreateInstanceHook: world file not found fileName=../config//bigbrother.mvw
instance.out:ERROR [2013-03-16 01:12:32,567] Instance-6          CreateInstanceHook: world file not found fileName=../config//frontier.mvw
instance.out:ERROR [2013-03-16 01:12:32,574] Instance-8          CreateInstanceHook: world file not found fileName=../config//video.mvw

It seems to me that this is a failure to recognize the world name -- inside config there are folders with the names of each world, so those paths should look more like ../config/sampleworld/video.mvw

On a hunch I grep'd worldname in bin/ and discovered that yet another shell script meddles with this property and in some cases at least passes it as a paramter. PS reveals that the server was started with that parameter passed, but blank. I was able to fix this by moving the pair of lines beginning with JAVA_FLAGS and CMDLINE_PROPS to below the lines commented with "Get world name from properties file...."
Back to top Go down
conartist6
Newbie
Newbie
avatar

Posts : 3
Join date : 2013-03-16
Location : San Francisco

PostSubject: Re: alloc_domain_name failed ETC...   Sat 16 Mar - 15:32

Yay I had one more issue but it turned out to just be something dumb I did. The proper code to start the client and get it to connect is...

Code:
.\multiverseclient.exe --master [[[[mydomain.name]]]] --world sampleworld --login_url http://burningpotato.com/multiverse/login.htm

Enjoy!
Back to top Go down
Sponsored content




PostSubject: Re: alloc_domain_name failed ETC...   

Back to top Go down
 
alloc_domain_name failed ETC...
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Failed to create the game
» CreateDevice failed
» "Failed to join game"
» LOAD FAILED
» Failed to login

Permissions in this forum:You cannot reply to topics in this forum
 :: Development :: Getting Started-
Jump to: