문제

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

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top