[JBoss Seam] - Deployment error for Jboss-seam.2.0.0.beta1 version
by m.shinde
I am getting following error while deploying the application on Jboss-4.2.1.GA server.
Previously for Jboss-seam.1.2.1.patch1 the application was properly deployed.
| 20:29:37,848 INFO [TomcatDeployer] deploy, ctxPath=/orderstarter, warUrl=.../tmp/deploy/tmp39446orderstarter.ear-contents/orderstarter-view-war-
| 0.1-SNAPSHOT-exp.war/
| 20:29:40,254 ERROR [STDERR] java.lang.IllegalStateException: No application context active
| 20:29:40,254 ERROR [STDERR] at org.jboss.seam.Component.forName(Component.java:1690)
| 20:29:40,269 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1740)
| 20:29:40,285 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1723)
| 20:29:40,285 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1702)
| 20:29:40,301 ERROR [STDERR] at org.jboss.seam.core.ResourceBundle.instance(ResourceBundle.java:209)
| 20:29:40,301 ERROR [STDERR] at org.jboss.seam.jsf.SeamApplicationMessageBundle.handleGetObject(SeamApplicationMessageBundle.java:28)
| 20:29:40,316 ERROR [STDERR] at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
| 20:29:40,332 ERROR [STDERR] at java.util.ResourceBundle.getString(ResourceBundle.java:285)
| 20:29:40,332 ERROR [STDERR] at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:151)
| 20:29:40,347 ERROR [STDERR] at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:122)
| 20:29:40,347 ERROR [STDERR] at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
| 20:29:40,363 ERROR [STDERR] at com.sun.faces.util.Util.createInstance(Util.java:477)
| 20:29:40,363 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:636)
| 20:29:40,379 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:487)
| 20:29:40,379 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
| 20:29:40,394 ERROR [STDERR] at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.ja
| va:69)
| 20:29:40,410 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
| 20:29:40,426 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
| 20:29:40,426 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
| 20:29:40,441 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
| 20:29:40,441 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
| 20:29:40,472 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:29:40,472 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:29:40,488 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:29:40,504 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:29:40,504 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| 20:29:40,519 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| 20:29:40,519 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 20:29:40,535 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
| 20:29:40,535 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:29:40,551 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:29:40,566 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:29:40,566 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:29:40,582 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| 20:29:40,582 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| 20:29:40,597 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 20:29:40,597 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
| 20:29:40,613 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
| 20:29:40,613 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
| 20:29:40,629 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
| 20:29:40,644 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
| 20:29:40,644 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| 20:29:40,660 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 20:29:40,660 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| 20:29:40,676 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:29:40,676 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:29:40,691 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 20:29:40,691 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 20:29:40,707 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 20:29:40,722 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 20:29:40,722 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 20:29:40,738 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| 20:29:40,738 ERROR [STDERR] at $Proxy0.start(Unknown Source)
| 20:29:40,754 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 20:29:40,754 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| 20:29:40,769 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:29:40,769 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:29:40,785 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 20:29:40,800 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 20:29:40,800 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 20:29:40,816 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 20:29:40,816 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 20:29:40,832 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 20:29:40,832 ERROR [STDERR] at $Proxy45.start(Unknown Source)
| 20:29:40,847 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| 20:29:40,863 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:29:40,863 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:29:40,879 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:29:40,879 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:29:40,894 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 20:29:40,910 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 20:29:40,910 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 20:29:40,925 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 20:29:40,925 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 20:29:40,941 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| 20:29:40,941 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| 20:29:40,957 ERROR [STDERR] at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
| 20:29:40,957 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:
| 188)
| 20:29:40,972 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 20:29:40,988 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 20:29:41,004 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 20:29:41,004 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 20:29:41,019 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 20:29:41,019 ERROR [STDERR] at $Proxy46.start(Unknown Source)
| 20:29:41,035 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| 20:29:41,050 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| 20:29:41,050 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| 20:29:41,066 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| 20:29:41,066 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
| 20:29:41,082 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:29:41,082 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:29:41,097 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 20:29:41,097 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 20:29:41,113 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 20:29:41,129 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 20:29:41,129 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 20:29:41,144 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 20:29:41,144 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 20:29:41,160 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 20:29:41,160 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 20:29:41,175 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
| 20:29:41,175 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| 20:29:41,191 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| 20:29:41,207 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263
| )
| 20:29:41,222 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| 20:29:41,222 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| 20:29:41,238 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 20:29:41,238 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| 20:29:41,254 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:29:41,254 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:29:41,269 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 20:29:41,285 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 20:29:41,285 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 20:29:41,300 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 20:29:41,300 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 20:29:41,316 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| 20:29:41,316 ERROR [STDERR] at $Proxy0.start(Unknown Source)
| 20:29:41,332 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 20:29:41,347 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| 20:29:41,347 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:29:41,363 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:29:41,363 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 20:29:41,379 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 20:29:41,379 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 20:29:41,394 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 20:29:41,394 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 20:29:41,410 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 20:29:41,425 ERROR [STDERR] at $Proxy4.start(Unknown Source)
| 20:29:41,425 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| 20:29:41,441 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| 20:29:41,441 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| 20:29:41,457 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| 20:29:41,457 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 20:29:41,472 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 20:29:41,472 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 20:29:41,488 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 20:29:41,504 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 20:29:41,504 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 20:29:41,519 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 20:29:41,519 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 20:29:41,535 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 20:29:41,535 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 20:29:41,550 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 20:29:41,566 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 20:29:41,566 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 20:29:41,582 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 20:29:41,582 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
| 20:29:41,597 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| 20:29:41,597 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| 20:29:41,613 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
| 20:29:41,613 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:508)
| 20:29:41,629 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 20:29:41,644 ERROR [[/orderstarter]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.conf
| ig.JBossJSFConfigureListener
| javax.faces.FacesException: java.lang.IllegalStateException: No application context active
| at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:387)
| at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
| 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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| 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:5310)
| 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)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076366#4076366
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076366
18Â years, 8Â months
[JBoss Seam] - Re: Multiple beans outjecting same variable - how to control
by ASavitsky
"vincent.latombe" wrote : AFAIK, outjection is done after each call of each method of a component.
Yes, if there's a method call - but what if there isn't one?
My use case is pretty simple, actually: there's an entity X, with an User attribute, so that each user can see their own Xs, while an admin can see all of them (optionally filtetred by user). Thus, there's an EntityQuery set up ("FROM X x") with restrictions in the form of "x.user = #{selectedUser}", where selectedUser is outjected. Admin screen either outjects null (default on page load) or the user that list should be filtered on (via method call in admin screen controller). User screen, OTOH, is to automatically outject the current logged in user as selectedUser. To accomplish this, the controller bean for user screen declares @In @Out ("selectedUser") User principal; (principal is the current logged in user, outjected into session on login).
The only problem is, there's no way to control which of the controller beans would outject the value first (on first page load, for instance). The hacker way to solve this is to introduce a no-op method in each of the controllers, that would execute on page load and do all the outjection, like that: <page view-id="/attestation/accounts.xhtml"
| action="#{accountController.noOp}" />, but of course this is just a hack...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076361#4076361
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076361
18Â years, 8Â months
[JBoss Seam] - Learning to use s:selectItems
by mikeeprice
Using jboss-4.2.1.GA and jboss-seam-2.0.0.BETA1
Given in peoplePopup.xhtml
...
<h:selectOneMenu>
<s:selectItems value="#{allPeople}" var="n" label="#{n.name}" />
</h:selectOneMenu>
...
in PersonManagerAction.java
...
@DataModel
private List allPeople;
@DataModelSelection(value="allPeople")
private Person selectedPerson;
...
allPeople has an @Factory method and the list pops up fine showing the names from all the Person entities and lets me make the selection
then the following is executed from a commandButton in peoplePopup.xhtml
public void selectTest()
{
System.out.println("******* selectTest Name= "+selectedPerson.getName());
}
always prints out the first item in the selection list regardless of which one I selected.
So I am thinking this is not the way to do this. I think it would be cool though.
In other words select a name in the popup list and have the selected value be the associated Person entity object.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076358#4076358
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076358
18Â years, 8Â months
[JBossWS] - Jboww WS problem - plz help
by jboss2007
I have the following configuration:
- JDK 1.5.0_12
- jboss-4.2.1.GA
- jbossws-native-2.0.1.GA
I followed the user guide: http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Tools
I've successfully deployed the Echo web service. Howserver, when I run the ws client (consumer) I got this exception:
Exception in thread "main" javax.xml.ws.WebServiceException: Unable to load Prov
| ider: Failed to load javax.xml.ws.spi.Provider: org.jboss.ws.core.jaxws.spi.Prov
| iderImpl
| at javax.xml.ws.spi.Provider.provider(Provider.java:98)
| at javax.xml.ws.Service.<init>(Service.java:83)
| at com.company.package.EchoService.<init>(EchoService.java:40)
| at EchoClient.main(EchoClient.java:10)
| Caused by: java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Prov
| ider: org.jboss.ws.core.jaxws.spi.ProviderImpl
| at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:96)
| at javax.xml.ws.spi.Provider.provider(Provider.java:90)
| ... 3 more
| Caused by: java.lang.NoClassDefFoundError: org/jboss/util/NotImplementedExceptio
| n
| at java.lang.Class.getDeclaredConstructors0(Native Method)
| at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
| at java.lang.Class.getConstructor0(Class.java:2671)
| at java.lang.Class.newInstance0(Class.java:321)
| at java.lang.Class.newInstance(Class.java:303)
| at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:91)
| ... 4 more
Any idea about this problem?
any help will be much appreciated
thanks in advance,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076355#4076355
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076355
18Â years, 8Â months