Page 1 of 1

Problem launching gameserver

Posted: Sun Apr 03, 2011 4:03 pm
by msknight
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 4535:
L2JDP Revision 7856:

I'm obviously doing something wrong here.

I've been trying to upgrade a system that has been idle for a few months. It has been a fair chunk of work and I've obviously missed something, somewhere. But with a name like "Error LogHandler" that implies something went wrong with the compile.

michelle@l2j:/data/l2jserver/lithra$ cat log/stdout.log
Can't load log handler "net.sf.l2j.ErrorLogHandler"
java.lang.ClassNotFoundException: net.sf.l2j.ErrorLogHandler
java.lang.ClassNotFoundException: net.sf.l2j.ErrorLogHandler
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)

Ant appears to go well....

Code: Select all

michelle@michelle:~/Documents/L2J/L2J_Server$ antBuildfile: /home/michelle/Documents/L2J/L2J_Server/build.xml clean:   [delete] Deleting directory /home/michelle/Documents/L2J/L2J_Server/build verifyRequirements: init:    [mkdir] Created dir: /home/michelle/Documents/L2J/L2J_Server/build    [mkdir] Created dir: /home/michelle/Documents/L2J/L2J_Server/build/classes    [mkdir] Created dir: /home/michelle/Documents/L2J/L2J_Server/build/dist    [mkdir] Created dir: /home/michelle/Documents/L2J/L2J_Server/build/dist/login    [mkdir] Created dir: /home/michelle/Documents/L2J/L2J_Server/build/dist/gameserver version: compile:    [javac] /home/michelle/Documents/L2J/L2J_Server/build.xml:63: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds    [javac] Compiling 1522 source files to /home/michelle/Documents/L2J/L2J_Server/build/classes jar:      [jar] Building jar: /home/michelle/Documents/L2J/L2J_Server/build/l2jserver.jar      [jar] Building jar: /home/michelle/Documents/L2J/L2J_Server/build/l2jlogin.jar     [copy] Copying 1 file to /home/michelle/Documents/L2J/L2J_Server/build/dist/login     [copy] Copying 1 file to /home/michelle/Documents/L2J/L2J_Server/build/dist/gameserver jarsrc:    [mkdir] Created dir: /home/michelle/Documents/L2J/L2J_Server/build/dist/libs      [jar] Building jar: /home/michelle/Documents/L2J/L2J_Server/build/dist/libs/l2jserver-src.jar dist:     [copy] Copying 3 files to /home/michelle/Documents/L2J/L2J_Server/build/dist/login     [copy] Copying 2 files to /home/michelle/Documents/L2J/L2J_Server/build/dist/gameserver     [copy] Copying 13 files to /home/michelle/Documents/L2J/L2J_Server/build/dist/libs     [copy] Copying 2 files to /home/michelle/Documents/L2J/L2J_Server/build/dist/languages     [copy] Copying 5 files to /home/michelle/Documents/L2J/L2J_Server/build/dist/images     [copy] Copying 2 files to /home/michelle/Documents/L2J/L2J_Server/build/dist/doc     [copy] Copying 9 files to /home/michelle/Documents/L2J/L2J_Server/build/dist/doc     [copy] Copying 10 files to /home/michelle/Documents/L2J/L2J_Server/build/dist/login     [copy] Copying 5 files to /home/michelle/Documents/L2J/L2J_Server/build/dist/gameserver    [mkdir] Created dir: /home/michelle/Documents/L2J/L2J_Server/build/dist/gameserver/log    [mkdir] Created dir: /home/michelle/Documents/L2J/L2J_Server/build/dist/login/log    [mkdir] Created dir: /home/michelle/Documents/L2J/L2J_Server/build/dist/login/config     [copy] Copying 22 files to /home/michelle/Documents/L2J/L2J_Server/build/dist/gameserver/config     [copy] Copying 3 files to /home/michelle/Documents/L2J/L2J_Server/build/dist/login/config    [mkdir] Created dir: /home/michelle/Documents/L2J/L2J_Server/build/dist/gameserver/data     [copy] Copying 1 file to /home/michelle/Documents/L2J/L2J_Server/build/dist/gameserver/data    [mkdir] Created dir: /home/michelle/Documents/L2J/L2J_Server/build/dist/gameserver/data/geodata     [copy] Copying 1 file to /home/michelle/Documents/L2J/L2J_Server/build/dist/gameserver/data/geodata    [mkdir] Created dir: /home/michelle/Documents/L2J/L2J_Server/build/dist/gameserver/data/pathnode     [copy] Copying 1 file to /home/michelle/Documents/L2J/L2J_Server/build/dist/gameserver/data/pathnode      [zip] Building zip: /home/michelle/Documents/L2J/L2J_Server/build/L2J_Server.zip BUILD SUCCESSFULTotal time: 19 seconds
Any ideas please?

