5 Replies Latest reply on Apr 1, 2006 4:41 AM by Emmanuel Bernard

    Configuring deployment in Eclipse

    Crazy Ivan Newbie

      Hello!

      I am a new user trying to get started with Seam. I have downloaded JBoss AS 4.0.4rc1 and Seam 1.0b2, and set them up in order to run the examples. I used ANT to build and deploy the examples, and everything worked great!

      With that working, I set out to get the booking example imported into an Eclipse project. I created a new EJB 3.0 project using Eclipse IDE and imported the booking files into it. After some inspection of the example ANT build scripts, I created a packaging configuration that more or less duplicates their output. I can start the JBoss server from Eclipse, successfully deploy the application to it and load it in my browser without difficulty, but that is where the trouble starts. Once the application is loaded, none of the links do anything! Trying to log into the application or clicking the 'register new user' link seems to generate a request, but forwards right back to the login page without error or explanation. The server log does contain one cryptic error message, but I do not know what it means or how to resolve it.

      Does anyone have any ideas about what could be the problem? I'm a little lost :)


      16:15:18,448 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=bookingDatasource' to JNDI name 'java:bookingDatasource'
      16:15:18,464 INFO [EARDeployer] Init J2EE application: file:/D:/a/prog/apps/jboss-4.0.4RC1/server/default/deploy/jboss-seam-booking.ear
      16:15:19,354 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=BookingListAction, class=org.jboss.seam.example.booking.BookingListAction, type=STATEFUL
      16:15:19,479 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=ChangePasswordAction, class=org.jboss.seam.example.booking.ChangePasswordAction, type=STATEFUL
      16:15:19,526 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=HotelBookingAction, class=org.jboss.seam.example.booking.HotelBookingAction, type=STATEFUL
      16:15:19,573 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=LoginAction, class=org.jboss.seam.example.booking.LoginAction, type=STATELESS
      16:15:19,604 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=LogoutAction, class=org.jboss.seam.example.booking.LogoutAction, type=STATELESS
      16:15:19,636 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=RegisterAction, class=org.jboss.seam.example.booking.RegisterAction, type=STATEFUL
      16:15:19,651 FATAL [PersistenceXmlLoader] bookingDatabase JTA
      16:15:19,651 INFO [Ejb3Deployment] EJB3 deployment time took: 343
      16:15:19,667 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=jboss-seam-booking.ear.ear,jar=jboss-seam-booking.jar.jar,unitName=bookingDatabase with dependencies:
      16:15:19,667 INFO [JmxKernelAbstraction] jboss.jca:name=bookingDatasource,service=ManagedConnectionFactory
      16:15:19,714 INFO [Ejb3Configuration] found EJB3 Entity bean: org.jboss.seam.example.booking.Booking
      16:15:19,729 INFO [Ejb3Configuration] found EJB3 Entity bean: org.jboss.seam.example.booking.Hotel
      16:15:19,745 INFO [Ejb3Configuration] found EJB3 Entity bean: org.jboss.seam.example.booking.User
      16:15:19,776 INFO [AnnotationBinder] Binding entity from annotated class: org.jboss.seam.example.booking.Booking
      16:15:19,776 INFO [EntityBinder] Bind entity org.jboss.seam.example.booking.Booking on table Booking
      16:15:19,808 INFO [AnnotationBinder] Binding entity from annotated class: org.jboss.seam.example.booking.Hotel
      16:15:19,808 INFO [EntityBinder] Bind entity org.jboss.seam.example.booking.Hotel on table Hotel
      16:15:19,823 INFO [AnnotationBinder] Binding entity from annotated class: org.jboss.seam.example.booking.User
      16:15:19,823 INFO [EntityBinder] Bind entity org.jboss.seam.example.booking.User on table User
      16:15:19,948 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      16:15:19,964 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
      16:15:19,964 INFO [SettingsFactory] RDBMS: HSQL Database Engine, version: 1.8.0
      16:15:19,964 INFO [SettingsFactory] JDBC driver: HSQL Database Engine Driver, version: 1.8.0
      16:15:19,964 INFO [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
      16:15:19,964 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
      16:15:19,964 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      16:15:19,964 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      16:15:19,964 INFO [SettingsFactory] Automatic flush during beforeCompletion(): enabled
      16:15:19,964 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
      16:15:19,964 INFO [SettingsFactory] JDBC batch size: 15
      16:15:19,964 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
      16:15:19,964 INFO [SettingsFactory] Scrollable result sets: enabled
      16:15:19,964 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
      16:15:19,964 INFO [SettingsFactory] Connection release mode: after_statement
      16:15:19,964 INFO [SettingsFactory] Default batch fetch size: 1
      16:15:19,964 INFO [SettingsFactory] Generate SQL with comments: disabled
      16:15:19,964 INFO [SettingsFactory] Order SQL updates by primary key: disabled
      16:15:19,964 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      16:15:19,964 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      16:15:19,964 INFO [SettingsFactory] Query language substitutions: {}
      16:15:19,964 INFO [SettingsFactory] Second-level cache: enabled
      16:15:19,964 INFO [SettingsFactory] Query cache: disabled
      16:15:19,964 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
      16:15:19,964 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
      16:15:19,964 INFO [SettingsFactory] Structured second-level cache entries: disabled
      16:15:19,964 INFO [SettingsFactory] Echoing all SQL to stdout
      16:15:19,964 INFO [SettingsFactory] Statistics: disabled
      16:15:19,964 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
      16:15:19,964 INFO [SettingsFactory] Default entity-mode: pojo
      16:15:20,011 INFO [SessionFactoryImpl] building session factory
      16:15:20,167 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
      16:15:20,167 INFO [SchemaExport] Running hbm2ddl schema export
      16:15:20,167 INFO [SchemaExport] exporting generated schema to database
      16:15:20,183 INFO [SchemaExport] Executing import script: /import.sql
      16:15:20,198 INFO [SchemaExport] schema export complete
      16:15:20,198 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      16:15:20,354 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=BookingListAction with dependencies:
      16:15:20,354 INFO [JmxKernelAbstraction] persistence.units:ear=jboss-seam-booking.ear.ear,jar=jboss-seam-booking.jar.jar,unitName=bookingDatabase
      16:15:20,558 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=ChangePasswordAction with dependencies:
      16:15:20,558 INFO [JmxKernelAbstraction] persistence.units:ear=jboss-seam-booking.ear.ear,jar=jboss-seam-booking.jar.jar,unitName=bookingDatabase
      16:15:20,714 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=HotelBookingAction with dependencies:
      16:15:20,714 INFO [JmxKernelAbstraction] persistence.units:ear=jboss-seam-booking.ear.ear,jar=jboss-seam-booking.jar.jar,unitName=bookingDatabase
      16:15:21,011 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=LoginAction with dependencies:
      16:15:21,011 INFO [JmxKernelAbstraction] persistence.units:ear=jboss-seam-booking.ear.ear,jar=jboss-seam-booking.jar.jar,unitName=bookingDatabase
      16:15:21,167 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=LogoutAction with dependencies:
      16:15:21,276 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=RegisterAction with dependencies:
      16:15:21,292 INFO [JmxKernelAbstraction] persistence.units:ear=jboss-seam-booking.ear.ear,jar=jboss-seam-booking.jar.jar,unitName=bookingDatabase
      16:15:21,448 INFO [EJB3Deployer] Deployed: file:/D:/a/prog/apps/jboss-4.0.4RC1/server/default/tmp/deploy/tmp18972jboss-seam-booking.ear-contents/jboss-seam-booking.jar
      16:15:21,464 INFO [TomcatDeployer] deploy, ctxPath=/seam-booking, warUrl=.../tmp/deploy/tmp18972jboss-seam-booking.ear-contents/jboss-seam-booking-exp.war/
      16:15:22,151 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
      16:15:22,245 INFO [FacesConfigurator] Reading config jar:file:/D:/a/prog/apps/jboss-4.0.4RC1/server/default/tmp/deploy/tmp18972jboss-seam-booking.ear-contents/jboss-seam-booking-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
      16:15:22,261 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
      16:15:22,511 ERROR [LocaleUtils] Locale name null or empty, ignoring
      16:15:22,995 ERROR [FacesConfigurator] Class org.jboss.seam.jsf.SeamPhaseListener does not implement PhaseListener
      16:15:23,026 INFO [StartupServletContextListener] ServletContext 'D:\a\prog\apps\jboss-4.0.4RC1\server\default\.\tmp\deploy\tmp18972jboss-seam-booking.ear-contents\jboss-seam-booking-exp.war\' initialized.
      16:15:23,026 INFO [ServletContextListener] Welcome to Seam 1.0 beta 2
      16:15:23,042 INFO [Initialization] reading properties from: /seam.properties
      16:15:23,058 INFO [Initialization] initializing Seam
      16:15:23,151 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
      16:15:23,229 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
      16:15:23,261 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
      16:15:23,308 INFO [Component] Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
      16:15:23,323 INFO [Component] Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
      16:15:23,339 INFO [Component] Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
      16:15:23,401 INFO [Component] Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
      16:15:23,417 INFO [Component] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
      16:15:23,433 INFO [Component] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
      16:15:23,479 INFO [Component] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
      16:15:23,495 INFO [Component] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
      16:15:23,511 INFO [Component] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
      16:15:23,526 INFO [Component] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
      16:15:23,542 INFO [Component] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
      16:15:23,558 INFO [Component] Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
      16:15:23,589 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
      16:15:23,698 INFO [ResourceBundle] resource bundle missing: messages
      16:15:23,714 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
      16:15:23,745 INFO [Scanner] scanning: /D:/a/prog/apps/jboss-4.0.4RC1/server/default/tmp/deploy/tmp18972jboss-seam-booking.ear-contents/jboss-seam-booking.jar
      16:15:23,776 INFO [Component] Component: bookingList, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.BookingListAction, JNDI: jboss-seam-booking/BookingListAction/local
      16:15:23,808 INFO [Component] Component: login, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LoginAction, JNDI: jboss-seam-booking/LoginAction/local
      16:15:23,823 INFO [Component] Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Hotel
      16:15:23,823 INFO [Component] Component: hotelBooking, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.HotelBookingAction, JNDI: jboss-seam-booking/HotelBookingAction/local
      16:15:23,886 INFO [Component] Component: logout, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LogoutAction, JNDI: jboss-seam-booking/LogoutAction/local
      16:15:23,901 INFO [Component] Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.RegisterAction, JNDI: jboss-seam-booking/RegisterAction/local
      16:15:23,901 INFO [Component] Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.User
      16:15:23,917 INFO [Component] Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Booking
      16:15:23,917 INFO [Component] Component: changePassword, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.ChangePasswordAction, JNDI: jboss-seam-booking/ChangePasswordAction/local
      16:15:23,948 INFO [Initialization] done initializing Seam
      16:15:24,011 INFO [EARDeployer] Started J2EE application: file:/D:/a/prog/apps/jboss-4.0.4RC1/server/default/deploy/jboss-seam-booking.ear