Tomcat Error

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

duylinh013
Posts: 25
Joined: 28 Jul 2016, 01:40

Tomcat Error

Postby duylinh013 » 31 Dec 2019, 05:49

Hi,

I tried to install latest version of Smartfoxserver and i got the following error:

12:47:41,378 INFO [main] v2.SmartFoxServer - Boot sequence starts...
12:47:41,722 INFO [main] core.SFSEventManager - SFSEventManager initialized
12:47:41,743 INFO [main] impl.DefaultFileReplicator - Using "/tmp/vfs_cache" as temporary files store.
12:47:41,810 INFO [main] v2.SmartFoxServer - License loaded:

==========================================
LICENSE DETAILS
------------------------------------------
Type : Community Edition
Max users : 100
==========================================

12:47:41,811 INFO [main] managers.SFSBannedUserStorage - BanUserStorage initialized
12:47:41,821 INFO [main] managers.SFSBannedUserManager - BanUser data loaded: 0 records.
12:47:41,827 INFO [main] v2.SmartFoxServer - Protocol Type is: BINARY
12:47:41,855 INFO [main] managers.SFSRoomManager - Room created: { Zone: --=={{{ AdminZone }}}==-- }, [ Room: AdminRoom, Id: 0, Group: default, isGame: false ], type = SFSRoom
12:47:41,892 INFO [main] core.AdminToolService - AdminTool Service started
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
at com.smartfoxserver.v2.http.TomcatServer.start(TomcatServer.java:43)
at com.smartfoxserver.v2.SmartFoxServer.start(SmartFoxServer.java:330)
at com.smartfoxserver.v2.Main.main(Main.java:13)
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstrap
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)


How can i solve this?

Best Regards
User avatar
Lapo
Site Admin
Posts: 21287
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Tomcat Error

Postby Lapo » 31 Dec 2019, 08:50

Hi,
can you tell me how you're starting up SmartFoxServer?

Also is it possible you've installed the server on top of a previous version of SFS2X? If so you will need to install it again in a new location.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
duylinh013
Posts: 25
Joined: 28 Jul 2016, 01:40

Re: Tomcat Error

Postby duylinh013 » 31 Dec 2019, 09:03

Hi Lapo,

I did a fresh install on new folder.

Best Regards,
Linh
User avatar
Lapo
Site Admin
Posts: 21287
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Tomcat Error

Postby Lapo » 02 Jan 2020, 08:12

What operating system are you using?

The error you have posted indicates that some necessary dependencies are missing, which suggests that your current installation is corrupted. I would suggest to un-install it and start from scratch.

Let us know
Lapo

--

gotoAndPlay()

...addicted to flash games
duylinh013
Posts: 25
Joined: 28 Jul 2016, 01:40

Re: Tomcat Error

Postby duylinh013 » 02 Jan 2020, 09:14

Hi Lapo,

I already done with the new version 2.14.

It was the issue of conflicting port in tomcat server.xml file.

<Server port="8005" shutdown="SHUTDOWN">

Change this value to free port fixed my issue.

Best Regards,
Linh
User avatar
Lapo
Site Admin
Posts: 21287
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Tomcat Error

Postby Lapo » 02 Jan 2020, 16:17

Hi,
it is possible there was a port conflict. However I was not able to reproduce the problem. I tried by binding another web server to port 8005 and then starting SFS2X 2.14 (w/ Tomcat) but the server started up with no errors.

Thanks anyway.
Lapo

--

gotoAndPlay()

...addicted to flash games
kesereine
Posts: 1
Joined: 18 Jan 2020, 14:42

Re: Tomcat Error

Postby kesereine » 18 Jan 2020, 14:44

The problem still persists even when I install it in fresh folder.
User avatar
Lapo
Site Admin
Posts: 21287
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Tomcat Error

Postby Lapo » 18 Jan 2020, 17:03

Hi,
kesereine wrote:The problem still persists even when I install it in fresh folder.

I would recommend downloading the installer again as we've fixed this a few days ago.
https://smartfoxserver.com/download#p=installer

Let us know
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: DavinVicy, DerikFent, JerodSa and 12 guests