1 Reply Latest reply on Nov 21, 2005 2:27 AM by diablo341

    Copy of seam-booking not working

    diablo341

      I'm new to seam/ejb3.0/JSF/jboss AS.

      I copied the seam-booking example and did some renaming. I installed mysql and jboss appears to be connecting during startup. Here's a snippet of server output at startup:

      10:49:30,335 INFO [JaccHelper] Initialising JACC Context for deployment: jboss-seam-commcalc.ejb3
      10:49:30,367 INFO [Ejb3Deployment] Found persistence.xml file in EJB3 jar
      10:49:30,382 INFO [Configuration] processing extends queue
      10:49:30,382 INFO [Configuration] processing collection mappings
      10:49:30,382 INFO [Configuration] processing association property references
      10:49:30,382 INFO [Configuration] processing foreign key constraints
      10:49:30,382 INFO [Configuration] processing extends queue
      10:49:30,382 INFO [Configuration] processing collection mappings
      10:49:30,382 INFO [Configuration] processing association property references
      10:49:30,398 INFO [Configuration] processing foreign key constraints
      10:49:30,398 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.InjectedDataSourceConnectionProvider
      10:49:30,398 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
      10:49:31,460 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.15-nt-max
      10:49:31,460 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.11 ( $Date: 2005-09-21 18:20:03 +0000 (Wed, 21
      10:49:31,476 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
      10:49:31,476 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
      10:49:31,476 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      10:49:31,476 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup


      I can't get the booking code to work. I don't know if it's mysql, the renaming I did, or what. I created the User/Hotel tables in my database. The server says it ran import.sql, but I don't see the records in my tables. The app runs, but when I click on the Register User url, the screen blinks and refreshes back to home.jsf. Any ideas?

      Do I need to put a mysql xml file in server/default/deploy/? How about in server/default/deploy/jms? Any other ideas?

      Thanks,
      John

        • 1. Re: Copy of seam-booking not working
          diablo341

          FYI, I started over by following the steps in the flash movie for eclipse and the seam booking example. I successfully modified the example to use MySQL. My next step (tomorrow) will be to copy the example as a new project, so I can start coding my project.

          I'm sorry for posting this topic before I tried everything.

          John