Hmmm, OP says, ... (keep reading below)

On Mon, Jun 10, 2013 at 2:02 PM, José Luis Cetina <[email protected]>
 wrote:

> Just FYI, when you declare ( i did that by mistake) public attributes with
> their getter and setters in your ManagedBean you get this exception (by the
> way the error is not very documentated), looking at my code after 10
> minutes i discover that my attributes was marked as public (by mistake)
> then i mark them as private and the error disappear.
>
> Log:
>
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> at
>



> SEVERE - Servlet / threw load() exception
> java.lang.IllegalStateException: no
> org.apache.myfaces.extensions.cdi.core.api.provider.BeanManagerProvider in
> place! Please ensure that you configured the CDI implementation of your
> choice properly. If your setup is correct, please clear all caches and
> compiled artifacts. If there is still a problem, try one of the controlled
> bootstrapping add-ons for the CDI implementation you are using.
> at
>
> org.apache.myfaces.extensions.cdi.core.api.provider.BeanManagerProvider.getInstance(BeanManagerProvider.java:83)
> at
>
> org.apache.myfaces.extensions.cdi.core.impl.util.CodiUtils.getContextualReferenceByClass(CodiUtils.java:124)
>

and Romain says, ...

On Wed, Jun 12, 2013 at 2:47 AM, Romain Manni-Bucau <[email protected]>
 wrote:

> Here is the exception:
>
> org.apache.webbeans.exception.WebBeansConfigurationException: If bean has a
> public field, bean scope must be defined as @Scope. Bean is :
> com.maxtorzito.test.MyBeanThree
>

Romain's exception does not mention anything about CODI. The OP has a CODI
exception (I think).

Reply via email to