5 Replies Latest reply on Sep 24, 2007 7:03 AM by roxello

    helloworld example from JBoss Seam Book

    roxello Newbie

      Hello-

      Building the helloworld example from Michael Yuan's book 'Jboss Seam' yields an incomplete result for me. Browser display should appear as shown on this url -

      http://www.infoq.com/articles/jboss-seam;jsessionid=B9F5E0B8B81719D8D7D98C8705BA5ADB

      whereas mine diplays only as far down as the 'Say Hello' submit button.
      The list of those who have said hello does not appear. Entering a name and submitting results in the name being re-displayed; JBoss
      shows no exceptions. Example is built straight from the book/downloaded project.

      This is the JBoss deploy log:

      19:09:27,375 INFO [Lifecycle] starting up: org.jboss.seam.security.identity
      19:09:28,000 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
      19:09:28,000 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
      19:09:28,000 INFO [MyfacesConfig] Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
      
      +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
      19:07:49,640 INFO [EARDeployer] Init J2EE application: file:/C:/jboss/jboss-4.0.5.GA/server/default/deploy/helloworld.ear
      19:07:51,109 INFO [Ejb3Deployment] EJB3 deployment time took: 656
      19:07:52,859 INFO [Ejb3Deployment] EJB3 deployment time took: 1719
      19:07:52,890 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=helloworld.ear,jar=app.jar,unitName=helloworld with dependencies:
      19:07:52,890 INFO [JmxKernelAbstraction] jboss.jca:name=DefaultDS,service=DataSourceBinding
      19:07:52,968 INFO [Version] Hibernate EntityManager 3.2.0.GA
      19:07:53,031 INFO [Version] Hibernate Annotations 3.2.0.GA
      19:07:53,046 INFO [Environment] Hibernate 3.2.0.ga
      19:07:53,062 INFO [Environment] hibernate.properties not found
      19:07:53,062 INFO [Environment] Bytecode provider name : javassist
      19:07:53,078 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
      19:07:53,375 INFO [Ejb3Configuration] found EJB3 Entity bean: Person
      19:07:53,375 WARN [Ejb3Configuration] Persistence provider caller does not implements the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
      19:07:53,531 INFO [Configuration] Reading mappings from resource: META-INF/orm.xml
      19:07:53,546 INFO [Ejb3Configuration] [PersistenceUnit: helloworld] no META-INF/orm.xml found
      19:07:53,687 INFO [AnnotationBinder] Binding entity from annotated class: Person
      19:07:53,812 INFO [EntityBinder] Bind entity Person on table Person
      19:07:54,265 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      19:07:54,265 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
      19:07:54,265 INFO [SettingsFactory] RDBMS: HSQL Database Engine, version: 1.8.0
      19:07:54,265 INFO [SettingsFactory] JDBC driver: HSQL Database Engine Driver, version: 1.8.0
      19:07:54,328 INFO [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
      19:07:54,343 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
      19:07:54,359 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      19:07:54,359 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      19:07:54,359 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
      19:07:54,359 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
      19:07:54,359 INFO [SettingsFactory] JDBC batch size: 15
      19:07:54,359 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
      19:07:54,359 INFO [SettingsFactory] Scrollable result sets: enabled
      19:07:54,359 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
      19:07:54,359 INFO [SettingsFactory] Connection release mode: auto
      19:07:54,359 INFO [SettingsFactory] Default batch fetch size: 1
      19:07:54,359 INFO [SettingsFactory] Generate SQL with comments: disabled
      19:07:54,359 INFO [SettingsFactory] Order SQL updates by primary key: disabled
      19:07:54,359 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      19:07:54,375 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      19:07:54,375 INFO [SettingsFactory] Query language substitutions: {}
      19:07:54,375 INFO [SettingsFactory] JPA-QL strict compliance: enabled
      19:07:54,375 INFO [SettingsFactory] Second-level cache: enabled
      19:07:54,375 INFO [SettingsFactory] Query cache: disabled
      19:07:54,375 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
      19:07:54,375 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
      19:07:54,375 INFO [SettingsFactory] Structured second-level cache entries: disabled
      19:07:54,390 INFO [SettingsFactory] Echoing all SQL to stdout
      19:07:54,390 INFO [SettingsFactory] Statistics: disabled
      19:07:54,406 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
      19:07:54,406 INFO [SettingsFactory] Default entity-mode: pojo
      19:07:54,515 INFO [SessionFactoryImpl] building session factory
      19:07:55,687 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
      19:07:55,718 INFO [SchemaExport] Running hbm2ddl schema export
      19:07:55,718 INFO [SchemaExport] exporting generated schema to database
      19:07:55,718 INFO [SchemaExport] schema export complete
      19:07:55,750 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      19:07:55,890 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=helloworld.ear,jar=app.jar,name=ManagerAction,service=EJB3 with dependencies:
      19:07:55,890 INFO [JmxKernelAbstraction] persistence.units:ear=helloworld.ear,jar=app.jar,unitName=helloworld
      19:07:56,265 INFO [EJBContainer] STARTED EJB: ManagerAction ejbName: ManagerAction
      19:07:56,343 INFO [EJB3Deployer] Deployed: file:/C:/jboss/jboss-4.0.5.GA/server/default/tmp/deploy/tmp2300helloworld.ear-contents/app.jar
      19:07:56,390 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=helloworld.ear,jar=jboss-seam.jar,name=Dispatcher,service=EJB3 with dependencies:
      19:07:56,421 INFO [EJBContainer] STARTED EJB: org.jboss.seam.core.Dispatcher ejbName: Dispatcher
      19:07:56,484 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=helloworld.ear,jar=jboss-seam.jar,name=TransactionListener,service=EJB3 with dependencies:
      19:07:56,562 INFO [EJBContainer] STARTED EJB: org.jboss.seam.core.TransactionListener ejbName: TransactionListener
      19:07:56,625 INFO [SimpleStatefulCache] Initializing SimpleStatefulCache with maxSize: 100000 timeout: 300 for jboss.j2ee:ear=helloworld.ear,jar=jboss-seam.jar,name=TransactionListener,service=EJB3
      19:07:56,625 INFO [EJB3Deployer] Deployed: file:/C:/jboss/jboss-4.0.5.GA/server/default/tmp/deploy/tmp2300helloworld.ear-contents/jboss-seam.jar
      19:07:56,625 INFO [TomcatDeployer] deploy, ctxPath=/helloworld, warUrl=.../tmp/deploy/tmp2300helloworld.ear-contents/app-exp.war/
      19:07:57,093 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
      19:07:57,234 INFO [FacesConfigurator] Reading config jar:file:/C:/jboss/jboss-4.0.5.GA/server/default/tmp/deploy/tmp2300helloworld.ear-contents/jboss-seam.jar!/META-INF/faces-config.xml
      19:07:57,250 INFO [FacesConfigurator] Reading config /WEB-INF/navigation.xml
      19:07:57,265 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
      19:07:57,515 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : en_US
      19:07:58,000 INFO [StartupServletContextListener] ServletContext 'C:\jboss\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp2300helloworld.ear-contents\app-exp.war\' initialized.
      19:07:58,000 INFO [StartupServletContextListener] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
      19:07:58,000 INFO [ServletContextListener] Welcome to Seam 1.2.1
      19:07:58,046 INFO [Scanner] scanning: /C:/jboss/jboss-4.0.5.GA/server/default/tmp/deploy/tmp2300helloworld.ear-contents/jboss-seam.jar
      19:07:58,109 INFO [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.security
      19:07:58,140 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
      19:07:58,140 INFO [Initialization] Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
      19:07:58,140 INFO [Initialization] Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
      19:07:58,140 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
      19:07:58,140 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
      19:07:58,140 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
      19:07:58,140 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
      19:07:58,140 INFO [Initialization] reading /WEB-INF/components.xml
      19:07:58,359 INFO [Initialization] reading jar:file:/C:/jboss/jboss-4.0.5.GA/server/default/tmp/deploy/tmp2300helloworld.ear-contents/jboss-seam.jar!/META-INF/components.xml
      19:07:58,390 INFO [Initialization] reading properties from: /jndi.properties
      19:07:58,390 INFO [Initialization] initializing Seam
      19:07:58,437 INFO [Scanner] scanning: /C:/jboss/jboss-4.0.5.GA/server/default/tmp/deploy/tmp2300helloworld.ear-contents/jboss-seam.jar
      19:08:02,375 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.security.identity
      19:08:02,406 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
      19:08:02,531 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
      19:08:02,656 INFO [Initialization] Installing components...
      19:08:02,687 INFO [Component] Component: org.jboss.seam.core.applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
      19:08:02,687 INFO [Component] Component: org.jboss.seam.core.businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
      19:08:02,703 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
      19:08:02,703 INFO [Component] Component: org.jboss.seam.core.conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
      19:08:02,703 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
      19:08:02,703 INFO [Component] Component: org.jboss.seam.core.conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
      19:08:02,703 INFO [Component] Component: org.jboss.seam.core.conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
      19:08:02,703 INFO [Component] Component: org.jboss.seam.core.eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
      19:08:02,703 INFO [Component] Component: org.jboss.seam.core.events, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Events
      19:08:02,703 INFO [Component] Component: org.jboss.seam.core.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Exceptions
      19:08:02,718 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Expressions
      19:08:02,734 INFO [Component] Component: org.jboss.seam.core.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
      19:08:02,734 INFO [Component] Component: org.jboss.seam.core.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
      19:08:02,734 INFO [Component] Component: org.jboss.seam.core.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.FacesPage
      19:08:02,750 INFO [Component] Component: org.jboss.seam.core.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
      19:08:02,750 INFO [Component] Component: org.jboss.seam.core.image, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Image
      19:08:02,750 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
      19:08:02,765 INFO [Component] Component: org.jboss.seam.core.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
      19:08:02,765 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
      19:08:02,765 INFO [Component] Component: org.jboss.seam.core.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
      19:08:02,765 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
      19:08:02,781 INFO [Component] Component: org.jboss.seam.core.messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
      19:08:02,781 INFO [Component] Component: org.jboss.seam.core.methodContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.MethodContext
      19:08:02,781 INFO [Component] Component: org.jboss.seam.core.pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
      19:08:02,796 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
      19:08:02,828 INFO [Component] Component: org.jboss.seam.core.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.PersistenceContexts
      19:08:02,828 INFO [Component] Component: org.jboss.seam.core.pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
      19:08:02,843 INFO [Component] Component: org.jboss.seam.core.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
      19:08:02,859 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
      19:08:02,875 INFO [Component] Component: org.jboss.seam.core.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SafeActions
      19:08:02,875 INFO [Component] Component: org.jboss.seam.core.sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
      19:08:02,875 INFO [Component] Component: org.jboss.seam.core.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
      19:08:02,875 INFO [Component] Component: org.jboss.seam.core.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
      19:08:02,875 INFO [Component] Component: org.jboss.seam.core.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
      19:08:02,890 INFO [Component] Component: org.jboss.seam.core.validation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Validation
      19:08:02,890 INFO [Component] Component: org.jboss.seam.core.validators, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validators
      19:08:02,890 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
      19:08:02,953 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
      19:08:02,953 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
      19:08:02,968 INFO [Component] Component: org.jboss.seam.mail.mailSession, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.mail.MailSession
      19:08:02,968 INFO [Component] Component: org.jboss.seam.security.configuration, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.Configuration
      19:08:02,968 INFO [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.Identity
      19:08:02,984 INFO [Component] Component: org.jboss.seam.servlet.exceptionFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.ExceptionFilter
      19:08:03,000 INFO [Component] Component: org.jboss.seam.servlet.multipartFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.MultipartFilter
      19:08:03,000 INFO [Component] Component: org.jboss.seam.servlet.redirectFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.RedirectFilter
      19:08:03,000 INFO [Component] Component: org.jboss.seam.theme.theme, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
      19:08:03,015 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
      19:08:03,015 INFO [Lifecycle] starting up: org.jboss.seam.servlet.exceptionFilter
      19:08:03,015 INFO [Lifecycle] starting up: org.jboss.seam.servlet.multipartFilter
      19:08:03,015 INFO [Lifecycle] starting up: org.jboss.seam.servlet.redirectFilter
      19:08:03,015 INFO [Initialization] done initializing Seam
      19:08:03,125 INFO [EARDeployer] Started J2EE application: file:/C:/jboss/jboss-4.0.5.GA/server/default/deploy/helloworld.ear
      


      JBoss log upon accessing helloworld for the first time:
      19:09:27,375 INFO [Lifecycle] starting up: org.jboss.seam.security.identity
      19:09:28,000 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
      19:09:28,000 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
      19:09:28,000 INFO [MyfacesConfig] Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
      


      HTML source code as displayed in browser:
      
      
      
      <html>
      <body>
      
      
      
      <h2>Seam Hello World</h2>
      
      
      <form id="_idJsp1" name="_idJsp1" method="post" action="/helloworld/hello.seam" enctype="application/x-www-form-urlencoded">
      
      Please enter your name:<br/>
      
      
      <input id="_idJsp1:_idJsp3" name="_idJsp1:_idJsp3" type="text" value="Don Wan" size="15" /><br/>
      <input id="_idJsp1:_idJsp4" name="_idJsp1:_idJsp4" type="submit" value="Say Hello" onclick="clear__5FidJsp1();" />
      <input type="hidden" name="_idJsp1_SUBMIT" value="1" /><input type="hidden" name="_idJsp1:_link_hidden_" /><script type="text/javascript"><!--
      function clear__5FidJsp1() {
       var f = document.forms['_idJsp1'];
       f.elements['_idJsp1:_link_hidden_'].value='';
       f.target='';
      }
      clear__5FidJsp1();
      //--></script><input type="hidden" name="jsf_tree_64" id="jsf_tree_64" value="rO0ABXNyAEdvcmcuYXBhY2hlLm15ZmFjZXMuYXBwbGljYXRpb24uVHJlZVN0cnVjdHVyZU1hbmFnZXIkVHJlZVN0cnVjdENvbXBvbmVudEZZF9icSvbPAgAEWwAJX2NoaWxkcmVudABKW0xvcmcvYXBhY2hlL215ZmFjZXMvYXBwbGljYXRpb24vVHJlZVN0cnVjdHVyZU1hbmFnZXIkVHJlZVN0cnVjdENvbXBvbmVudDtMAA9fY29tcG9uZW50Q2xhc3N0ABJMamF2YS9sYW5nL1N0cmluZztMAAxfY29tcG9uZW50SWRxAH4AAlsAB19mYWNldHN0ABNbTGphdmEvbGFuZy9PYmplY3Q7eHB1cgBKW0xvcmcuYXBhY2hlLm15ZmFjZXMuYXBwbGljYXRpb24uVHJlZVN0cnVjdHVyZU1hbmFnZXIkVHJlZVN0cnVjdENvbXBvbmVudDu6rCfIEYWQqgIAAHhwAAAAAnNxAH4AAHVxAH4ABQAAAAJzcQB+AABwdAAoamF2YXguZmFjZXMu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AAAQP0AAAAAAAAJ0AAdfaWRKc3A2dAAHX2lkSnNwNXh4cHNxAH4ABD9AAAAAAAABdwgAAAACAAAAAXQACHJlbmRlcmVkc3EAfgA0cQB+ADl0AA8jeyFlbXB0eShmYW5zKX14cHNxAH4AFAAAAAF3BAAAAAJ1cQB+AAAAAAADdXEAfgAAAAAAHHVxAH4AAAAAAAV1cQB+AAAAAAAHdAAHX2lkSnNwNnB0ABFqYXZheC5mYWNlcy5UYWJsZXBzcQB+AAQ/QAAAAAAADHcIAAAAEAAAAAJxAH4AHHNxAH4AHXcMAAAAED9AAAAAAAABdAAHX2lkSnNwN3hxAH4AInEAfgAkeHBzcQB+AAQ/QAAAAAAAAXcIAAAAAgAAAAFxAH4AM3NxAH4ANHEAfgA5dAAHI3tmYW5zfXhwcHB0AANmYW5wcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwc3EAfgAUAAAAAXcEAAAAAXVxAH4AAAAAAAN1cQB+AAAAAAAHdAAHX2lkSnNwN3BwcHNxAH4ABD9AAAAAAAAMdwgAAAAQAAAAAnEAfgAcc3EAfgAddwwAAAAQP0AAAAAAAAF0AAdfaWRKc3A4eHEAfgAicQB+ACR4cHBwc3EAfgAUAAAAAXcEAAAAAXVxAH4AAAAAAAN1cQB+AAAAAAAFdXEAfgAAAAAAA3VxAH4AAAAAAAd0AAdfaWRKc3A4cHEAfgAvcHNxAH4ABD9AAAAAAAAMdwgAAAAQAAAAAXEAfgAicQB+ACR4cHNxAH4ABD9AAAAAAAABdwgAAAACAAAAAXEAfgAzc3EAfgA0cQB+ADl0AAsje2Zhbi5uYW1lfXhwcHBwcHBwcHh4eHg=" /><input type="hidden" name="jsf_viewid" id="jsf_viewid" value="/hello.jsp" /></form>
      
      </body>
      </html>
      


      The data table is created but never updated.
      I am running winXP, java 1.5_10, JBoss 4.05 w/ ejb3 & DefaultDS/hsql database, Seam 1.2.1 and Firefox 2.0.0.6

      This is my first foray into Seam so maybe there is someone with more
      experience or familiarity with the example who has an idea of why its
      not happening. Any ideas, info, suggestions would be very welcome.

        • 1. Re: helloworld example from JBoss Seam Book
          Michael Yuan Newbie

          From your log, it seemed that you are using MyFaces as JSF implementation. Seam 1.2.1 requires JSF RI instead of MyFaces. However, JBoss AS 4.0.5 has MyFaces JARs by default.

          So, you will need to either remove the MyFaces JARs and add in JSF RI JARs to your server, or upgrade to JBoss AS 4.2.0.

          • 2. Re: helloworld example from JBoss Seam Book
            roxello Newbie

            Thank you juntao. Now that you've kindly pointed
            it out, I remember reading about this somewhere.

            • 3. Re: helloworld example from JBoss Seam Book
              roxello Newbie

              As the improved version of the helloworld example (betterjsf) worked with no changes to the installed libraries/config I've only returned to this issue today.

              I have discovered that the JSF RI replacement for MyFaces 'appears to be' jsf-api.jar and jsf-impl.jar.

              I replaced the MyFaces jars with these two in the JBoss ~/jsf-libs directory.

              In the Jboss ~/conf/web.xml file I replaced

               <init-param>
               <description>MyFaces tlds</description>
               <param-name>tagLibJar0</param-name>
               <param-value>jsf-libs/myfaces-impl.jar</param-value>
               </init-param>
              

              with
               <init-param>
               <description>JSF tlds</description>
               <param-name>tagLibJar0</param-name>
               <param-value>jsf-libs/jsf-impl.jar</param-value>
               </init-param>
              


              The application web.xml file contains a Jboss 4.0.x
              specific reference:
               <!-- The following is for JBoss AS 4.0.x and MyFaces -->
               <listener>
               <listener-class>org.apache.myfaces.webapp.StartupServletContextListener
               </listener-class>
               </listener>
               <!-- End of JBoss AS 4.0.x config -->
              


              StartupServletContextListener is a MyFaces class
              which now prevents JBoss from deploying successfully. Here it is a guess as to what needs to done. Assuming replacement is correct
              com.sun.faces.config.ELContextListenerImpl
              and
              com.sun.faces.lifecycle.ELResolverInitPhaseListener
              from jsf-impl.jar appear the least unlikely, both of which have dependencies in other non-included jar files.
              At this point success appears tenuous so have
              abandoned for the time being. Will have a go with JBoss 4.2.0, but do really need to work with 4.0.5 to
              avoid other version incompatability issues.

              • 4. Re: helloworld example from JBoss Seam Book
                Christian Bauer Master

                 

                Seam 1.2.1 requires JSF RI instead of MyFaces.


                This is not correct. The default installations and examples of Seam 1.2.1 work with MyFaces on JBoss 4.0.5.

                Seam 2.x is JSF RI and JBoss 4.2.


                • 5. Re: helloworld example from JBoss Seam Book
                  roxello Newbie

                  Thankx for confirmation. The app web.xml MyFaces
                  entry indicated as much but what the heck, I didnt
                  know...