Hi,
On Wed, Apr 11, 2012 at 10:54 PM, Jonathan Tougas jtou...@gmail.com wrote:
I'm running Wicket 1.5 on JBoss 7.1.1 with some CDI thrown in to the mix.
In certain cases when Wicket deserializes a Page containing a reference to
a CDI bean, I get this exception:
In what cases exactly ?
Because
A stateless bean is injected into the home page class. Load the page in two
tabs (so twice in the same session), then on the first tab, press the
button. The error occurs every time in this scenario.
On Thu, Apr 12, 2012 at 2:41 AM, Martin Grigorov mgrigo...@apache.orgwrote:
Hi,
On Wed, Apr
I'm not familiar with the Wicketopia source, but doing a quick scan I can't
find any EJBs in there. The problem in this case occurs if the FooStateless
class is @Stateless. Changing this to @ApplicationScoped, the problem goes
away.
On Thu, Apr 12, 2012 at 8:28 AM, Jonathan Tougas
The difference is that scoped beans are represented by proxy.
I guess there is no proxy for the stateless EJB. You can verify this
by putting a breakpoint in your page's #onBeforeRender() and checking
the type of the injected value.
Later during deserialization the current class loader cannot
@Override
protected void onBeforeRender() {
System.out.println( foo );
System.out.println( foo.getClass() );
super.onBeforeRender();
}
When using @Stateless, the output is :
08:52:35,027 INFO [stdout] (http--127.0.0.1-8080-1) Proxy for view class:
com.foo.FooStateless of
weld doesnt wrap ejbs in serializable proxies. if you want to inject
ejbs you should do it with wicket-jee module found in wicketstuff.
-igor
On Thu, Apr 12, 2012 at 5:55 AM, Jonathan Tougas jtou...@gmail.com wrote:
@Override
protected void onBeforeRender() {
System.out.println( foo );
I'll check it out thanks!
On Thu, Apr 12, 2012 at 11:33 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote:
weld doesnt wrap ejbs in serializable proxies. if you want to inject
ejbs you should do it with wicket-jee module found in wicketstuff.
-igor
On Thu, Apr 12, 2012 at 5:55 AM, Jonathan
I looked into wicket-jee but this won't do for me.
I don't think this problem is Wicket related in any event. Here are some
links I came across.
- https://community.jboss.org/thread/179757
- http://java.net/jira/browse/GLASSFISH-12599
-
I would recommend checking out one of the existing libraries that does
Wicket/CDI integration.
On Wed, Apr 11, 2012 at 3:54 PM, Jonathan Tougas jtou...@gmail.com wrote:
I'm running Wicket 1.5 on JBoss 7.1.1 with some CDI thrown in to the mix.
In certain cases when Wicket deserializes a Page
Using wicket-cdi https://github.com/42Lines/wicket-cdi the problem still
exists. I'll update the example in a moment.
On Wed, Apr 11, 2012 at 3:58 PM, James Carman ja...@carmanconsulting.comwrote:
I would recommend checking out one of the existing libraries that does
Wicket/CDI integration.
The Wicketopia example application doesn't run into those troubles. I
may not be doing exactly what you're doing, though:
https://github.com/jwcarman/Wicketopia
On Wed, Apr 11, 2012 at 4:26 PM, Jonathan Tougas jtou...@gmail.com wrote:
Using wicket-cdi https://github.com/42Lines/wicket-cdi
11 matches
Mail list logo