tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: error Tomcat 9 - Failed to detect ServletContainerInitializers
Date Thu, 20 Oct 2016 02:18:39 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Alex,

On 10/18/16 11:15 AM, Pustelnik, Alex wrote:
> Hello All,
> 
> Please help me to fix an error om my  Apache Tomcat 9.0.0 M11 (On
> Windows server 2012 R2 Standard).
> 
> Here is from log:
> 
> 
> 18-Oct-2016 10:47:40.222 INFO [Thread-7]
> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> ["http-nio-8080"] 18-Oct-2016 10:47:40.300 INFO [Thread-7]
> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> ["https-jsse-nio-8443"] 18-Oct-2016 10:47:40.363 INFO [Thread-7]
> org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
> ["ajp-nio-8009"] 18-Oct-2016 10:47:40.425 INFO [Thread-7]
> org.apache.catalina.core.StandardService.stopInternal Stopping
> service Catalina 18-Oct-2016 10:47:40.472 INFO [Thread-7]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["http-nio-8080"] 18-Oct-2016 10:47:40.488 INFO [Thread-7]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["https-jsse-nio-8443"] 18-Oct-2016 10:47:40.488 INFO [Thread-7]
> org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
> ["ajp-nio-8009"] 18-Oct-2016 10:49:57.470 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server
> version:        Apache Tomcat/9.0.0.M11 18-Oct-2016 10:49:57.470
> INFO [main] org.apache.catalina.startup.VersionLoggerListener.log
> Server built:          Oct 6 2016 18:54:10 UTC 18-Oct-2016
> 10:49:57.470 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Server
> number:         9.0.0.0 18-Oct-2016 10:49:57.470 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log OS Name:
> Windows Server 2012 R2 18-Oct-2016 10:49:57.470 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log OS Version:
> 6.3 18-Oct-2016 10:49:57.470 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Architecture:
> amd64 18-Oct-2016 10:49:57.470 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Java Home:
> C:\Program Files\Java\jre1.8.0_101 18-Oct-2016 10:49:57.470 INFO
> [main] org.apache.catalina.startup.VersionLoggerListener.log JVM
> Version:           1.8.0_101-b13 18-Oct-2016 10:49:57.470 INFO
> [main] org.apache.catalina.startup.VersionLoggerListener.log JVM
> Vendor:            Oracle Corporation 18-Oct-2016 10:49:57.470 INFO
> [main] org.apache.catalina.startup.VersionLoggerListener.log
> CATALINA_BASE:         D:\Tomcat9 18-Oct-2016 10:49:57.470 INFO
> [main] org.apache.catalina.startup.VersionLoggerListener.log
> CATALINA_HOME:         D:\Tomcat9 18-Oct-2016 10:49:57.470 INFO
> [main] org.apache.catalina.startup.VersionLoggerListener.log
> Command line argument: -Dcatalina.home=D:\Tomcat9 18-Oct-2016
> 10:49:57.470 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: -Dcatalina.base=D:\Tomcat9 18-Oct-2016 10:49:57.470 INFO
> [main] org.apache.catalina.startup.VersionLoggerListener.log
> Command line argument: -Djava.io.tmpdir=D:\Tomcat9\temp 18-Oct-2016
> 10:49:57.470 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument:
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
> 18-Oct-2016 10:49:57.470 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument:
> -Djava.util.logging.config.file=D:\Tomcat9\conf\logging.properties 
> 18-Oct-2016 10:49:57.470 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: exit 18-Oct-2016 10:49:57.470 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: -Xms128m 18-Oct-2016 10:49:57.470 INFO [main]
> org.apache.catalina.startup.VersionLoggerListener.log Command line
> argument: -Xmx256m 18-Oct-2016 10:49:57.486 INFO [main]
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The
> APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> D:\Tomcat9\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;
C:\Program
> Files\Java\jre1.8.0_101\bin;C:\ProgramData\Oracle\Java\javapath;C:\Win
dows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wi
ndowsPowerShell\v1.0\;C:\Program
> Files\MySQL\MySQL Server 5.5\bin;D:\APPS\MySQL\bin;;. 18-Oct-2016
> 10:49:57.736 INFO [main] org.apache.coyote.AbstractProtocol.init
> Initializing ProtocolHandler ["http-nio-8080"] 18-Oct-2016
> 10:49:57.986 INFO [main]
> org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using
> a shared selector for servlet write/read 18-Oct-2016 10:49:57.986
> INFO [main] org.apache.coyote.AbstractProtocol.init Initializing
> ProtocolHandler ["https-jsse-nio-8443"] 18-Oct-2016 10:49:58.486
> INFO [main]
> org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using
> a shared selector for servlet write/read 18-Oct-2016 10:49:58.486
> INFO [main] org.apache.coyote.AbstractProtocol.init Initializing
> ProtocolHandler ["ajp-nio-8009"] 18-Oct-2016 10:49:58.486 INFO
> [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector
> Using a shared selector for servlet write/read 18-Oct-2016
> 10:49:58.486 INFO [main] org.apache.catalina.startup.Catalina.load
> Initialization processed in 1844 ms 18-Oct-2016 10:49:58.533 INFO
> [main] org.apache.catalina.core.StandardService.startInternal
> Starting service Catalina 18-Oct-2016 10:49:58.533 INFO [main]
> org.apache.catalina.core.StandardEngine.startInternal Starting
> Servlet Engine: Apache Tomcat/9.0.0.M11 18-Oct-2016 10:49:58.580
> INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployWAR Deploying web
> application archive D:\Tomcat9\webapps\XXXX.war 18-Oct-2016
> 10:50:03.189 SEVERE [localhost-startStop-1]
> org.apache.catalina.startup.ContextConfig.processServletContainerIniti
alizers
> Failed to detect ServletContainerInitializers for context with name
> [/XXXX] java.io.IOException: java.lang.ClassNotFoundException:
> org.apache.myfaces.ee6.MyFacesContainerInitializer at
> org.apache.catalina.startup.WebappServiceLoader.loadServices(WebappSer
viceLoader.java:192)
>
> 
at
org.apache.catalina.startup.WebappServiceLoader.load(WebappServiceLoader
.java:159)
> at
> org.apache.catalina.startup.ContextConfig.processServletContainerIniti
alizers(ContextConfig.java:1622)
>
> 
at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1
135)
> at
> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig
.java:775)
>
> 
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:299)
> at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBas
e.java:92)
>
> 
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.j
ava:5077)
> at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>
> 
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:724)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700
)
>
> 
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
>
> 
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:182
3)
> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
> Source) at java.util.concurrent.FutureTask.run(Unknown Source) at
> java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source) at java.lang.Thread.run(Unknown Source) Caused by:
> java.lang.ClassNotFoundException:
> org.apache.myfaces.ee6.MyFacesContainerInitializer at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClass
LoaderBase.java:1275)
>
> 
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLo
aderBase.java:1109)
> at java.lang.Class.forName0(Native Method) at
> java.lang.Class.forName(Unknown Source) at
> org.apache.catalina.startup.WebappServiceLoader.loadServices(WebappSer
viceLoader.java:188)
>
> 
... 18 more
> 
> 18-Oct-2016 10:50:03.205 SEVERE [localhost-startStop-1]
> org.apache.catalina.startup.ContextConfig.configureStart Marking
> this application unavailable due to previous error(s) 18-Oct-2016
> 10:50:03.220 SEVERE [localhost-startStop-1]
> org.apache.catalina.core.StandardContext.startInternal One or more
> components marked the context as not correctly configured 
> 18-Oct-2016 10:50:03.220 SEVERE [localhost-startStop-1]
> org.apache.catalina.core.StandardContext.startInternal Context
> [/XXXX] startup failed due to previous errors 18-Oct-2016
> 10:50:03.236 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployWAR Deployment of web
> application archive D:\Tomcat9\webapps\XXXX.war has finished in
> 4,656 ms 18-Oct-2016 10:50:03.236 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying
> web application directory D:\Tomcat9\webapps\docs 18-Oct-2016
> 10:50:03.392 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployDirectory Deployment
> of web application directory D:\Tomcat9\webapps\docs has finished
> in 156 ms 18-Oct-2016 10:50:03.392 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying
> web application directory D:\Tomcat9\webapps\manager 18-Oct-2016
> 10:50:03.486 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployDirectory Deployment
> of web application directory D:\Tomcat9\webapps\manager has
> finished in 94 ms 18-Oct-2016 10:50:03.486 INFO
> [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying
> web application directory D:\Tomcat9\webapps\ROOT 18-Oct-2016
> 10:50:03.517 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployDirectory Deployment
> of web application directory D:\Tomcat9\webapps\ROOT has finished
> in 31 ms 18-Oct-2016 10:50:03.533 INFO [main]
> org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
> [http-nio-8080] 18-Oct-2016 10:50:03.549 INFO [main]
> org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
> [https-jsse-nio-8443] 18-Oct-2016 10:50:03.549 INFO [main]
> org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
> [ajp-nio-8009] 18-Oct-2016 10:50:03.549 INFO [main]
> org.apache.catalina.startup.Catalina.start Server startup in 5064
> ms
> 
> 
> 
> JAR file myfaces-impl-2.2.4-sources.jar that implements
> MyFacesContainerInitializer is in the classpath.

Where is the JAR file? What do you think the classpath is?

> I just moved my application from Tomcat6 ( application worked fine)
> to Tomcat9.

Did you read the migration guide(s)?

http://tomcat.apache.org/migration-7.html
http://tomcat.apache.org/migration-8.html
http://tomcat.apache.org/migration-9.html

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJYCCl/AAoJEBzwKT+lPKRYqBkQAKV8k3KXgziSiR2uPn724C9W
jhYIrD10QjktnjdZB5Qzach0Ztrier5kduFipkAWJgcJjkf4JRFZePIDwuFonHsI
qywpp3Iix4LSZmY2cy6yl7APwXVFq82k+jgHJAcNyrb8P0NIpyff0Fg7ePv8Pp5v
iAd2OpEQ0KZjRnSIW0Xo3xays310Sw+DTsy+hWWkC2foWx8oNADBKY4mSd1/VGFZ
zg3GneWfVUt9oUdOVD0irkUoRvPaIY2ArouFT8KeZgGjNE7DUrtfd9+KRLYe46vU
nnubxH2qEc4aTJzZfOz/b7OfIOj9/4EMTB0b7VXplNIzex3t4Wsd3FWRZqJFrZgi
ansFo2a5PCItu94T2KpoFs2V5TNhCowTlwtZzh6oW2R/1dJGXSdUfSbfWlR+sMNc
5vLAJhaQdfHMRv4edcEouVb9+ORx23s+ZCM9zACKfdbbX7whg5TUDTuSn3yb3EXU
J45JQ9ahYIZ6OlSUqJxHyFnwJkhGYgYeNrloPfoj37+3sq08LKmMVshIiugpVl1K
WWwdZliActWuW5XSh6V076K8DPES7BT6ykXeFB1psYDaN/CkDK5anJdWPDFlYB8x
2eQXp3nadPZSnAT4otVEBxIItAaNRdp11+n6HCP7xfAXdPP1zHgsdhwPUWEi53R8
209niI9JvOBq6YRl0mV0
=EiZ9
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message