Hey,

I got it all working (wicket+tomee)

I had some posts to this list to get it to work:
http://mail-archives.apache.org/mod_mbox/wicket-users/201211.mbox/%3ccadltzbdlypzbbv-piofedam7unf2nt1dqvdvy4ttguaymu0...@mail.gmail.com%3E

I posted most of my configs in here, you don't need weld-stuff:
http://wicket-users.markmail.org/search/?q=kurt.sys#query:kurt.sys+page:1+mid:5bjezmiz7muq5iqj+state:results

... and check out this as well, there are some useful lilnks:
http://wicket-users.markmail.org/search/?q=tomee+cdi#query:tomee%20cdi+page:1+mid:ibec5hnkimampyr7+state:results

Kurt


2012/12/20 Bertrand Guay-Paquet <ber...@step.polymtl.ca>:
> Hi,
>
> My web application contains EJB stateless beans which I currently access in
> Wicket through JNDI injection with the wicketstuff-javaee-inject project.
>
> With Wicket 6.4.0, I am trying out CDI (@inject) but can't get it to work on
> the TomEE Java EE application server. In my Application class, I put:
>
> BeanManager manager = (BeanManager) new
> InitialContext().lookup("java:comp/BeanManager");
>
> This fails with ClassCastException:
> org.apache.webbeans.container.InjectableBeanManager cannot be cast to
> javax.enterprise.inject.spi.BeanManage
>
> So the BeanManager lookup does work, but there is a problem casting it.
>
> From what I understand, TomEE uses OpenWebBeans to provide CDI while Wicket
> is based on Weld. I found this discussion relating to this :
> http://wicket-users.markmail.org/thread/ibec5hnkimampyr7  but it only gave
> me solutions for using wicket-cdi with Tomcat (servlet container) and not
> TomEE (full application server) and its included OWB.
>
> Igor said (in http://wicket-dev.markmail.org/thread/lhwlhqmmyy5zemjg) that
> "jboss seam-conversation module has plugins for every cdi container." Maybe
> this is the solution, but I'm not versed enough in CDI to understand it!
>
> Thanks for any hint.
>
> Regards,
> Bertrand
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to