myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Struberg <>
Subject Re: Problem with CODI/OWB and PrimeFaces 3.2
Date Fri, 06 Apr 2012 09:41:51 GMT

I think the origin of the problem is easy to fix.

OpenWebBeans is built in a modular fashion. Unlike lots of other EE6 projects MyFaces and
OWB also try to stay backward compatible with older spec variants. But you have to enable
this backward compat mode manually because this comeshand-in-hand with loosing some functionality!

The error you see comes from EL-2.2. getValueReference() only got introduced with EL-2.2 which
tomcat6 doesn't provide out of the box.

There are now 3 solutions to solve this problem:

1.) OWB comes with EL-2.2 support out of the box. You can switch OWB back to use EL-1.0 by
just dropping the webbeans-el10 [1] jar into your classpath. That's it!

2.) use Apache Tomcat7. Tomcat7 comes with EL-2.2 support.

3.) If you do not need JSPs then you could also use Tomcat6 with an EL-2.2 library like juel[2].
2 years ago I wrote a howto for this. The most important stuff are the few steps which shows
how to pimp your tomcat and the org.apache.myfaces.EXPRESSION_FACTORY context-param.

NOTE: If you decide to stay with EL-1.0 then you will miss LOTS of great features!. E.g. in
dataTables you now can make use of the new EL-2.2 feature to pass arguments to a EL expression.

<h:outputText value="#{backingBean.getStatus(currentRow)}"/>



----- Original Message -----
> From: ""PÉNET LUDOVIC"" <>
> To: MyFaces Discussion <>
> Cc: 
> Sent: Friday, April 6, 2012 9:25 AM
> Subject: Re: Problem with CODI/OWB and PrimeFaces 3.2
> Gerhard Petracek a écrit :
>>  hi ludovic,
>>  first of all: welcome @ myfaces!
>>  if you don't need the security integration with tomcat, you can remove
>>  "openwebbeans-tomcat6" and just add the owb listener in the 
> web.xml
>>      <listener>
> <listener-class>org.apache.webbeans.servlet.WebBeansConfigurationListener</listener-class>
>>      </listener>
>>  if you need the security integration with tomcat, please send the question
>>  to the owb-user liste [1].
> Hi Gerhard and thank you for your quick reply.
> I removed the openwebbeans-tomcat6 package and the corresponding listener
> declaration.
> I still have the same problem.
> Best regards,
> Ludovic
> |
> |

View raw message