-
1. Re: Trouble running TestNG SEAM tests using microcontainer i
starksm64 Jan 13, 2006 2:43 AM (in response to robjellinghaus)Describe the setup in more detail as I don't follow the seam development on a daily basis. Exactly how is this being ruin in intellij?
-
2. Re: Trouble running TestNG SEAM tests using microcontainer i
robjellinghaus Jan 15, 2006 2:06 PM (in response to robjellinghaus)I'm pasting a large console dump in, so please pardon my blowing the page margins in this thread.
IDEA version 5.0.2
TestNG-J plugin 0.1.16
JDK version 1.5.0_06
SEAM updated from CVS and built from source on 8 Jan 2006
I have an IDEA project set up for "seam-noejb-testexample". This IDEA project has one module, "seam", with the following configuration:Paths: Source Folders: examples\noejb\resources examples\noejb\src src\main Test Source Folders: examples\noejb\src\org\jboss\seam\examples\noejb\test Excluded Folders: (all examples\* folders except noejb) Libraries: Use project JDK: 1.5 (java version "1.5.0_06") Used Global Libraries: jboss-seam (jboss-seam\lib and jboss-seam.jar built from source), jboss-microcontainer (jboss-seam\microcontainer\lib), Tomcat_5.5.12 (CATALINA_HOME\common\lib) Order/Export: Top to bottom: 1.5 (java version "1.5.0_06"), <Module source>, Tomcat_5.5.12, jboss-seam, jboss-microcontainer, Tomcat Web Module Settings: Deployment Descriptors: Type "Web Module Deployment Descriptor", Path C:\robj\dev\seam\jboss-seam\examples\noejb\resources\WEB-INF\web.xml, Version 2.4 Modules and Libraries to Package: jboss-microcontainer Copy files to /WEB-INF/lib, jboss-seam Copy files to /WEB-INF/lib, Tomcat Do not package, Tomcat_5.51.12 Do not package Web Resources Directories: Directory: C:\robj\dev\seam\jboss-seam\examples\noejb\resources, Path relative to deployment root: / J2EE Build Settings: UNCHECK Create web module war file AND Create web module exploded directory
This is my configuration for the TestNG plugin:Name: noejb testexample Test: Suite Suite: C:/robj/dev/seam/jboss-seam/examples/noejb/src/org/jboss/seam/example/noejb/test/testng.xml JDK Settings: VM parameters: <blank> Test runner parameters: <blank> Working directory: C:\robj\dev\seam\jboss-seam\examples\noejb
I have zipped up all the IDEA project files I am using, and I have put them at http://unrealities.com/seam/seam_idea_projects.zip -- the paths are all relative, so if you unzip into a directory that contains "jboss-seam" as the root of a Seam checkout, then it should mostly work. (except that Tomcat won't be in the same relative place.)
When I choose Debug, IDEA builds everything without difficulty. It then launches the TestNG plugin and begins running it. The output is appended below (lengthy as always). Note that in my own personal copy of the testing tree, I get a different set of errors (the ones cited in the original thread), but I can't find the difference in the IDEA configuration. Sigh, complex configuration GUIs can be a real problem....
I very much hope you can provide some guidance. I will be following this thread (my time is limited but I will definitely keep on this). If you or anyone else has cycles to evaluate this -- an IDEA evaluation license should be sufficient -- and if you get to the point of being able to run the Seam noejb TestNG suite under IDEA's debugger, just mailing me the project file that ran successfully should be all I need. Failing that, any information about the following:
- what causes the "WARN 15-01 11:00:37,421 (TransactionImpl.java:timedOut:990)" timeout, which is what seems to break the LoginTest
- what causes "WARN 15-01 11:01:01,953 (SettingsFactory.java:buildSettings:103) -Could not obtain connection metadata" which breaks most of the remaining tests
Thanks very, very much,
RobC:\jdk1.5.0_06\bin\java -ea -Xdebug -Xrunjdwp:transport=dt_socket,address=highball:1234,suspend=y,server=n -Dfile.encoding=windows-1252 -classpath "C:\jdk1.5.0_06\jre\lib\charsets.jar;C:\jdk1.5.0_06\jre\lib\deploy.jar;C:\jdk1.5.0_06\jre\lib\javaws.jar;C:\jdk1.5.0_06\jre\lib\jce.jar;C:\jdk1.5.0_06\jre\lib\jsse.jar;C:\jdk1.5.0_06\jre\lib\plugin.jar;C:\jdk1.5.0_06\jre\lib\rt.jar;C:\jdk1.5.0_06\jre\lib\ext\dnsns.jar;C:\jdk1.5.0_06\jre\lib\ext\localedata.jar;C:\jdk1.5.0_06\jre\lib\ext\sunjce_provider.jar;C:\jdk1.5.0_06\jre\lib\ext\sunpkcs11.jar;C:\robj\dev\seam\jboss-seam\build\classes;C:\robj\dev\apache-tomcat-5.5.12\common\lib\commons-el.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\jasper-compiler-jdt.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\jasper-compiler.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\jasper-runtime.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\jsp-api.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\naming-factory-dbcp.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\naming-factory.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\naming-resources.jar;C:\robj\dev\apache-tomcat-5.5.12\common\lib\servlet-api.jar;C:\robj\dev\seam\jboss-seam\lib\asm.jar;C:\robj\dev\seam\jboss-seam\lib\bsh-2.0b2.jar;C:\robj\dev\seam\jboss-seam\lib\cglib-2.1.1.jar;C:\robj\dev\seam\jboss-seam\lib\commons-beanutils.jar;C:\robj\dev\seam\jboss-seam\lib\commons-codec-1.2.jar;C:\robj\dev\seam\jboss-seam\lib\commons-digester-1.6.jar;C:\robj\dev\seam\jboss-seam\lib\concurrent.jar;C:\robj\dev\seam\jboss-seam\lib\ejb3-persistence.jar;C:\robj\dev\seam\jboss-seam\lib\hibernate-annotations.jar;C:\robj\dev\seam\jboss-seam\lib\hibernate3.jar;C:\robj\dev\seam\jboss-seam\lib\hsqldb.jar;C:\robj\dev\seam\jboss-seam\lib\javax.servlet.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-common-jdbc-wrapper.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-common.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-ejb3.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-ejb3x.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-j2ee.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-j2se.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-jca.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-local-jdbc.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-microcontainer.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-system.jar;C:\robj\dev\seam\jboss-seam\lib\jboss-transaction.jar;C:\robj\dev\seam\jboss-seam\lib\jnpserver.jar;C:\robj\dev\seam\jboss-seam\lib\myfaces-api.jar;C:\robj\dev\seam\jboss-seam\lib\myfaces-impl.jar;C:\robj\dev\seam\jboss-seam\lib\portlet-api-lib.jar;C:\robj\dev\seam\jboss-seam\lib\testng-2.5.3-jdk15.jar;C:\robj\dev\seam\jboss-seam\lib\tomahawk.jar;C:\robj\dev\seam\jboss-seam\jboss-seam.jar;C:\robj\dev\seam\jboss-seam\lib\hibernate-entitymanager.jar;C:\robj\dev\seam\jboss-seam\lib\dom4j.jar;C:\robj\dev\seam\jboss-seam\lib\jbpm-3.1-beta1.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\dom4j.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\namespace.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-common.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-common-jdbc-wrapper.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\xml-apis.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-microcontainer.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\log4j.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-transaction.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\antlr-2.7.6rc1.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-local-jdbc.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-j2se.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\commons-collections.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\xercesImpl.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-j2ee.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\commons-logging.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-jca.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-container.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-system.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jnpserver.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\hsqldb.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\concurrent.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-security.jar;C:\robj\dev\seam\jboss-seam\microcontainer\lib\jboss-dependency.jar;C:\robj\dev\seam\jboss-seam\microcontainer\conf;/C:/Documents and Settings/Rob Jellinghaus/.IntelliJIdea50/config/plugins/testngrunner/lib/testng-4.4.2-jdk15.jar;/C:/Documents and Settings/Rob Jellinghaus/.IntelliJIdea50/config/plugins/testngrunner/lib/testngrunner.jar;C:\IntelliJ IDEA 5.0\lib\idea_rt.jar" org.testng.remote.RemoteTestNG -port 5000 C:/robj/dev/seam/jboss-seam/examples/noejb/src/org/jboss/seam/example/noejb/test/testng.xml Connected to the target VM at '127.0.0.1:1234' using socket transport. INFO 15-01 10:47:04,703 (Initialization.java:loadFromResource:119) -reading properties from: /seam.properties INFO 15-01 10:47:04,703 (Initialization.java:loadFromResource:119) -reading properties from: /seam-jndi.properties INFO 15-01 10:47:04,718 (Initialization.java:init:86) -initializing Seam INFO 15-01 10:47:04,750 (Component.java:<init>:161) -Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init INFO 15-01 10:47:04,921 (Component.java:<init>:161) -Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages INFO 15-01 10:47:04,984 (Component.java:<init>:161) -Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager INFO 15-01 10:47:05,031 (Component.java:<init>:161) -Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher INFO 15-01 10:47:05,046 (Component.java:<init>:161) -Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation INFO 15-01 10:47:05,062 (Component.java:<init>:161) -Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList INFO 15-01 10:47:05,078 (Component.java:<init>:161) -Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack INFO 15-01 10:47:05,093 (Component.java:<init>:161) -Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext INFO 15-01 10:47:05,109 (Component.java:<init>:161) -Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext INFO 15-01 10:47:05,125 (Component.java:<init>:161) -Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext INFO 15-01 10:47:05,140 (Component.java:<init>:161) -Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext INFO 15-01 10:47:05,156 (Component.java:<init>:161) -Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext INFO 15-01 10:47:05,171 (Component.java:<init>:161) -Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext INFO 15-01 10:47:05,187 (Component.java:<init>:161) -Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext INFO 15-01 10:47:05,203 (Component.java:<init>:161) -Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle INFO 15-01 10:47:05,218 (Component.java:<init>:161) -Component: org.jboss.seam.core.microcontainer, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Microcontainer INFO 15-01 10:47:05,250 (Component.java:<init>:161) -Component: bookingDatabase, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedHibernateSession INFO 15-01 10:47:05,265 (Scanner.java:getClasses:75) -scanning: C:\robj\dev\seam\jboss-seam\build\classes INFO 15-01 10:47:05,390 (Component.java:<init>:161) -Component: factory, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.test.Factory INFO 15-01 10:47:05,500 (ResourceBundle.java:loadBundle:62) -resource bundle missing: messages INFO 15-01 10:47:05,546 (Component.java:<init>:161) -Component: brokenAction, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.test.BrokenAction INFO 15-01 10:47:05,593 (Component.java:<init>:161) -Component: ejb, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.test.EjbBean INFO 15-01 10:47:05,609 (Component.java:<init>:161) -Component: foo, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.test.Foo INFO 15-01 10:47:05,734 (Component.java:<init>:161) -Component: register, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.RegisterAction INFO 15-01 10:47:05,781 (Component.java:<init>:161) -Component: logout, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.LogoutAction INFO 15-01 10:47:05,812 (Component.java:<init>:161) -Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.noejb.Booking INFO 15-01 10:47:05,859 (Component.java:<init>:161) -Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.noejb.Hotel INFO 15-01 10:47:05,859 (Component.java:<init>:161) -Component: changePassword, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.ChangePasswordAction INFO 15-01 10:47:05,906 (Component.java:<init>:161) -Component: login, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.LoginAction INFO 15-01 10:47:05,953 (Component.java:<init>:161) -Component: hotelBooking, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.HotelBookingAction INFO 15-01 10:47:06,015 (Component.java:<init>:161) -Component: action, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.test.Action INFO 15-01 10:47:06,031 (Component.java:<init>:161) -Component: bookingList, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.BookingListAction INFO 15-01 10:47:06,062 (Component.java:<init>:161) -Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.jboss.seam.example.noejb.User INFO 15-01 10:47:06,078 (Component.java:<init>:161) -Component: bar, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.test.Bar INFO 15-01 10:47:07,687 (TransactionManagerFactory.java:getTransactionManager:28) -starting JTA transaction manager INFO 15-01 10:47:08,125 (DataSourceFactory.java:getDataSource:42) -starting Datasource at JNDI name: java:/noejbDatasource INFO 15-01 10:47:08,140 (LocalTxDataSource.java:bindConnectionFactory:102) -Bound datasource to JNDI name 'java:/noejbDatasource' INFO 15-01 10:47:08,187 (Environment.java:<clinit>:479) -Hibernate 3.1 INFO 15-01 10:47:08,203 (Environment.java:<clinit>:509) -hibernate.properties not found INFO 15-01 10:47:08,203 (Environment.java:<clinit>:525) -using CGLIB reflection optimizer INFO 15-01 10:47:08,218 (Environment.java:<clinit>:555) -using JDK 1.4 java.sql.Timestamp handling INFO 15-01 10:47:08,359 (Configuration.java:configure:1286) -configuring from resource: /hibernate.cfg.xml INFO 15-01 10:47:08,359 (Configuration.java:getConfigurationInputStream:1263) -Configuration resource: /hibernate.cfg.xml INFO 15-01 10:47:08,515 (Configuration.java:doConfigure:1397) -Configured SessionFactory: bookingDatabase INFO 15-01 10:47:08,578 (AnnotationBinder.java:bindClass:340) -Binding entity from annotated class: java.lang.Class INFO 15-01 10:47:08,640 (EntityBinder.java:bindTable:298) -Bind entity org.jboss.seam.example.noejb.Hotel on table Hotel INFO 15-01 10:47:08,718 (AnnotationBinder.java:bindClass:340) -Binding entity from annotated class: java.lang.Class INFO 15-01 10:47:08,718 (EntityBinder.java:bindTable:298) -Bind entity org.jboss.seam.example.noejb.User on table User INFO 15-01 10:47:08,734 (AnnotationBinder.java:bindClass:340) -Binding entity from annotated class: java.lang.Class INFO 15-01 10:47:08,734 (EntityBinder.java:bindTable:298) -Bind entity org.jboss.seam.example.noejb.Booking on table Booking INFO 15-01 10:47:08,890 (Configuration.java:secondPassCompile:1022) -processing extends queue INFO 15-01 10:47:08,890 (Configuration.java:secondPassCompile:1026) -processing collection mappings INFO 15-01 10:47:08,890 (Configuration.java:secondPassCompile:1035) -processing association property references INFO 15-01 10:47:08,890 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints INFO 15-01 10:47:08,921 (NamingHelper.java:getInitialContext:26) -JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} INFO 15-01 10:47:08,921 (DatasourceConnectionProvider.java:configure:61) -Using datasource: java:noejbDatasource INFO 15-01 10:47:09,375 (SettingsFactory.java:buildSettings:77) -RDBMS: HSQL Database Engine, version: 1.7.2 INFO 15-01 10:47:09,375 (SettingsFactory.java:buildSettings:78) -JDBC driver: HSQL Database Engine Driver, version: 1.7.2 INFO 15-01 10:47:09,421 (Dialect.java:<init>:103) -Using dialect: org.hibernate.dialect.HSQLDialect INFO 15-01 10:47:09,437 (TransactionFactoryFactory.java:buildTransactionFactory:34) -Transaction strategy: org.hibernate.transaction.JTATransactionFactory INFO 15-01 10:47:09,437 (NamingHelper.java:getInitialContext:26) -JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} INFO 15-01 10:47:09,453 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:38) -instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup INFO 15-01 10:47:09,453 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:42) -instantiated TransactionManagerLookup INFO 15-01 10:47:09,453 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:38) -instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup INFO 15-01 10:47:09,453 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:42) -instantiated TransactionManagerLookup INFO 15-01 10:47:09,468 (SettingsFactory.java:buildSettings:125) -Automatic flush during beforeCompletion(): enabled INFO 15-01 10:47:09,468 (SettingsFactory.java:buildSettings:129) -Automatic session close at end of transaction: disabled INFO 15-01 10:47:09,468 (SettingsFactory.java:buildSettings:136) -JDBC batch size: 15 INFO 15-01 10:47:09,468 (SettingsFactory.java:buildSettings:139) -JDBC batch updates for versioned data: disabled INFO 15-01 10:47:09,468 (SettingsFactory.java:buildSettings:144) -Scrollable result sets: enabled INFO 15-01 10:47:09,468 (SettingsFactory.java:buildSettings:152) -JDBC3 getGeneratedKeys(): disabled INFO 15-01 10:47:09,468 (SettingsFactory.java:buildSettings:160) -Connection release mode: after_statement INFO 15-01 10:47:09,484 (SettingsFactory.java:buildSettings:187) -Default batch fetch size: 1 INFO 15-01 10:47:09,484 (SettingsFactory.java:buildSettings:191) -Generate SQL with comments: disabled INFO 15-01 10:47:09,484 (SettingsFactory.java:buildSettings:195) -Order SQL updates by primary key: disabled INFO 15-01 10:47:09,484 (SettingsFactory.java:createQueryTranslatorFactory:338) -Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory INFO 15-01 10:47:09,484 (ASTQueryTranslatorFactory.java:<init>:21) -Using ASTQueryTranslatorFactory INFO 15-01 10:47:09,500 (SettingsFactory.java:buildSettings:203) -Query language substitutions: {} INFO 15-01 10:47:09,500 (SettingsFactory.java:buildSettings:209) -Second-level cache: enabled INFO 15-01 10:47:09,500 (SettingsFactory.java:buildSettings:213) -Query cache: disabled INFO 15-01 10:47:09,500 (SettingsFactory.java:createCacheProvider:325) -Cache provider: org.hibernate.cache.HashtableCacheProvider INFO 15-01 10:47:09,500 (SettingsFactory.java:buildSettings:228) -Optimize cache for minimal puts: disabled INFO 15-01 10:47:09,515 (SettingsFactory.java:buildSettings:237) -Structured second-level cache entries: disabled INFO 15-01 10:47:09,515 (SettingsFactory.java:buildSettings:264) -Statistics: disabled INFO 15-01 10:47:09,515 (SettingsFactory.java:buildSettings:268) -Deleted entity synthetic identifier rollback: disabled INFO 15-01 10:47:09,531 (SettingsFactory.java:buildSettings:283) -Default entity-mode: pojo INFO 15-01 10:47:09,578 (SessionFactoryImpl.java:<init>:153) -building session factory INFO 15-01 10:47:10,046 (SessionFactoryObjectFactory.java:addInstance:86) -Factory name: bookingDatabase INFO 15-01 10:47:10,046 (NamingHelper.java:getInitialContext:26) -JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} INFO 15-01 10:47:10,046 (SessionFactoryObjectFactory.java:addInstance:91) -Bound factory to JNDI name: bookingDatabase WARN 15-01 10:47:10,046 (SessionFactoryObjectFactory.java:addInstance:101) -InitialContext did not implement EventContext INFO 15-01 10:47:10,062 (Configuration.java:secondPassCompile:1022) -processing extends queue INFO 15-01 10:47:10,062 (Configuration.java:secondPassCompile:1026) -processing collection mappings INFO 15-01 10:47:10,062 (Configuration.java:secondPassCompile:1035) -processing association property references INFO 15-01 10:47:10,062 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints INFO 15-01 10:47:10,062 (Configuration.java:secondPassCompile:1022) -processing extends queue INFO 15-01 10:47:10,062 (Configuration.java:secondPassCompile:1026) -processing collection mappings INFO 15-01 10:47:10,078 (Configuration.java:secondPassCompile:1035) -processing association property references INFO 15-01 10:47:10,078 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints INFO 15-01 10:47:10,078 (SchemaExport.java:execute:155) -Running hbm2ddl schema export INFO 15-01 10:47:10,078 (SchemaExport.java:execute:182) -exporting generated schema to database INFO 15-01 10:47:10,093 (SchemaExport.java:execute:202) -schema export complete INFO 15-01 10:47:10,109 (Configuration.java:secondPassCompile:1022) -processing extends queue INFO 15-01 10:47:10,109 (Configuration.java:secondPassCompile:1026) -processing collection mappings INFO 15-01 10:47:10,109 (Configuration.java:secondPassCompile:1035) -processing association property references INFO 15-01 10:47:10,109 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints INFO 15-01 10:47:10,109 (Configuration.java:secondPassCompile:1022) -processing extends queue INFO 15-01 10:47:10,109 (Configuration.java:secondPassCompile:1026) -processing collection mappings INFO 15-01 10:47:10,125 (Configuration.java:secondPassCompile:1035) -processing association property references INFO 15-01 10:47:10,125 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints INFO 15-01 10:47:10,125 (NamingHelper.java:getInitialContext:26) -JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} INFO 15-01 10:47:10,125 (SessionFactoryImpl.java:checkNamedQueries:353) -Checking 0 named HQL queries INFO 15-01 10:47:10,125 (SessionFactoryImpl.java:checkNamedQueries:373) -Checking 0 named SQL queries INFO 15-01 10:47:10,140 (Initialization.java:init:91) -done initializing Seam WARN 15-01 11:00:37,421 (TransactionImpl.java:timedOut:990) -Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1137350827750/3, BranchQual=null:1137350827750, localId=0:3] timed out. status=STATUS_ACTIVE java.lang.AssertionError at org.jboss.seam.example.noejb.test.LoginTest$2.invokeApplication(LoginTest.java:65) at org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:187) at org.jboss.seam.example.noejb.test.LoginTest.testLogin(LoginTest.java:49) 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:294) at org.testng.internal.Invoker.invokeMethod(Invoker.java:343) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:462) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:61) at org.testng.TestRunner.privateRun(TestRunner.java:584) at org.testng.TestRunner.run(TestRunner.java:479) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:191) at org.testng.SuiteRunner.run(SuiteRunner.java:117) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:99) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:138) FAILED: org.jboss.seam.example.noejb.test.LoginTest.testLogin() java.lang.AssertionError at org.jboss.seam.example.noejb.test.LoginTest$2.invokeApplication(LoginTest.java:65) at org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:187) at org.jboss.seam.example.noejb.test.LoginTest.testLogin(LoginTest.java:49) 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:294) at org.testng.internal.Invoker.invokeMethod(Invoker.java:343) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:462) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:61) at org.testng.TestRunner.privateRun(TestRunner.java:584) at org.testng.TestRunner.run(TestRunner.java:479) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:191) at org.testng.SuiteRunner.run(SuiteRunner.java:117) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:99) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:138) =============================================== Login Tests run: 1, Failures: 1, Skips: 0 =============================================== INFO 15-01 11:01:01,109 (Initialization.java:loadFromResource:119) -reading properties from: /seam.properties INFO 15-01 11:01:01,109 (Initialization.java:loadFromResource:119) -reading properties from: /seam-jndi.properties INFO 15-01 11:01:01,109 (Initialization.java:init:86) -initializing Seam INFO 15-01 11:01:01,125 (Component.java:<init>:161) -Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init INFO 15-01 11:01:01,125 (Component.java:<init>:161) -Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages INFO 15-01 11:01:01,140 (Component.java:<init>:161) -Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager INFO 15-01 11:01:01,156 (Component.java:<init>:161) -Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher INFO 15-01 11:01:01,171 (Component.java:<init>:161) -Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation INFO 15-01 11:01:01,171 (Component.java:<init>:161) -Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList INFO 15-01 11:01:01,187 (Component.java:<init>:161) -Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack INFO 15-01 11:01:01,187 (Component.java:<init>:161) -Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext INFO 15-01 11:01:01,218 (Component.java:<init>:161) -Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext INFO 15-01 11:01:01,218 (Component.java:<init>:161) -Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext INFO 15-01 11:01:01,234 (Component.java:<init>:161) -Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext INFO 15-01 11:01:01,234 (Component.java:<init>:161) -Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext INFO 15-01 11:01:01,250 (Component.java:<init>:161) -Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext INFO 15-01 11:01:01,250 (Component.java:<init>:161) -Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext INFO 15-01 11:01:01,281 (Component.java:<init>:161) -Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle INFO 15-01 11:01:01,312 (Component.java:<init>:161) -Component: org.jboss.seam.core.microcontainer, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Microcontainer INFO 15-01 11:01:01,312 (Component.java:<init>:161) -Component: bookingDatabase, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedHibernateSession INFO 15-01 11:01:01,328 (Scanner.java:getClasses:75) -scanning: C:\robj\dev\seam\jboss-seam\build\classes INFO 15-01 11:01:01,343 (Component.java:<init>:161) -Component: factory, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.test.Factory INFO 15-01 11:01:01,359 (ResourceBundle.java:loadBundle:62) -resource bundle missing: messages INFO 15-01 11:01:01,359 (Component.java:<init>:161) -Component: brokenAction, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.test.BrokenAction INFO 15-01 11:01:01,375 (Component.java:<init>:161) -Component: ejb, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.test.EjbBean INFO 15-01 11:01:01,390 (Component.java:<init>:161) -Component: foo, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.test.Foo INFO 15-01 11:01:01,406 (Component.java:<init>:161) -Component: register, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.RegisterAction INFO 15-01 11:01:01,421 (Component.java:<init>:161) -Component: logout, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.LogoutAction INFO 15-01 11:01:01,453 (Component.java:<init>:161) -Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.noejb.Booking INFO 15-01 11:01:01,453 (Component.java:<init>:161) -Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.noejb.Hotel INFO 15-01 11:01:01,468 (Component.java:<init>:161) -Component: changePassword, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.ChangePasswordAction INFO 15-01 11:01:01,500 (Component.java:<init>:161) -Component: login, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.LoginAction INFO 15-01 11:01:01,515 (Component.java:<init>:161) -Component: hotelBooking, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.HotelBookingAction INFO 15-01 11:01:01,578 (Component.java:<init>:161) -Component: action, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.test.Action INFO 15-01 11:01:01,593 (Component.java:<init>:161) -Component: bookingList, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.BookingListAction INFO 15-01 11:01:01,625 (Component.java:<init>:161) -Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.jboss.seam.example.noejb.User INFO 15-01 11:01:01,625 (Component.java:<init>:161) -Component: bar, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.test.Bar INFO 15-01 11:01:01,703 (TransactionManagerFactory.java:getTransactionManager:28) -starting JTA transaction manager INFO 15-01 11:01:01,718 (DataSourceFactory.java:getDataSource:42) -starting Datasource at JNDI name: java:/noejbDatasource INFO 15-01 11:01:01,718 (LocalTxDataSource.java:bindConnectionFactory:102) -Bound datasource to JNDI name 'java:/noejbDatasource' INFO 15-01 11:01:01,718 (Configuration.java:configure:1286) -configuring from resource: /hibernate.cfg.xml INFO 15-01 11:01:01,734 (Configuration.java:getConfigurationInputStream:1263) -Configuration resource: /hibernate.cfg.xml INFO 15-01 11:01:01,734 (Configuration.java:doConfigure:1397) -Configured SessionFactory: bookingDatabase INFO 15-01 11:01:01,890 (AnnotationBinder.java:bindClass:340) -Binding entity from annotated class: java.lang.Class INFO 15-01 11:01:01,890 (EntityBinder.java:bindTable:298) -Bind entity org.jboss.seam.example.noejb.Hotel on table Hotel INFO 15-01 11:01:01,906 (AnnotationBinder.java:bindClass:340) -Binding entity from annotated class: java.lang.Class INFO 15-01 11:01:01,906 (EntityBinder.java:bindTable:298) -Bind entity org.jboss.seam.example.noejb.User on table User INFO 15-01 11:01:01,921 (AnnotationBinder.java:bindClass:340) -Binding entity from annotated class: java.lang.Class INFO 15-01 11:01:01,921 (EntityBinder.java:bindTable:298) -Bind entity org.jboss.seam.example.noejb.Booking on table Booking INFO 15-01 11:01:01,921 (Configuration.java:secondPassCompile:1022) -processing extends queue INFO 15-01 11:01:01,921 (Configuration.java:secondPassCompile:1026) -processing collection mappings INFO 15-01 11:01:01,921 (Configuration.java:secondPassCompile:1035) -processing association property references INFO 15-01 11:01:01,937 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints INFO 15-01 11:01:01,937 (NamingHelper.java:getInitialContext:26) -JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} INFO 15-01 11:01:01,937 (DatasourceConnectionProvider.java:configure:61) -Using datasource: java:noejbDatasource WARN 15-01 11:01:01,953 (SettingsFactory.java:buildSettings:103) -Could not obtain connection metadata org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1137350827750/3, BranchQual=null:1137350827750, localId=0:3]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1137350827750/3, BranchQual=null:1137350827750, localId=0:3]) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:79) at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1859) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1152) at org.jboss.seam.microcontainer.HibernateFactory.getSessionFactory(HibernateFactory.java:100) 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.joinpoint.plugins.reflect.ReflectMethodJoinPoint.dispatch(ReflectMethodJoinPoint.java:57) at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$InstantiateAction.installAction(KernelControllerContextActions.java:152) at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:84) at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:36) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:211) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:560) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:328) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:411) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:361) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:207) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:133) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:257) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:236) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:87) at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:70) at org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap.deploy(StandaloneBootstrap.java:94) at org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap.bootstrap(StandaloneBootstrap.java:73) at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:87) at org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap.main(StandaloneBootstrap.java:46) at org.jboss.seam.core.Microcontainer.startup(Microcontainer.java:28) 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.Component.callComponentMethod(Component.java:1112) at org.jboss.seam.Component.callCreateMethod(Component.java:1100) at org.jboss.seam.Component.newInstance(Component.java:1089) at org.jboss.seam.Component.getInstance(Component.java:1037) at org.jboss.seam.Component.getInstance(Component.java:1020) at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:88) at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:68) at org.jboss.seam.init.Initialization.init(Initialization.java:90) at org.jboss.seam.mock.SeamTest.init(SeamTest.java:247) 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:294) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:282) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:151) at org.testng.TestRunner.invokeClassConfigurations(TestRunner.java:669) at org.testng.TestRunner.privateRun(TestRunner.java:503) at org.testng.TestRunner.run(TestRunner.java:479) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:191) at org.testng.SuiteRunner.run(SuiteRunner.java:117) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:99) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:138) Caused by: javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1137350827750/3, BranchQual=null:1137350827750, localId=0:3] at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:331) at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:464) at org.jboss.resource.adapter.jdbc.local.LocalTxDataSource$ConnectionManagerDelegate.allocateConnection(LocalTxDataSource.java:63) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:73) ... 58 more INFO 15-01 11:01:01,953 (Dialect.java:<init>:103) -Using dialect: org.hibernate.dialect.HSQLDialect INFO 15-01 11:01:01,953 (TransactionFactoryFactory.java:buildTransactionFactory:34) -Transaction strategy: org.hibernate.transaction.JTATransactionFactory INFO 15-01 11:01:01,953 (NamingHelper.java:getInitialContext:26) -JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} INFO 15-01 11:01:01,968 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:38) -instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup INFO 15-01 11:01:01,968 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:42) -instantiated TransactionManagerLookup INFO 15-01 11:01:01,968 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:38) -instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup INFO 15-01 11:01:01,968 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:42) -instantiated TransactionManagerLookup INFO 15-01 11:01:01,968 (SettingsFactory.java:buildSettings:125) -Automatic flush during beforeCompletion(): enabled INFO 15-01 11:01:01,968 (SettingsFactory.java:buildSettings:129) -Automatic session close at end of transaction: disabled INFO 15-01 11:01:01,968 (SettingsFactory.java:buildSettings:144) -Scrollable result sets: disabled INFO 15-01 11:01:01,984 (SettingsFactory.java:buildSettings:152) -JDBC3 getGeneratedKeys(): disabled INFO 15-01 11:01:01,984 (SettingsFactory.java:buildSettings:160) -Connection release mode: after_statement INFO 15-01 11:01:01,984 (SettingsFactory.java:buildSettings:187) -Default batch fetch size: 1 INFO 15-01 11:01:01,984 (SettingsFactory.java:buildSettings:191) -Generate SQL with comments: disabled INFO 15-01 11:01:01,984 (SettingsFactory.java:buildSettings:195) -Order SQL updates by primary key: disabled INFO 15-01 11:01:01,984 (SettingsFactory.java:createQueryTranslatorFactory:338) -Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory INFO 15-01 11:01:01,984 (ASTQueryTranslatorFactory.java:<init>:21) -Using ASTQueryTranslatorFactory INFO 15-01 11:01:01,984 (SettingsFactory.java:buildSettings:203) -Query language substitutions: {} INFO 15-01 11:01:01,984 (SettingsFactory.java:buildSettings:209) -Second-level cache: enabled INFO 15-01 11:01:01,984 (SettingsFactory.java:buildSettings:213) -Query cache: disabled INFO 15-01 11:01:01,984 (SettingsFactory.java:createCacheProvider:325) -Cache provider: org.hibernate.cache.HashtableCacheProvider INFO 15-01 11:01:01,984 (SettingsFactory.java:buildSettings:228) -Optimize cache for minimal puts: disabled INFO 15-01 11:01:01,984 (SettingsFactory.java:buildSettings:237) -Structured second-level cache entries: disabled INFO 15-01 11:01:02,000 (SettingsFactory.java:buildSettings:264) -Statistics: disabled INFO 15-01 11:01:02,000 (SettingsFactory.java:buildSettings:268) -Deleted entity synthetic identifier rollback: disabled INFO 15-01 11:01:02,000 (SettingsFactory.java:buildSettings:283) -Default entity-mode: pojo INFO 15-01 11:01:02,000 (SessionFactoryImpl.java:<init>:153) -building session factory INFO 15-01 11:01:02,078 (SessionFactoryObjectFactory.java:addInstance:86) -Factory name: bookingDatabase INFO 15-01 11:01:02,078 (NamingHelper.java:getInitialContext:26) -JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} INFO 15-01 11:01:02,078 (SessionFactoryObjectFactory.java:addInstance:91) -Bound factory to JNDI name: bookingDatabase WARN 15-01 11:01:02,078 (SessionFactoryObjectFactory.java:addInstance:101) -InitialContext did not implement EventContext INFO 15-01 11:01:02,078 (Configuration.java:secondPassCompile:1022) -processing extends queue INFO 15-01 11:01:02,078 (Configuration.java:secondPassCompile:1026) -processing collection mappings INFO 15-01 11:01:02,078 (Configuration.java:secondPassCompile:1035) -processing association property references INFO 15-01 11:01:02,078 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints INFO 15-01 11:01:02,078 (Configuration.java:secondPassCompile:1022) -processing extends queue INFO 15-01 11:01:02,093 (Configuration.java:secondPassCompile:1026) -processing collection mappings INFO 15-01 11:01:02,093 (Configuration.java:secondPassCompile:1035) -processing association property references INFO 15-01 11:01:02,093 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints INFO 15-01 11:01:02,109 (SchemaExport.java:execute:155) -Running hbm2ddl schema export INFO 15-01 11:01:02,109 (SchemaExport.java:execute:182) -exporting generated schema to database ERROR 15-01 11:01:02,109 (SchemaExport.java:execute:208) -schema export unsuccessful org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1137350827750/3, BranchQual=null:1137350827750, localId=0:3]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1137350827750/3, BranchQual=null:1137350827750, localId=0:3]) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:79) at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69) at org.hibernate.tool.hbm2ddl.SchemaExport$SuppliedConnectionProviderConnectionHelper.getConnection(SchemaExport.java:432) at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:183) at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:135) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:294) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154) at org.jboss.seam.microcontainer.HibernateFactory.getSessionFactory(HibernateFactory.java:100) 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.joinpoint.plugins.reflect.ReflectMethodJoinPoint.dispatch(ReflectMethodJoinPoint.java:57) at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$InstantiateAction.installAction(KernelControllerContextActions.java:152) at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:84) at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:36) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:211) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:560) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:328) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:411) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:361) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:207) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:133) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:257) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:236) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:87) at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:70) at org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap.deploy(StandaloneBootstrap.java:94) at org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap.bootstrap(StandaloneBootstrap.java:73) at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:87) at org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap.main(StandaloneBootstrap.java:46) at org.jboss.seam.core.Microcontainer.startup(Microcontainer.java:28) 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.Component.callComponentMethod(Component.java:1112) at org.jboss.seam.Component.callCreateMethod(Component.java:1100) at org.jboss.seam.Component.newInstance(Component.java:1089) at org.jboss.seam.Component.getInstance(Component.java:1037) at org.jboss.seam.Component.getInstance(Component.java:1020) at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:88) at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:68) at org.jboss.seam.init.Initialization.init(Initialization.java:90) at org.jboss.seam.mock.SeamTest.init(SeamTest.java:247) 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:294) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:282) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:151) at org.testng.TestRunner.invokeClassConfigurations(TestRunner.java:669) at org.testng.TestRunner.privateRun(TestRunner.java:503) at org.testng.TestRunner.run(TestRunner.java:479) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:191) at org.testng.SuiteRunner.run(SuiteRunner.java:117) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:99) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:138) Caused by: javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1137350827750/3, BranchQual=null:1137350827750, localId=0:3] at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:331) at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:464) at org.jboss.resource.adapter.jdbc.local.LocalTxDataSource$ConnectionManagerDelegate.allocateConnection(LocalTxDataSource.java:63) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:73) ... 60 more INFO 15-01 11:01:02,109 (Configuration.java:secondPassCompile:1022) -processing extends queue INFO 15-01 11:01:02,125 (Configuration.java:secondPassCompile:1026) -processing collection mappings INFO 15-01 11:01:02,125 (Configuration.java:secondPassCompile:1035) -processing association property references INFO 15-01 11:01:02,125 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints INFO 15-01 11:01:02,125 (Configuration.java:secondPassCompile:1022) -processing extends queue INFO 15-01 11:01:02,125 (Configuration.java:secondPassCompile:1026) -processing collection mappings INFO 15-01 11:01:02,125 (Configuration.java:secondPassCompile:1035) -processing association property references INFO 15-01 11:01:02,125 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints INFO 15-01 11:01:02,125 (NamingHelper.java:getInitialContext:26) -JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} INFO 15-01 11:01:02,140 (SessionFactoryImpl.java:checkNamedQueries:353) -Checking 0 named HQL queries INFO 15-01 11:01:02,140 (SessionFactoryImpl.java:checkNamedQueries:373) -Checking 0 named SQL queries INFO 15-01 11:01:02,140 (Initialization.java:init:91) -done initializing Seam java.lang.IllegalStateException: Could not start transaction at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.beforePhase(SeamExtendedManagedPersistencePhaseListener.java:41) at org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:168) at org.jboss.seam.example.noejb.test.BookingTest.testBookHotel(BookingTest.java:36) 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:294) at org.testng.internal.Invoker.invokeMethod(Invoker.java:343) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:462) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:61) at org.testng.TestRunner.privateRun(TestRunner.java:584) at org.testng.TestRunner.run(TestRunner.java:479) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:191) at org.testng.SuiteRunner.run(SuiteRunner.java:117) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:99) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:138) Caused by: javax.transaction.NotSupportedException: Transaction already active, cannot nest transactions. at org.jboss.tm.TxManager.begin(TxManager.java:367) at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.begin(ServerVMClientUserTransaction.java:108) at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.beforePhase(SeamExtendedManagedPersistencePhaseListener.java:36) ... 16 more FAILED: org.jboss.seam.example.noejb.test.BookingTest.testBookHotel() java.lang.IllegalStateException: Could not start transaction at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.beforePhase(SeamExtendedManagedPersistencePhaseListener.java:41) at org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:168) at org.jboss.seam.example.noejb.test.BookingTest.testBookHotel(BookingTest.java:36) 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:294) at org.testng.internal.Invoker.invokeMethod(Invoker.java:343) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:462) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:61) at org.testng.TestRunner.privateRun(TestRunner.java:584) at org.testng.TestRunner.run(TestRunner.java:479) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:191) at org.testng.SuiteRunner.run(SuiteRunner.java:117) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:99) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:138) Caused by: javax.transaction.NotSupportedException: Transaction already active, cannot nest transactions. at org.jboss.tm.TxManager.begin(TxManager.java:367) at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.begin(ServerVMClientUserTransaction.java:108) at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.beforePhase(SeamExtendedManagedPersistencePhaseListener.java:36) ... 16 more =============================================== Booking Tests run: 1, Failures: 1, Skips: 0 =============================================== INFO 15-01 11:01:02,156 (Initialization.java:loadFromResource:119) -reading properties from: /seam.properties INFO 15-01 11:01:02,156 (Initialization.java:loadFromResource:119) -reading properties from: /seam-jndi.properties INFO 15-01 11:01:02,156 (Initialization.java:init:86) -initializing Seam INFO 15-01 11:01:02,156 (Component.java:<init>:161) -Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init INFO 15-01 11:01:02,171 (Component.java:<init>:161) -Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages INFO 15-01 11:01:02,187 (Component.java:<init>:161) -Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager INFO 15-01 11:01:02,203 (Component.java:<init>:161) -Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher INFO 15-01 11:01:02,218 (Component.java:<init>:161) -Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation INFO 15-01 11:01:02,218 (Component.java:<init>:161) -Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList INFO 15-01 11:01:02,234 (Component.java:<init>:161) -Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack INFO 15-01 11:01:02,234 (Component.java:<init>:161) -Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext INFO 15-01 11:01:02,250 (Component.java:<init>:161) -Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext INFO 15-01 11:01:02,250 (Component.java:<init>:161) -Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext INFO 15-01 11:01:02,265 (Component.java:<init>:161) -Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext INFO 15-01 11:01:02,281 (Component.java:<init>:161) -Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext INFO 15-01 11:01:02,281 (Component.java:<init>:161) -Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext INFO 15-01 11:01:02,296 (Component.java:<init>:161) -Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext INFO 15-01 11:01:02,296 (Component.java:<init>:161) -Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle INFO 15-01 11:01:02,312 (Component.java:<init>:161) -Component: org.jboss.seam.core.microcontainer, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Microcontainer INFO 15-01 11:01:02,343 (Component.java:<init>:161) -Component: bookingDatabase, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedHibernateSession INFO 15-01 11:01:02,359 (Scanner.java:getClasses:75) -scanning: C:\robj\dev\seam\jboss-seam\build\classes INFO 15-01 11:01:02,375 (Component.java:<init>:161) -Component: factory, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.test.Factory INFO 15-01 11:01:02,375 (ResourceBundle.java:loadBundle:62) -resource bundle missing: messages INFO 15-01 11:01:02,390 (Component.java:<init>:161) -Component: brokenAction, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.test.BrokenAction INFO 15-01 11:01:02,390 (Component.java:<init>:161) -Component: ejb, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.test.EjbBean INFO 15-01 11:01:02,421 (Component.java:<init>:161) -Component: foo, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.test.Foo INFO 15-01 11:01:02,437 (Component.java:<init>:161) -Component: register, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.RegisterAction INFO 15-01 11:01:02,453 (Component.java:<init>:161) -Component: logout, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.LogoutAction INFO 15-01 11:01:02,484 (Component.java:<init>:161) -Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.noejb.Booking INFO 15-01 11:01:02,484 (Component.java:<init>:161) -Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.noejb.Hotel INFO 15-01 11:01:02,484 (Component.java:<init>:161) -Component: changePassword, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.ChangePasswordAction INFO 15-01 11:01:02,531 (Component.java:<init>:161) -Component: login, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.LoginAction INFO 15-01 11:01:02,546 (Component.java:<init>:161) -Component: hotelBooking, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.HotelBookingAction INFO 15-01 11:01:02,750 (Component.java:<init>:161) -Component: action, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.test.Action INFO 15-01 11:01:02,765 (Component.java:<init>:161) -Component: bookingList, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.example.noejb.BookingListAction INFO 15-01 11:01:02,796 (Component.java:<init>:161) -Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.jboss.seam.example.noejb.User INFO 15-01 11:01:02,796 (Component.java:<init>:161) -Component: bar, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.test.Bar INFO 15-01 11:01:02,859 (TransactionManagerFactory.java:getTransactionManager:28) -starting JTA transaction manager INFO 15-01 11:01:02,875 (DataSourceFactory.java:getDataSource:42) -starting Datasource at JNDI name: java:/noejbDatasource INFO 15-01 11:01:02,875 (LocalTxDataSource.java:bindConnectionFactory:102) -Bound datasource to JNDI name 'java:/noejbDatasource' INFO 15-01 11:01:02,875 (Configuration.java:configure:1286) -configuring from resource: /hibernate.cfg.xml INFO 15-01 11:01:02,875 (Configuration.java:getConfigurationInputStream:1263) -Configuration resource: /hibernate.cfg.xml INFO 15-01 11:01:02,890 (Configuration.java:doConfigure:1397) -Configured SessionFactory: bookingDatabase INFO 15-01 11:01:02,890 (AnnotationBinder.java:bindClass:340) -Binding entity from annotated class: java.lang.Class INFO 15-01 11:01:02,890 (EntityBinder.java:bindTable:298) -Bind entity org.jboss.seam.example.noejb.Hotel on table Hotel INFO 15-01 11:01:02,906 (AnnotationBinder.java:bindClass:340) -Binding entity from annotated class: java.lang.Class INFO 15-01 11:01:02,906 (EntityBinder.java:bindTable:298) -Bind entity org.jboss.seam.example.noejb.User on table User INFO 15-01 11:01:02,921 (AnnotationBinder.java:bindClass:340) -Binding entity from annotated class: java.lang.Class INFO 15-01 11:01:02,921 (EntityBinder.java:bindTable:298) -Bind entity org.jboss.seam.example.noejb.Booking on table Booking INFO 15-01 11:01:02,921 (Configuration.java:secondPassCompile:1022) -processing extends queue INFO 15-01 11:01:02,937 (Configuration.java:secondPassCompile:1026) -processing collection mappings INFO 15-01 11:01:02,937 (Configuration.java:secondPassCompile:1035) -processing association property references INFO 15-01 11:01:02,937 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints INFO 15-01 11:01:02,937 (NamingHelper.java:getInitialContext:26) -JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} INFO 15-01 11:01:02,937 (DatasourceConnectionProvider.java:configure:61) -Using datasource: java:noejbDatasource WARN 15-01 11:01:02,937 (SettingsFactory.java:buildSettings:103) -Could not obtain connection metadata org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1137350827750/3, BranchQual=null:1137350827750, localId=0:3]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=null:1137350827750/3, BranchQual=null:1137350827750, localId=0:3]) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:79) at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1859) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1152) at org.jboss.seam.microcontainer.HibernateFactory.getSessionFactory(HibernateFactory.java:100) 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.joinpoint.plugins.reflect.ReflectMethodJoinPoint.dispatch(ReflectMethodJoinPoint.java:57) at org.jboss.kernel.plugins.dependency.KernelControlle
-
3. Re: Trouble running TestNG SEAM tests using microcontainer i
robjellinghaus Jan 21, 2006 2:00 AM (in response to robjellinghaus)Well, looks like they moved this thread out of the microcontainer forum after all.
In any case, I did get this working eventually -- required many iterations of IDEA project configuration. Basically, "ant testexample" populates the build/test directory, which TestNG is fairly particular about. So you need to have build/test as your test output directory, and you need to NOT exclude output directories, and you need to run "ant testexample" before running TestNG under IDEA. It is probably possible to do better than this, but that's good enough for me for right now.
Cheers!
Rob -
4. Re: Trouble running TestNG SEAM tests using microcontainer i
gavin.king Jan 21, 2006 2:53 AM (in response to robjellinghaus)Rob, any chance you would be able to write a step-by-step "Running the tests in IDEA" for us, so that I can add that to the readme.txt files?
I already have "Running the tests in Eclipse" in all the readmes.