3 Replies Latest reply on Jul 15, 2006 4:56 PM by gavin.king

    Injection/loading not working on Seam CRUD app?

      I have gotten past a couple of other issues with the CRUD app and now have it to the point that it somewhat works... but if i try going immediately to the "Search for existing records" page, it fails. I will post the stack trace below. But if i go to the "create record" page it works, and if I THEN to the "Search for existing records" page, it works. I tried stepping it through debug, it looks like it's failing because it can't instantiate one of my classes, due to not finding/loading the message.properties file...?

      And yes I'm on the latest version of everything (jboss, seam, jboss eclipse ide, ejb), and yes I can run the Seam examples ok.
      Environment: Eclipse 3.1.2, jdk 1.5, linux amd 64 bit.

      All the WARN lines at the bottom of the trace are from when I went to the create page instead of the search page.
      Here's the stacktrace...
      15:34:09,822 INFO [Initialization] initializing Seam
      15:34:12,831 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
      15:34:12,852 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
      15:34:12,860 INFO [Component] Component: events, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Events
      15:34:12,866 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
      15:34:12,884 INFO [Component] Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
      15:34:12,890 INFO [Component] Component: redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
      15:34:12,896 INFO [Component] Component: httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
      15:34:12,903 INFO [Component] Component: userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
      15:34:12,909 INFO [Component] Component: isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
      15:34:12,914 INFO [Component] Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
      15:34:12,922 INFO [Component] Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
      15:34:12,927 INFO [Component] Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
      15:34:12,952 INFO [Component] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
      15:34:12,964 INFO [Component] Component: pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
      15:34:12,969 INFO [Component] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
      15:34:12,974 INFO [Component] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
      15:34:12,979 INFO [Component] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
      15:34:12,984 INFO [Component] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
      15:34:12,989 INFO [Component] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
      15:34:12,993 INFO [Component] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
      15:34:13,638 INFO [Component] Component: locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
      15:34:13,650 INFO [Component] Component: messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
      15:34:13,654 INFO [Component] Component: interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
      15:34:13,659 INFO [Component] Component: facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
      15:34:13,667 INFO [Component] Component: resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
      15:34:13,673 INFO [Component] Component: localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
      15:34:13,693 INFO [Component] Component: uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
      15:34:13,698 INFO [Component] Component: org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.SubscriptionRegistry
      15:34:13,725 INFO [Component] Component: pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
      15:34:13,729 INFO [Component] Component: entityManager, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedPersistenceContext
      15:34:13,744 INFO [Scanner] scanning: /usr/local/jboss-4.0.4.GA/server/default/tmp/deploy/tmp48236seamapp.ear-contents/seamapp.ejb3
      15:34:13,757 INFO [Component] Component: spctacFinder, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: com.burris.SpctacFinderBean, JNDI: seamapp/SpctacFinderBean/local
      15:34:13,793 INFO [Component] Component: ivwhseFinder, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: com.burris.IvwhseFinderBean, JNDI: seamapp/IvwhseFinderBean/local
      15:34:13,795 INFO [Component] Component: ivwhseSelector, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.burris.IvwhseSelector$DefaultIvwhseSelector, JNDI: seamapp/DefaultIvwhseSelector/local
      15:34:13,797 INFO [Component] Component: ivplogEditor, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: com.burris.IvplogEditorBean, JNDI: seamapp/IvplogEditorBean/local
      15:34:13,799 INFO [Component] Component: ivplogFinder, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: com.burris.IvplogFinderBean, JNDI: seamapp/IvplogFinderBean/local
      15:34:13,801 INFO [Component] Component: spctacEditor, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: com.burris.SpctacEditorBean, JNDI: seamapp/SpctacEditorBean/local
      15:34:13,802 INFO [Component] Component: ivwhseEditor, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: com.burris.IvwhseEditorBean, JNDI: seamapp/IvwhseEditorBean/local
      15:34:13,804 INFO [Component] Component: ivplogSelector, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.burris.IvplogSelector$DefaultIvplogSelector, JNDI: seamapp/DefaultIvplogSelector/local
      15:34:13,805 INFO [Component] Component: spctacSelector, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.burris.SpctacSelector$DefaultSpctacSelector, JNDI: seamapp/DefaultSpctacSelector/local
      15:34:13,809 INFO [Initialization] done initializing Seam
      15:34:13,811 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
      15:34:13,898 INFO [FacesConfigurator] Reading config jar:file:/usr/local/jboss-4.0.4.GA/server/default/tmp/deploy/tmp48236seamapp.ear-contents/seamapp.ejb3-contents/jboss-seam.jar!/META-INF/faces-config.xml
      15:34:13,907 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
      15:34:13,933 ERROR [LocaleUtils] Locale name null or empty, ignoring
      15:34:14,010 INFO [StartupServletContextListener] ServletContext '/usr/local/jboss-4.0.4.GA/server/default/./tmp/deploy/tmp48236seamapp.ear-contents/seamapp-exp.war/' initialized.
      15:34:14,067 INFO [EARDeployer] Started J2EE application: file:/usr/local/jboss-4.0.4.GA/server/default/deploy/seamapp.ear
      15:48:24,684 INFO [Pages] no pages.xml file found
      15:48:26,255 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
      javax.faces.el.EvaluationException: Cannot get value for expression '#{spctacSelector.pageTitle}'
      at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:397)
      at javax.faces.component.UIOutput.getValue(UIOutput.java:75)
      at org.apache.myfaces.renderkit.RendererUtils.getStringValue(RendererUtils.java:225)
      at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.renderOutput(HtmlTextRendererBase.java:65)
      at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:53)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
      at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:349)
      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:253)
      at org.apache.jsp.findSpctac_jsp._jspx_meth_h_outputText_0(findSpctac_jsp.java:221)
      at org.apache.jsp.findSpctac_jsp._jspx_meth_f_view_0(findSpctac_jsp.java:157)
      at org.apache.jsp.findSpctac_jsp._jspService(findSpctac_jsp.java:116)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      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.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
      at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
      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.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
      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.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: $Proxy427
      at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:78)
      at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
      at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
      at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:378)
      ... 48 more
      Caused by: javax.faces.el.EvaluationException: Bean: $Proxy427, property: pageTitle
      at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:404)
      at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:71)
      ... 51 more
      Caused by: java.lang.reflect.InvocationTargetException
      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.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:400)
      ... 52 more
      Caused by: javax.ejb.EJBTransactionRolledbackException: org.jboss.seam.RequiredException: In attribute requires value for component: spctacSelector.resourceBundle
      at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
      at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
      at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
      at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
      at $Proxy427.getPageTitle(Unknown Source)
      ... 57 more
      Caused by: org.jboss.seam.RequiredException: In attribute requires value for component: spctacSelector.resourceBundle
      at org.jboss.seam.Component.getInstanceToInject(Component.java:1382)
      at org.jboss.seam.Component.injectFields(Component.java:1024)
      at org.jboss.seam.Component.inject(Component.java:795)
      at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:30)
      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.seam.util.Reflections.invoke(Reflections.java:13)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:82)
      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.seam.util.Reflections.invoke(Reflections.java:13)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:60)
      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.seam.util.Reflections.invoke(Reflections.java:13)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
      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.seam.util.Reflections.invoke(Reflections.java:13)
      at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
      at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
      at org.jboss.seam.ejb.SeamInterceptor.aroundInvokeInContexts(SeamInterceptor.java:73)
      at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:45)
      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.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
      at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
      ... 72 more
      15:48:26,258 ERROR [SeamExceptionFilter] uncaught exception handled by Seam
      javax.servlet.ServletException: Cannot get value for expression '#{spctacSelector.pageTitle}'
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
      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.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)
      15:48:26,258 INFO [SeamExceptionFilter] killing transaction
      15:48:26,260 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      javax.faces.FacesException: Cannot get value for expression '#{spctacSelector.pageTitle}'
      at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
      at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
      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.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
      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.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: org.apache.jasper.JasperException: Cannot get value for expression '#{spctacSelector.pageTitle}'
      at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      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.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
      ... 25 more
      15:48:59,853 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
      15:48:59,854 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
      15:48:59,854 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
      15:48:59,854 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
      15:48:59,861 WARN [HtmlLabelRenderer] Unable to find component 'contkey' (calling findComponent on component '_id2:_id16')
      15:48:59,873 WARN [HtmlLabelRenderer] Unable to find component 'loc' (calling findComponent on component '_id2:_id18')
      15:48:59,876 WARN [HtmlLabelRenderer] Unable to find component 'name' (calling findComponent on component '_id2:_id20')
      15:48:59,878 WARN [HtmlLabelRenderer] Unable to find component 'atten' (calling findComponent on component '_id2:_id22')
      15:48:59,879 WARN [HtmlLabelRenderer] Unable to find component 'addr1' (calling findComponent on component '_id2:_id24')
      15:48:59,881 WARN [HtmlLabelRenderer] Unable to find component 'addr2' (calling findComponent on component '_id2:_id26')
      15:48:59,884 WARN [HtmlLabelRenderer] Unable to find component 'addr3' (calling findComponent on component '_id2:_id28')
      15:48:59,888 WARN [HtmlLabelRenderer] Unable to find component 'city' (calling findComponent on component '_id2:_id30')
      15:48:59,890 WARN [HtmlLabelRenderer] Unable to find component 'state' (calling findComponent on component '_id2:_id32')
      15:48:59,891 WARN [HtmlLabelRenderer] Unable to find component 'zip' (calling findComponent on component '_id2:_id34')
      15:48:59,893 WARN [HtmlLabelRenderer] Unable to find component 'country' (calling findComponent on component '_id2:_id36')
      15:48:59,895 WARN [HtmlLabelRenderer] Unable to find component 'phone' (calling findComponent on component '_id2:_id38')
      15:48:59,897 WARN [HtmlLabelRenderer] Unable to find component 'fax' (calling findComponent on component '_id2:_id40')
      15:48:59,898 WARN [HtmlLabelRenderer] Unable to find component 'email' (calling findComponent on component '_id2:_id42')
      15:48:59,900 WARN [HtmlLabelRenderer] Unable to find component 'title' (calling findComponent on component '_id2:_id44')
      15:48:59,906 WARN [HtmlLabelRenderer] Unable to find component 'jobtitle' (calling findComponent on component '_id2:_id46')
      15:48:59,919 WARN [HtmlLabelRenderer] Unable to find component 'addusr' (calling findComponent on component '_id2:_id48')
      15:48:59,922 WARN [HtmlLabelRenderer] Unable to find component 'chgusr' (calling findComponent on component '_id2:_id50')
      15:48:59,924 WARN [HtmlLabelRenderer] Unable to find component 'adddt' (calling findComponent on component '_id2:_id52')
      15:48:59,926 WARN [HtmlLabelRenderer] Unable to find component 'chgdt' (calling findComponent on component '_id2:_id54')
      15:48:59,928 WARN [HtmlLabelRenderer] Unable to find component 'cell' (calling findComponent on component '_id2:_id56')
      15:48:59,930 WARN [HtmlLabelRenderer] Unable to find component 'addtm' (calling findComponent on component '_id2:_id58')
      15:48:59,932 WARN [HtmlLabelRenderer] Unable to find component 'chgtm' (calling findComponent on component '_id2:_id60')

      Thanks so much, I'm out of ideas on this one....

        • 1. Re: Injection/loading not working on Seam CRUD app?

          It sounds like your create record controller creates the resourceBundle component, where as spctacSelector doesn't.

          Unless you're in a conversation where you know one controller will be called before the other you probably want code like the following:

          @In(create=true)
          private ResourceBundle resourceBundle;

          This will instantiate and install the resourceBundle into your context. Without create=true, if resourceBundle isn't already in context you'll get an error like:
          org.jboss.seam.RequiredException: In attribute requires value for component: spctacSelector.resourceBundle. Which seems to be the root of your problems.

          • 2. Re: Injection/loading not working on Seam CRUD app?
            markfoerstein

            Just happened to me too. Thanks captain ;-)

            But I couldn't find the creation of the resourceBundle anywhere else in the CRUD app, only in the Selector class.

            I think this could be a bug in the CRUD generator, since this is generated:

            ...
            private transient ResourceBundle resourceBundle;
            
            @In(create = true)
            private transient OrdersEditor ordersEditor;
            
            @In(create = true)
            private transient OrdersFinder ordersFinder;
            ...
            


            and probably it should be like this:
            ...
            @In(create = true)private transient ResourceBundle resourceBundle;
            
            @In(create = true)
            private transient OrdersEditor ordersEditor;
            
            @In(create = true)
            private transient OrdersFinder ordersFinder;
            ...
            


            • 3. Re: Injection/loading not working on Seam CRUD app?
              gavin.king

              Yes, it should be that.