java.lang.NoClassDefFoundError

javax/enterprise/context/spi/Contextual

Samebug tips8

The server rejects all jars that already belong to the server runtime (such as tomcat-.jar, servlet.jar). Consider substituting the CORS filter you're using for this one: https://goo.gl/ctQ7Fs

jsp-api and servlet-api jars must NOT be deployed by your web app. They should be marked as provided but not deployed by your app.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web14392

  • via Unknown by joshua.murphy,
  • via Unknown by joshua.murphy,
  • via Unknown by Unknown author,
  • Stack trace

    • java.lang.NoClassDefFoundError: javax/enterprise/context/spi/Contextual at com.sun.faces.application.view.ViewScopeManager.<init>(Unknown Source) at com.sun.faces.application.view.ViewScopeManager.getInstance(Unknown Source) at com.sun.faces.application.view.ViewScopeEventListener.processEvent(Unknown Source) at javax.faces.event.SystemEvent.processListener(Unknown Source) at javax.faces.event.ComponentSystemEvent.processListener(Unknown Source) at com.sun.faces.application.ApplicationImpl.processListeners(Unknown Source) at com.sun.faces.application.ApplicationImpl.invokeListenersFor(Unknown Source) at com.sun.faces.application.ApplicationImpl.publishEvent(Unknown Source) at javax.faces.component.UIViewRoot.getViewMap(Unknown Source) at javax.faces.component.UIViewRoot.getViewMap(Unknown Source) at com.sun.faces.mgbean.BeanManager$ScopeManager$ViewScopeHandler.handle(Unknown Source) at com.sun.faces.mgbean.BeanManager$ScopeManager.pushToScope(Unknown Source) at com.sun.faces.mgbean.BeanManager.createAndPush(Unknown Source) at com.sun.faces.mgbean.BeanManager.create(Unknown Source) at com.sun.faces.el.ManagedBeanELResolver.resolveBean(Unknown Source) at com.sun.faces.el.ManagedBeanELResolver.getValue(Unknown Source) at com.sun.faces.el.DemuxCompositeELResolver._getValue(Unknown Source) at com.sun.faces.el.DemuxCompositeELResolver.getValue(Unknown Source) at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:103) at com.sun.el.parser.AstValue.getValue(AstValue.java:162) at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224) at com.sun.faces.facelets.el.TagValueExpression.getValue(Unknown Source) at javax.faces.component.ComponentStateHelper.eval(Unknown Source) at javax.faces.component.ComponentStateHelper.eval(Unknown Source) at javax.faces.component.UIOutput.getValue(Unknown Source) at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(Unknown Source) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(Unknown Source) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(Unknown Source) at javax.faces.component.UIComponentBase.encodeEnd(Unknown Source) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(Unknown Source) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(Unknown Source) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(Unknown Source) at javax.faces.component.UIComponentBase.encodeChildren(Unknown Source) at javax.faces.component.UIComponent.encodeAll(Unknown Source) at javax.faces.render.Renderer.encodeChildren(Unknown Source) at javax.faces.component.UIComponentBase.encodeChildren(Unknown Source) at javax.faces.component.UIComponent.encodeAll(Unknown Source) at javax.faces.component.UIComponent.encodeAll(Unknown Source) at javax.faces.component.UIComponent.encodeAll(Unknown Source) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(Unknown Source) at com.sun.faces.application.view.MultiViewHandler.renderView(Unknown Source) at javax.faces.application.ViewHandlerWrapper.renderView(Unknown Source) at com.sun.faces.lifecycle.RenderResponsePhase.execute(Unknown Source) at com.sun.faces.lifecycle.Phase.doPhase(Unknown Source) at com.sun.faces.lifecycle.LifecycleImpl.render(Unknown Source) at javax.faces.webapp.FacesServlet.service(Unknown Source) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1448) at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:105) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.primefaces.showcase.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:32) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:932) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:994) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.ClassNotFoundException: javax.enterprise.context.spi.Contextual at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383) ... 76 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    treefolktreefolk
    4 times, last one
    Unknown visitor
    Unknown visitorOnce,
    1249 more bugmates