Question

I have a JEE7 project using CDI. I want to test that project on Jetty 9, which implements Java EE 7 Web Profile.

The following link indicate that we can plug Weld into Jetty, but how ? Thanks

EDIT: And, how do that with jetty-maven-plugin ?

Jetty and Java EE 7 Web Profile

Was it helpful?

Solution

I tried many things but this is what worked.

http://docs.jboss.org/weld/reference/latest/en-US/html/environments.html#_embedded_jetty

Just be sure to include the appropriate libraries like weld-servlet, cdi-api, el-api and el-impl

OTHER TIPS

I wrote some docs on this a while back, if you an issues let me know.

http://www.eclipse.org/jetty/documentation/current/framework-weld.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top