[jboss-user] [JBoss Seam] - Re: How to modify booking example login?(newbie question)

guiltyxsin do-not-reply at jboss.com
Sat Aug 11 01:17:59 EDT 2007


Yes I tried and the inputs are going through the identity.getUsername and getPassword. However on the Jboss AS console it shows things like:


  | am-booking.ear-contents/jboss-seam-booking-exp.war/WEB-INF/lib/jboss-seam-debug.jar
  | 15:06:18,549 INFO  [Scanner] scanning: /C:/jboss-4.2.0.GA/server/default/tmp/deploy/tmp64519jboss-se
  | am-booking.ear-contents/jboss-seam-booking.jar
  | 15:06:18,550 INFO  [Scanner] scanning: /C:/jboss-4.2.0.GA/server/default/tmp/deploy/tmp64519jboss-se
  | am-booking.ear-contents/jboss-seam-booking-exp.war/WEB-INF/lib/jboss-seam-ui.jar
  | 15:06:18,559 INFO  [Initialization] reading /WEB-INF/components.xml
  | 15:06:18,589 INFO  [Initialization] reading jar:file:/C:/jboss-4.2.0.GA/server/default/tmp/deploy/tm
  | p64519jboss-seam-booking.ear-contents/jboss-seam.jar!/META-INF/components.xml
  | 15:06:18,597 INFO  [Initialization] reading properties from: /seam.properties
  | 15:06:18,598 INFO  [Initialization] reading properties from: /jndi.properties
  | 15:06:18,600 INFO  [Initialization] initializing Seam
  | 15:06:18,613 INFO  [Scanner] scanning: /C:/jboss-4.2.0.GA/server/default/tmp/deploy/tmp64519jboss-se
  | am-booking.ear-contents/jboss-seam-booking-exp.war/WEB-INF/lib/jboss-seam-debug.jar
  | 15:06:18,630 INFO  [Scanner] scanning: /C:/jboss-4.2.0.GA/server/default/tmp/deploy/tmp64519jboss-se
  | am-booking.ear-contents/jboss-seam-booking.jar
  | 15:06:18,671 INFO  [Scanner] scanning: /C:/jboss-4.2.0.GA/server/default/tmp/deploy/tmp64519jboss-se
  | am-booking.ear-contents/jboss-seam-booking-exp.war/WEB-INF/lib/jboss-seam-ui.jar
  | 15:06:18,913 INFO  [Scanner] scanning: /C:/jboss-4.2.0.GA/server/default/tmp/deploy/tmp64519jboss-se
  | am-booking.ear-contents/jboss-seam.jar
  | 15:06:20,959 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss
  | .seam.persistence.persistenceProvider
  | 15:06:20,967 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss
  | .seam.web.ajax4jsfFilter
  | 15:06:20,970 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss
  | .seam.security.identity
  | 15:06:21,010 INFO  [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_B
  | EAN, class: org.jboss.seam.core.Init
  | 15:06:21,036 WARN  [Initialization] Did not install PojoCache due to NoClassDefFoundError: org/jgrou
  | ps/MembershipListener
  | 15:06:21,037 INFO  [Initialization] Installing components...
  | 15:06:21,054 INFO  [Component] Component: authenticator, scope: STATELESS, type: STATELESS_SESSION_B
  | EAN, class: org.jboss.seam.example.booking.AuthenticatorAction, JNDI: jboss-seam-booking/Authenticat
  | orAction/local
  | 15:06:21,070 INFO  [Component] Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: or
  | g.jboss.seam.example.booking.Booking
  | 15:06:21,072 INFO  [Component] Component: bookingList, scope: SESSION, type: STATEFUL_SESSION_BEAN,
  | class: org.jboss.seam.example.booking.BookingListAction, JNDI: jboss-seam-booking/BookingListAction/
  | local
  | 15:06:21,083 INFO  [Component] Component: changePassword, scope: EVENT, type: STATEFUL_SESSION_BEAN,
  |  class: org.jboss.seam.example.booking.ChangePasswordAction, JNDI: jboss-seam-booking/ChangePassword
  | Action/local
  | 15:06:21,088 INFO  [Component] Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: org.
  | jboss.seam.example.booking.Hotel
  | 15:06:21,090 INFO  [Component] Component: hotelBooking, scope: CONVERSATION, type: STATEFUL_SESSION_
  | BEAN, class: org.jboss.seam.example.booking.HotelBookingAction, JNDI: jboss-seam-booking/HotelBookin
  | gAction/local
  | 15:06:21,102 INFO  [Component] Component: hotelSearch, scope: SESSION, type: STATEFUL_SESSION_BEAN,
  | class: org.jboss.seam.example.booking.HotelSearchingAction, JNDI: jboss-seam-booking/HotelSearchingA
  | ction/local
  | 15:06:21,107 INFO  [Component] Component: org.jboss.seam.core.applicationContext, scope: APPLICATION
  | , type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
  | 15:06:21,110 INFO  [Component] Component: org.jboss.seam.core.businessProcessContext, scope: APPLICA
  | TION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
  | 15:06:21,111 INFO  [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, typ
  | e: JAVA_BEAN, class: org.jboss.seam.core.Conversation
  | 15:06:21,114 INFO  [Component] Component: org.jboss.seam.core.conversationContext, scope: APPLICATIO
  | N, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
  | 15:06:21,116 INFO  [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, t
  | ype: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
  | 15:06:21,120 INFO  [Component] Component: org.jboss.seam.core.conversationList, scope: PAGE, type: J
  | AVA_BEAN, class: org.jboss.seam.core.ConversationList
  | 15:06:21,122 INFO  [Component] Component: org.jboss.seam.core.conversationStack, scope: PAGE, type:
  | JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
  | 15:06:21,124 INFO  [Component] Component: org.jboss.seam.core.dispatcher, scope: APPLICATION, type:
  | JAVA_BEAN, class: org.jboss.seam.core.ThreadPoolDispatcher
  | 15:06:21,129 INFO  [Component] Component: org.jboss.seam.core.eventContext, scope: APPLICATION, type
  | : JAVA_BEAN, class: org.jboss.seam.core.EventContext
  | 15:06:21,130 INFO  [Component] Component: org.jboss.seam.core.events, scope: STATELESS, type: JAVA_B
  | EAN, class: org.jboss.seam.core.Events
  | 15:06:21,133 INFO  [Component] Component: org.jboss.seam.core.exceptions, scope: APPLICATION, type:
  | JAVA_BEAN, class: org.jboss.seam.core.Exceptions
  | 15:06:21,140 INFO  [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type:
  |  JAVA_BEAN, class: org.jboss.seam.core.Expressions
  | 15:06:21,143 INFO  [Component] Component: org.jboss.seam.core.facesContext, scope: APPLICATION, type
  | : JAVA_BEAN, class: org.jboss.seam.core.FacesContext
  | 15:06:21,144 INFO  [Component] Component: org.jboss.seam.core.facesMessages, scope: CONVERSATION, ty
  | pe: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
  | 15:06:21,148 INFO  [Component] Component: org.jboss.seam.core.facesPage, scope: PAGE, type: JAVA_BEA
  | N, class: org.jboss.seam.core.FacesPage
  | 15:06:21,150 INFO  [Component] Component: org.jboss.seam.core.httpError, scope: APPLICATION, type: J
  | AVA_BEAN, class: org.jboss.seam.core.HttpError
  | 15:06:21,152 INFO  [Component] Component: org.jboss.seam.core.image, scope: CONVERSATION, type: JAVA
  | _BEAN, class: org.jboss.seam.core.Image
  | 15:06:21,157 INFO  [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type:
  | JAVA_BEAN, class: org.jboss.seam.core.Interpolator
  | 15:06:21,159 INFO  [Component] Component: org.jboss.seam.core.isUserInRole, scope: APPLICATION, type
  | : JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
  | 15:06:21,161 INFO  [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_B
  | EAN, class: org.jboss.seam.core.Locale
  | 15:06:21,163 INFO  [Component] Component: org.jboss.seam.core.localeSelector, scope: SESSION, type:
  | JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
  | 15:06:21,167 INFO  [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN
  | , class: org.jboss.seam.core.Manager
  | 15:06:21,172 INFO  [Component] Component: org.jboss.seam.core.messages, scope: SESSION, type: JAVA_B
  | EAN, class: org.jboss.seam.core.Messages
  | 15:06:21,174 INFO  [Component] Component: org.jboss.seam.core.methodContext, scope: APPLICATION, typ
  | e: JAVA_BEAN, class: org.jboss.seam.core.MethodContext
  | 15:06:21,176 INFO  [Component] Component: org.jboss.seam.core.pageContext, scope: APPLICATION, type:
  |  JAVA_BEAN, class: org.jboss.seam.core.PageContext
  | 15:06:21,178 INFO  [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_
  | BEAN, class: org.jboss.seam.core.Pages
  | 15:06:21,191 INFO  [Component] Component: org.jboss.seam.core.persistenceContexts, scope: CONVERSATI
  | ON, type: JAVA_BEAN, class: org.jboss.seam.core.PersistenceContexts
  | 15:06:21,192 INFO  [Component] Component: org.jboss.seam.core.redirect, scope: CONVERSATION, type: J
  | AVA_BEAN, class: org.jboss.seam.core.Redirect
  | 15:06:21,195 INFO  [Component] Component: org.jboss.seam.core.renderer, scope: STATELESS, type: JAVA
  | _BEAN, class: org.jboss.seam.ui.facelet.FaceletsRenderer
  | 15:06:21,197 INFO  [Component] Component: org.jboss.seam.core.resourceBundle, scope: SESSION, type:
  | JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
  | 15:06:21,201 INFO  [Component] Component: org.jboss.seam.core.safeActions, scope: APPLICATION, type:
  |  JAVA_BEAN, class: org.jboss.seam.core.SafeActions
  | 15:06:21,203 INFO  [Component] Component: org.jboss.seam.core.servletSession, scope: SESSION, type:
  | JAVA_BEAN, class: org.jboss.seam.core.ServletSession
  | 15:06:21,205 INFO  [Component] Component: org.jboss.seam.core.sessionContext, scope: APPLICATION, ty
  | pe: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
  | 15:06:21,207 INFO  [Component] Component: org.jboss.seam.core.switcher, scope: PAGE, type: JAVA_BEAN
  | , class: org.jboss.seam.core.Switcher
  | 15:06:21,210 INFO  [Component] Component: org.jboss.seam.core.timeZone, scope: STATELESS, type: JAVA
  | _BEAN, class: org.jboss.seam.core.TimeZone
  | 15:06:21,212 INFO  [Component] Component: org.jboss.seam.core.timeZoneSelector, scope: SESSION, type
  | : JAVA_BEAN, class: org.jboss.seam.core.TimeZoneSelector
  | 15:06:21,215 INFO  [Component] Component: org.jboss.seam.core.transactionListener, scope: EVENT, typ
  | e: STATEFUL_SESSION_BEAN, class: org.jboss.seam.core.TransactionListener, JNDI: jboss-seam-booking/T
  | ransactionListener/local
  | 15:06:21,219 INFO  [Component] Component: org.jboss.seam.core.uiComponent, scope: STATELESS, type: J
  | AVA_BEAN, class: org.jboss.seam.core.UiComponent
  | 15:06:21,221 INFO  [Component] Component: org.jboss.seam.core.userPrincipal, scope: APPLICATION, typ
  | e: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
  | 15:06:21,223 INFO  [Component] Component: org.jboss.seam.core.validation, scope: EVENT, type: JAVA_B
  | EAN, class: org.jboss.seam.core.Validation
  | 15:06:21,226 INFO  [Component] Component: org.jboss.seam.core.validators, scope: APPLICATION, type:
  | JAVA_BEAN, class: org.jboss.seam.core.Validators
  | 15:06:21,228 INFO  [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: J
  | AVA_BEAN, class: org.jboss.seam.debug.Contexts
  | 15:06:21,231 INFO  [Component] Component: org.jboss.seam.debug.hotDeployFilter, scope: APPLICATION,
  | type: JAVA_BEAN, class: org.jboss.seam.debug.hot.HotDeployFilter
  | 15:06:21,236 INFO  [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAV
  | A_BEAN, class: org.jboss.seam.debug.Introspector
  | 15:06:21,241 INFO  [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, ty
  | pe: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
  | 15:06:21,244 INFO  [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS
  | , type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
  | 15:06:21,246 INFO  [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, ty
  | pe: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
  | 15:06:21,248 INFO  [Component] Component: org.jboss.seam.jsf.jsfProvider, scope: STATELESS, type: JA
  | VA_BEAN, class: org.jboss.seam.jsf.JsfProvider
  | 15:06:21,253 INFO  [Component] Component: org.jboss.seam.mail.mailSession, scope: APPLICATION, type:
  |  JAVA_BEAN, class: org.jboss.seam.mail.MailSession
  | 15:06:21,256 INFO  [Component] Component: org.jboss.seam.security.configuration, scope: APPLICATION,
  |  type: JAVA_BEAN, class: org.jboss.seam.security.Configuration
  | 15:06:21,258 INFO  [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JA
  | VA_BEAN, class: org.jboss.seam.security.Identity
  | 15:06:21,264 INFO  [Component] Component: org.jboss.seam.theme.theme, scope: SESSION, type: JAVA_BEA
  | N, class: org.jboss.seam.theme.Theme
  | 15:06:21,265 INFO  [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type:
  | JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
  | 15:06:21,268 INFO  [Component] Component: org.jboss.seam.transaction.transaction, scope: STATELESS,
  | type: JAVA_BEAN, class: org.jboss.seam.transaction.Transaction
  | 15:06:21,272 INFO  [Component] Component: org.jboss.seam.ui.entityConverter, scope: CONVERSATION, ty
  | pe: JAVA_BEAN, class: org.jboss.seam.ui.EntityConverter
  | 15:06:21,279 INFO  [Component] Component: org.jboss.seam.ui.entityConverterStore, scope: PAGE, type:
  |  JAVA_BEAN, class: org.jboss.seam.ui.EntityConverterStore
  | 15:06:21,282 INFO  [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageResource, scope
  | : APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageResource
  | 15:06:21,286 INFO  [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageStore, scope: S
  | ESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageStore
  | 15:06:21,288 INFO  [Component] Component: org.jboss.seam.ui.resource.styleResource, scope: APPLICATI
  | ON, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.StyleResource
  | 15:06:21,290 INFO  [Component] Component: org.jboss.seam.ui.resource.webResource, scope: APPLICATION
  | , type: JAVA_BEAN, class: org.jboss.seam.ui.resource.WebResource
  | 15:06:21,292 INFO  [Component] Component: org.jboss.seam.web.ajax4jsfFilter, scope: APPLICATION, typ
  | e: JAVA_BEAN, class: org.jboss.seam.ui.filter.Ajax4jsfFilter
  | 15:06:21,295 INFO  [Component] Component: org.jboss.seam.web.exceptionFilter, scope: APPLICATION, ty
  | pe: JAVA_BEAN, class: org.jboss.seam.web.ExceptionFilter
  | 15:06:21,300 INFO  [Component] Component: org.jboss.seam.web.multipartFilter, scope: APPLICATION, ty
  | pe: JAVA_BEAN, class: org.jboss.seam.web.MultipartFilter
  | 15:06:21,301 INFO  [Component] Component: org.jboss.seam.web.redirectFilter, scope: APPLICATION, typ
  | e: JAVA_BEAN, class: org.jboss.seam.web.RedirectFilter
  | 15:06:21,304 INFO  [Component] Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class
  | : org.jboss.seam.example.booking.RegisterAction, JNDI: jboss-seam-booking/RegisterAction/local
  | 15:06:21,307 INFO  [Component] Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.jboss.
  | seam.example.booking.User
  | 15:06:21,309 INFO  [Lifecycle] starting up: org.jboss.seam.debug.hotDeployFilter
  | 15:06:21,311 INFO  [Lifecycle] starting up: org.jboss.seam.ui.graphicImage.graphicImageResource
  | 15:06:21,312 INFO  [Lifecycle] starting up: org.jboss.seam.web.ajax4jsfFilter
  | 15:06:21,327 INFO  [Lifecycle] starting up: org.jboss.seam.web.multipartFilter
  | 15:06:21,328 INFO  [Lifecycle] starting up: org.jboss.seam.ui.resource.styleResource
  | 15:06:21,329 INFO  [Lifecycle] starting up: org.jboss.seam.web.redirectFilter
  | 15:06:21,330 INFO  [Lifecycle] starting up: org.jboss.seam.web.exceptionFilter
  | 15:06:21,331 INFO  [Lifecycle] starting up: org.jboss.seam.ui.resource.webResource
  | 15:06:21,333 INFO  [Initialization] done initializing Seam
  | 15:06:21,335 INFO  [SeamFilter] Initializing filter: org.jboss.seam.debug.hotDeployFilter
  | 15:06:21,335 INFO  [SeamFilter] Initializing filter: org.jboss.seam.web.ajax4jsfFilter
  | 15:06:21,360 INFO  [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
  | 15:06:21,366 INFO  [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {facelets.D
  | EVELOPMENT=true, org.ajax4jsf.VIEW_HANDLERS=com.sun.facelets.FaceletViewHandler, com.sun.faces.injec
  | tionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, javax.faces.STATE_SAVIN
  | G_METHOD=client, javax.faces.DEFAULT_SUFFIX=.xhtml}
  | 15:06:21,369 INFO  [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
  | 15:06:21,484 INFO  [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
  | 15:06:21,484 INFO  [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {facelets.D
  | EVELOPMENT=true, org.ajax4jsf.VIEW_HANDLERS=com.sun.facelets.FaceletViewHandler, com.sun.faces.injec
  | tionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, javax.faces.STATE_SAVIN
  | G_METHOD=client, javax.faces.DEFAULT_SUFFIX=.xhtml}
  | 15:06:21,488 INFO  [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
  | 15:06:21,490 INFO  [SeamFilter] Initializing filter: org.jboss.seam.web.multipartFilter
  | 15:06:21,491 INFO  [SeamFilter] Initializing filter: org.jboss.seam.web.redirectFilter
  | 15:06:21,492 INFO  [SeamFilter] Initializing filter: org.jboss.seam.web.exceptionFilter
  | 15:06:21,539 INFO  [EARDeployer] Started J2EE application: file:/C:/jboss-4.2.0.GA/server/default/de
  | ploy/jboss-seam-booking.ear
  | 15:06:21,542 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=booking
  | Database
  |   State: FAILED
  |   Reason: org.hibernate.AnnotationException: No identifier specified for entity: org.jboss.seam.exam
  | ple.booking.Hotel
  |   I Depend On:
  |     jboss.jca:service=DataSourceBinding,name=bookingDatasource
  |   Depends On Me:
  |     jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=AuthenticatorAction,servic
  | e=EJB3
  |     jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=BookingListAction,service=
  | EJB3
  |     jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=ChangePasswordAction,servi
  | ce=EJB3
  |     jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=HotelBookingAction,service
  | =EJB3
  |     jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=HotelSearchingAction,servi
  | ce=EJB3
  |     jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=RegisterAction,service=EJB
  | 3
  | 
  | ObjectName: jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=AuthenticatorActio
  | n,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  |     persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase
  | 
  | 
  | ObjectName: jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=BookingListAction,
  | service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  |     persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase
  | 
  | 
  | ObjectName: jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=ChangePasswordActi
  | on,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  |     persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase
  | 
  | 
  | ObjectName: jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=HotelBookingAction
  | ,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  |     persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase
  | 
  | 
  | ObjectName: jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=HotelSearchingActi
  | on,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  |     persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase
  | 
  | 
  | ObjectName: jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=RegisterAction,ser
  | vice=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  |     persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase
  | 
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=booking
  | Database
  |   State: FAILED
  |   Reason: org.hibernate.AnnotationException: No identifier specified for entity: org.jboss.seam.exam
  | ple.booking.Hotel
  |   I Depend On:
  |     jboss.jca:service=DataSourceBinding,name=bookingDatasource
  |   Depends On Me:
  |     jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=AuthenticatorAction,servic
  | e=EJB3
  |     jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=BookingListAction,service=
  | EJB3
  |     jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=ChangePasswordAction,servi
  | ce=EJB3
  |     jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=HotelBookingAction,service
  | =EJB3
  |     jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=HotelSearchingAction,servi
  | ce=EJB3
  |     jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=RegisterAction,service=EJB
  | 3
  | 
  | 
  | 

So many error and because I am new to all this so I don't know where to look for the bugs. I only change the datasource.xml for it to look for data on my university's database and user.java so that after login the user session will be the administrator only and setup username, password and name into administrator just for a simple login process.

Any suggestions which part of the booking example I should go to and modify??

I appreciate your helps.

Regards,
Andy

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073251#4073251

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073251



More information about the jboss-user mailing list