Hi Xinglie,
As far as i know(correct if im wrong, i do not have experience with Struts) a
Strut Action has its own lifecycle which is different than a CDI bean, so to
make it be a cdi bean you should create an extension and transform all Struts
beans/actions into CDI beans by creating a javax.e
Hi Rafael,
I think almost all Java class is a CDI bean. Do I need to do extra
declaration for making a Java class into CDI bean?
Regards,
Xinglie Zheng
On Tue, Jun 26, 2012 at 4:19 PM, Rafael Pestano wrote:
> Hi Xinglie Zheng,
>
> you added your struts Action as a CDI bean in an extension? ot
Hi!
From a gut feeling I'd say the superclass method should work. But it's not
really described in the spec (neither CDI nor interceptors spec). So I'm not
sure if it's a spec issue or an owb issue...
In any case, glad the 'workaround' worked for you ;)
LieGrue,
strub
>___
Yes, this just works:
@AroundInvoke
public Object checkPermission(InvocationContext ic) throws Exception {
return super.checkPermition(ic);
}
thank you guys.
Att,
Rafael M. Pestano
Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
Graduando em Ciênci
Hi Xinglie Zheng,
you added your struts Action as a CDI bean in an extension? otherwise i think
OWB cant intercept a non CDI.
Att,
Rafael M. Pestano
Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
Graduando em Ciência da Computação UFRGS
http://code.google.com/p/jsf-c
@ mark:
yes - that's the workaround (+ you have to annotate the method with
@AroundInvoke).
regards,
gerhard
2012/6/26 Mark Struberg
> I can only guess that it's due to having the @AroundInvoke in the parent
> class and we do not check it.
>
> Can you just override it and call super() ?
>
> T
It looks like you might be missing the javaassist jar from the
classpath somewhere.
On Tue, Jun 26, 2012 at 9:29 AM, Xinglie Zheng
wrote:
> I am trying to setup Weblogic 11g running with OpenWebbeans. I ran into an
> error while deploying the application.
>
> Jun 26, 2012 9:16:57 AM EDT> us
I am trying to setup Weblogic 11g running with OpenWebbeans. I ran into
an error while deploying the application.
Jun 26, 2012 9:16:57 AM EDT>
http://www.w3.org/2001/XMLSchema-instance"; xmlns="
http://java.sun.com/xml/ns/javaee"; xmlns:jsp="
http://java.sun.com/xml/ns/javaee/jsp"; xmlns:web
I can only guess that it's due to having the @AroundInvoke in the parent class
and we do not check it.
Can you just override it and call super() ?
That should then work in both containers.
LieGrue,
strub
- Original Message -
> From: Rafael Pestano
> To: "user@openwebbeans.apache.org
hi rafael,
there's a workaround for it, however, we should discuss/re-visit it (since
weld handles it differently).
regards,
gerhard
2012/6/26 Rafael Pestano
> Hi Mark,
>
> i got no exceptions, the interceptor just isnt called.
>
> I'll work on this issue(if there is one) and try to isolate
Hi Mark,
i got no exceptions, the interceptor just isnt called.
I'll work on this issue(if there is one) and try to isolate the problem if i
find something related to owb i'll bring a sample that reproduces the problem.
thanks.
Att,
Rafael M. Pestano
Desenvolvedor Java Cia. de Processamento
Hi Pavel,
ahh sorry, i forgot this. Yep this is already fixed in 1.1.5 SNAPSHOT. It
was part of my patch.
Regards,
THomas
2012/6/26 Pavel Arnošt
> Hi Thomas,
>
> i tried OWB 1.1.3 and it works, there must be regression in 1.1.4. I
> looked at the source code and using ContextsService in FailO
Hi Thomas,
i tried OWB 1.1.3 and it works, there must be regression in 1.1.4. I
looked at the source code and using ContextsService in
FailOverBag/restore (as in 1.1.4) instead of SessionContextManager (as
in 1.1.3) does not make sense to me, because
ContextsService/WebContextsService is dep
Hi Pavel,
We use session persistence we use Tomcat + MSM and that works fine.
Could you try to add the tag in the web.xml and configure
myfaces for replication?
That means:
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION = true
and for testing i would set:
org.apache.myfaces.USE_ENCRYPTION = fal
Hi Pavel,
i just added org.apache.myfaces.webapp.StartupServletContextListener in the
web.xml, changed Java version to 1.6 and startet with Jetty8 maven plugin.
works fine for me!
Regards,
Thomas
2012/6/25 Pavel Arnošt
> Hi,
>
> I created new trivial maven project with OWB+MyFaces (attached) a
15 matches
Mail list logo