users@glassfish.java.net

Re: Glassfish embedded two apps: Must call associate() before calling activate()

From: Amy Roh <amy.roh_at_oracle.com>
Date: Thu, 23 Feb 2012 14:39:47 -0800

Do the apps work together on non-embedded glassfish?

This looks like weld issue - https://issues.jboss.org/browse/JBAS-8297

https://community.jboss.org/message/588546#588546

On 2/23/12 7:59 AM, forums_at_java.net wrote:
> Hello Community,
>
> i have two applications, one is a web-app with webservice and JSF pages
> and one is a webservice/EJB/JPA app. Both apps use CDI . Each app
> runs fine
> on embedded glassfish 3.1.1. When i deploy both apps on the same
> embedded gf,
> the jsf pages doesn't work anymore (see exception). The first app stop
> working in the moment when the second app get deployed.
>
> Let me know if you need further information. Any help is appreciated!
>
> best regards
>
> Daniel
>
> [code]
>
> 23.02.2012 15:49:38 com.sun.enterprise.web.VirtualServer$1 log
> WARNUNG: StandardWrapperValve[Faces Servlet]: PWC1406:
> Servlet.service() for
> servlet Faces Servlet threw exception
> java.lang.IllegalStateException: Must call associate() before calling
> activate()
> at
> org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:277)
>
> at
> org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110)
>
> at
> org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84)
>
> at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
> at
> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
>
> at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
>
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
>
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:232)
>
> at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
> at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
> at
> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
>
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
>
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
>
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
>
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
>
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
>
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
>
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
>
> at java.lang.Thread.run(Unknown Source)
>
>
> [/code]
>
>
> --
>
> [Message sent by forum member 'dansg']
>
> View Post: http://forums.java.net/node/883735
>
>