search cancel

Tomcat severe error starting Endevor Web Services

book

Article ID: 130342

calendar_today

Updated On:

Products

Endevor Software Change Manager (SCM) Endevor Software Change Manager - ECLIPSE Plugin (SCM)

Issue/Introduction

Installed Endevor Web Services (Post V18.0.12 release) using Java 8 and CCS Tomcat 8. 

WSTOMSTC sysout found the following error:


SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component íStandardEngineíCatalinaù.StandardHostílocalhostù.StandardContextí 
/EndevorServiceùù 
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162) 
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753) 
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729) 
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) 
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940) 
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1816) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522) 
at java.util.concurrent.FutureTask.run(FutureTask.java:277) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 
at java.lang.Thread.run(Thread.java:785) 
Caused by: java.lang.NoClassDefFoundError: org.apache.juli.WebappProperties 

Environment

Release:  V18.0

Resolution

This java.lang.NoClassDefFoundError: org.apache.juli.WebappProperties error is related tomcat-juli.jar. 

CCS Tomcat 8 tomcat-juli.jar contains WebappProperties.class
CCS Tomcat 7 tomcat-juli.jar does not contain WebappProperties.class

There is a possibility that site is using CCS Tomcat 8, but Endevor Tomcat instance contains Tomcat 7 tomcat-juli.jar (missing WebappProperties.class), the solution is to  rerun ENWSIns.sh  by setting CLEAN_ENDEVOR_TOMCAT_INSTANCE=Y in the ENWSInstallOptions.properties

Alternative solution: 
Just put Endevor war file into any existing Tomcat on USS and copy /webapps/endevor folder.