Re: Problem launching gameserver

Posted: Sun Apr 03, 2011 4:10 pm
by jurchiks
Well, it's obvious that your server is looking for this: com.l2jserver.log.ErrorLogHandler
Maybe you've edited the log.cfg?

Re: Problem launching gameserver

Posted: Sun Apr 03, 2011 4:22 pm
by msknight
That was it!

I actually hadn't edited that file. I don't recall that file changing very much. So this time, that file had changed and I didn't spot it!

Now I've got other things...
L2Properties: Missing property for key - DatapackRoot
Exception in thread "main" java.lang.NoClassDefFoundError: gnu/trove/TIntArrayList

... so it looks like I'm in for a time fixing all the things I've missed!

Many thanks for the help.

Michelle.

Re: Problem launching gameserver

Posted: Sun Apr 03, 2011 4:25 pm
by msknight
Hmmm... next one I don't understand ...

Exception in thread "main" java.lang.NoClassDefFoundError: gnu/trove/TIntArrayList
at com.l2jserver.Config.load(Config.java:1098)

Something else that is probably remmed out that I'm supposed to unrem and supply ... somewhere.

Re: Problem launching gameserver

Posted: Sun Apr 03, 2011 4:31 pm
by msknight
Looks like it doesn't like the protocol revisions in the server properties...

String[] protocols = serverSettings.getProperty("AllowedProtocolRevisions", "146;152").split(";");

PROTOCOL_LIST = new TIntArrayList(protocols.length);

Re: Problem launching gameserver

Posted: Sun Apr 03, 2011 4:34 pm
by msknight
OK - now I'm a little perplexed. The downloaded server.properties is...

AllowedProtocolRevisions = 216

...but I know it must be greater than 216 because they has been a major client revision since this version and people got version missmatches connecting to my server.

So... I guess someone must have already asked this so I'm going to search the forum.

Re: Problem launching gameserver

Posted: Sun Apr 03, 2011 4:43 pm
by msknight
Nope. I'm on to a loser.

Here's the config...

Code: Select all

# Numbers of protocol revisions that server allows to connect. # Delimiter is ; # WARNING: <u><b><font color="red">Changing the protocol revision may result in incompatible communication and many errors in game!</font></b></u> # Default: 216 AllowedProtocolRevisions = 152  
But the error still returns...

Code: Select all

Loading GameServer Configuration Files...Exception in thread "main" java.lang.NoClassDefFoundError: gnu/trove/TIntArrayList    at com.l2jserver.Config.load(Config.java:1098)    at com.l2jserver.gameserver.GameServer.main(GameServer.java:488)
So I think I'm looking in the wrong place for this one.

Re: Problem launching gameserver

Posted: Sun Apr 03, 2011 8:31 pm
by jurchiks
maybe you are missing the trove-2.1.0.jar in libs folder?
cuz that's where it's read from on server startup.

Re: Problem launching gameserver

Posted: Sun Apr 03, 2011 9:23 pm
by msknight
Many thanks. That did it.

Apologies for the multiple posts, I thought that with the first question on this one solved, people would not return to it, so I made a new thread.