Mark, Thanks for the reply. I am using Centos 6, not 7 sorry. (7 uses systemd!)
> Did you use the packaged version of Tomcat or did you download a > distribution from the ASF? I am using one downloaded from ASF. >Those classes should be part of the examples web application. It is odd >that they can't be found. I have cleared out the apache-tomcat-8.0.21/webapps folder which is what I normally do. Is there something else that I have to do for 8? >Could you provide the full stack trace for one of these exceptions please. 15-Apr-2015 09:40:26.707 FINE [localhost-startStop-1] org.apache.catalina.util.Introspection.loadClass Failed to load class [{0}] java.lang.ClassNotFoundException: websocket.drawboard.DrawboardEndpoint at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157) at org.apache.catalina.util.Introspection.loadClass(Introspection.java:143) at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2074) at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2012) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1994) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1939) at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1897) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1149) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5065) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1720) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) >Take a thread dump when Tomcat hangs. I suspect that the session manager >is waiting for entropy (for session ID generation). Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode): "localhost-startStop-1" #12 daemon prio=5 os_prio=0 tid=0x00007f10c4002000 nid=0x7e08 runnable [0x00007f10f1e3c000] java.lang.Thread.State: RUNNABLE at java.io.UnixFileSystem.list(Native Method) at java.io.File.list(File.java:1122) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1985) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:1988) at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1939) at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1897) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1149) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771) - locked <0x00000000e2633370> (a org.apache.catalina.startup.ContextConfig) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5065) - locked <0x00000000e2633130> (a org.apache.catalina.core.StandardContext) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) - locked <0x00000000e2633130> (a org.apache.catalina.core.StandardContext) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1720) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) "Catalina-startStop-1" #11 daemon prio=5 os_prio=0 tid=0x00007f110c4db800 nid=0x7e07 waiting on condition [0x00007f10f213d000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x00000000e1029948> (a java.util.concurrent.FutureTask) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:429) at java.util.concurrent.FutureTask.get(FutureTask.java:191) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:498) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:394) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1469) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:282) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402) - locked <0x00000000e26277b8> (a org.apache.catalina.core.StandardHost) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347) - locked <0x00000000e26277b8> (a org.apache.catalina.core.StandardHost) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:934) - locked <0x00000000e26277b8> (a org.apache.catalina.core.StandardHost) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871) - locked <0x00000000e26277b8> (a org.apache.catalina.core.StandardHost) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) - locked <0x00000000e26277b8> (a org.apache.catalina.core.StandardHost) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) "GC Daemon" #10 daemon prio=2 os_prio=0 tid=0x00007f110c450800 nid=0x7e06 in Object.wait() [0x00007f10f2486000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x00000000e2624958> (a sun.misc.GC$LatencyLock) at sun.misc.GC$Daemon.run(GC.java:117) - locked <0x00000000e2624958> (a sun.misc.GC$LatencyLock) "Service Thread" #7 daemon prio=9 os_prio=0 tid=0x00007f110c0b9000 nid=0x7def runnable [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C1 CompilerThread1" #6 daemon prio=9 os_prio=0 tid=0x00007f110c0b4800 nid=0x7dee waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "C2 CompilerThread0" #5 daemon prio=9 os_prio=0 tid=0x00007f110c0b1800 nid=0x7ded waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Signal Dispatcher" #4 daemon prio=9 os_prio=0 tid=0x00007f110c0b0000 nid=0x7dec waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE "Finalizer" #3 daemon prio=8 os_prio=0 tid=0x00007f110c079800 nid=0x7deb in Object.wait() [0x00007f10f37b4000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143) - locked <0x00000000e01794b0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209) "Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x00007f110c077800 nid=0x7dea in Object.wait() [0x00007f10f38b5000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:502) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:157) - locked <0x00000000e0179720> (a java.lang.ref.Reference$Lock) "main" #1 prio=5 os_prio=0 tid=0x00007f110c009000 nid=0x7de6 waiting on condition [0x00007f111203a000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x00000000e1029b78> (a java.util.concurrent.FutureTask) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:429) at java.util.concurrent.FutureTask.get(FutureTask.java:191) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:917) - locked <0x00000000e01797a0> (a org.apache.catalina.core.StandardEngine) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) - locked <0x00000000e01797a0> (a org.apache.catalina.core.StandardEngine) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) - locked <0x00000000e01797a0> (a org.apache.catalina.core.StandardEngine) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:439) - locked <0x00000000e01797a0> (a org.apache.catalina.core.StandardEngine) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) - locked <0x00000000e01798d8> (a org.apache.catalina.core.StandardService) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:769) - locked <0x00000000e0179920> (a java.lang.Object) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) - locked <0x00000000e26bdfb0> (a org.apache.catalina.core.StandardServer) at org.apache.catalina.startup.Catalina.start(Catalina.java:625) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485) "VM Thread" os_prio=0 tid=0x00007f110c072800 nid=0x7de9 runnable "GC task thread#0 (ParallelGC)" os_prio=0 tid=0x00007f110c01e000 nid=0x7de7 runnable "GC task thread#1 (ParallelGC)" os_prio=0 tid=0x00007f110c020000 nid=0x7de8 runnable "VM Periodic Task Thread" os_prio=0 tid=0x00007f110c0bc000 nid=0x7df0 waiting on condition JNI global references: 48 Heap PSYoungGen total 128000K, used 16896K [0x00000000f5580000, 0x00000000ff700000, 0x0000000100000000) eden space 98816K, 15% used [0x00000000f5580000,0x00000000f64e8220,0x00000000fb600000) from space 29184K, 3% used [0x00000000fda80000,0x00000000fdb98000,0x00000000ff700000) to space 33280K, 0% used [0x00000000fb600000,0x00000000fb600000,0x00000000fd680000) ParOldGen total 87552K, used 71597K [0x00000000e0000000, 0x00000000e5580000, 0x00000000f5580000) object space 87552K, 81% used [0x00000000e0000000,0x00000000e45eb4e0,0x00000000e5580000) Metaspace used 13063K, capacity 13242K, committed 13568K, reserved 1060864K class space used 1396K, capacity 1472K, committed 1536K, reserved 1048576K Cheers Greg. On 15 April 2015 at 14:19, Mark Thomas <ma...@apache.org> wrote: > On 15/04/2015 03:28, Greg Huber wrote: > > Hello, > > > > I am trying to upgrade my app to Tomcat 8 and Java 8 (1.8.0_40) on > centos 7 > > Did you use the packaged version of Tomcat or did you download a > distribution from the ASF? > > > I have a startup in /etc/rc.d/init.d script that uses the daemon eg: > > > > daemon --user $tomcatuser --pidfile=$pidfile $command start > > > > When I run the script using the command line it runs as expected, but > when > > it runs from the system-config-services is seems to hang and does not > > deploy the application. Here are the exceptions from the startup: > > I think the hang and the CNFE are two separate issues. > > > 15-Apr-2015 09:10:14.677 FINE [localhost-startStop-1] > > org.apache.catalina.util.Introspection.loadClass Failed to load class > [{0}] > > java.lang.ClassNotFoundException: websocket.drawboard.DrawboardEndpoint > > The [{0}] indicates a Tomcat bug. It should be providing the class name > to the error message. Not a big deal as we can see it from the exception > but I'll get that fixed anyway. > > Those classes should be part of the examples web application. It is odd > that they can't be found. Could you provide the full stack trace for one > of these exceptions please. > > <snip/> > > > here is the output when starting: > > <snip/> > > > INFO: Deploying configuration descriptor > > /opt/apache-tomcat/apache-tomcat-8.0.21/conf/Catalina/localhost/ROOT.xml > > Take a thread dump when Tomcat hangs. I suspect that the session manager > is waiting for entropy (for session ID generation). See > > http://wiki.apache.org/tomcat/HowTo/FasterStartUp?highlight=%28entropy%29#Entropy_Source > > Mark > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >