2 Replies Latest reply on Feb 17, 2006 10:42 AM by postdev

    Help TestNG using debug

    postdev

      Hi,

      I have tested the booking example from ant using the testexample task, and it works fine, but when I do it from the debug, it doesn't find any .properties files, nor bounds anything from the example. I'm using Eclipse IDE.

      here's what came up doing ant:


      Buildfile: /home/david/workspace_main/jboss-seam/examples/booking/build.xml
      init:
      [echo] Build Seam on JBoss Booking Example 1.0
      compile:
      testexample:
      [delete] Deleting directory /home/david/workspace_main/jboss-seam/examples/booking/test-output
      [testng] INFO 17-02 09:22:25,920 (Initialization.java:loadFromResource:123) -reading properties from: /seam.properties
      [testng] INFO 17-02 09:22:25,942 (Initialization.java:loadFromResource:123) -reading properties from: /seam-jndi.properties
      [testng] INFO 17-02 09:22:25,972 (Initialization.java:init:90) -initializing Seam
      [testng] INFO 17-02 09:22:26,146 (Component.java:<init>:168) -Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
      [testng] INFO 17-02 09:22:26,740 (Component.java:<init>:168) -Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
      [testng] INFO 17-02 09:22:26,780 (Component.java:<init>:168) -Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
      [testng] INFO 17-02 09:22:26,902 (Component.java:<init>:168) -Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
      [testng] INFO 17-02 09:22:26,987 (Component.java:<init>:168) -Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
      [testng] INFO 17-02 09:22:27,033 (Component.java:<init>:168) -Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
      [testng] INFO 17-02 09:22:27,123 (Component.java:<init>:168) -Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
      [testng] INFO 17-02 09:22:27,173 (Component.java:<init>:168) -Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
      [testng] INFO 17-02 09:22:27,249 (Component.java:<init>:168) -Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
      [testng] INFO 17-02 09:22:27,305 (Component.java:<init>:168) -Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
      [testng] INFO 17-02 09:22:27,386 (Component.java:<init>:168) -Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
      [testng] INFO 17-02 09:22:27,404 (Component.java:<init>:168) -Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
      [testng] INFO 17-02 09:22:27,452 (Component.java:<init>:168) -Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
      [testng] INFO 17-02 09:22:27,549 (Component.java:<init>:168) -Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
      [testng] INFO 17-02 09:22:27,642 (Component.java:<init>:168) -Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
      [testng] INFO 17-02 09:22:27,714 (Component.java:<init>:168) -Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
      [testng] INFO 17-02 09:22:27,956 (ResourceBundle.java:loadBundle:62) -resource bundle missing: messages
      [testng] INFO 17-02 09:22:28,246 (Component.java:<init>:168) -Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
      [testng] INFO 17-02 09:22:28,297 (Component.java:<init>:168) -Component: org.jboss.seam.core.ejb, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Ejb
      [testng] INFO 17-02 09:22:28,371 (Component.java:<init>:168) -Component: bookingDatabase, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedPersistenceContext
      [testng] INFO 17-02 09:22:28,658 (Scanner.java:getClasses:75) -scanning: /home/david/workspace_main/jboss-seam/examples/booking/build/test
      [testng] INFO 17-02 09:22:28,915 (Component.java:<init>:168) -Component: changePassword, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.ChangePasswordAction, JNDI: ChangePasswordAction/local
      [testng] INFO 17-02 09:22:29,170 (Component.java:<init>:168) -Component: bookingList, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.BookingListAction, JNDI: BookingListAction/local
      [testng] INFO 17-02 09:22:29,240 (Component.java:<init>:168) -Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Hotel
      [testng] INFO 17-02 09:22:29,324 (Component.java:<init>:168) -Component: login, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LoginAction, JNDI: LoginAction/local
      [testng] INFO 17-02 09:22:29,388 (Component.java:<init>:168) -Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.User
      [testng] INFO 17-02 09:22:29,399 (Component.java:<init>:168) -Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.RegisterAction, JNDI: RegisterAction/local
      [testng] INFO 17-02 09:22:29,425 (Component.java:<init>:168) -Component: logout, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LogoutAction, JNDI: LogoutAction/local
      [testng] INFO 17-02 09:22:29,484 (Component.java:<init>:168) -Component: hotelBooking, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.HotelBookingAction, JNDI: HotelBookingAction/local
      [testng] INFO 17-02 09:22:29,731 (Component.java:<init>:168) -Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Booking
      [testng] INFO 17-02 09:22:29,745 (Ejb.java:startup:40) -starting the embedded EJB container
      [testng] WARN 17-02 09:22:32,733 (BeanSchemaBinding.java:init:227) -You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0'
      [testng] INFO 17-02 09:22:34,253 (LocalTxDataSource.java:bindConnectionFactory:117) -Bound datasource to JNDI name 'java:/DefaultDS'
      [testng] INFO 17-02 09:22:35,500 (LocalTxDataSource.java:bindConnectionFactory:117) -Bound datasource to JNDI name 'java:/bookingDatasource'
      [testng] INFO 17-02 09:22:36,535 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=LogoutAction, class=org.jboss.seam.example.booking.LogoutAction, type=STATELESS
      [testng] INFO 17-02 09:22:36,628 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=BookingListAction, class=org.jboss.seam.example.booking.BookingListAction, type=STATEFUL
      [testng] INFO 17-02 09:22:36,777 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=ChangePasswordAction, class=org.jboss.seam.example.booking.ChangePasswordAction, type=STATEFUL
      [testng] INFO 17-02 09:22:36,787 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=HotelBookingAction, class=org.jboss.seam.example.booking.HotelBookingAction, type=STATEFUL
      [testng] INFO 17-02 09:22:36,797 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=LoginAction, class=org.jboss.seam.example.booking.LoginAction, type=STATELESS
      [testng] INFO 17-02 09:22:36,812 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=RegisterAction, class=org.jboss.seam.example.booking.RegisterAction, type=STATEFUL
      [testng] FATAL 17-02 09:22:36,871 (PersistenceXmlLoader.java:parsePersistenceUnit:101) -bookingDatabase JTA
      [testng] INFO 17-02 09:22:37,343 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 1752
      [testng] INFO 17-02 09:22:37,361 (MCKernelAbstraction.java:install:79) -installing bean: persistence.units:jar=test.jar,unitName=bookingDatabase with dependencies:
      [testng] INFO 17-02 09:22:37,377 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@96212a{dependency=bookingDatasource}
      [testng] INFO 17-02 09:22:37,621 (Environment.java:<clinit>:479) -Hibernate 3.1.2
      [testng] INFO 17-02 09:22:37,641 (Environment.java:<clinit>:509) -hibernate.properties not found
      [testng] INFO 17-02 09:22:37,654 (Environment.java:<clinit>:525) -using CGLIB reflection optimizer
      [testng] INFO 17-02 09:22:37,698 (Environment.java:<clinit>:555) -using JDK 1.4 java.sql.Timestamp handling
      [testng] INFO 17-02 09:22:38,146 (Ejb3Configuration.java:scanForClasses:365) -found EJB3 Entity bean: org.jboss.seam.example.booking.Hotel
      [testng] INFO 17-02 09:22:38,217 (Ejb3Configuration.java:scanForClasses:365) -found EJB3 Entity bean: org.jboss.seam.example.booking.User
      [testng] INFO 17-02 09:22:38,225 (Ejb3Configuration.java:scanForClasses:365) -found EJB3 Entity bean: org.jboss.seam.example.booking.Booking
      [testng] INFO 17-02 09:22:38,486 (AnnotationBinder.java:bindClass:322) -Binding entity from annotated class: org.jboss.seam.example.booking.Hotel
      [testng] INFO 17-02 09:22:38,660 (EntityBinder.java:bindTable:300) -Bind entity org.jboss.seam.example.booking.Hotel on table Hotel
      [testng] INFO 17-02 09:22:38,934 (AnnotationBinder.java:bindClass:322) -Binding entity from annotated class: org.jboss.seam.example.booking.User
      [testng] INFO 17-02 09:22:38,941 (EntityBinder.java:bindTable:300) -Bind entity org.jboss.seam.example.booking.User on table User
      [testng] INFO 17-02 09:22:38,955 (AnnotationBinder.java:bindClass:322) -Binding entity from annotated class: org.jboss.seam.example.booking.Booking
      [testng] INFO 17-02 09:22:38,967 (EntityBinder.java:bindTable:300) -Bind entity org.jboss.seam.example.booking.Booking on table Booking
      [testng] INFO 17-02 09:22:39,551 (ConnectionProviderFactory.java:newConnectionProvider:72) -Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      [testng] INFO 17-02 09:22:39,569 (InjectedDataSourceConnectionProvider.java:configure:34) -Using provided datasource
      [testng] INFO 17-02 09:22:41,043 (SettingsFactory.java:buildSettings:77) -RDBMS: HSQL Database Engine, version: 1.8.0
      [testng] INFO 17-02 09:22:41,055 (SettingsFactory.java:buildSettings:78) -JDBC driver: HSQL Database Engine Driver, version: 1.8.0
      [testng] INFO 17-02 09:22:41,149 (Dialect.java:<init>:103) -Using dialect: org.hibernate.dialect.HSQLDialect
      [testng] INFO 17-02 09:22:41,209 (TransactionFactoryFactory.java:buildTransactionFactory:31) -Using default transaction strategy (direct JDBC transactions)
      [testng] INFO 17-02 09:22:41,275 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:38) -instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      [testng] INFO 17-02 09:22:41,292 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:42) -instantiated TransactionManagerLookup
      [testng] INFO 17-02 09:22:41,297 (SettingsFactory.java:buildSettings:125) -Automatic flush during beforeCompletion(): enabled
      [testng] INFO 17-02 09:22:41,303 (SettingsFactory.java:buildSettings:129) -Automatic session close at end of transaction: disabled
      [testng] INFO 17-02 09:22:41,309 (SettingsFactory.java:buildSettings:136) -JDBC batch size: 15
      [testng] INFO 17-02 09:22:41,336 (SettingsFactory.java:buildSettings:139) -JDBC batch updates for versioned data: disabled
      [testng] INFO 17-02 09:22:41,345 (SettingsFactory.java:buildSettings:144) -Scrollable result sets: enabled
      [testng] INFO 17-02 09:22:41,350 (SettingsFactory.java:buildSettings:152) -JDBC3 getGeneratedKeys(): disabled
      [testng] INFO 17-02 09:22:41,356 (SettingsFactory.java:buildSettings:160) -Connection release mode: after_statement
      [testng] INFO 17-02 09:22:41,368 (SettingsFactory.java:buildSettings:187) -Default batch fetch size: 1
      [testng] INFO 17-02 09:22:41,431 (SettingsFactory.java:buildSettings:191) -Generate SQL with comments: disabled
      [testng] INFO 17-02 09:22:41,452 (SettingsFactory.java:buildSettings:195) -Order SQL updates by primary key: disabled
      [testng] INFO 17-02 09:22:41,458 (SettingsFactory.java:createQueryTranslatorFactory:338) -Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      [testng] INFO 17-02 09:22:41,491 (ASTQueryTranslatorFactory.java:<init>:24) -Using ASTQueryTranslatorFactory
      [testng] INFO 17-02 09:22:41,587 (SettingsFactory.java:buildSettings:203) -Query language substitutions: {}
      [testng] INFO 17-02 09:22:41,593 (SettingsFactory.java:buildSettings:209) -Second-level cache: enabled
      [testng] INFO 17-02 09:22:41,598 (SettingsFactory.java:buildSettings:213) -Query cache: disabled
      [testng] INFO 17-02 09:22:41,603 (SettingsFactory.java:createCacheProvider:325) -Cache provider: org.hibernate.cache.HashtableCacheProvider
      [testng] INFO 17-02 09:22:41,617 (SettingsFactory.java:buildSettings:228) -Optimize cache for minimal puts: disabled
      [testng] INFO 17-02 09:22:41,672 (SettingsFactory.java:buildSettings:237) -Structured second-level cache entries: disabled
      [testng] INFO 17-02 09:22:41,715 (SettingsFactory.java:buildSettings:257) -Echoing all SQL to stdout
      [testng] INFO 17-02 09:22:41,724 (SettingsFactory.java:buildSettings:264) -Statistics: disabled
      [testng] INFO 17-02 09:22:41,729 (SettingsFactory.java:buildSettings:268) -Deleted entity synthetic identifier rollback: disabled
      [testng] INFO 17-02 09:22:41,739 (SettingsFactory.java:buildSettings:283) -Default entity-mode: pojo
      [testng] INFO 17-02 09:22:42,066 (SessionFactoryImpl.java:<init>:153) -building session factory
      [testng] INFO 17-02 09:22:43,411 (SessionFactoryObjectFactory.java:addInstance:82) -Not binding factory to JNDI, no JNDI name configured
      [testng] INFO 17-02 09:22:43,434 (SchemaExport.java:execute:155) -Running hbm2ddl schema export
      [testng] INFO 17-02 09:22:43,441 (SchemaExport.java:execute:182) -exporting generated schema to database
      [testng] INFO 17-02 09:22:43,499 (SchemaExport.java:importScript:236) -Executing import script: /import.sql
      [testng] INFO 17-02 09:22:43,628 (SchemaExport.java:execute:202) -schema export complete
      [testng] INFO 17-02 09:22:43,649 (NamingHelper.java:getInitialContext:26) -JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      [testng] INFO 17-02 09:22:43,895 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=LogoutAction with dependencies:
      [testng] INFO 17-02 09:22:44,954 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=BookingListAction with dependencies:
      [testng] INFO 17-02 09:22:44,959 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@95f290{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:45,332 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=ChangePasswordAction with dependencies:
      [testng] INFO 17-02 09:22:45,336 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@67fe80{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:45,634 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=HotelBookingAction with dependencies:
      [testng] INFO 17-02 09:22:45,638 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@175b7f9{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:45,947 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=LoginAction with dependencies:
      [testng] INFO 17-02 09:22:45,952 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@a010ba{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:46,051 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=RegisterAction with dependencies:
      [testng] INFO 17-02 09:22:46,072 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@ae1cf{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:46,365 (Initialization.java:init:95) -done initializing Seam
      [testng] Hibernate: select user0_.username as username1_, user0_.name as name1_, user0_.password as password1_ from User user0_ where user0_.username=? and user0_.password=?
      [testng] Hibernate: select top ? hotel0_.id as id0_, hotel0_.city as city0_, hotel0_.zip as zip0_, hotel0_.address as address0_, hotel0_.name as name0_, hotel0_.state as state0_ from Hotel hotel0_ where lower(hotel0_.name) like ? or lower(hotel0_.city) like ? or lower(hotel0_.zip) like ? or lower(hotel0_.address) like ?
      [testng] INFO 17-02 09:22:48,145 (Pages.java:initialize:48) -reading pages.xml
      [testng] INFO 17-02 09:22:48,233 (Ejb.java:shutdown:68) -stopping the embedded EJB container
      [testng] INFO 17-02 09:22:48,253 (SessionFactoryImpl.java:close:728) -closing
      [testng] Creating /home/david/workspace_main/jboss-seam/examples/booking/test-output/Login.html
      [testng] PASSED: testLogin
      [testng] ===============================================
      [testng] Login
      [testng] Tests run: 1, Failures: 0, Skips: 0
      [testng] ===============================================
      [testng] INFO 17-02 09:22:48,591 (Initialization.java:loadFromResource:123) -reading properties from: /seam.properties
      [testng] INFO 17-02 09:22:48,597 (Initialization.java:loadFromResource:123) -reading properties from: /seam-jndi.properties
      [testng] INFO 17-02 09:22:48,601 (Initialization.java:init:90) -initializing Seam
      [testng] INFO 17-02 09:22:48,606 (Component.java:<init>:168) -Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
      [testng] INFO 17-02 09:22:48,652 (Component.java:<init>:168) -Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
      [testng] INFO 17-02 09:22:48,667 (Component.java:<init>:168) -Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
      [testng] INFO 17-02 09:22:48,800 (Component.java:<init>:168) -Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
      [testng] INFO 17-02 09:22:48,868 (Component.java:<init>:168) -Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
      [testng] INFO 17-02 09:22:48,894 (Component.java:<init>:168) -Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
      [testng] INFO 17-02 09:22:48,932 (Component.java:<init>:168) -Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
      [testng] INFO 17-02 09:22:48,953 (Component.java:<init>:168) -Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
      [testng] INFO 17-02 09:22:48,968 (Component.java:<init>:168) -Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
      [testng] INFO 17-02 09:22:49,037 (Component.java:<init>:168) -Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
      [testng] INFO 17-02 09:22:49,076 (Component.java:<init>:168) -Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
      [testng] INFO 17-02 09:22:49,093 (Component.java:<init>:168) -Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
      [testng] INFO 17-02 09:22:49,187 (Component.java:<init>:168) -Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
      [testng] INFO 17-02 09:22:49,208 (Component.java:<init>:168) -Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
      [testng] INFO 17-02 09:22:49,218 (Component.java:<init>:168) -Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
      [testng] INFO 17-02 09:22:49,329 (Component.java:<init>:168) -Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
      [testng] INFO 17-02 09:22:49,339 (ResourceBundle.java:loadBundle:62) -resource bundle missing: messages
      [testng] INFO 17-02 09:22:49,417 (Component.java:<init>:168) -Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
      [testng] INFO 17-02 09:22:49,452 (Component.java:<init>:168) -Component: org.jboss.seam.core.ejb, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Ejb
      [testng] INFO 17-02 09:22:49,473 (Component.java:<init>:168) -Component: bookingDatabase, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedPersistenceContext
      [testng] INFO 17-02 09:22:49,487 (Scanner.java:getClasses:75) -scanning: /home/david/workspace_main/jboss-seam/examples/booking/build/test
      [testng] INFO 17-02 09:22:49,580 (Component.java:<init>:168) -Component: changePassword, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.ChangePasswordAction, JNDI: ChangePasswordAction/local
      [testng] INFO 17-02 09:22:49,707 (Component.java:<init>:168) -Component: bookingList, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.BookingListAction, JNDI: BookingListAction/local
      [testng] INFO 17-02 09:22:49,735 (Component.java:<init>:168) -Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Hotel
      [testng] INFO 17-02 09:22:49,792 (Component.java:<init>:168) -Component: login, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LoginAction, JNDI: LoginAction/local
      [testng] INFO 17-02 09:22:49,801 (Component.java:<init>:168) -Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.User
      [testng] INFO 17-02 09:22:49,833 (Component.java:<init>:168) -Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.RegisterAction, JNDI: RegisterAction/local
      [testng] INFO 17-02 09:22:49,852 (Component.java:<init>:168) -Component: logout, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LogoutAction, JNDI: LogoutAction/local
      [testng] INFO 17-02 09:22:49,956 (Component.java:<init>:168) -Component: hotelBooking, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.HotelBookingAction, JNDI: HotelBookingAction/local
      [testng] INFO 17-02 09:22:50,059 (Component.java:<init>:168) -Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Booking
      [testng] INFO 17-02 09:22:50,085 (Ejb.java:startup:40) -starting the embedded EJB container
      [testng] INFO 17-02 09:22:50,338 (LocalTxDataSource.java:bindConnectionFactory:117) -Bound datasource to JNDI name 'java:/DefaultDS'
      [testng] INFO 17-02 09:22:50,691 (LocalTxDataSource.java:bindConnectionFactory:117) -Bound datasource to JNDI name 'java:/bookingDatasource'
      [testng] INFO 17-02 09:22:50,712 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=LogoutAction, class=org.jboss.seam.example.booking.LogoutAction, type=STATELESS
      [testng] INFO 17-02 09:22:50,727 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=BookingListAction, class=org.jboss.seam.example.booking.BookingListAction, type=STATEFUL
      [testng] INFO 17-02 09:22:50,767 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=ChangePasswordAction, class=org.jboss.seam.example.booking.ChangePasswordAction, type=STATEFUL
      [testng] INFO 17-02 09:22:50,785 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=HotelBookingAction, class=org.jboss.seam.example.booking.HotelBookingAction, type=STATEFUL
      [testng] INFO 17-02 09:22:50,795 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=LoginAction, class=org.jboss.seam.example.booking.LoginAction, type=STATELESS
      [testng] INFO 17-02 09:22:50,820 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=RegisterAction, class=org.jboss.seam.example.booking.RegisterAction, type=STATEFUL
      [testng] FATAL 17-02 09:22:50,848 (PersistenceXmlLoader.java:parsePersistenceUnit:101) -bookingDatabase JTA
      [testng] INFO 17-02 09:22:50,854 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 150
      [testng] INFO 17-02 09:22:50,949 (MCKernelAbstraction.java:install:79) -installing bean: persistence.units:jar=test.jar,unitName=bookingDatabase with dependencies:
      [testng] INFO 17-02 09:22:50,953 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@b11164{dependency=bookingDatasource}
      [testng] INFO 17-02 09:22:50,981 (Ejb3Configuration.java:scanForClasses:365) -found EJB3 Entity bean: org.jboss.seam.example.booking.Hotel
      [testng] INFO 17-02 09:22:51,178 (Ejb3Configuration.java:scanForClasses:365) -found EJB3 Entity bean: org.jboss.seam.example.booking.User
      [testng] INFO 17-02 09:22:51,187 (Ejb3Configuration.java:scanForClasses:365) -found EJB3 Entity bean: org.jboss.seam.example.booking.Booking
      [testng] INFO 17-02 09:22:51,197 (AnnotationBinder.java:bindClass:322) -Binding entity from annotated class: org.jboss.seam.example.booking.Hotel
      [testng] INFO 17-02 09:22:51,211 (EntityBinder.java:bindTable:300) -Bind entity org.jboss.seam.example.booking.Hotel on table Hotel
      [testng] INFO 17-02 09:22:51,245 (AnnotationBinder.java:bindClass:322) -Binding entity from annotated class: org.jboss.seam.example.booking.User
      [testng] INFO 17-02 09:22:51,251 (EntityBinder.java:bindTable:300) -Bind entity org.jboss.seam.example.booking.User on table User
      [testng] INFO 17-02 09:22:51,266 (AnnotationBinder.java:bindClass:322) -Binding entity from annotated class: org.jboss.seam.example.booking.Booking
      [testng] INFO 17-02 09:22:51,271 (EntityBinder.java:bindTable:300) -Bind entity org.jboss.seam.example.booking.Booking on table Booking
      [testng] INFO 17-02 09:22:51,474 (ConnectionProviderFactory.java:newConnectionProvider:72) -Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      [testng] INFO 17-02 09:22:51,480 (InjectedDataSourceConnectionProvider.java:configure:34) -Using provided datasource
      [testng] INFO 17-02 09:22:51,489 (SettingsFactory.java:buildSettings:77) -RDBMS: HSQL Database Engine, version: 1.8.0
      [testng] INFO 17-02 09:22:51,495 (SettingsFactory.java:buildSettings:78) -JDBC driver: HSQL Database Engine Driver, version: 1.8.0
      [testng] INFO 17-02 09:22:51,500 (Dialect.java:<init>:103) -Using dialect: org.hibernate.dialect.HSQLDialect
      [testng] INFO 17-02 09:22:51,514 (TransactionFactoryFactory.java:buildTransactionFactory:31) -Using default transaction strategy (direct JDBC transactions)
      [testng] INFO 17-02 09:22:51,522 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:38) -instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      [testng] INFO 17-02 09:22:51,527 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:42) -instantiated TransactionManagerLookup
      [testng] INFO 17-02 09:22:51,533 (SettingsFactory.java:buildSettings:125) -Automatic flush during beforeCompletion(): enabled
      [testng] INFO 17-02 09:22:51,544 (SettingsFactory.java:buildSettings:129) -Automatic session close at end of transaction: disabled
      [testng] INFO 17-02 09:22:51,549 (SettingsFactory.java:buildSettings:136) -JDBC batch size: 15
      [testng] INFO 17-02 09:22:51,555 (SettingsFactory.java:buildSettings:139) -JDBC batch updates for versioned data: disabled
      [testng] INFO 17-02 09:22:51,560 (SettingsFactory.java:buildSettings:144) -Scrollable result sets: enabled
      [testng] INFO 17-02 09:22:51,565 (SettingsFactory.java:buildSettings:152) -JDBC3 getGeneratedKeys(): disabled
      [testng] INFO 17-02 09:22:51,575 (SettingsFactory.java:buildSettings:160) -Connection release mode: after_statement
      [testng] INFO 17-02 09:22:51,599 (SettingsFactory.java:buildSettings:187) -Default batch fetch size: 1
      [testng] INFO 17-02 09:22:51,604 (SettingsFactory.java:buildSettings:191) -Generate SQL with comments: disabled
      [testng] INFO 17-02 09:22:51,609 (SettingsFactory.java:buildSettings:195) -Order SQL updates by primary key: disabled
      [testng] INFO 17-02 09:22:51,620 (SettingsFactory.java:createQueryTranslatorFactory:338) -Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      [testng] INFO 17-02 09:22:51,626 (ASTQueryTranslatorFactory.java:<init>:24) -Using ASTQueryTranslatorFactory
      [testng] INFO 17-02 09:22:51,631 (SettingsFactory.java:buildSettings:203) -Query language substitutions: {}
      [testng] INFO 17-02 09:22:51,636 (SettingsFactory.java:buildSettings:209) -Second-level cache: enabled
      [testng] INFO 17-02 09:22:51,658 (SettingsFactory.java:buildSettings:213) -Query cache: disabled
      [testng] INFO 17-02 09:22:51,666 (SettingsFactory.java:createCacheProvider:325) -Cache provider: org.hibernate.cache.HashtableCacheProvider
      [testng] INFO 17-02 09:22:51,670 (SettingsFactory.java:buildSettings:228) -Optimize cache for minimal puts: disabled
      [testng] INFO 17-02 09:22:51,673 (SettingsFactory.java:buildSettings:237) -Structured second-level cache entries: disabled
      [testng] INFO 17-02 09:22:51,677 (SettingsFactory.java:buildSettings:257) -Echoing all SQL to stdout
      [testng] INFO 17-02 09:22:51,680 (SettingsFactory.java:buildSettings:264) -Statistics: disabled
      [testng] INFO 17-02 09:22:51,688 (SettingsFactory.java:buildSettings:268) -Deleted entity synthetic identifier rollback: disabled
      [testng] INFO 17-02 09:22:51,691 (SettingsFactory.java:buildSettings:283) -Default entity-mode: pojo
      [testng] INFO 17-02 09:22:51,727 (SessionFactoryImpl.java:<init>:153) -building session factory
      [testng] INFO 17-02 09:22:52,601 (SessionFactoryObjectFactory.java:addInstance:82) -Not binding factory to JNDI, no JNDI name configured
      [testng] INFO 17-02 09:22:52,611 (SchemaExport.java:execute:155) -Running hbm2ddl schema export
      [testng] INFO 17-02 09:22:52,625 (SchemaExport.java:execute:182) -exporting generated schema to database
      [testng] INFO 17-02 09:22:52,633 (SchemaExport.java:importScript:236) -Executing import script: /import.sql
      [testng] INFO 17-02 09:22:52,651 (SchemaExport.java:execute:202) -schema export complete
      [testng] INFO 17-02 09:22:52,665 (NamingHelper.java:getInitialContext:26) -JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      [testng] INFO 17-02 09:22:52,732 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=LogoutAction with dependencies:
      [testng] INFO 17-02 09:22:52,953 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=BookingListAction with dependencies:
      [testng] INFO 17-02 09:22:52,957 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@48cd13{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:53,083 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=ChangePasswordAction with dependencies:
      [testng] INFO 17-02 09:22:53,087 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@18fc9ba{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:53,324 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=HotelBookingAction with dependencies:
      [testng] INFO 17-02 09:22:53,330 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@104eabb{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:53,570 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=LoginAction with dependencies:
      [testng] INFO 17-02 09:22:53,575 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@1ce9f9d{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:53,645 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=RegisterAction with dependencies:
      [testng] INFO 17-02 09:22:53,650 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@510dc2{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:53,815 (Initialization.java:init:95) -done initializing Seam
      [testng] Hibernate: select top ? hotel0_.id as id6_, hotel0_.city as city6_, hotel0_.zip as zip6_, hotel0_.address as address6_, hotel0_.name as name6_, hotel0_.state as state6_ from Hotel hotel0_ where lower(hotel0_.name) like ? or lower(hotel0_.city) like ? or lower(hotel0_.zip) like ? or lower(hotel0_.address) like ?
      [testng] INFO 17-02 09:22:53,968 (Pages.java:initialize:48) -reading pages.xml
      [testng] Hibernate: select user_.username, user_.name as name7_, user_.password as password7_ from User user_ where user_.username=?
      [testng] Hibernate: insert into Booking (user_username, hotel_id, checkinDate, checkoutDate, creditCard, id) values (?, ?, ?, ?, ?, null)
      [testng] Hibernate: call identity()
      [testng] Hibernate: select booking0_.id as id8_, booking0_.user_username as user5_8_, booking0_.hotel_id as hotel6_8_, booking0_.checkinDate as checkinD2_8_, booking0_.checkoutDate as checkout3_8_, booking0_.creditCard as creditCard8_ from Booking booking0_ where booking0_.user_username=? order by booking0_.checkinDate
      [testng] Hibernate: select user0_.username as username7_0_, user0_.name as name7_0_, user0_.password as password7_0_ from User user0_ where user0_.username=?
      [testng] Hibernate: select hotel0_.id as id6_0_, hotel0_.city as city6_0_, hotel0_.zip as zip6_0_, hotel0_.address as address6_0_, hotel0_.name as name6_0_, hotel0_.state as state6_0_ from Hotel hotel0_ where hotel0_.id=?
      [testng] Hibernate: select booking0_.id as id8_2_, booking0_.user_username as user5_8_2_, booking0_.hotel_id as hotel6_8_2_, booking0_.checkinDate as checkinD2_8_2_, booking0_.checkoutDate as checkout3_8_2_, booking0_.creditCard as creditCard8_2_, user1_.username as username7_0_, user1_.name as name7_0_, user1_.password as password7_0_, hotel2_.id as id6_1_, hotel2_.city as city6_1_, hotel2_.zip as zip6_1_, hotel2_.address as address6_1_, hotel2_.name as name6_1_, hotel2_.state as state6_1_ from Booking booking0_ left outer join User user1_ on booking0_.user_username=user1_.username left outer join Hotel hotel2_ on booking0_.hotel_id=hotel2_.id where booking0_.id=?
      [testng] Hibernate: delete from Booking where id=?
      [testng] Hibernate: select booking0_.id as id8_, booking0_.user_username as user5_8_, booking0_.hotel_id as hotel6_8_, booking0_.checkinDate as checkinD2_8_, booking0_.checkoutDate as checkout3_8_, booking0_.creditCard as creditCard8_ from Booking booking0_ where booking0_.user_username=? order by booking0_.checkinDate
      [testng] INFO 17-02 09:22:54,517 (Ejb.java:shutdown:68) -stopping the embedded EJB container
      [testng] INFO 17-02 09:22:54,567 (SessionFactoryImpl.java:close:728) -closing
      [testng] Creating /home/david/workspace_main/jboss-seam/examples/booking/test-output/Booking.html
      [testng] PASSED: testBookHotel
      [testng] ===============================================
      [testng] Booking
      [testng] Tests run: 1, Failures: 0, Skips: 0
      [testng] ===============================================
      [testng] INFO 17-02 09:22:54,715 (Initialization.java:loadFromResource:123) -reading properties from: /seam.properties
      [testng] INFO 17-02 09:22:54,721 (Initialization.java:loadFromResource:123) -reading properties from: /seam-jndi.properties
      [testng] INFO 17-02 09:22:54,725 (Initialization.java:init:90) -initializing Seam
      [testng] INFO 17-02 09:22:54,729 (Component.java:<init>:168) -Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
      [testng] INFO 17-02 09:22:54,825 (Component.java:<init>:168) -Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
      [testng] INFO 17-02 09:22:54,839 (Component.java:<init>:168) -Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
      [testng] INFO 17-02 09:22:54,959 (Component.java:<init>:168) -Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
      [testng] INFO 17-02 09:22:54,979 (Component.java:<init>:168) -Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
      [testng] INFO 17-02 09:22:55,062 (Component.java:<init>:168) -Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
      [testng] INFO 17-02 09:22:55,090 (Component.java:<init>:168) -Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
      [testng] INFO 17-02 09:22:55,116 (Component.java:<init>:168) -Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
      [testng] INFO 17-02 09:22:55,195 (Component.java:<init>:168) -Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
      [testng] INFO 17-02 09:22:55,207 (Component.java:<init>:168) -Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
      [testng] INFO 17-02 09:22:55,222 (Component.java:<init>:168) -Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
      [testng] INFO 17-02 09:22:55,286 (Component.java:<init>:168) -Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
      [testng] INFO 17-02 09:22:55,320 (Component.java:<init>:168) -Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
      [testng] INFO 17-02 09:22:55,334 (Component.java:<init>:168) -Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
      [testng] INFO 17-02 09:22:55,344 (Component.java:<init>:168) -Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
      [testng] INFO 17-02 09:22:55,423 (Component.java:<init>:168) -Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
      [testng] INFO 17-02 09:22:55,447 (ResourceBundle.java:loadBundle:62) -resource bundle missing: messages
      [testng] INFO 17-02 09:22:55,467 (Component.java:<init>:168) -Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
      [testng] INFO 17-02 09:22:55,576 (Component.java:<init>:168) -Component: org.jboss.seam.core.ejb, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Ejb
      [testng] INFO 17-02 09:22:55,595 (Component.java:<init>:168) -Component: bookingDatabase, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedPersistenceContext
      [testng] INFO 17-02 09:22:55,666 (Scanner.java:getClasses:75) -scanning: /home/david/workspace_main/jboss-seam/examples/booking/build/test
      [testng] INFO 17-02 09:22:55,681 (Component.java:<init>:168) -Component: changePassword, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.ChangePasswordAction, JNDI: ChangePasswordAction/local
      [testng] INFO 17-02 09:22:55,799 (Component.java:<init>:168) -Component: bookingList, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.BookingListAction, JNDI: BookingListAction/local
      [testng] INFO 17-02 09:22:55,846 (Component.java:<init>:168) -Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Hotel
      [testng] INFO 17-02 09:22:55,852 (Component.java:<init>:168) -Component: login, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LoginAction, JNDI: LoginAction/local
      [testng] INFO 17-02 09:22:55,860 (Component.java:<init>:168) -Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.User
      [testng] INFO 17-02 09:22:55,866 (Component.java:<init>:168) -Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.RegisterAction, JNDI: RegisterAction/local
      [testng] INFO 17-02 09:22:55,940 (Component.java:<init>:168) -Component: logout, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LogoutAction, JNDI: LogoutAction/local
      [testng] INFO 17-02 09:22:55,991 (Component.java:<init>:168) -Component: hotelBooking, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.HotelBookingAction, JNDI: HotelBookingAction/local
      [testng] INFO 17-02 09:22:56,089 (Component.java:<init>:168) -Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Booking
      [testng] INFO 17-02 09:22:56,115 (Ejb.java:startup:40) -starting the embedded EJB container
      [testng] INFO 17-02 09:22:56,356 (LocalTxDataSource.java:bindConnectionFactory:117) -Bound datasource to JNDI name 'java:/DefaultDS'
      [testng] INFO 17-02 09:22:56,659 (LocalTxDataSource.java:bindConnectionFactory:117) -Bound datasource to JNDI name 'java:/bookingDatasource'
      [testng] INFO 17-02 09:22:56,677 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=LogoutAction, class=org.jboss.seam.example.booking.LogoutAction, type=STATELESS
      [testng] INFO 17-02 09:22:56,699 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=BookingListAction, class=org.jboss.seam.example.booking.BookingListAction, type=STATEFUL
      [testng] INFO 17-02 09:22:56,741 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=ChangePasswordAction, class=org.jboss.seam.example.booking.ChangePasswordAction, type=STATEFUL
      [testng] INFO 17-02 09:22:56,758 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=HotelBookingAction, class=org.jboss.seam.example.booking.HotelBookingAction, type=STATEFUL
      [testng] INFO 17-02 09:22:56,790 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=LoginAction, class=org.jboss.seam.example.booking.LoginAction, type=STATELESS
      [testng] INFO 17-02 09:22:56,799 (Ejb3AnnotationHandler.java:getContainers:156) -found EJB3: ejbName=RegisterAction, class=org.jboss.seam.example.booking.RegisterAction, type=STATEFUL
      [testng] FATAL 17-02 09:22:56,914 (PersistenceXmlLoader.java:parsePersistenceUnit:101) -bookingDatabase JTA
      [testng] INFO 17-02 09:22:56,919 (Ejb3Deployment.java:create:444) -EJB3 deployment time took: 249
      [testng] INFO 17-02 09:22:56,923 (MCKernelAbstraction.java:install:79) -installing bean: persistence.units:jar=test.jar,unitName=bookingDatabase with dependencies:
      [testng] INFO 17-02 09:22:56,929 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@1b80d9b{dependency=bookingDatasource}
      [testng] INFO 17-02 09:22:57,005 (Ejb3Configuration.java:scanForClasses:365) -found EJB3 Entity bean: org.jboss.seam.example.booking.Hotel
      [testng] INFO 17-02 09:22:57,075 (Ejb3Configuration.java:scanForClasses:365) -found EJB3 Entity bean: org.jboss.seam.example.booking.User
      [testng] INFO 17-02 09:22:57,149 (Ejb3Configuration.java:scanForClasses:365) -found EJB3 Entity bean: org.jboss.seam.example.booking.Booking
      [testng] INFO 17-02 09:22:57,159 (AnnotationBinder.java:bindClass:322) -Binding entity from annotated class: org.jboss.seam.example.booking.Hotel
      [testng] INFO 17-02 09:22:57,168 (EntityBinder.java:bindTable:300) -Bind entity org.jboss.seam.example.booking.Hotel on table Hotel
      [testng] INFO 17-02 09:22:57,212 (AnnotationBinder.java:bindClass:322) -Binding entity from annotated class: org.jboss.seam.example.booking.User
      [testng] INFO 17-02 09:22:57,218 (EntityBinder.java:bindTable:300) -Bind entity org.jboss.seam.example.booking.User on table User
      [testng] INFO 17-02 09:22:57,232 (AnnotationBinder.java:bindClass:322) -Binding entity from annotated class: org.jboss.seam.example.booking.Booking
      [testng] INFO 17-02 09:22:57,238 (EntityBinder.java:bindTable:300) -Bind entity org.jboss.seam.example.booking.Booking on table Booking
      [testng] INFO 17-02 09:22:57,457 (ConnectionProviderFactory.java:newConnectionProvider:72) -Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      [testng] INFO 17-02 09:22:57,467 (InjectedDataSourceConnectionProvider.java:configure:34) -Using provided datasource
      [testng] INFO 17-02 09:22:57,474 (SettingsFactory.java:buildSettings:77) -RDBMS: HSQL Database Engine, version: 1.8.0
      [testng] INFO 17-02 09:22:57,479 (SettingsFactory.java:buildSettings:78) -JDBC driver: HSQL Database Engine Driver, version: 1.8.0
      [testng] INFO 17-02 09:22:57,486 (Dialect.java:<init>:103) -Using dialect: org.hibernate.dialect.HSQLDialect
      [testng] INFO 17-02 09:22:57,497 (TransactionFactoryFactory.java:buildTransactionFactory:31) -Using default transaction strategy (direct JDBC transactions)
      [testng] INFO 17-02 09:22:57,502 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:38) -instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      [testng] INFO 17-02 09:22:57,508 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:42) -instantiated TransactionManagerLookup
      [testng] INFO 17-02 09:22:57,512 (SettingsFactory.java:buildSettings:125) -Automatic flush during beforeCompletion(): enabled
      [testng] INFO 17-02 09:22:57,520 (SettingsFactory.java:buildSettings:129) -Automatic session close at end of transaction: disabled
      [testng] INFO 17-02 09:22:57,531 (SettingsFactory.java:buildSettings:136) -JDBC batch size: 15
      [testng] INFO 17-02 09:22:57,536 (SettingsFactory.java:buildSettings:139) -JDBC batch updates for versioned data: disabled
      [testng] INFO 17-02 09:22:57,541 (SettingsFactory.java:buildSettings:144) -Scrollable result sets: enabled
      [testng] INFO 17-02 09:22:57,546 (SettingsFactory.java:buildSettings:152) -JDBC3 getGeneratedKeys(): disabled
      [testng] INFO 17-02 09:22:57,555 (SettingsFactory.java:buildSettings:160) -Connection release mode: after_statement
      [testng] INFO 17-02 09:22:57,561 (SettingsFactory.java:buildSettings:187) -Default batch fetch size: 1
      [testng] INFO 17-02 09:22:57,566 (SettingsFactory.java:buildSettings:191) -Generate SQL with comments: disabled
      [testng] INFO 17-02 09:22:57,590 (SettingsFactory.java:buildSettings:195) -Order SQL updates by primary key: disabled
      [testng] INFO 17-02 09:22:57,597 (SettingsFactory.java:createQueryTranslatorFactory:338) -Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      [testng] INFO 17-02 09:22:57,608 (ASTQueryTranslatorFactory.java:<init>:24) -Using ASTQueryTranslatorFactory
      [testng] INFO 17-02 09:22:57,615 (SettingsFactory.java:buildSettings:203) -Query language substitutions: {}
      [testng] INFO 17-02 09:22:57,624 (SettingsFactory.java:buildSettings:209) -Second-level cache: enabled
      [testng] INFO 17-02 09:22:57,731 (SettingsFactory.java:buildSettings:213) -Query cache: disabled
      [testng] INFO 17-02 09:22:57,736 (SettingsFactory.java:createCacheProvider:325) -Cache provider: org.hibernate.cache.HashtableCacheProvider
      [testng] INFO 17-02 09:22:57,747 (SettingsFactory.java:buildSettings:228) -Optimize cache for minimal puts: disabled
      [testng] INFO 17-02 09:22:57,754 (SettingsFactory.java:buildSettings:237) -Structured second-level cache entries: disabled
      [testng] INFO 17-02 09:22:57,758 (SettingsFactory.java:buildSettings:257) -Echoing all SQL to stdout
      [testng] INFO 17-02 09:22:57,763 (SettingsFactory.java:buildSettings:264) -Statistics: disabled
      [testng] INFO 17-02 09:22:57,849 (SettingsFactory.java:buildSettings:268) -Deleted entity synthetic identifier rollback: disabled
      [testng] INFO 17-02 09:22:57,855 (SettingsFactory.java:buildSettings:283) -Default entity-mode: pojo
      [testng] INFO 17-02 09:22:57,978 (SessionFactoryImpl.java:<init>:153) -building session factory
      [testng] INFO 17-02 09:22:58,135 (SessionFactoryObjectFactory.java:addInstance:82) -Not binding factory to JNDI, no JNDI name configured
      [testng] INFO 17-02 09:22:58,186 (SchemaExport.java:execute:155) -Running hbm2ddl schema export
      [testng] INFO 17-02 09:22:58,197 (SchemaExport.java:execute:182) -exporting generated schema to database
      [testng] INFO 17-02 09:22:58,208 (SchemaExport.java:importScript:236) -Executing import script: /import.sql
      [testng] INFO 17-02 09:22:58,224 (SchemaExport.java:execute:202) -schema export complete
      [testng] INFO 17-02 09:22:58,229 (NamingHelper.java:getInitialContext:26) -JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      [testng] INFO 17-02 09:22:58,362 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=LogoutAction with dependencies:
      [testng] INFO 17-02 09:22:58,418 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=BookingListAction with dependencies:
      [testng] INFO 17-02 09:22:58,422 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@58d7c2{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:58,596 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=ChangePasswordAction with dependencies:
      [testng] INFO 17-02 09:22:58,601 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@bd3b2d{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:58,682 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=HotelBookingAction with dependencies:
      [testng] INFO 17-02 09:22:58,686 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@17834de{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:58,904 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=LoginAction with dependencies:
      [testng] INFO 17-02 09:22:58,909 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@d713fe{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:58,975 (MCKernelAbstraction.java:install:79) -installing bean: jboss.j2ee:service=EJB3,jar=test,name=RegisterAction with dependencies:
      [testng] INFO 17-02 09:22:58,979 (MCKernelAbstraction.java:install:82) - AbstractDependencyMetaData@61a7e6{dependency=persistence.units:jar=test.jar,unitName=bookingDatabase}
      [testng] INFO 17-02 09:22:59,161 (Initialization.java:init:95) -done initializing Seam
      [testng] Hibernate: select user0_.username as username13_0_, user0_.name as name13_0_, user0_.password as password13_0_ from User user0_ where user0_.username=?
      [testng] Hibernate: select user0_.username as username13_0_, user0_.name as name13_0_, user0_.password as password13_0_ from User user0_ where user0_.username=?
      [testng] Hibernate: update User set name=?, password=? where username=?
      [testng] Hibernate: select user0_.username as username13_0_, user0_.name as name13_0_, user0_.password as password13_0_ from User user0_ where user0_.username=?
      [testng] Hibernate: update User set name=?, password=? where username=?
      [testng] INFO 17-02 09:22:59,320 (Ejb.java:shutdown:68) -stopping the embedded EJB container
      [testng] INFO 17-02 09:22:59,453 (SessionFactoryImpl.java:close:728) -closing
      [testng] Creating /home/david/workspace_main/jboss-seam/examples/booking/test-output/ChangePassword.html
      [testng] PASSED: testChangePassword
      [testng] ===============================================
      [testng] ChangePassword
      [testng] Tests run: 1, Failures: 0, Skips: 0
      [testng] ===============================================
      [testng] ===============================================
      [testng] Hotel Booking
      [testng] Total tests run: 3, Failures: 0, Skips: 0
      [testng] ===============================================
      [testng] Creating /home/david/workspace_main/jboss-seam/examples/booking/test-output/toc.html
      [testng] Creating /home/david/workspace_main/jboss-seam/examples/booking/test-output/Booking.properties
      [testng] Creating /home/david/workspace_main/jboss-seam/examples/booking/test-output/ChangePassword.properties
      [testng] Creating /home/david/workspace_main/jboss-seam/examples/booking/test-output/Login.properties
      [testng] Creating /home/david/workspace_main/jboss-seam/examples/booking/test-output/index.html
      [testng] Creating /home/david/workspace_main/jboss-seam/examples/booking/test-output/main.html
      [testng] Creating /home/david/workspace_main/jboss-seam/examples/booking/test-output/groups.html
      [testng] Creating /home/david/workspace_main/jboss-seam/examples/booking/test-output/methods.html
      [testng] Creating /home/david/workspace_main/jboss-seam/examples/booking/test-output/classes.html
      BUILD SUCCESSFUL
      Total time: 13 seconds


      and this is from debug:


      INFO 17-02 09:25:36,016 (Initialization.java:init:90) -initializing Seam
      INFO 17-02 09:25:36,400 (Component.java:<init>:168) -Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
      INFO 17-02 09:25:37,227 (Component.java:<init>:168) -Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
      INFO 17-02 09:25:37,306 (Component.java:<init>:168) -Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
      INFO 17-02 09:25:37,485 (Component.java:<init>:168) -Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
      INFO 17-02 09:25:37,532 (Component.java:<init>:168) -Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
      INFO 17-02 09:25:37,585 (Component.java:<init>:168) -Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
      INFO 17-02 09:25:37,709 (Component.java:<init>:168) -Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
      INFO 17-02 09:25:37,767 (Component.java:<init>:168) -Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
      INFO 17-02 09:25:37,807 (Component.java:<init>:168) -Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
      INFO 17-02 09:25:37,882 (Component.java:<init>:168) -Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
      INFO 17-02 09:25:37,972 (Component.java:<init>:168) -Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
      INFO 17-02 09:25:38,028 (Component.java:<init>:168) -Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
      INFO 17-02 09:25:38,120 (Component.java:<init>:168) -Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
      INFO 17-02 09:25:38,166 (Component.java:<init>:168) -Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
      INFO 17-02 09:25:38,253 (Component.java:<init>:168) -Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
      INFO 17-02 09:25:38,407 (Component.java:<init>:168) -Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
      INFO 17-02 09:25:38,730 (ResourceBundle.java:loadBundle:62) -resource bundle missing: messages
      INFO 17-02 09:25:39,024 (Component.java:<init>:168) -Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
      INFO 17-02 09:25:39,126 (Component.java:<init>:168) -Component: org.jboss.seam.core.ejb, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Ejb
      INFO 17-02 09:25:39,212 (Component.java:<init>:168) -Component: bookingDatabase, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedPersistenceContext
      INFO 17-02 09:25:39,328 (Ejb.java:startup:40) -starting the embedded EJB container
      WARN 17-02 09:25:43,055 (BeanSchemaBinding.java:init:227) -You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0'
      INFO 17-02 09:25:44,714 (LocalTxDataSource.java:bindConnectionFactory:117) -Bound datasource to JNDI name 'java:/DefaultDS'
      INFO 17-02 09:27:49,767 (Initialization.java:init:95) -done initializing Seam
      INFO 17-02 09:27:50,065 (Ejb.java:shutdown:68) -stopping the embedded EJB container
      javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
      at javax.naming.InitialContext.unbind(InitialContext.java:375)
      at org.jboss.seam.core.Ejb.shutdown(Ejb.java:71)
      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.contexts.Contexts.callDestroyMethod(Contexts.java:204)
      at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:187)
      at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:97)
      at org.jboss.seam.mock.SeamTest.cleanup(SeamTest.java:255)
      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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:485)
      at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:311)
      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:149)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:97)
      at org.testng.TestRunner.privateRun(TestRunner.java:614)
      at org.testng.TestRunner.run(TestRunner.java:505)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
      at org.testng.SuiteRunner.run(SuiteRunner.java:147)
      at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:98)
      at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138)
      FAILED: org.jboss.seam.example.booking.test.LoginTest.testLogin()
      java.lang.NullPointerException
      at org.jboss.seam.example.booking.test.LoginTest$1.invokeApplication(LoginTest.java:33)
      at org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:187)
      at org.jboss.seam.example.booking.test.LoginTest.testLogin(LoginTest.java:45)
      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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:485)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:398)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:625)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
      at org.testng.TestRunner.privateRun(TestRunner.java:614)
      at org.testng.TestRunner.run(TestRunner.java:505)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
      at org.testng.SuiteRunner.run(SuiteRunner.java:147)
      at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:98)
      at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138)

      FAILED: org.jboss.seam.mock.SeamTest.cleanup()
      java.lang.IllegalArgumentException: exception invoking: shutdown
      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:43)
      at org.jboss.seam.contexts.Contexts.callDestroyMethod(Contexts.java:204)
      at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:187)
      at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:97)
      at org.jboss.seam.mock.SeamTest.cleanup(SeamTest.java:255)
      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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:485)
      at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:311)
      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:149)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:97)
      at org.testng.TestRunner.privateRun(TestRunner.java:614)
      at org.testng.TestRunner.run(TestRunner.java:505)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
      at org.testng.SuiteRunner.run(SuiteRunner.java:147)
      at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:98)
      at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138)
      Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
      at javax.naming.InitialContext.unbind(InitialContext.java:375)
      at org.jboss.seam.core.Ejb.shutdown(Ejb.java:71)
      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)
      ... 18 more


      ===============================================
      Login
      Tests run: 2, Failures: 2, Skips: 0
      ===============================================

      INFO 17-02 09:27:50,136 (Initialization.java:init:90) -initializing Seam
      INFO 17-02 09:27:50,137 (Component.java:<init>:168) -Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA