Hi Shripad Umardand,
-
OK
-
OK, right now Weld only supports Tomcat 7+ and Jetty 7+. NetWeaver is probably using its own servlet container. As a result CDI injection will not be available in Servlets, Filters and Listeners.
-
javax.enterprise.inject.spi.EventMetadata comes from CDI 1.1 API. Weld 2.1 is a CDI 1.1 implementation and therefore you have to bundle the CDI 1.1 API. If you're using a convenient weld-servlet.jar a correct CDI API is already bundled. If you're using weld-servlet-core with dependencies, the correct CDI API dependency may be omitted (simply remove your CDI API dependency definition).
Also I would recommend to upgrade to Weld 2.1.2.Final (the latest 2.1.x bugfix release) or Weld 2.2.2.Final (CDI 1.2 implementation).
|