EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB438776: MicroStrategyLibrary.war fails to deploy with error "jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class"


Community Admin

• Strategy


While attempting to deploy the MicroStrategyLibrary.war, Tomcat fails with a severe error in the deployment process.

StrategyLibrary.war is placed in the tomcat WebApps directory and the tomcat server is restarted. Tomcat fails to deploy the StrategyLibrary.war with the following error:


INFO: Deploying web application archive /......../webapps/StrategyLibrary.war
Oct 20, 2017 4:18:27 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/......../webapps/MicroStrategyLibrary/WEB-INF/lib/restful-api-1.0-SNAPSHOT-jar-with-dependencies.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Oct 20, 2017 4:18:27 PM org.apache.catalina.startup.ContextConfig getServletContainerInitializer
SEVERE: The ServletContentInitializer [ch.qos.logback.classic.servlet.LogbackServletContainerInitializer] could not be created
java.lang.ClassNotFoundException: ch.qos.logback.classic.servlet.LogbackServletContainerInitializer
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1713)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at org.apache.catalina.startup.ContextConfig.getServletContainerInitializer(ContextConfig.java:1659)
	at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1569)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1277)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5269)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
	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)

Oct 20, 2017 4:18:27 PM org.apache.catalina.startup.ContextConfig processServletContainerInitializers
SEVERE: Failed to process JAR found at URL [jar:file:/......../webapps/MicroStrategyLibrary/WEB-INF/lib/restful-api-1.0-SNAPSHOT-jar-with-dependencies.jar!/] for ServletContainerInitializers for context with name [/StrategyLibrary]
Oct 20, 2017 4:18:27 PM org.apache.catalina.startup.ContextConfig configureStart
SEVERE: Marking this application unavailable due to previous error(s)
Oct 20, 2017 4:18:27 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Oct 20, 2017 4:18:27 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/StrategyLibrary] startup failed due to previous errors

Cause
As of Strategy 10.9, Tomcat version 8 is needed for StrategyLibrary to be deployed in Tomcat:
https://www2.microstrategy.com/producthelp/10.9/Readme/content/library.htm
Action
Deploy the StrategyLibrary.war in a Tomcat 8 environment. KB438776


Comment

0 comments

Details

Knowledge Article

Published:

October 20, 2017

Last Updated:

December 31, 2018