Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

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

Moderators: Lapo, Bax

pushpendra
Posts: 9
Joined: 03 Oct 2019, 12:15

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby pushpendra » 07 Jan 2020, 06:53

Hi, I have install the SFS2X 2_14_0 unix on my production server, This is producing exception and not working as expected. Previously I was using SFS2X 2_13_0 it was working fine! Below is the error

Code: Select all

06:47:47,342 INFO  [main] managers.SFSRoomManager     - Room created: { Zone: --=={{{ AdminZone }}}==-- }, [ Room: AdminRoom, Id: 0, Group: default, isGame: false ], type = SFSRoom
06:47:47,437 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)
   ... 3 more
06:47:47,606 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - Listening Sockets: { 0.0.0.0:9933, (Tcp) } { 127.0.0.1:9933, (Udp) }
06:47:47,609 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - 
 _____ _____ _____    ___ __ __
|   __|   __|   __|  |_  |  |  |
|__   |   __|__   |  |  _|-   -|
|_____|__|  |_____|  |___|__|__|                                         
 _____ _____ _____ ____  __ __
| __  |   __|  _  |    \|  |  |
|    -|   __|     |  |  |_   _|
|__|__|_____|__|__|____/  |_| 
[ 2.14.0 ]


I have also followed viewtopic.php?f=18&t=22068
But this solution did not help me. I have look into ports also did not help me. Please correct me where I am doing mistake. And for your kind information I am using Ubuntu 18. And I have install SFS2X many time from scratch.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby Lapo » 07 Jan 2020, 08:28

Hi,
we use Ubuntu 18.x for all our tests and never found an issue with SFS2X 2.14.
Can you tell me how are you stating up the server?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
pushpendra
Posts: 9
Joined: 03 Oct 2019, 12:15

Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby pushpendra » 07 Jan 2020, 09:14

Yes, First installing SMARTFOX Server and enabling SSL as per the official document suggestion! It is also quite new for me! We have install SSL Certificate our server which is installed with lets encrypt technology. But I do not have idea why this issue is occurring. And how to debug. And it is happening only after updating new SmartFox server. Some of the process has stoped working even debugger also not caching those points!
User avatar
gabrielvpy
Posts: 69
Joined: 23 Jul 2015, 20:18

Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby gabrielvpy » 07 Jan 2020, 13:51

I'm having the same issue. I need to migrate my servers ASAP and this is making me lose money. Is there a way for me to download version 2.13.3? I'm currently working with that version without any issues.
We made an awesome GPS - MOBA.
Try it out here: Get Fhacktions
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby Lapo » 07 Jan 2020, 16:52

gabrielvpy wrote:I'm having the same issue. I need to migrate my servers ASAP and this is making me lose money. Is there a way for me to download version 2.13.3? I'm currently working with that version without any issues.

Would you mind explaining the steps to reproduce the problem?
Also please specify the OS version in use.

As regards previous versions, if you have a commercial license, you can send us an email to support@... and we'll send the links.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
gabrielvpy
Posts: 69
Joined: 23 Jul 2015, 20:18

Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby gabrielvpy » 07 Jan 2020, 17:05

I created an EC2 "Ubuntu Server 18.04 LTS (HVM), SSD Volume Type" t2.micro (free tier) vm at AWS. Opened the 8080, 9933 and 443 ports. Uploaded my extensions and configured them. That is it.

I'll send the email now.
We made an awesome GPS - MOBA.
Try it out here: Get Fhacktions
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby Lapo » 07 Jan 2020, 17:12

If the server fails to start immediately after installation, simply remove the sfs2x-service.vmoptions file and try starting it up again.

Let us know.
Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
gabrielvpy
Posts: 69
Joined: 23 Jul 2015, 20:18

Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby gabrielvpy » 07 Jan 2020, 17:35

