[Guide] Complete C3 server setup guide L2J 

Status
Not open for further replies.
hi my probmlem is:

Starting L2J server.

MLog clients using java 1.4+ standard logging.
Initializing c3p0-0.9.0 [built 08-??????-2005 15:47:30 +0400; debug? false; trac
e: 5]
Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@ab50cd [ conn
ectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@174c
c1f [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 10
00, autoCommitOnClose -> true, automaticTestTable -> null, breakAfterAcquireFail
ure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.
c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnre
solvedTransactions -> false, identityToken -> 174cc1f, idleConnectionTestPeriod
-> 0, initialPoolSize -> 1, maxIdleTime -> 0, maxPoolSize -> 10, maxStatements -
> 100, maxStatementsPerConnection -> 0, minPoolSize -> 1, nestedDataSource -> co
m.mchange.v2.c3p0.DriverManagerDataSource@110d81b [ description -> null, driverC
lass -> null, factoryClassLocation -> null, identityToken -> 110d81b, jdbcUrl ->
jdbc:mysql://localhost/l2jdb, properties -> {user=******, password=******** ], p
referredTestQuery -> null, propertyCycle -> 300, testConnectionOnCheckin -> fals
e, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false
], factoryClassLocation -> null, identityToken -> ab50cd, numHelperThreads -> 3
]
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@f5da06 -- Acquisition
Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed ne
w resource, we failed to succeed more than the maximum number of allowed acquisi
tion attempts (30).
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@8ed465 -- Acquisition
Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed ne
w resource, we failed to succeed more than the maximum number of allowed acquisi
tion attempts (30).
Exception in thread "main" java.sql.SQLException: Connections could not be acqui
red from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:104)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConne
ction(C3P0PooledConnectionPool.java:236)
at com.mchange.v2.c3p0.PoolBackedDataSource.getConnection(PoolBackedData
Source.java:94)
at net.sf.l2j.L2DatabaseFactory.<init>(L2DatabaseFactory.java:90)
at net.sf.l2j.L2DatabaseFactory.getInstance(L2DatabaseFactory.java:109)
at net.sf.l2j.Server.main(Server.java:67)
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A Resourc
ePool could not acquire a resource from its primary factory or source.
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAcquire(BasicResou
rcePool.java:970)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicR
esourcePool.java:208)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConne
ction(C3P0PooledConnectionPool.java:232)
... 4 more

Server terminated abnormaly


server terminated

Dr
 
iraelxxx12 said:
i cant find the file server.cfg :S
i think i dont got it!
cen some on upload it for me?

Server.cfg doesnt exixist anymore, you know must look in Config\Server.properties that's the server Configuration file
:3dflagsdo :3dflagsdo
 
OKOK! I know alot of people have been geting around the same problem as me but noone seems to be answering it. For some reason when you try to run the server it does a big blog of stuff, stops, a minute or so later it runs on real fast and ends up with this:
Starting L2J server.

MLog clients using java 1.4+ standard logging.
Initializing c3p0-0.9.0 [built 08-??????-2005 15:47:30 +0400; debug? false; trac
e: 5]
Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@15eb0a9 [ con
nectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@185
58d2 [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1
000, autoCommitOnClose -> true, automaticTestTable -> null, breakAfterAcquireFai
lure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2
.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnr
esolvedTransactions -> false, identityToken -> 18558d2, idleConnectionTestPeriod
-> 0, initialPoolSize -> 1, maxIdleTime -> 0, maxPoolSize -> 5, maxStatements -
> 100, maxStatementsPerConnection -> 0, minPoolSize -> 1, nestedDataSource -> co
m.mchange.v2.c3p0.DriverManagerDataSource@52fe85 [ description -> null, driverCl
ass -> null, factoryClassLocation -> null, identityToken -> 52fe85, jdbcUrl -> j
dbc:mysql://localhost/l2jdb?cachePrepStmts=true&prepStmtCacheSize=50, properties
-> {user=******, password=******** ], preferredTestQuery -> null, propertyCycle
-> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, use
sTraditionalReflectiveProxies -> false ], factoryClassLocation -> null, identity
Token -> 15eb0a9, numHelperThreads -> 3 ]
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@defa1a -- Acquisition
Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed ne
w resource, we failed to succeed more than the maximum number of allowed acquisi
tion attempts (30).
Exception in thread "main" java.sql.SQLException: Connections could not be acqui
red from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:104)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConne
ction(C3P0PooledConnectionPool.java:236)
at com.mchange.v2.c3p0.PoolBackedDataSource.getConnection(PoolBackedData
Source.java:94)
at net.sf.l2j.L2DatabaseFactory.<init>(L2DatabaseFactory.java:90)
at net.sf.l2j.L2DatabaseFactory.getInstance(L2DatabaseFactory.java:109)
at net.sf.l2j.Server.main(Server.java:67)
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A Resourc
ePool could not acquire a resource from its primary factory or source.
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAcquire(BasicResou
rcePool.java:970)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicR
esourcePool.java:208)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConne
ction(C3P0PooledConnectionPool.java:232)
... 4 more

Server terminated abnormaly


server terminated

Press any key to continue . . .

Im totally confused, i have done everything that you have told me to do perfect. I even went to the other persons guide and tried it, same problem. Im not sure whats wrong, any information would be helpfull, thanks.
 
