Deployed application at context path / but context failed to start

Ashish Dwivedi Source

I'm trying to deploy the project on NetBeans (8.1 and 8.2). The build is successful everytime, but when I run the project, it says "Deployed application at context path / but context failed to start". I've tried all the solutions I could find on stackoverflow but nothing seems to be working. Please help me understand the server logs and deploy this project. Below are the messages on the "Output" tab in NetBeans:

Run: Deploying on Apache Tomcat 8.0.27.0 profile mode: false debug mode: false force redeploy: true Undeploying ... undeploy?path=/ OK - Undeployed application at context path / In-place deployment at D:\Workspaces\BE\dpbackend\target\DPBackend-1.0 Deployment is in progress... deploy?config=file%3A%2FC%3A%2FUsers%2Fashish_dwivedi04%2FAppData%2FLocal%2FTemp%2Fcontext737352005758123047.xml&path=/ FAIL - Deployed application at context path / but context failed to start

Apache Tomcat 8.0.27.0 : 14-Feb-2018 12:07:45.312 INFO [http-nio-8084-exec-21] 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. SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/D:/Workspaces/BE/dpbackend/target/DPBackend-1.0/WEB-INF/lib/logback-classic-1.1.11.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/D:/Workspaces/BE/dpbackend/target/DPBackend-1.0/WEB-INF/lib/slf4j-simple-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 12:07:45.452 [http-nio-8084-exec-21] DEBUG waffle.servlet.NegotiateSecurityFilter - [waffle.servlet.NegotiateSecurityFilter] loaded SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] 14-Feb-2018 12:07:45.483 SEVERE [http-nio-8084-exec-21] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file 14-Feb-2018 12:07:45.483 SEVERE [http-nio-8084-exec-21] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors

Apache Tomcat 8.0.27.0 Log : 14-Feb-2018 12:07:45.437 INFO [http-nio-8084-exec-21] org.apache.catalina.core.ApplicationContext.log 1 Spring WebApplicationInitializers detected on classpath 14-Feb-2018 12:07:45.468 INFO [http-nio-8084-exec-21] org.apache.catalina.core.ApplicationContext.log 12:07:45.452 [http-nio-8084-exec-21] DEBUG waffle.servlet.NegotiateSecurityFilter - roleFormat=fqn 12:07:45.452 [http-nio-8084-exec-21] DEBUG waffle.servlet.NegotiateSecurityFilter - allowGuestLogin=true 12:07:45.452 [http-nio-8084-exec-21] DEBUG waffle.servlet.NegotiateSecurityFilter - impersonate=false 12:07:45.468 [http-nio-8084-exec-21] DEBUG waffle.servlet.NegotiateSecurityFilter - waffle.servlet.spi.BasicSecurityFilterProvider/realm=DPBackend 12:07:45.468 [http-nio-8084-exec-21] DEBUG waffle.servlet.NegotiateSecurityFilter - principalFormat=fqn 12:07:45.468 [http-nio-8084-exec-21] DEBUG waffle.servlet.NegotiateSecurityFilter - securityFilterProviders=waffle.servlet.spi.NegotiateSecurityFilterProvider waffle.servlet.spi.BasicSecurityFilterProvider 12:07:45.468 [http-nio-8084-exec-21] DEBUG waffle.servlet.NegotiateSecurityFilter - waffle.servlet.spi.NegotiateSecurityFilterProvider/protocols=Negotiate NTLM

14-Feb-2018 12:07:45.468 SEVERE [http-nio-8084-exec-21] org.apache.catalina.core.StandardContext.filterStart Exception starting filter SecurityFilter java.lang.NoClassDefFoundError: com/google/common/cache/CacheBuilder at waffle.windows.auth.impl.WindowsAuthProviderImpl.(WindowsAuthProviderImpl.java:92) at waffle.windows.auth.impl.WindowsAuthProviderImpl.(WindowsAuthProviderImpl.java:82) at waffle.servlet.NegotiateSecurityFilter.init(NegotiateSecurityFilter.java:321) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:271) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4583) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1293) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:366) at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: com.google.common.cache.CacheBuilder at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167) ... 40 more

javatomcat8netbeans-8.1netbeans-8.2

Answers

comments powered by Disqus