is this line from that file the issue?
-classpath/p ./:lib/*:lib/jetty/lib/*:extensions/__lib__/*

there is no jetty folder anymore, there is the new apache-tomcat folder tho.

I need that file becuase mine looks like this
# Enter one VM parameter per line
# To include another file, uncomment the following line and enter the file path:
# -include-options [path to other .vmoption file]
-classpath/p ./:lib/*:lib/jetty/lib/*:extensions/__lib__/*
-Dfile.encoding=UTF-8
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=5000
-Dcom.sun.management.jmxremote.rmi.port=5000
-Djava.rmi.server.hostname=35.169.6.0
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
We made an awesome GPS - MOBA.
Try it out here: Get Fhacktions
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby Lapo » 07 Jan 2020, 17:40

The classpath in that file is not necessary, so you can simply remove the entry.
Let us know if it works.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
gabrielvpy
Posts: 69
Joined: 23 Jul 2015, 20:18

Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby gabrielvpy » 07 Jan 2020, 17:45

I edited the file changing the jetty path but it didn't work.
I removed the file and it still doesn't work.
We made an awesome GPS - MOBA.
Try it out here: Get Fhacktions
User avatar
gabrielvpy
Posts: 69
Joined: 23 Jul 2015, 20:18

Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby gabrielvpy » 09 Jan 2020, 14:16

So, I manage to pinpoint when it crashes in my case.

1- Fresh intall OK
2- Upload ZoneExtension and _lib_ folders and postgres jar to SFS2X/lib
3- upload SFS2X/key folder (firebase authentication)
by this point I got the following error

Code: Select all

13:47:54,186 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - SmartFoxServer 2X (2.14.0) READY!
Jan 09, 2020 1:47:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name:   Apache Tomcat/9.0.22
Jan 09, 2020 1:47:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Jul 4 2019 14:20:06 UTC
Jan 09, 2020 1:47:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 9.0.22.0
Jan 09, 2020 1:47:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Linux
Jan 09, 2020 1:47:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            4.15.0-1051-aws
Jan 09, 2020 1:47:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
Jan 09, 2020 1:47:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             /home/ubuntu/SmartFoxServer_2X/jre
Jan 09, 2020 1:47:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.8.0_222-b10
Jan 09, 2020 1:47:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            AdoptOpenJDK
Jan 09, 2020 1:47:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         /home/ubuntu/SmartFoxServer_2X/SFS2X/lib/apache-tomcat
Jan 09, 2020 1:47:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         /home/ubuntu/SmartFoxServer_2X/SFS2X/lib/apache-tomcat
Jan 09, 2020 1:47:54 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Jan 09, 2020 1:47:54 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
java.io.FileNotFoundException: www/root/monitor.json (No such file or directory)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
        at com.fhacktions.zone.ZoneExtension.lambda$init$10(ZoneExtension.java:818)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Jan 09, 2020 1:47:55 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Jan 09, 2020 1:47:55 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"]
Jan 09, 2020 1:47:56 PM org.apache.catalina.startup.Catalina load
INFO: Server initialization in [1,978] milliseconds
Jan 09, 2020 1:47:56 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Jan 09, 2020 1:47:56 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.22]
Jan 09, 2020 1:47:56 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/BlueBox.war]
java.io.FileNotFoundException: www/root/monitor.json (No such file or directory)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
        at com.fhacktions.zone.ZoneExtension.lambda$init$10(ZoneExtension.java:818)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)


4- www/root/monitor.json is something we use so now I'll upload that
This is the output at this moment
 

Code: Select all

_____ _____ _____    ___ __ __
|   __|   __|   __|  |_  |  |  |
|__   |   __|__   |  |  _|-   -|
|_____|__|  |_____|  |___|__|__|
 _____ _____ _____ ____  __ __
| __  |   __|  _  |    \|  |  |
|    -|   __|     |  |  |_   _|
|__|__|_____|__|__|____/  |_|
[ 2.14.0 ]

13:52:00,303 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - SmartFoxServer 2X (2.14.0) READY!
Jan 09, 2020 1:52:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name:   Apache Tomcat/9.0.22
Jan 09, 2020 1:52:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Jul 4 2019 14:20:06 UTC
Jan 09, 2020 1:52:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 9.0.22.0
Jan 09, 2020 1:52:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Linux
Jan 09, 2020 1:52:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            4.15.0-1051-aws
Jan 09, 2020 1:52:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
Jan 09, 2020 1:52:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             /home/ubuntu/SmartFoxServer_2X/jre
Jan 09, 2020 1:52:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.8.0_222-b10
Jan 09, 2020 1:52:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            AdoptOpenJDK
Jan 09, 2020 1:52:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         /home/ubuntu/SmartFoxServer_2X/SFS2X/lib/apache-tomcat
Jan 09, 2020 1:52:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         /home/ubuntu/SmartFoxServer_2X/SFS2X/lib/apache-tomcat
Jan 09, 2020 1:52:00 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Jan 09, 2020 1:52:00 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
Jan 09, 2020 1:52:01 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Jan 09, 2020 1:52:01 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"]
Jan 09, 2020 1:52:02 PM org.apache.catalina.startup.Catalina load
INFO: Server initialization in [2,126] milliseconds
Jan 09, 2020 1:52:02 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Jan 09, 2020 1:52:02 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.22]
Jan 09, 2020 1:52:02 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/BlueBox.war]
Jan 09, 2020 1:52:10 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
13:52:10,204 INFO  [main] bluebox.BBSessionFilter     - BlueBox Service (4.0.0) READY.
Jan 09, 2020 1:52:10 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/BlueBox.war] has finished in [7,609] ms
Jan 09, 2020 1:52:10 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/manager]
Jan 09, 2020 1:52:14 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jan 09, 2020 1:52:14 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/manager] has finished in [4,383] ms
Jan 09, 2020 1:52:14 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/logsBackup]
Jan 09, 2020 1:52:18 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jan 09, 2020 1:52:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/logsBackup] has finished in [3,672] ms
Jan 09, 2020 1:52:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/HelloServlet]
Jan 09, 2020 1:52:21 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jan 09, 2020 1:52:21 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/HelloServlet] has finished in [3,517] ms
Jan 09, 2020 1:52:21 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/host-manager]
Jan 09, 2020 1:52:24 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jan 09, 2020 1:52:24 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/host-manager] has finished in [2,774] ms
Jan 09, 2020 1:52:24 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/ROOT]
Jan 09, 2020 1:52:27 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jan 09, 2020 1:52:27 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/ROOT] has finished in [2,507] ms
Jan 09, 2020 1:52:27 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Jan 09, 2020 1:52:27 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["https-jsse-nio-8443"]
Jan 09, 2020 1:52:27 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in [24,650] millisecondslog4j:ERROR Attempted to append to closed appender named [consoleAppender].
log4j:ERROR Attempted to append to closed appender named [consoleAppender].
log4j:ERROR Attempted to append to closed appender named [consoleAppender].
log4j:ERROR Attempted to append to closed appender named [consoleAppender].


5- I'm going to update my log4j.properties file
Current output

Code: Select all

13:55:34,638 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - SmartFoxServer 2X (2.14.0) READY!
Jan 09, 2020 1:55:35 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name:   Apache Tomcat/9.0.22
Jan 09, 2020 1:55:35 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Jul 4 2019 14:20:06 UTC
Jan 09, 2020 1:55:35 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 9.0.22.0
Jan 09, 2020 1:55:35 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Linux
Jan 09, 2020 1:55:35 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            4.15.0-1051-aws
Jan 09, 2020 1:55:35 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
Jan 09, 2020 1:55:35 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             /home/ubuntu/SmartFoxServer_2X/jre
Jan 09, 2020 1:55:35 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.8.0_222-b10
Jan 09, 2020 1:55:35 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            AdoptOpenJDK
Jan 09, 2020 1:55:35 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         /home/ubuntu/SmartFoxServer_2X/SFS2X/lib/apache-tomcat
Jan 09, 2020 1:55:35 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         /home/ubuntu/SmartFoxServer_2X/SFS2X/lib/apache-tomcat
Jan 09, 2020 1:55:35 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Jan 09, 2020 1:55:35 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
Jan 09, 2020 1:55:35 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Jan 09, 2020 1:55:35 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["https-jsse-nio-8443"]
Jan 09, 2020 1:55:36 PM org.apache.catalina.startup.Catalina load
INFO: Server initialization in [1,970] milliseconds
Jan 09, 2020 1:55:36 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Jan 09, 2020 1:55:36 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.22]
Jan 09, 2020 1:55:36 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/BlueBox.war]
Jan 09, 2020 1:55:42 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
13:55:42,626 INFO  [main] bluebox.BBSessionFilter     - BlueBox Service (4.0.0) READY.
Jan 09, 2020 1:55:42 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/BlueBox.war] has finished in [5,832] ms
Jan 09, 2020 1:55:42 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/manager]
Jan 09, 2020 1:55:46 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jan 09, 2020 1:55:46 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/manager] has finished in [4,318] ms
Jan 09, 2020 1:55:46 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/logsBackup]
Jan 09, 2020 1:55:50 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jan 09, 2020 1:55:50 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/logsBackup] has finished in [3,824] ms
Jan 09, 2020 1:55:50 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/HelloServlet]
Jan 09, 2020 1:55:54 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jan 09, 2020 1:55:54 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/HelloServlet] has finished in [3,429] ms
Jan 09, 2020 1:55:54 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/host-manager]
Jan 09, 2020 1:55:56 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jan 09, 2020 1:55:57 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/host-manager] has finished in [2,762] ms
Jan 09, 2020 1:55:57 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/ROOT]
Jan 09, 2020 1:55:59 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jan 09, 2020 1:55:59 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/home/ubuntu/SmartFoxServer_2X/SFS2X/www/ROOT] has finished in [2,691] ms
Jan 09, 2020 1:55:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Jan 09, 2020 1:55:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["https-jsse-nio-8443"]
Jan 09, 2020 1:55:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in [23,096] milliseconds




6- Upload our MenuExtension (room extension)
Same output as before

7- Upload remaining Extensions
Same output as before

8- Updated JVM settings for JMXRemote and voila, it crashes

Code: Select all

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 >> Zone: ProyectoUno
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

14:05:37,052 INFO  [main] serialization.DefaultSFSDataSerializer     - Skipping Unsupported SQL TYPE: -7, Column:armo_main
14:05:37,077 INFO  [main] managers.SFSRoomManager     - Room created: { Zone: ProyectoUno }, [ Room: Menu, Id: 0, Group: default, isGame: false ], type = SFSRoom
14:05:37,094 INFO  [main] Extensions     - {MenuExtension}: Menu Extension -- started
14:05:37,142 INFO  [main] Extensions     - {ZoneExtension}: Start new
14:05:37,587 INFO  [main] Extensions     - {ZoneExtension}: Client platform/version: ios/0.6.6/{1.0.40,1.0.41,1.0.42,1.0.43,1.0.44,1.0.45,1.0.46,1.0.47}
14:05:37,587 INFO  [main] Extensions     - {ZoneExtension}: Client platform/version: android/0.6.6/{local_server,1.0.38,1.0.39,1.0.40,1.0.41,1.0.42,1.0.43,1.0.44,1.0.45,1.0.46,1.0.47}
14:05:37,901 INFO  [main] Extensions     - {ZoneExtension}: Banned users: []
14:05:37,905 INFO  [pool-1-thread-4] zone.ZoneExtension     - Running updateSubscriptionTask...
14:05:37,906 INFO  [main] zone.ZoneExtension     - ClearDataBase CREATE
14:05:37,907 INFO  [pool-1-thread-2] zone.ZoneExtension     - ClearDataBase START
14:05:38,150 INFO  [pool-1-thread-4] zone.ZoneExtension     - No Subscriptions to Update
14:05:38,151 INFO  [pool-1-thread-4] zone.ZoneExtension     - expire_avatars en ejecucion
14:05:38,645 INFO  [pool-1-thread-2] zone.ZoneExtension     - ClearDataBase lockResult.size: 0
14:05:38,815 INFO  [main] managers.SFSRoomManager     - Room created: { Zone: --=={{{ AdminZone }}}==-- }, [ Room: AdminRoom, Id: 1, Group: default, isGame: false ], type = SFSRoom
14:05:38,904 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)
        ... 3 more
14:05:39,030 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - Listening Sockets: { 0.0.0.0:9933, (Tcp) } { 127.0.0.1:9933, (Udp) }
14:05:39,031 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     -
 _____ _____ _____    ___ __ __
|   __|   __|   __|  |_  |  |  |
|__   |   __|__   |  |  _|-   -|
|_____|__|  |_____|  |___|__|__|
 _____ _____ _____ ____  __ __
| __  |   __|  _  |    \|  |  |
|    -|   __|     |  |  |_   _|
|__|__|_____|__|__|____/  |_|
[ 2.14.0 ]

14:05:39,034 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - SmartFoxServer 2X (2.14.0) READY!


9- I removed the configuration but the issue persists
We made an awesome GPS - MOBA.
Try it out here: Get Fhacktions
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby Lapo » 09 Jan 2020, 16:09

Hi,
thanks, since you've already sent us this via email and we've replied there, let's keep the conversation in one place. We will update this thread when the problem is solved.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby Lapo » 09 Jan 2020, 17:48

UPDATE: we have identified a possible cause for this issue in the Admin Tool, under Server Configurator > JVM Settings
Editing and saving those setting will break the classpath when launching the server via the sfs2x.sh or sfs2x.bat

This however does not impact the sfs2x-standalone and sfs2x-service scripts which are used for production.

We're going to update the installers as soon as possible.
Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap

Postby Lapo » 10 Jan 2020, 11:03

We've updated the installers.
If you had similar issues when editing the JVM settings from AdminTool we recommend uninstalling the current copy and downloading and lunching the new installer.

https://smartfoxserver.com/download#p=installer

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 75 guests