This is to anyone with the error with the startserver.bat which includes dark, mid0, and basson ect......

I am not 100% sure if we had the same problem but after looking through my files, I believe I have found the problem.

The problem is within the Navicat. You should have the connection called l2jdb... The new database that you add which includes the Batch files accounts - zones. should also be titled l2jdb. If it is not, they will not read through the server program.

So if you have a database that isnt named l2jdb with the batch files in them... Then just make a new database with the name l2jdb and transfer the batch files from your old database into the one labeled as l2jdb by rightclicking and clicking transfer.

I hope this helped you all with this problem.

I would also like to ask how to connect to the server... I am having problems even though i changed my host to 127.0.0.1 l2authd.lineage2.com
I would also like to know hwo to make an admin account.
 
NoahYang said:
This is to anyone with the error with the startserver.bat which includes dark, mid0, and basson ect......

I am not 100% sure if we had the same problem but after looking through my files, I believe I have found the problem.

The problem is within the Navicat. You should have the connection called l2jdb... The new database that you add which includes the Batch files accounts - zones. should also be titled l2jdb. If it is not, they will not read through the server program.

So if you have a database that isnt named l2jdb with the batch files in them... Then just make a new database with the name l2jdb and transfer the batch files from your old database into the one labeled as l2jdb by rightclicking and clicking transfer.

I hope this helped you all with this problem.

I would also like to ask how to connect to the server... I am having problems even though i changed my host to 127.0.0.1 l2authd.lineage2.com
I would also like to know hwo to make an admin account.

good advance... EVERYBODY !!! read this before complain same problem !

now i've got this last line after done that:
...
Telnet server is currently disabled
 
Last edited:
Cannot Connect!

Please help me,cannot connect to my server:

# ================================================================
# General server setting !!! REQUIRED to configure to everyone !!!
# ================================================================
# Bind ip of the gameserver, use * to bind on all available IPs
GameserverHostname=*
GameserverPort=7777
# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
ExternalHostname=86.193.107.138
#[My ip adress (Wan ip change 24 hours)]
# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname=127.0.0.1
#[My local IP]

My host is:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
#-------------------------------------------------------------+
127.0.0.1 localhost



All port are open in my routeur Linksys!
I give the lasted version and datapack,
My server is launch!
But not up!
Please help me!

Other: I use the L2run launcher with no-ip becausse I possed a Wan ip(86.193.107.138):
mordie.no-ip.info
 
Last edited:
ok I may have missed this in all the stuff here but there is a lot to read. My questions are these as I find them unclear in the guide.
1. Where do I put all the datapack files and the l2jserver files?
Do they belong in the Lineage 2 folder after I install the game or do I create a entire folder just for those, or do they go into the mysql folder?

2. I was unable to find a server.cfg file to edit so I was unable to setup my server that way also. Where is this file suppose to be located?

I am sorry I am really trying but I am not that smart and really need a more detailed step by step break down to get it going.

Thanks for all who may help.
 
aybe someone will help me too?! what version of system folder i should have to use this server files? when i conect to my server , server writes that i have wrong heck summ or smt like that. I know that the problem is in system folder of my lineage game folder. some help pliz ?!
 
mordie said:
Please help me,cannot connect to my server:

# ================================================================
# General server setting !!! REQUIRED to configure to everyone !!!
# ================================================================
# Bind ip of the gameserver, use * to bind on all available IPs
GameserverHostname=*
GameserverPort=7777
# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
ExternalHostname=86.193.107.138
#[My ip adress (Wan ip change 24 hours)]
# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname=127.0.0.1
#[My local IP]

My host is:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
#-------------------------------------------------------------+
127.0.0.1 localhost



All port are open in my routeur Linksys!
I give the lasted version and datapack,
My server is launch!
But not up!
Please help me!

Other: I use the L2run launcher with no-ip becausse I possed a Wan ip(86.193.107.138):
mordie.no-ip.info

i think u cannot run a server with an ip that is disappering all 24 hours it could be really tough!
 
hi im kinda new to the private server thing, in the guide u say :"Download and extract the required datafiles, L2J-DataPack_NIO.zip and l2j-server.zip into the folder. After you have done that, download l2jserver.jar and overwrite the old file located in the folder" <<< extract each of those to where? and when i DL the l2jserver.jar i end up DLing a folder from that link u posted on the guide.. sorry if im be'n dumb but im have'n trouble understanding what to do with these files er zips
 
Last edited:
MOEDIE if you are using a router to your computer you have to configure your ip and set it to static id you dont know how to do that just reply with this message coz if your dhcp is on everytime you opened your computer your ip will be change i hope you understand what i mean
 
I finaly got the server to run, But i am having an Extremly noob problem...i cannot figure out how to start the game so that it runs on my server instead of the normal lineage 2 server...please help me aim= c0mt3k

[edit]I am able to login now but when i get to the server screen i am also having the problem that is the server is 9999 ping im nt to sure how t fix this but i will post it if i find the fix ^_^ if anyone knows it already please aim me. Thanks

[edit] To fix the server 9999 problem turn off telnet...thats the thing that fixed it for me...
 
Last edited:
Status
Not open for further replies.
Back