Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Deploy on Tomcat fails (http)
Deploy on Tomcat fails (http) [message #1748336] Tue, 22 November 2016 10:52 Go to next message
Corrado Parisi is currently offline Corrado ParisiFriend
Messages: 13
Registered: September 2016
Junior Member
I tried to deploy my eclipse scout application (framework) on tomcat. I configured the application to http correctly. But the server and consequently the UI can't start.

Here's the stacktrace of the exception:

[33msyscodeapp_1  |[0m Exception in thread "Thread-6" 19-Nov-2016 04:50:49.525 SEVERE [http-apr-8080-exec-4] org.apache.catalina.core.StandardContext.startInternal Context [/org.eclipse.scout.sysmanagement.org.eclipse.scout.sysmanagement.ui.html] startup failed due to previous errors
[33msyscodeapp_1  |[0m java.lang.NullPointerException
[33msyscodeapp_1  |[0m        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.fireStateEvent(PlatformImplementor.java:308)
[33msyscodeapp_1  |[0m        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.changeState(PlatformImplementor.java:284)
[33msyscodeapp_1  |[0m        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:141)
[33msyscodeapp_1  |[0m        at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:32)


Any ideas?
Re: Deploy on Tomcat fails (http) [message #1748343 is a reply to message #1748336] Tue, 22 November 2016 11:27 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan MotschFriend
Messages: 123
Registered: March 2010
Senior Member
the log says "startup failed due to previous errors".

Can you show us the full stack trace. There must be an earlier failure in your log that prevented the platform from starting. This is the real issue.
Please check the start of the log file for other exceptions.

If you like you can post it here and we can help.
Re: Deploy on Tomcat fails (http) [message #1748346 is a reply to message #1748343] Tue, 22 November 2016 11:50 Go to previous messageGo to next message
Corrado Parisi is currently offline Corrado ParisiFriend
Messages: 13
Registered: September 2016
Junior Member
Thank you for your message and your help. I couldn't figure it out yet.

Here is the stack trace:

syscodeapp_1  | 19-Nov-2016 04:49:59.372 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.0.39
syscodeapp_1  | 19-Nov-2016 04:49:59.374 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Nov 9 2016 08:48:39 UTC
syscodeapp_1  | 19-Nov-2016 04:49:59.374 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.0.39.0
syscodeapp_1  | 19-Nov-2016 04:49:59.374 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
syscodeapp_1  | 19-Nov-2016 04:49:59.374 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            4.4.27-moby
syscodeapp_1  | 19-Nov-2016 04:49:59.375 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
syscodeapp_1  | 19-Nov-2016 04:49:59.375 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/lib/jvm/java-7-openjdk-amd64/jre
syscodeapp_1  | 19-Nov-2016 04:49:59.375 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.7.0_111-b01
syscodeapp_1  | 19-Nov-2016 04:49:59.375 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
syscodeapp_1  | 19-Nov-2016 04:49:59.376 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/local/tomcat
syscodeapp_1  | 19-Nov-2016 04:49:59.376 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/local/tomcat
syscodeapp_1  | 19-Nov-2016 04:49:59.376 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
syscodeapp_1  | 19-Nov-2016 04:49:59.376 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
syscodeapp_1  | 19-Nov-2016 04:49:59.377 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
syscodeapp_1  | 19-Nov-2016 04:49:59.377 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
syscodeapp_1  | 19-Nov-2016 04:49:59.377 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=/usr/local/tomcat/endorsed
syscodeapp_1  | 19-Nov-2016 04:49:59.377 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
syscodeapp_1  | 19-Nov-2016 04:49:59.378 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
syscodeapp_1  | 19-Nov-2016 04:49:59.378 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
syscodeapp_1  | 19-Nov-2016 04:49:59.378 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.2.10 using APR version 1.5.1.
syscodeapp_1  | 19-Nov-2016 04:49:59.378 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
syscodeapp_1  | 19-Nov-2016 04:49:59.383 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.2j  26 Sep 2016)
syscodeapp_1  | 19-Nov-2016 04:49:59.485 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8080"]
syscodeapp_1  | 19-Nov-2016 04:49:59.497 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8009"]
syscodeapp_1  | 19-Nov-2016 04:49:59.501 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 609 ms
syscodeapp_1  | 19-Nov-2016 04:49:59.535 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
syscodeapp_1  | 19-Nov-2016 04:49:59.535 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.39
syscodeapp_1  | 19-Nov-2016 04:49:59.591 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /usr/local/tomcat/webapps/org.eclipse.scout.sysmanagement.org.eclipse.scout.sysmanagement.server.war
syscodeapp_1  | 19-Nov-2016 04:50:02.902 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 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.
syscodeapp_1  | 19-Nov-2016 04:50:03.287 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
syscodeapp_1  | Exception in thread "Thread-3" java.lang.NullPointerException
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.fireStateEvent(PlatformImplementor.java:308)
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.changeState(PlatformImplementor.java:284)
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:141)
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:32)
syscodeapp_1  | 19-Nov-2016 04:50:03.297 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/org.eclipse.scout.sysmanagement.org.eclipse.scout.sysmanagement.server] startup failed due to previous errors
syscodeapp_1  | 19-Nov-2016 04:50:03.310 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /usr/local/tomcat/webapps/org.eclipse.scout.sysmanagement.org.eclipse.scout.sysmanagement.server.war has finished in 3,718 ms
syscodeapp_1  | 19-Nov-2016 04:50:03.310 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /usr/local/tomcat/webapps/org.eclipse.scout.sysmanagement.org.eclipse.scout.sysmanagement.ui.html.war
syscodeapp_1  | 19-Nov-2016 04:50:13.152 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
syscodeapp_1  | 19-Nov-2016 04:50:13.156 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/org.eclipse.scout.sysmanagement.org.eclipse.scout.sysmanagement.ui.html] startup failed due to previous errors
syscodeapp_1  | Exception in thread "Thread-4" 19-Nov-2016 04:50:13.161 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [org.eclipse.scout.sysmanagement.org.eclipse.scout.sysmanagement.ui.html] appears to have started a thread named [Thread-4] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
syscodeapp_1  |  java.io.FileOutputStream.writeBytes(Native Method)
syscodeapp_1  |  java.io.FileOutputStream.write(FileOutputStream.java:345)
syscodeapp_1  |  java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
syscodeapp_1  |  java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
syscodeapp_1  |  java.io.PrintStream.write(PrintStream.java:482)
syscodeapp_1  |  sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
syscodeapp_1  |  sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
syscodeapp_1  |  sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)
syscodeapp_1  |  java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:185)
syscodeapp_1  |  java.io.PrintStream.write(PrintStream.java:527)
syscodeapp_1  |  java.io.PrintStream.print(PrintStream.java:669)
syscodeapp_1  |  org.apache.tomcat.util.log.SystemLogHandler.print(SystemLogHandler.java:212)
syscodeapp_1  |  java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1059)
syscodeapp_1  |  java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
syscodeapp_1  |  java.lang.Thread.dispatchUncaughtException(Thread.java:1986)
syscodeapp_1  | java.lang.NullPointerException
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.fireStateEvent(PlatformImplementor.java:308)
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.changeState(PlatformImplementor.java:284)
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:141)
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:32)
syscodeapp_1  | 19-Nov-2016 04:50:13.164 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /usr/local/tomcat/webapps/org.eclipse.scout.sysmanagement.org.eclipse.scout.sysmanagement.ui.html.war has finished in 9,853 ms
syscodeapp_1  | 19-Nov-2016 04:50:13.166 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /usr/local/tomcat/webapps/ROOT
syscodeapp_1  | 19-Nov-2016 04:50:13.203 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /usr/local/tomcat/webapps/ROOT has finished in 37 ms
syscodeapp_1  | 19-Nov-2016 04:50:13.204 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /usr/local/tomcat/webapps/examples
syscodeapp_1  | 19-Nov-2016 04:50:13.420 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /usr/local/tomcat/webapps/examples has finished in 216 ms
syscodeapp_1  | 19-Nov-2016 04:50:13.420 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /usr/local/tomcat/webapps/host-manager
syscodeapp_1  | 19-Nov-2016 04:50:13.444 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /usr/local/tomcat/webapps/host-manager has finished in 24 ms
syscodeapp_1  | 19-Nov-2016 04:50:13.445 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /usr/local/tomcat/webapps/docs
syscodeapp_1  | 19-Nov-2016 04:50:13.460 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /usr/local/tomcat/webapps/docs has finished in 15 ms
syscodeapp_1  | 19-Nov-2016 04:50:13.460 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /usr/local/tomcat/webapps/manager
syscodeapp_1  | 19-Nov-2016 04:50:13.483 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /usr/local/tomcat/webapps/manager has finished in 22 ms
syscodeapp_1  | 19-Nov-2016 04:50:13.488 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8080"]
syscodeapp_1  | 19-Nov-2016 04:50:13.494 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]
syscodeapp_1  | 19-Nov-2016 04:50:13.499 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 13998 ms
syscodeapp_1  | 19-Nov-2016 04:50:49.520 SEVERE [http-apr-8080-exec-4] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
syscodeapp_1  | Exception in thread "Thread-6" 19-Nov-2016 04:50:49.525 SEVERE [http-apr-8080-exec-4] org.apache.catalina.core.StandardContext.startInternal Context [/org.eclipse.scout.sysmanagement.org.eclipse.scout.sysmanagement.ui.html] startup failed due to previous errors
syscodeapp_1  | java.lang.NullPointerException
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.fireStateEvent(PlatformImplementor.java:308)
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.changeState(PlatformImplementor.java:284)
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:141)
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:32)
syscodeapp_1  | 19-Nov-2016 04:57:44.603 SEVERE [http-apr-8080-exec-19] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
syscodeapp_1  | Exception in thread "Thread-7" java.lang.NullPointerException
syscodeapp_1  | 19-Nov-2016 04:57:44.604 SEVERE [http-apr-8080-exec-19] org.apache.catalina.core.StandardContext.startInternal Context [/org.eclipse.scout.sysmanagement.org.eclipse.scout.sysmanagement.server] startup failed due to previous errors
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.fireStateEvent(PlatformImplementor.java:308)
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.changeState(PlatformImplementor.java:284)
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformImplementor.start(PlatformImplementor.java:141)
syscodeapp_1  |        at org.eclipse.scout.rt.platform.internal.PlatformStarter.run(PlatformStarter.java:32)
Re: Deploy on Tomcat fails (http) [message #1748452 is a reply to message #1748336] Wed, 23 November 2016 09:54 Go to previous message
Corrado Parisi is currently offline Corrado ParisiFriend
Messages: 13
Registered: September 2016
Junior Member
Here's the solution:

Since I was running my tomcat on docker I used the latest available image of tomcat:8.0. After long research I noticed that the JVM version of my tomcat was Java 1.7, but I compiled my project on Java 1.8. That was the reason for the strange errors.

Now deployment works completely fine. I hope that this post helps others not to lose much time anymore for this kind of error.
Previous Topic:login page
Next Topic:Forms and PropertyListeners
Goto Forum:
  


Current Time: Thu Jun 29 10:56:42 GMT 2017

Powered by FUDForum. Page generated in 0.02580 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software