myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Petracek <gerhard.petra...@gmail.com>
Subject Re: No active contexts for CODI on Weblogic 12c
Date Thu, 21 Jun 2012 20:21:01 GMT
hi maicon,

sounds like a wls12c bug with custom cdi scopes and auto-deployment.

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2012/6/21 Maicon <pnpinformatica@gmail.com>

> Hi guys.
>
> CODI works fine on weblogic 12c, but not working under directory
> *autodeploy
> * (for development).
>
> gerhard / rudy do you know something about it?
>
> On Wed, Jun 20, 2012 at 7:01 PM, Gerhard Petracek <
> gerhard.petracek@gmail.com> wrote:
>
> > hi maicon,
> >
> > rudy did some tests with wls12c and afaik it worked for him.
> > maybe he can provide further details.
> >
> > regards,
> > gerhard
> >
> > http://www.irian.at
> >
> > Your JSF/JavaEE powerhouse -
> > JavaEE Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
> >
> >
> > 2012/6/20 Maicon <pnpinformatica@gmail.com>
> >
> > > Gerhard when I use @SessionScoped instead of @ConversationScoped the
> page
> > > is loaded ok.
> > >
> > >
> > > The code of the UserMBean is:
> > >
> > > @Named("userMBean")
> > > @ConversationScoped
> > > public class UserMBean implements Serializable {
> > >
> > >    private static final long serialVersionUID = 3140959503723849518L;
> > >
> > >    private String nome, password;
> > >
> > >    public UserMBean() {
> > >    }
> > >
> > >    public String doLogin() {
> > >        return "maicon.faces";
> > >    }
> > >
> > >    public String getNome() {
> > >        return nome;
> > >    }
> > >
> > >    public void setNome(String nome) {
> > >        this.nome = nome;
> > >    }
> > >
> > >    public String getPassword() {
> > >        return password;
> > >    }
> > >
> > >    public void setPassword(String password) {
> > >        this.password = password;
> > >    }
> > >
> > > }
> > >
> > > And login.xhtml
> > > <h:form>
> > >                <table>
> > >                    <tr>
> > >                        Usuario:
> > >                        <h:inputText value="#{userMBean.nome}" />
> > >                    </tr>
> > >                    <tr>
> > >                        Senha:
> > >                        <h:inputText value="#{userMBean.password}" />
> > >                    </tr>
> > >                    <tr>
> > >                        <h:commandButton action="#{userMBean.dologin}"
> > >                            value="Entrar" />
> > >                    </tr>
> > >                </table>
> > >            </h:form>
> > >
> > > Thanks
> > >
> > >
> > > On Wed, Jun 20, 2012 at 6:10 PM, Maicon <pnpinformatica@gmail.com>
> > wrote:
> > >
> > > > Hi gerhard, the full stack provided by weblogic
> > > >
> > > > javax.el.ELException:
> > > >
> > >
> >
> //C:/Java/wls1211_dev/user_projects/domains/dev_domain/autodeploy/testeFramework/login.xhtml
> > > > @18,48 value="#{userMBean.nome}":
> > > > org.jboss.weld.context.ContextNotActiveException: WELD-001303 No
> active
> > > > contexts for scope type
> > > >
> > >
> >
> org.apache.myfaces.extensions.cdi.core.api.scope.conversation.ConversationScoped
> > > >     at
> > > >
> > >
> >
> com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:114)
> > > >     at
> > > >
> > >
> >
> javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
> > > >     at
> > > >
> > >
> >
> javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)
> > > >     at javax.faces.component.UIOutput.getValue(UIOutput.java:169)
> > > >     at
> > > >
> > >
> >
> com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:205)
> > > >     Truncated. see log file for complete stacktrace
> > > > Caused By: org.jboss.weld.context.ContextNotActiveException:
> > WELD-001303
> > > > No active contexts for scope type
> > > >
> > >
> >
> org.apache.myfaces.extensions.cdi.core.api.scope.conversation.ConversationScoped
> > > >
> > > >     at
> > > >
> > >
> >
> org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:600)
> > > >     at
> > > >
> > >
> >
> org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:71)
> > > >     at
> > > >
> > >
> >
> org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)
> > > >     at
> > > >
> > >
> >
> com.mycompany.tst.UserMBean$Proxy$_$$_WeldClientProxy.getNome(UserMBean$Proxy$_$$_WeldClientProxy.java)
> > > >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >     Truncated. see log file for complete stacktrace
> > > >
> > > >
> > > >
> > > > On Wed, Jun 20, 2012 at 5:40 PM, Gerhard Petracek <
> > > > gerhard.petracek@gmail.com> wrote:
> > > >
> > > >> hi maicon,
> > > >>
> > > >> that's fine.
> > > >> if you access the conversation-scoped bean within the
> > > >> jsf-request-lifecycle, we need the full stacktrace to see where the
> > call
> > > >> comes from.
> > > >>
> > > >> regards,
> > > >> gerhard
> > > >>
> > > >> http://www.irian.at
> > > >>
> > > >> Your JSF/JavaEE powerhouse -
> > > >> JavaEE Consulting, Development and
> > > >> Courses in English and German
> > > >>
> > > >> Professional Support for Apache MyFaces
> > > >>
> > > >>
> > > >>
> > > >> 2012/6/20 Maicon <pnpinformatica@gmail.com>
> > > >>
> > > >> > Hi gerhard, my Faces Servlet is mapped to *.faces. I tried
> > >  mypage.faces
> > > >> >
> > > >> > I need other configuration?
> > > >> >
> > > >> > My web.xml
> > > >> > <servlet>
> > > >> >        <servlet-name>Faces Servlet</servlet-name>
> > > >> >
> >  <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> > > >> >        <load-on-startup>1</load-on-startup>
> > > >> >    </servlet>
> > > >> >
> > > >> >    <servlet-mapping>
> > > >> >        <servlet-name>Faces Servlet</servlet-name>
> > > >> >        <url-pattern>*.faces</url-pattern>
> > > >> >    </servlet-mapping>
> > > >> >
> > > >> > thanks
> > > >> >
> > > >> >
> > > >> >
> > > >> > >  hi maicon,
> > > >> > >
> > > >> > > it looks like you are trying to access the conversation-scope
> > > outside
> > > >> of
> > > >> > a
> > > >> > > faces-request.
> > > >> > >
> > > >> > > regards,
> > > >> > > gerhard
> > > >> > >
> > > >> > > http://www.irian.at
> > > >> > >
> > > >> > > Your JSF/JavaEE powerhouse -
> > > >> > > JavaEE Consulting, Development and
> > > >> > > Courses in English and German
> > > >> > >
> > > >> > > Professional Support for Apache MyFaces
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > 2012/6/20 Maicon <pnpinformatica@gmail.com>
> > > >> > >
> > > >> > > > Hi guys,
> > > >> > > >
> > > >> > > > I tried run the Myfaces CODI on Weblogic 12c following
these
> > > links:
> > > >> > > > -
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> http://jsfcorner.blogspot.com.br/2012/01/codi-on-oracle-weblogic-server-12c.html
> > > >> > > > -
> > > >> http://www.mail-archive.com/users@myfaces.apache.org/msg58208.html
> > > >> > > >
> > > >> > > > I'm using CODI 1.0.5 and weblogic 12.1.1.0 and deployed
> > > >> successfully:
> > > >> > > >
> > > >> > > > 20/06/2012 16:11:43
> > > >> > > >
> > > org.apache.myfaces.extensions.cdi.core.api.provider.ServiceProvider
> > > >> > > > <clinit>
> > > >> > > > INFO:
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProvider
> > > >> > > > installed successfully.
> > > >> > > > 20/06/2012 16:11:43
> > > >> > > >
> > > org.apache.myfaces.extensions.cdi.core.api.provider.ServiceProvider
> > > >> > > > <clinit>
> > > >> > > > INFO:
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProviderContext
> > > >> > > > installed successfully.
> > > >> > > > 20/06/2012 16:11:51
> > > >> > > > org.primefaces.webapp.PostConstructApplicationEventListener
> > > >> > processEvent
> > > >> > > > INFO: Running on PrimeFaces 3.3.1
> > > >> > > >
> > > >> > > > But my page throws error when is loading:
> > > >> > > >
> > > >> > > > *org.jboss.weld.context.ContextNotActiveException:
WELD-001303
> > No
> > > >> > active
> > > >> > >
> > > >> > > > contexts for scope type
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.myfaces.extensions.cdi.core.api.scope.conversation.ConversationScoped
> > > >> > > > *
> > > >> > > >    at
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:600)
> > > >> > > >    at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:71)
> > > >> > > >    at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)
> > > >> > > >
> > > >> > > >
> > > >> > > > What's the problem? It is possible run CODI on the
Weblogic
> 12c
> > > with
> > > >> > > > sucess?
> > > >> > > >
> > > >> > > > Sorry my english..
> > > >> > > >
> > > >> > > > Thanks
> > > >> > > >
> > > >> > > > --
> > > >> > > > Att.
> > > >> > > > Maicon
> > > >> > > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> >
> > > >> >
> > > >> > --
> > > >> > Att.
> > > >> > Maicon
> > > >> > Fone: 92690976
> > > >> > MSN: pnpinformatica@gmail.com
> > > >> >
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > Att.
> > > > Maicon
> > > > Fone: 92690976
> > > > MSN: pnpinformatica@gmail.com
> > > >
> > >
> > >
> > >
> > > --
> > > Att.
> > > Maicon
> > > Fone: 92690976
> > > MSN: pnpinformatica@gmail.com
> > >
> >
>
>
>
> --
> Att.
> Maicon
> Fone: 92690976
> MSN: pnpinformatica@gmail.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message