[JBoss Portal] - JBOSS Portal 2.6 + MyFaces within my application not working
by egandt
First off there is a Wiki document at http://wiki.jboss.org/wiki/Wiki.jsp?page=Running2.6WithJBossAS4.2.xAndMyF...
Which appears to cover this topic, however after making the changes suggested, the portal works, but not my application which uses both ADF and MYfaces. In a JBoss Application Server 4.2 I fix my problems with MYFACES by adding the lines:
| <context-param>
| <param-name>
| org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL
| </param-name>
| <param-value>true</param-value>
| </context-param>
|
to the web.xml located at default/deploy/jboss-web.deployer/conf under:
| <!-- =========== Common Context Params ================================== -->
| <!-- JBossInjectionProvider provides resource injection for managed beans. -->
| <!-- See JSF 1.2 spec section 5.4 for details.[
| /code]
| However in Portal this breaks the admin Portlets, so then the portal is not usable. I also receive an error with my application which is at the end of this post.
| If I remove jboss-portal.sar from deploy and start the same exact configuration (all that is done is to remove the file jboss-portal.sar fdrom deply) then my application works. This leads me to believe that making this last change for a Portal is install is not correct, but then how does one manage an application that requires myfaces on a JBOSS Portal installation?
| As a last point this last set of changes does not appear to be needed when the first set from the Wiki are implemented.
|
| Any ideas on what I can do to resolve this issue?
| Thanks,
| ERIC
|
|
|
|
| Also it does not seem to fix my application either as I receive an error:
| 01:13:35,974 INFO [TomcatDeployer] deploy, ctxPath=/XX, warUrl=.../deploy/XX.war/
| 01:13:41,763 ERROR [STDERR] java.lang.IllegalArgumentException: Class org.jboss.portal.faces.portlet.JSFMetaBridgeViewHandlerImpl is no javax.faces.application.ViewHandler
| 01:13:41,768 ERROR [STDERR] at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:665)
| 01:13:41,770 ERROR [STDERR] at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:602)
| 01:13:41,771 ERROR [STDERR] at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:148)
| 01:13:41,774 ERROR [STDERR] at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:68)
| 01:13:41,776 ERROR [STDERR] at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:51)
| 01:13:41,779 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
| 01:13:41,781 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
| 01:13:41,782 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
| 01:13:41,784 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
| 01:13:41,786 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
| 01:13:41,788 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 01:13:41,790 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 01:13:41,791 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 01:13:41,793 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 01:13:41,795 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| 01:13:41,797 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| 01:13:41,799 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 01:13:41,801 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
| 01:13:41,802 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 01:13:41,804 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 01:13:41,806 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 01:13:41,807 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 01:13:41,809 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
| 01:13:41,811 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| 01:13:41,812 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 01:13:41,813 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
| 01:13:41,815 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
| 01:13:41,817 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
| 01:13:41,818 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
| 01:13:41,819 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
| 01:13:41,820 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| 01:13:41,821 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 01:13:41,821 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| 01:13:41,822 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 01:13:41,833 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 01:13:41,836 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 01:13:41,838 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 01:13:41,840 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 01:13:41,842 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 01:13:41,843 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 01:13:41,844 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| 01:13:41,848 ERROR [STDERR] at $Proxy0.start(Unknown Source)
| 01:13:41,858 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 01:13:41,864 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| 01:13:41,867 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 01:13:41,870 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 01:13:41,871 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 01:13:41,874 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 01:13:41,883 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 01:13:41,885 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 01:13:41,887 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 01:13:41,888 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 01:13:41,890 ERROR [STDERR] at $Proxy182.start(Unknown Source)
| 01:13:41,891 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| 01:13:41,893 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 01:13:41,895 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 01:13:41,897 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 01:13:41,898 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 01:13:41,911 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 01:13:41,914 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 01:13:41,916 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 01:13:41,917 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 01:13:41,919 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 01:13:41,921 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| 01:13:41,922 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| 01:13:41,923 ERROR [STDERR] at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
| 01:13:41,925 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| 01:13:41,925 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 01:13:41,927 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 01:13:41,929 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 01:13:41,930 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 01:13:41,931 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 01:13:41,932 ERROR [STDERR] at $Proxy183.start(Unknown Source)
| 01:13:41,933 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| 01:13:41,934 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| 01:13:41,935 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| 01:13:41,938 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
| 01:13:41,940 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 01:13:41,941 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 01:13:41,942 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 01:13:41,944 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 01:13:41,944 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 01:13:41,946 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 01:13:41,949 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 01:13:41,976 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 01:13:41,984 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 01:13:41,989 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 01:13:41,992 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 01:13:41,995 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
| 01:13:42,005 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| 01:13:42,010 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| 01:13:42,013 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| 01:13:42,015 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| 01:13:42,016 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| 01:13:42,018 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 01:13:42,020 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| 01:13:42,022 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 01:13:42,023 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 01:13:42,024 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 01:13:42,025 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 01:13:42,026 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 01:13:42,027 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 01:13:42,028 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 01:13:42,029 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| 01:13:42,030 ERROR [STDERR] at $Proxy0.start(Unknown Source)
| 01:13:42,032 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 01:13:42,032 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| 01:13:42,034 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 01:13:42,036 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 01:13:42,037 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 01:13:42,038 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 01:13:42,039 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 01:13:42,040 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 01:13:42,043 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 01:13:42,044 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 01:13:42,048 ERROR [STDERR] at $Proxy4.start(Unknown Source)
| 01:13:42,050 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| 01:13:42,052 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| 01:13:42,054 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| 01:13:42,055 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| 01:13:42,056 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 01:13:42,057 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 01:13:42,058 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 01:13:42,059 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 01:13:42,061 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
| 01:13:42,062 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 01:13:42,064 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 01:13:42,066 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 01:13:42,067 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 01:13:42,068 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 01:13:42,070 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 01:13:42,071 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 01:13:42,073 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 01:13:42,074 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 01:13:42,076 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
| 01:13:42,077 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| 01:13:42,078 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| 01:13:42,079 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
| 01:13:42,080 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:508)
| 01:13:42,081 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060133#4060133
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060133
18Â years, 9Â months
[JBoss Seam] - pages-2.0.xsd schema - undocumented features
by wschwendt
I've just taken a look at the schema definition ( pages-2.0.xsd ) for the pages.xml configuration file.
>From my perspective there are two things of note:
1) In pages.xml an element named "conversation" can be placed as child element below the "pages"-element. This conversation element can have three attributes: name, parameter-name and parameter-value.
What is this "conversation"-element good for?
2) The "page"-element can have a child element named "in" with the following attributes: name, scope and value.
Again, what is the "in"-element good for?
The Seam docs (as of Seam2.0.0Beta1) say nothing about it yet, and the Seam examples don't make use of this elements either.
I'm aware that there's way too much traffic on this mailing list/forum and I don't want to bother the Seam developers with mundane questions, but perhaps my question is of interest to more users, so I'm posting it here.
Regards,
Wolfgang
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060132#4060132
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060132
18Â years, 9Â months
[JBoss Seam] - how to extend EntityQuery
by gmarcus
Seam 1.2.1
Jboss 4.0.5
I have extended EntityQuery:
| @Name("predictionList")
| @Scope(CONVERSATION)
| public class PredictionList extends EntityQuery
| {
| private static final long serialVersionUID = -28849438634100838L;
|
| @In(required=true, create=true)
| private PredictionFilter predictionFilter;
|
| @Override
| public String getEjbql() {
| return "select p from Prediction p";
| }
|
| @Override
| public List<String> getRestrictions()
| {
| System.out.println("getRestrictions() called. PredictionFilter:" + predictionFilter);
|
| ArrayList<String> restrictions = new ArrayList<String>(0);
|
| if (predictionFilter.getFilterChoice().equals(PredictionFilter.FilterChoice.ALL))
| {
| return restrictions;
| }
|
| if (predictionFilter.getFilterChoice().equals(PredictionFilter.FilterChoice.FEATURED))
| {
| restrictions.add("p.featured=true");
| return restrictions;
| }
|
| if (predictionFilter.getFilterChoice().equals(PredictionFilter.FilterChoice.EDITORSPICKS))
| {
| restrictions.add("p.editorspick=true");
| return restrictions;
| }
|
| return restrictions;
|
| }
|
| ...
|
|
When I use predictionList in my view:
| <h:outputText class="nopredictions" value="No predictions to display" rendered="#{empty predictionList.resultList}"/>
| <h:dataTable styleclass="predictions" value="#{predictionList.resultList}" var="pre" rendered="#{not empty predictionList.resultList}">
| ...
|
I get the following exception:
| javax.faces.el.EvaluationException: /layout/predictions.xhtml @8,118 rendered="#{empty predictionList.resultList}": com.mystuff.fresh.domain.PredictionList_$$_javassist_304
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:822)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:241)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
| at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 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:432)
| 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.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.faces.el.EvaluationException: Bean: com.mystuff.fresh.domain.PredictionList_$$_javassist_304, property: resultList
| at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:404)
| at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:71)
| at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)
| at com.sun.el.parser.AstValue.getValue(AstValue.java:125)
| at com.sun.el.parser.AstEmpty.getValue(AstEmpty.java:49)
| at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
| ... 44 more
| Caused by: java.lang.reflect.InvocationTargetException
| at sun.reflect.GeneratedMethodAccessor7810.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:400)
| ... 51 more
| Caused by: java.lang.IllegalArgumentException: there should be exactly one value binding in a restriction: p.featured=true
| at org.jboss.seam.framework.Query.parseEjbql(Query.java:145)
| at org.jboss.seam.framework.EntityQuery.createQuery(EntityQuery.java:100)
| at org.jboss.seam.framework.EntityQuery.getResultList(EntityQuery.java:41)
| at sun.reflect.GeneratedMethodAccessor7811.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
| at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:47)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:32)
| at org.jboss.seam.util.Work.workInTransaction(Work.java:37)
| at org.jboss.seam.interceptors.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
| at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
| at com.mystuff.fresh.domain.PredictionList_$$_javassist_304.getResultList(PredictionList_$$_javassist_304.java)
| ... 55 more
|
Are restrictions the right way to set the where clause on a query?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060130#4060130
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060130
18Â years, 9Â months