[JBoss Messaging] - Re: jboss-messaging-1.4.0.CR3 and jboss-remoting-2.2.2.SP1
by clebert.suconic@jboss.com
We need to change the classpath on the tests to include remoting on client also...
The classPath on the examples is using:
| <path id="execution.classpath">
| <pathelement path="./etc"/>
| <pathelement path="../common/output/classes"/>
| <pathelement path="./output/classes"/>
| <fileset file="${messaging.client.jar.path}/${messaging.client.jar.name}"/>
| <fileset file="${jboss.home}/client/jbossall-client.jar"/>
| <fileset file="${jboss.home}/server/${jboss.configuration}/lib/log4j.jar"/>
| <fileset file="${jboss.home}/server/${jboss.configuration}/lib/javassist.jar"/>
| <fileset file="${jboss.home}/server/${jboss.configuration}/deploy/jboss-aop-jdk50.deployer/jboss-aop-jdk50.jar"/>
| <fileset file="${jboss.home}/server/${jboss.configuration}/deploy/jboss-aop-jdk50.deployer/trove.jar"/>
| </path>
|
If you add jboss-remoting.jar before jbossall-client.jar, this would be fixed, as jbossall-client.jar includes the old remoting on it.
I will also change the examples per your feedback.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088012#4088012
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088012
18 years, 9 months
[JBoss Seam] - Re: No active event context
by hmccartney
Hi
I have exactly the same problem. I can get rid of the "No active event context" error using Stan's fix but I get a ClassCastException instead. The stack trace is given below.
I'm using:
JBoss 4.0.5
Portal 2.4.1
Seam 1.1.6
Did anybody find a solution to this?
Thanks,
Heather
| javax.portlet.PortletException: javax.portlet.PortletException: org.apache.myfaces.context.servlet.ServletFacesContextImpl
| at jp.sf.pal.facesresponse.FacesResponseFilter.renderFilter(FacesResponseFilter.java:81)
| at org.apache.portals.bridges.portletfilter.PortletFilterChain.renderFilter(PortletFilterChain.java:116)
| at org.apache.portals.bridges.portletfilter.FilterPortlet.render(FilterPortlet.java:144)
| at org.jboss.portal.portlet.container.PortletContainer.invokeRender(PortletContainer.java:518)
| at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:434)
| at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:144)
| at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:223)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:85)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
| at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
| at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:102)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
| at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:51)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.portlet.aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:60)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:46)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.portlet.aspects.portlet.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:55)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:77)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:141)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:99)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
| at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
| at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
| at org.jboss.portal.portlet.impl.spi.AbstractRequestContext.include(AbstractRequestContext.java:194)
| at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:69)
| at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:79)
| at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:75)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.portlet.aspects.portlet.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:49)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:65)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:57)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.portlet.container.PortletContainerInvoker.invoke(PortletContainerInvoker.java:115)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy64.invoke(Unknown Source)
| at org.jboss.portal.portlet.state.producer.StatefulPortletInvoker.invoke(StatefulPortletInvoker.java:250)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy66.invoke(Unknown Source)
| at org.jboss.portal.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:140)
| at org.jboss.portal.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:156)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy68.invoke(Unknown Source)
| at org.jboss.portal.portlet.test.TestPortletInvoker$1.dispatch(TestPortletInvoker.java:62)
| at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:223)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:86)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:128)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:78)
| at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.portlet.test.TestPortletInvoker.invoke(TestPortletInvoker.java:122)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy50.invoke(Unknown Source)
| at org.jboss.portal.core.impl.model.instance.InstanceImpl.invoke(InstanceImpl.java:274)
| at org.jboss.portal.core.command.RenderWindowCommand.execute(RenderWindowCommand.java:109)
| at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:84)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:168)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:103)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:92)
| at org.jboss.portal.core.command.CommandContext.chain(CommandContext.java:148)
| at org.jboss.portal.core.command.MarkupCommand.renderPortletWindow(MarkupCommand.java:466)
| at org.jboss.portal.core.command.RenderPageCommand.renderFragments(RenderPageCommand.java:78)
| at org.jboss.portal.core.command.MarkupCommand.execute(MarkupCommand.java:343)
| at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:84)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:168)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:103)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
| at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:92)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:153)
| at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:79)
| at org.jboss.portal.core.CoreController.handle(CoreController.java:130)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
| at $Proxy228.handle(Unknown Source)
| at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:80)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
| at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:65)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:73)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:175)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:84)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
| at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
| at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
| at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
| at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
| at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:295)
| at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:173)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.portlet.PortletException: org.apache.myfaces.context.servlet.ServletFacesContextImpl
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.handleExceptionFromLifecycle(MyFacesGenericPortlet.java:253)
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:399)
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:265)
| at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
| at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
| at org.apache.portals.bridges.portletfilter.PortletFilterChain.renderFilter(PortletFilterChain.java:121)
| at jp.sf.pal.tomahawk.filter.ExtensionsPortletFilter.renderFilter(ExtensionsPortletFilter.java:163)
| at org.apache.portals.bridges.portletfilter.PortletFilterChain.renderFilter(PortletFilterChain.java:116)
| at jp.sf.pal.facesresponse.FacesResponseFilter.renderFilter(FacesResponseFilter.java:76)
| ... 244 more
| Caused by: java.lang.ClassCastException: org.apache.myfaces.context.servlet.ServletFacesContextImpl
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:387)
| ... 251 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088006#4088006
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088006
18 years, 9 months
[JBoss Seam] - Re: Get Request problems with Seam 2 CR1
by smithbstl
Pete, I'm still having problems. Everything works when I remove the redirect/ from my transition.
Basically what I want to happen is....
I have a search page called addresslookup.xhtml. This forwards to addressrequestlisting.xhtml which then should redirect to servicerequest.xhtml with the desired parameter supplied like shown in my previous post. This is handled via pages.xml
Here is my pageflow file
<pageflow-definition
| xmlns="http://jboss.com/products/seam/pageflow"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation= "http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-2.0.xsd"
| name="serviceRequestCreation">
| <start-page name="addressSearch" view-id="/addresslookup.xhtml">
| <transition name="viewServiceRequests" to="serviceRequestListing">
| <action expression="#{addressLocator.viewServiceRequests}"/>
| </transition>
|
| <page name="serviceRequestListing" view-id="/addressrequestlisting.xhtml"
| back="enabled">
| <transition name="viewServiceRequest" to="serviceRequest"/>
| </page>
|
| <page name="serviceRequest" view-id="/servicerequest.xhtml"
| back="enabled">
| <redirect/>
| <transition name="viewAssignments" to="assignmentListing"/>
| </page>
| </pageflow-definition>
Here is pages.xml
<page view-id="/servicerequest.xhtml">
| <param name="serviceRequestId" value="#{serviceRequestManager.serviceRequestId}"
| converterId="javax.faces.Long"/>
| <begin-conversation join="true" pageflow="serviceRequestCreation"/>
| <action execute="#{serviceRequestManager.loadServiceRequest(serviceRequestManager.serviceRequestId)}"/>
| </page>
Here is the link in question (req is a var defined in a dataTable). This datatable is also part of facelet hierarchy supplied to addressrequestlisting.xhtml via a ui:include. The value of the datatable is also supplied via ui:param. This may be pertinent based on this http://www.jboss.com/index.html?module=bb&op=viewtopic&t=117233 but I think its not related.
<s:link
| action="viewServiceRequest"
| value="#{req.serviceRequestNumber}">
| <f:param name="serviceRequestId" value="#{req.serviceRequestId}" />
| </s:link>
When this link is clicked the parameters are NOT showing up in the resulting page's (servicerequest.xhtml) address bar. Only the conversationId (cid) is propagated.
When I remove the redirect from the pageflow
<page name="serviceRequest" view-id="/servicerequest.xhtml"
| back="enabled">
| <transition name="viewAssignments" to="assignmentListing"/>
| </page>
and change the view defined in pages.xml to this
| <page view-id="/addressrequestlisting.xhtml">
| <param name="serviceRequestId" value="#{serviceRequestManager.serviceRequestId}"
| converterId="javax.faces.Long"/>
| <begin-conversation join="true" pageflow="serviceRequestCreation"/>
| <action execute="#{serviceRequestManager.loadServiceRequest(serviceRequestManager.serviceRequestId)}"/>
| </page>
everything works as expected. The only difference is I am use a forward instead of a redirect.
I am using Seam 2 CR1 with the latest RichFaces snapshots (9-23-2007)
Thanks again.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087998#4087998
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087998
18 years, 9 months
[JBoss Seam] - Re: Please decouple seam-gen from JBoss
by dan.j.allen
I am going to go out on a limb here and say that Tomcat is what got us in the hot water that is burning our skin today. The whole viewpoint that application servers are big and heavyweight is antiquated. What people don't realize is that Tomcat is more "proprietary" and difficult to use than just using an application server. (Shoot, Glassfish starts nearly as fast as Tomcat these days! - http://raibledesigns.com/rd/entry/glassfish_2_vs_tomcat_6)
Please don't assume that I am biased towards application servers or I have any investment in them at all. One year ago I would have been the first person to slander application servers. After taking a very extensive look at Seam, I realize that we have painted ourselves into a corner by discarded services like JNDI and JTA and trying to run on pure servlet containers. It is actually harder to go without them.
While Tomcat support is interesting from an academic perspective, it is simply not that beneficial. Besides, all you have to do to "upgrade" Tomcat to an application server is to dump the embedded JBoss in the global library directory of Tomcat. While on the one had this just turns JBoss inside out, putting Tomcat on top rather than the application server itself, it at least allows you to use the services that are known, supported, and capable.
All this isn't to say that Seam isn't supporting Tomcat. I think all of the examples run on Tomcat. What I am saying is that frankly I don't think it is the right direction anymore.
You should really give the Java EE spec another look, especially with Web Beans on the way. Tomcat is just a module, a servlet module. If you want to use Tomcat, just write servlets or Struts apps.
These opinions are my own. I am not speaking for the Seam developers.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087997#4087997
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087997
18 years, 9 months
[JBoss Seam] - Re: Call scheduled method from another scheduled method
by motte79
Hmmmm .....
There is a condition in the AsynchronousInterceptor which prevents @Asynchronous calls to be made from @Asynchronous methods ...
Why ?
!Contexts.getEventContext().isSet(AbstractDispatcher.EXECUTING_ASYNCHRONOUS_CALL)
| @AroundInvoke
| public Object aroundInvoke(InvocationContext invocation) throws Exception
| {
| boolean scheduleAsync = invocation.getMethod().isAnnotationPresent(Asynchronous.class) &&
| !Contexts.getEventContext().isSet(AbstractDispatcher.EXECUTING_ASYNCHRONOUS_CALL);
| if (scheduleAsync)
| {
| Dispatcher dispatcher = AbstractDispatcher.instance();
| if (dispatcher==null)
| {
| throw new IllegalStateException("org.jboss.seam.async.dispatcher is not installed in components.xml");
| }
| Object timer = dispatcher.scheduleInvocation( invocation, getComponent() );
| //if the method returns a Timer, return it to the client
| return timer!=null && invocation.getMethod().getReturnType().isAssignableFrom( timer.getClass() ) ? timer : null;
| }
| else
| {
| return invocation.proceed();
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087994#4087994
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087994
18 years, 9 months