1 Reply Latest reply on Dec 9, 2013 4:41 AM by Martin Kouba

    Weld 2.1.0.Final and Tomcat 7 [Problem]

    Luiz Augusto Mello Barcelos Newbie

      Good night Friends,

       

      I configured my project to work with Weld 2.1.0.Final and Tomcat 7 but a problem ocurred:

       

      Grave: Exception sending context destroyed event to listener instance of class org.jboss.weld.environment.servlet.Listener
      java.lang.NullPointerException
          at org.jboss.weld.servlet.WeldInitialListener.contextDestroyed(WeldInitialListener.java:102)
          at org.jboss.weld.servlet.api.helpers.ForwardingServletListener.contextDestroyed(ForwardingServletListener.java:30)
          at org.jboss.weld.environment.servlet.Listener.contextDestroyed(Listener.java:85)
          at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4741)
          at org.apache.catalina.core.StandardContext$4.run(StandardContext.java:5450)
          at java.lang.Thread.run(Unknown Source)
          at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5459)
          at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:225)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
          at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
          at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
          at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
          at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
      
      

       

      Could someone help me?


      Some places say the Weld recognizes Tomcat 7 like Tomcat 6. is this it?