Problem launching gameserver

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Problem launching gameserver

Post 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?
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Problem launching gameserver

Post by jurchiks »

Well, it's obvious that your server is looking for this: com.l2jserver.log.ErrorLogHandler
Maybe you've edited the log.cfg?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Re: Problem launching gameserver

Post 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.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Re: Problem launching gameserver

Post 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.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Re: Problem launching gameserver

Post 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);
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Re: Problem launching gameserver

Post 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.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Re: Problem launching gameserver

Post 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.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Problem launching gameserver

Post 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.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Re: Problem launching gameserver

Post 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.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
Post Reply