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 <
[email protected]> 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 <[email protected]>
>
> > 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 <[email protected]>
> 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 <
> > > [email protected]> 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 <[email protected]>
> > >>
> > >> > 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 <[email protected]>
> > >> > >
> > >> > > > 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/[email protected]/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: [email protected]
> > >> >
> > >>
> > >
> > >
> > >
> > > --
> > > Att.
> > > Maicon
> > > Fone: 92690976
> > > MSN: [email protected]
> > >
> >
> >
> >
> > --
> > Att.
> > Maicon
> > Fone: 92690976
> > MSN: [email protected]
> >
>



-- 
Att.
Maicon
Fone: 92690976
MSN: [email protected]

Reply via email to