[EJB 3.0] - Re: Entitymanager Persistent
by ALRubinger
Well, unless the relationship defined is annotated with @Cascade (CascadeType.PERSIST), you can't persist one entity and expect the relationship to be inserted as well.
So that's one solution.
However, I typically keep the Cascading strategies to NONE as a default (to keep close tabs on what operations the container might do without my explictly telling it so; this is a perference only), and would do the following:
// Create Rollingstock
| rollingstock = new Rollingstock();
| rollingstock.setNextRoute( "STH" );
| rollingstock.setRoute( "HALL" );
|
| // Create Schedule
| schedule = new Schedule();
|
| // Persist Each
| manager.persist(rollingstock);
| manager.persist(scheulde);
|
| // Associate (bi-directionally) after Persisted
| rollingstock.setSchedule(schedule);
| schedule.setRollingstock(rollingstock);
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042957#4042957
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042957
17 years, 4 months
[JBoss Seam] - Re: Really simple, please advice (passing h:dataTable to eve
by stu2
"viniciuscarvalho" wrote : Hi there! I have a really simple question, can not find the answer :(
|
| I'm trying to start a conversation on a second page after the user clicks on
| a link in a view:
|
|
| | <h:dataTable value="#{customers}" var="c">
| |
| | ....
| |
| | <s:link id="startRentProcess" value="Start Rental" action="#{rentalService.start(c)}"/>
| |
| | My RentalService:
| |
| | @Name("rentalService")
| | @Stateful
| | @Scope(ScopeType.SESSION)
| | public class RentalBean implements RentalService {
| |
| | @In(required=false) @Out
| | private Customer customer;
| | @Begin
| | public void start(Customer c) {
| | rental = new Rental();
| | customer = c;
| | rental.setCustomer(c);
| | }
| |
|
| The previous page is backed by a SLSB. When I get at the start, the Customer is null, not the one I've selected through the <s:link>
|
| What am I missing? Do I need a @DataModelSelection?
|
| Best regards
|
|
|
|
The easiest way would be to use a @RequestParameter variable in your SFSB, like this:
@RequestParameter String customerId;
and
<s:link id="startRentProcess" value="Start Rental" action="#{rentalService.start()}">
| <f:param name="customerId" value="#{customer.id}"/>
| </s:link>
Seam will set the variable when the link is clicked, and you can retrieve the customer at that point.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042955#4042955
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042955
17 years, 4 months
[JBoss Seam] - Seam, Maven e Facelets
by srpantano
I´m trying to make an application with Seam (1.2.1GA), JSF RI (1.2_b04), facelets (1.1.12) build with Maven2. This application has one EAR module, one EJB and one WAR module.
Another import aspect is the version showed of Seam 1.2.0PATCH1, but the libs are of 1.2.1.GA
When start the Jboss this error show:
| 15:55:29,185 ERROR [STDERR] 03/05/2007 15:55:29 com.sun.faces.config.ConfigureListener contextInitialized
| INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b07-FCS) for context 'null'
| 15:55:29,419 ERROR [STDERR] javax.faces.FacesException: org.jboss.seam.jsf.SeamApplicationFactory
| 15:55:29,419 ERROR [STDERR] at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:569)
| 15:55:29,419 ERROR [STDERR] at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448)
| 15:55:29,419 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249)
| 15:55:29,419 ERROR [STDERR] at com.sun.faces.util.MessageFactory.getApplication(MessageFactory.java:257)
| 15:55:29,419 ERROR [STDERR] at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:144)
| 15:55:29,419 ERROR [STDERR] at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:122)
| 15:55:29,419 ERROR [STDERR] at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
| 15:55:29,419 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:888)
| 15:55:29,419 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:536)
| 15:55:29,419 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:436)
| 15:55:29,419 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
| 15:55:29,419 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
| 15:55:29,419 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
| 15:55:29,419 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
| 15:55:29,419 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
| 15:55:29,419 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 15:55:29,419 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 15:55:29,419 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:55:29,419 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 15:55:29,419 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| 15:55:29,419 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| 15:55:29,419 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 15:55:29,419 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
| 15:55:29,419 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 15:55:29,419 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 15:55:29,419 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:55:29,435 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 15:55:29,435 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 15:55:29,435 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
| 15:55:29,435 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
| 15:55:29,435 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
| 15:55:29,435 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
| 15:55:29,435 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
| 15:55:29,435 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| 15:55:29,435 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 15:55:29,435 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| 15:55:29,435 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:55:29,435 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 15:55:29,435 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| 15:55:29,435 ERROR [STDERR] at $Proxy0.start(Unknown Source)
| 15:55:29,435 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 15:55:29,435 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| 15:55:29,435 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:55:29,435 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 15:55:29,435 ERROR [STDERR] at $Proxy42.start(Unknown Source)
| 15:55:29,435 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| 15:55:29,435 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 15:55:29,435 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 15:55:29,435 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:55:29,435 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| 15:55:29,435 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| 15:55:29,435 ERROR [STDERR] at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| 15:55:29,435 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| 15:55:29,435 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 15:55:29,435 ERROR [STDERR] at $Proxy43.start(Unknown Source)
| 15:55:29,435 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| 15:55:29,435 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| 15:55:29,435 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| 15:55:29,435 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| 15:55:29,435 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
| 15:55:29,435 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:55:29,435 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 15:55:29,435 ERROR [STDERR] at $Proxy8.deploy(Unknown Source)
| 15:55:29,435 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| 15:55:29,435 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| 15:55:29,435 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| 15:55:29,435 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| 15:55:29,435 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| 15:55:29,435 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 15:55:29,435 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| 15:55:29,435 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:55:29,435 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 15:55:29,435 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 15:55:29,450 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| 15:55:29,450 ERROR [STDERR] at $Proxy0.start(Unknown Source)
| 15:55:29,450 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 15:55:29,450 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| 15:55:29,450 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:55:29,450 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 15:55:29,450 ERROR [STDERR] at $Proxy4.start(Unknown Source)
| 15:55:29,450 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| 15:55:29,450 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| 15:55:29,450 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| 15:55:29,450 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| 15:55:29,450 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 15:55:29,450 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 15:55:29,450 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 15:55:29,450 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:55:29,450 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 15:55:29,450 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 15:55:29,450 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
| 15:55:29,450 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| 15:55:29,450 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| 15:55:29,450 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
| 15:55:29,450 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:490)
| 15:55:29,450 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
| 15:55:29,450 ERROR [STDERR] Caused by: java.lang.InstantiationException: org.jboss.seam.jsf.SeamApplicationFactory
| 15:55:29,450 ERROR [STDERR] at java.lang.Class.newInstance0(Class.java:340)
| 15:55:29,450 ERROR [STDERR] at java.lang.Class.newInstance(Class.java:308)
| 15:55:29,450 ERROR [STDERR] at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:567)
| 15:55:29,450 ERROR [STDERR] ... 145 more
| 15:55:29,466 ERROR [[/BCS-war]] Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
| javax.faces.FacesException: org.jboss.seam.jsf.SeamApplicationFactory
| at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:569)
| at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448)
| at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249)
| at com.sun.faces.util.MessageFactory.getApplication(MessageFactory.java:257)
| at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:144)
| at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:122)
| at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:888)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:536)
| at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:436)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
| 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:597)
| at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
| 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:597)
| at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 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 $Proxy42.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| 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:597)
| 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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 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 $Proxy43.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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 $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 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 $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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:597)
| 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 $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:490)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.InstantiationException: org.jboss.seam.jsf.SeamApplicationFactory
| at java.lang.Class.newInstance0(Class.java:340)
| at java.lang.Class.newInstance(Class.java:308)
| at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:567)
| ... 145 more
| 15:55:29,466 INFO [ServletContextListener] Welcome to Seam 1.2.0.PATCH1
| 15:55:29,482 INFO [Scanner] scanning: /C:/Java/jboss-4.0.5.GA/server/default/tmp/deploy/tmp6459BCS_SAPW-ear-1.0-SNAPSHOT.ear-contents/jboss-seam-1.2.1.GA.jar
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042954#4042954
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042954
17 years, 4 months
[JBoss Seam] - Really simple, please advice (passing h:dataTable to event)
by viniciuscarvalho
Hi there! I have a really simple question, can not find the answer :(
I'm trying to start a conversation on a second page after the user clicks on
a link in a view:
| <h:dataTable value="#{customers}" var="c">
|
| ....
|
| <s:link id="startRentProcess" value="Start Rental" action="#{rentalService.start(c)}"/>
|
| My RentalService:
|
| @Name("rentalService")
| @Stateful
| @Scope(ScopeType.SESSION)
| public class RentalBean implements RentalService {
|
| @In(required=false) @Out
| private Customer customer;
| @Begin
| public void start(Customer c) {
| rental = new Rental();
| customer = c;
| rental.setCustomer(c);
| }
|
The previous page is backed by a SLSB. When I get at the start, the Customer is null, not the one I've selected through the <s:link>
What am I missing? Do I need a @DataModelSelection?
Best regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042951#4042951
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042951
17 years, 4 months