[jboss-user] [JBoss Seam] - In attribute requires value for component: selectItems.state
jimjamz
do-not-reply at jboss.com
Thu Oct 5 02:45:44 EDT 2006
I'm trying to create a selectItem Component for states and I keep running into this error. In attribute requires value for component: selectItems..
00:28:37,406 INFO [Initialization] reading components.xml
| 00:28:37,521 INFO [Initialization] reading properties from: /seam.properties
| 00:28:37,523 INFO [Initialization] reading properties from: /jndi.properties
| 00:28:37,536 INFO [Initialization] initializing Seam
| 00:28:37,752 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
| 00:28:37,850 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
| 00:28:37,878 INFO [Component] Component: events, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Events
| 00:28:37,984 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
| 00:28:38,033 INFO [Component] Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
| 00:28:38,051 INFO [Component] Component: redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
| 00:28:38,100 INFO [Component] Component: httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
| 00:28:38,119 INFO [Component] Component: userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
| 00:28:38,138 INFO [Component] Component: isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
| 00:28:38,171 INFO [Component] Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
| 00:28:38,224 INFO [Component] Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
| 00:28:38,236 INFO [Component] Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
| 00:28:38,246 INFO [Component] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
| 00:28:38,258 INFO [Component] Component: pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
| 00:28:38,269 INFO [Component] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
| 00:28:38,279 INFO [Component] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
| 00:28:38,289 INFO [Component] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
| 00:28:38,297 INFO [Component] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
| 00:28:38,307 INFO [Component] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
| 00:28:38,315 INFO [Component] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
| 00:28:38,354 INFO [Component] Component: locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
| 00:28:38,369 INFO [Component] Component: messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
| 00:28:38,379 INFO [Component] Component: interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
| 00:28:38,390 INFO [Component] Component: facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
| 00:28:38,411 INFO [Component] Component: resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
| 00:28:38,469 INFO [Component] Component: localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
| 00:28:38,487 INFO [Component] Component: uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
| 00:28:38,502 INFO [Component] Component: org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.SubscriptionRegistry
| 00:28:38,533 INFO [Component] Component: pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
| 00:28:38,549 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
| 00:28:38,723 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
| 00:28:38,750 INFO [Component] Component: sweetcakesDatabase, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedHibernateSession
| 00:28:38,766 INFO [Component] Component: org.jboss.seam.core.hibernate, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Hibernate
| 00:28:38,777 INFO [Component] Component: org.jboss.seam.core.microcontainer, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Microcontainer
| 00:28:38,799 INFO [Scanner] scanning: /usr/local/jboss/jboss-4.0.4GA/server/default/tmp/deploy/tmp64769sweetcakes-exp.war
| 00:28:38,804 INFO [Scanner] scanning: /usr/local/jboss/jboss-4.0.4GA/server/default/tmp/deploy/tmp64769sweetcakes-exp.war/WEB-INF/lib/sweetcakes.jar
| 00:28:38,877 INFO [Component] Component: selectItems, scope: APPLICATION, type: JAVA_BEAN, class: com.sweetcakes.web.util.SelectItems
| 00:28:38,902 INFO [Component] Component: filling, scope: SESSION, type: ENTITY_BEAN, class: com.sweetcakes.model.cakes.filling.Filling
| 00:28:38,916 INFO [Component] Component: address, scope: SESSION, type: ENTITY_BEAN, class: com.sweetcakes.model.Address
| 00:28:38,989 INFO [Component] Component: stateManager, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: com.sweetcakes.model.StateBean, JNDI: sweetcakes/StateBean/local
| 00:28:39,030 INFO [Component] Component: customer, scope: SESSION, type: ENTITY_BEAN, class: com.sweetcakes.model.Customer
| 00:28:39,037 INFO [Component] Component: register, scope: EVENT, type: JAVA_BEAN, class: com.sweetcakes.controller.RegisterAction
| 00:28:39,088 INFO [Component] Component: cake, scope: SESSION, type: ENTITY_BEAN, class: com.sweetcakes.model.cakes.Cake
| 00:28:39,092 INFO [Component] Component: order, scope: EVENT, type: JAVA_BEAN, class: com.sweetcakes.controller.OrderAction
| 00:28:39,195 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
| 00:28:39,196 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
| 00:28:39,215 INFO [Configuration] Configured SessionFactory: java:/sweetCakesDatabase
| 00:28:39,224 INFO [AnnotationBinder] Binding entity from annotated class: com.sweetcakes.model.Customer
| 00:28:39,226 INFO [EntityBinder] Bind entity com.sweetcakes.model.Customer on table Customer
| 00:28:39,243 INFO [AnnotationBinder] Binding entity from annotated class: com.sweetcakes.model.Address
| 00:28:39,247 INFO [EntityBinder] Bind entity com.sweetcakes.model.Address on table Address
| 00:28:39,253 INFO [AnnotationBinder] Binding entity from annotated class: com.sweetcakes.model.cakes.Cake
| 00:28:39,255 INFO [EntityBinder] Bind entity com.sweetcakes.model.cakes.Cake on table Cake
| 00:28:39,294 INFO [AnnotationBinder] Binding entity from annotated class: com.sweetcakes.web.model.State
| 00:28:39,295 INFO [EntityBinder] Bind entity com.sweetcakes.web.model.State on table State
| 00:28:39,363 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 00:28:39,397 INFO [DatasourceConnectionProvider] Using datasource: java:/sweetCakesDataSource
| 00:28:39,398 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.19-max
| 00:28:39,399 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
| 00:28:39,402 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
| 00:28:39,404 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
| 00:28:39,406 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 00:28:39,407 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
| 00:28:39,409 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
| 00:28:39,410 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
| 00:28:39,412 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
| 00:28:39,413 INFO [SettingsFactory] Automatic flush during beforeCompletion(): enabled
| 00:28:39,413 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
| 00:28:39,414 INFO [SettingsFactory] JDBC batch size: 15
| 00:28:39,414 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
| 00:28:39,415 INFO [SettingsFactory] Scrollable result sets: enabled
| 00:28:39,416 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
| 00:28:39,417 INFO [SettingsFactory] Connection release mode: after_statement
| 00:28:39,418 INFO [SettingsFactory] Maximum outer join fetch depth: 2
| 00:28:39,418 INFO [SettingsFactory] Default batch fetch size: 1
| 00:28:39,419 INFO [SettingsFactory] Generate SQL with comments: disabled
| 00:28:39,419 INFO [SettingsFactory] Order SQL updates by primary key: disabled
| 00:28:39,420 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
| 00:28:39,431 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
| 00:28:39,432 INFO [SettingsFactory] Query language substitutions: {}
| 00:28:39,433 INFO [SettingsFactory] Second-level cache: enabled
| 00:28:39,434 INFO [SettingsFactory] Query cache: disabled
| 00:28:39,436 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
| 00:28:39,438 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
| 00:28:39,440 INFO [SettingsFactory] Structured second-level cache entries: disabled
| 00:28:39,440 INFO [SettingsFactory] Echoing all SQL to stdout
| 00:28:39,441 INFO [SettingsFactory] Statistics: disabled
| 00:28:39,441 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
| 00:28:39,442 INFO [SettingsFactory] Default entity-mode: pojo
| 00:28:39,465 INFO [SessionFactoryImpl] building session factory
| 00:28:39,595 WARN [CacheFactory] read-only cache configured for mutable class: com.sweetcakes.web.model.State
| 00:28:39,636 INFO [PojoInstantiator] no default (no-argument) constructor for class: com.sweetcakes.model.Customer (class must be instantiated by Interceptor)
| 00:28:39,730 INFO [SessionFactoryObjectFactory] Factory name: java:/sweetCakesDatabase
| 00:28:39,731 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 00:28:39,732 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: java:/sweetCakesDatabase
| 00:28:39,733 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
| 00:28:39,761 INFO [SchemaExport] Running hbm2ddl schema export
| 00:28:39,762 INFO [SchemaExport] exporting generated schema to database
| 00:28:39,926 INFO [SchemaExport] schema export complete
| 00:28:39,928 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 00:28:39,936 INFO [Initialization] done initializing Seam
| 00:28:39,938 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
| 00:28:40,110 INFO [FacesConfigurator] Reading config jar:file:/usr/local/jboss/jboss-4.0.4GA/server/default/tmp/deploy/tmp64769sweetcakes-exp.war/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
| 00:28:40,134 INFO [FacesConfigurator] Reading config jar:file:/usr/local/jboss/jboss-4.0.4GA/server/default/tmp/deploy/tmp64769sweetcakes-exp.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
| 00:28:40,170 INFO [FacesConfigurator] Reading config jar:file:/usr/local/jboss/jboss-4.0.4GA/server/default/tmp/deploy/tmp64769sweetcakes-exp.war/WEB-INF/lib/jboss-seam.jar!/META-INF/faces-config.xml
| 00:28:40,207 INFO [FacesConfigurator] Reading config jar:file:/usr/local/jboss/jboss-4.0.4GA/server/default/tmp/deploy/tmp64769sweetcakes-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
| 00:28:40,228 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
| 00:28:40,268 ERROR [LocaleUtils] Locale name null or empty, ignoring
| 00:28:40,614 INFO [StartupServletContextListener] ServletContext '/usr/local/jboss/jboss-4.0.4GA/server/default/./tmp/deploy/tmp64769sweetcakes-exp.war/' initialized.
| 00:29:08,735 INFO [Pages] no pages.xml file found
| 00:29:09,439 ERROR [STDERR] Oct 5, 2006 12:29:09 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/usr/local/jboss/jboss-4.0.4GA/server/default/tmp/deploy/tmp64769sweetcakes-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
| 00:29:09,552 ERROR [STDERR] Oct 5, 2006 12:29:09 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/usr/local/jboss/jboss-4.0.4GA/server/default/tmp/deploy/tmp64769sweetcakes-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
| 00:29:09,692 ERROR [STDERR] Oct 5, 2006 12:29:09 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/usr/local/jboss/jboss-4.0.4GA/server/default/tmp/deploy/tmp64769sweetcakes-exp.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/seam.taglib.xml
| 00:29:09,741 ERROR [STDERR] Oct 5, 2006 12:29:09 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/usr/local/jboss/jboss-4.0.4GA/server/default/tmp/deploy/tmp64769sweetcakes-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
| 00:29:09,873 ERROR [STDERR] Oct 5, 2006 12:29:09 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/usr/local/jboss/jboss-4.0.4GA/server/default/tmp/deploy/tmp64769sweetcakes-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
| 00:29:10,101 ERROR [STDERR] Oct 5, 2006 12:29:10 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| INFO: Added Library from: jar:file:/usr/local/jboss/jboss-4.0.4GA/server/default/tmp/deploy/tmp64769sweetcakes-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
| 00:29:11,240 WARN [HtmlLabelRenderer] Unable to find component 'street' (calling findComponent on component 'registerForm:_id29')
| 00:29:11,314 ERROR [STDERR] org.jboss.seam.RequiredException: In attribute requires value for component: selectItems.stateBean
| 00:29:11,323 ERROR [STDERR] at org.jboss.seam.Component.getInstanceToInject(Component.java:1382)
| 00:29:11,324 ERROR [STDERR] at org.jboss.seam.Component.injectFields(Component.java:1024)
| 00:29:11,325 ERROR [STDERR] at org.jboss.seam.Component.inject(Component.java:795)
| 00:29:11,326 ERROR [STDERR] at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:30)
| 00:29:11,327 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 00:29:11,328 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 00:29:11,328 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 00:29:11,329 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 00:29:11,329 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| 00:29:11,330 ERROR [STDERR] at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
| 00:29:11,330 ERROR [STDERR] at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
| 00:29:11,331 ERROR [STDERR] at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:82)
| 00:29:11,331 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 00:29:11,332 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 00:29:11,333 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 00:29:11,333 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 00:29:11,334 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| 00:29:11,334 ERROR [STDERR] at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
| 00:29:11,335 ERROR [STDERR] at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
| 00:29:11,335 ERROR [STDERR] at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:60)
| 00:29:11,336 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 00:29:11,336 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 00:29:11,337 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 00:29:11,338 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 00:29:11,338 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| 00:29:11,339 ERROR [STDERR] at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
| 00:29:11,339 ERROR [STDERR] at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
| 00:29:11,340 ERROR [STDERR] at org.jboss.seam.interceptors.TransactionInterceptor.doInTransactionIfNecessary(TransactionInterceptor.java:34)
| 00:29:11,341 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 00:29:11,341 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 00:29:11,366 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 00:29:11,367 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 00:29:11,368 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| 00:29:11,368 ERROR [STDERR] at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
| 00:29:11,369 ERROR [STDERR] at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
| 00:29:11,369 ERROR [STDERR] at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
| 00:29:11,370 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 00:29:11,370 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 00:29:11,371 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 00:29:11,371 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 00:29:11,372 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| 00:29:11,373 ERROR [STDERR] at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
| 00:29:11,374 ERROR [STDERR] at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
| 00:29:11,374 ERROR [STDERR] at org.jboss.seam.ejb.SeamInterceptor.aroundInvokeInContexts(SeamInterceptor.java:73)
| 00:29:11,375 ERROR [STDERR] at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:45)
| 00:29:11,381 ERROR [STDERR] at org.jboss.seam.interceptors.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:51)
| 00:29:11,382 ERROR [STDERR] at org.jboss.seam.interceptors.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:39)
| 00:29:11,382 ERROR [STDERR] at com.sweetcakes.web.util.SelectItems$$EnhancerByCGLIB$$99b594e3.onCreate(<generated>)
| 00:29:11,383 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 00:29:11,384 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 00:29:11,385 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 00:29:11,385 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 00:29:11,386 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| 00:29:11,386 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
| 00:29:11,387 ERROR [STDERR] at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
| 00:29:11,387 ERROR [STDERR] at org.jboss.seam.Component.callCreateMethod(Component.java:1322)
| 00:29:11,389 ERROR [STDERR] at org.jboss.seam.Component.newInstance(Component.java:1312)
| 00:29:11,390 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1263)
| 00:29:11,390 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1246)
| 00:29:11,391 ERROR [STDERR] at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
| 00:29:11,391 ERROR [STDERR] at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
| 00:29:11,392 ERROR [STDERR] at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
| 00:29:11,392 ERROR [STDERR] at com.sun.el.parser.AstValue.getValue(AstValue.java:106)
| 00:29:11,393 ERROR [STDERR] at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
| 00:29:11,393 ERROR [STDERR] at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| 00:29:11,394 ERROR [STDERR] at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
| 00:29:11,395 ERROR [STDERR] at javax.faces.component.UISelectItems.getValue(UISelectItems.java:55)
| 00:29:11,395 ERROR [STDERR] at org.apache.myfaces.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:103)
| 00:29:11,396 ERROR [STDERR] at org.apache.myfaces.renderkit.RendererUtils.internalGetSelectItemList(RendererUtils.java:485)
| 00:29:11,397 ERROR [STDERR] at org.apache.myfaces.renderkit.RendererUtils.getSelectItemList(RendererUtils.java:461)
| 00:29:11,397 ERROR [STDERR] at org.apache.myfaces.renderkit.html.HtmlRendererUtils.internalRenderSelect(HtmlRendererUtils.java:272)
| 00:29:11,398 ERROR [STDERR] at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRendererUtils.java:246)
| 00:29:11,398 ERROR [STDERR] at org.apache.myfaces.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java:54)
| 00:29:11,399 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
| 00:29:11,400 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
| 00:29:11,401 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
| 00:29:11,402 ERROR [STDERR] at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
| 00:29:11,402 ERROR [STDERR] at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554)
| 00:29:11,403 ERROR [STDERR] at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
| 00:29:11,403 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
| 00:29:11,404 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| 00:29:11,404 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 00:29:11,405 ERROR [STDERR] at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
| 00:29:11,406 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 00:29:11,406 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 00:29:11,407 ERROR [STDERR] at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
| 00:29:11,407 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 00:29:11,408 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 00:29:11,409 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 00:29:11,409 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 00:29:11,410 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| 00:29:11,410 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| 00:29:11,411 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| 00:29:11,411 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| 00:29:11,412 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| 00:29:11,413 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| 00:29:11,414 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| 00:29:11,414 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| 00:29:11,415 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| 00:29:11,428 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| 00:29:11,428 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| 00:29:11,429 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| 00:29:11,430 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| 00:29:11,430 ERROR [STDERR] at java.lang.Thread.run(Thread.java:613)
| 00:29:11,465 ERROR [STDERR] Oct 5, 2006 12:29:11 AM com.sun.facelets.FaceletViewHandler handleRenderException
| SEVERE: Error Rendering View[/register.xhtml]
| org.jboss.seam.RequiredException: In attribute requires value for component: selectItems.stateBean
| 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.TransactionInterceptor.doInTransactionIfNecessary(TransactionInterceptor.java:34)
| 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 org.jboss.seam.interceptors.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:51)
| at org.jboss.seam.interceptors.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:39)
| at com.sweetcakes.web.util.SelectItems$$EnhancerByCGLIB$$99b594e3.onCreate(<generated>)
| 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.util.Reflections.invokeAndWrap(Reflections.java:32)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1322)
| at org.jboss.seam.Component.newInstance(Component.java:1312)
| at org.jboss.seam.Component.getInstance(Component.java:1263)
| at org.jboss.seam.Component.getInstance(Component.java:1246)
| at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
| at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
| at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
| at com.sun.el.parser.AstValue.getValue(AstValue.java:106)
| at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
| at javax.faces.component.UISelectItems.getValue(UISelectItems.java:55)
| at org.apache.myfaces.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:103)
| at org.apache.myfaces.renderkit.RendererUtils.internalGetSelectItemList(RendererUtils.java:485)
| at org.apache.myfaces.renderkit.RendererUtils.getSelectItemList(RendererUtils.java:461)
| at org.apache.myfaces.renderkit.html.HtmlRendererUtils.internalRenderSelect(HtmlRendererUtils.java:272)
| at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRendererUtils.java:246)
| at org.apache.myfaces.renderkit.html.HtmlMenuRendererBase.encodeEnd(HtmlMenuRendererBase.java:54)
| at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554)
| 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.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
| 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:10
| 00:29:11,478 ERROR [STDERR] 7)
| 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:613)
| 00:29:11,479 ERROR [SeamExceptionFilter] uncaught exception handled by Seam
|
My StateBean looks like this:
|
| package com.sweetcakes.model;
|
| import java.util.List;
|
| import javax.persistence.EntityManager;
|
| import org.jboss.seam.annotations.Begin;
| import org.jboss.seam.annotations.Factory;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.datamodel.DataModel;
|
| import com.sweetcakes.web.model.State;
|
| @javax.ejb.Stateless
| @javax.interceptor.Interceptors (org.jboss.seam.ejb.SeamInterceptor.class)
| @org.jboss.seam.annotations.Name ("stateManager")
| public class StateBean{
| @In EntityManager em;
|
| @DataModel List<State> stateList;
|
|
| @Factory("stateList")
| @SuppressWarnings("unchecked")
| public List<State> list ()
| {
| List<State> stateList= em.createQuery("from state").getResultList();
| return stateList;
| }
|
| }
|
My SelectItems class looks like so:
| /**
| *
| */
| package com.sweetcakes.web.util;
|
| import java.util.*;
|
| import static org.jboss.seam.ScopeType.APPLICATION;
| import static org.jboss.seam.InterceptionType.ALWAYS;
|
| import javax.faces.model.SelectItem;
|
| import org.jboss.seam.annotations.*;
|
| import org.jboss.logging.Logger;
|
| import com.sweetcakes.model.StateBean;
| import com.sweetcakes.model.StateDao;
| import com.sweetcakes.web.model.State;
|
| /**
| * @author goat
| *
| */
| @Name("selectItems")
| @Scope(APPLICATION)
| @Intercept(ALWAYS)
| public class SelectItems {
| private static final Logger log = Logger.getLogger(SelectItems.class);
|
| @In(create = true)
| private StateBean stateBean;
|
| private Map<Class<? extends Lookup>, Map<String, ? extends Lookup>> entityMapMap = new HashMap<Class<? extends Lookup>, Map<String, ? extends Lookup>>();
|
| private Map<Class<? extends Lookup>, List<SelectItem>> selectItemListMap = new HashMap<Class<? extends Lookup>, List<SelectItem>>();
|
| public SelectItems() {
| }
|
| @Create
| public void onCreate() {
| log.info("Initializing SelectItems");
| List<State> stateList = stateBean.list();
| addLookup(State.class, stateList);
| return;
| }
|
| private <T extends Lookup> void addLookup(Class<T> entityClass,
| List<T> entityList) {
| // add entityMap
| Map<String, T> entityMap = new HashMap<String, T>();
| for (T entity : entityList) {
| Lookup l = (Lookup) entity;
| entityMap.put(l.getKey(), entity);
| }
| entityMapMap.put(entityClass, entityMap);
|
| // add selectItemList
| List<SelectItem> selectItemList = new ArrayList<SelectItem>();
| for (T entity : entityList) {
| Lookup l = (Lookup) entity;
| SelectItem item = new SelectItem(entity, l.getKey(), l.getName());
| selectItemList.add(item);
| }
| selectItemListMap.put(entityClass, selectItemList);
| }
|
| public <T extends Lookup> Map<String, T> getEntityMap(Class<T> entityClass) {
| return (Map<String, T>) entityMapMap.get(entityClass);
| }
|
| public <T extends Lookup> List<SelectItem> getSelectItemList(
| Class<T> entityClass) {
| return selectItemListMap.get(entityClass);
| }
|
| public List<SelectItem> getStates() {
| return getSelectItemList(State.class);
| }
|
| @Destroy
| public void destroy() {
| // not sure if this is required for application context
| log.info("destroyed");
| }
|
| }
|
I implement the component into my jsp like so:
| <h:selectOneMenu id="state" value="#{address.state}" converter="StateConverter">
| <f:selectItems value="#{selectItems.states}" />
| </h:selectOneMenu>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976227#3976227
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976227
More information about the jboss-user
mailing list