worldofbalance / wob-server

4 stars 6 forks source link

WoB-Server not running #1

Closed me12722 closed 8 years ago

me12722 commented 8 years ago

screen shot 2016-03-21 at 4 14 29 pm I get that message whenever I try to run the code and I can't seem to find the message. Im gonna keep looking but I was wondering if anyone else has found a work around. @Fito also sees the same message.

jensvdh commented 8 years ago

I think @rujoota had it running last week.

@rujoota @rupalkhilari . Thoughts?

rujoota commented 8 years ago

Yes its working for me. Its just throwing error during mini game server initialization because jar file is missing, but still waiting for connection.

Can you check the db.conf file under conf directory? I use following settings:

Database URL

DBURL thecity.sfsu.edu

Database name

DBName csc63101

Database user name

DBUsername csc63101

Database user password

DBPassword csc631_01

jensvdh commented 8 years ago

@me12722 Let me know if that works. If it does. Let's create a PR that adds this to the settings and merge it into development?

I think it's nice to have some sensible defaults.

rupalkhilari commented 8 years ago

It seems to work fine for me too with the same default settings as in db.conf. Perhaps this post might help. Maybe you could print the stacktrace to find out the cause of it. You could also try opening a telnet connection to thecity.sfsu.edu 3306 to see if your firewall permits it or is blocking the connection.

me12722 commented 8 years ago

Not sure what's going on buy i added print statements to where i thought it was breaking and it ran screen shot 2016-03-22 at 3 32 06 pm not sure the issue is resolved but at least it is currently running

rujoota commented 8 years ago

Yes this issue is still there in MiniGameServers.java as its expecting jar file from cow and rr at specific location. But for me, even after exception, it was accepting new connection from client. If its not working for you, you can comment out stuff in initMiniGames() in lby/MiniGameServers.java.

me12722 commented 8 years ago

ok, Im just not sure why it wasn't running before. I changed nothing besides the print statements.

me12722 commented 8 years ago

the configuration was the same so didnt have to change anything.

jensvdh commented 8 years ago

OK. So can we mark this closed then?

me12722 commented 8 years ago

Maybe we should wait to see if @Fito can get his to run as well?

Fito commented 8 years ago

It runs for me, we can close this issue, but we should do something about the minigame jar files not being found.

rujoota commented 8 years ago

Yes, we would be working towards that for cow jar.

jensvdh commented 8 years ago

Ideally it not finding the JAR should not necessarily crash or throw an error. There are usecases where you'd probably be running the Main Class for COW for example without actually building a JAR. This should be sufficient (as the server would still be able to open a connection on that port). Unless you want to rebuild the JAR every time you change code but that seems a bit overkill..

Fito commented 8 years ago

I guess since the MiniGameServers.java class is under the lobby package, and it deals with other minigames, this falls under lobby's integration (me). I'm working on making then configurable.

niculistana commented 8 years ago

Please see ddeb4ca6959cc1731413a6e9ec6509e21c150717. I added the jar files. @me12722 If this fixes your issue, I will make a pull request to master.

Edit: The jar files I uploaded has some bugs in it... I will fix them and make another commit.