6 Replies Latest reply on Jan 21, 2006 2:01 AM by robjellinghaus

    Running noejb "ant testexample" under IDEA TestNG plugin?

    robjellinghaus

      I'm taking the noejb example and I'm using it as a starting point for a sample app of my own. In doing this I've taken the classes and renamed them, and done a few other minor modifications. The original code passes "ant testexample" cleanly.

      Now my repackaged example is failing "ant testexample" -- the changePassword test in Hotel Booking. It says "the password was already changed". Interesting. I'd like to do some stepping through the code to see if I can figure out what's what.

      So I load up the TestNG plugin into IDEA 5.0 and try to run the LoginTest class (just to test out the plugin). And I get the following IDEA messages:

      Information: Compilation completed with 1 errors and 0 warnings
      Information: 1 error
      Information: 0 warnings
      Error: C:\<my project directory>\WEB-INF (The system cannot find the file specified)

      Well, of course it can't. There IS no WEB-INF directory under the main project directory. But why is it even looking for one?

      It's very possible this is an error in my setting up TestNG inside IDEA -- I haven't dug into the build file to see how it's launching TestNG. So really I'm just looking for a sanity check. Has anyone / is anyone using IDEA and the TestNG plugin to enable stepping through SEAM unit tests? Is this no big deal and I should just work on it some more? Or is this a never-before-tried combination and I'm in unknown territory?

      Cheers!
      Rob

        • 1. Re: Running noejb
          gavin.king

          We are all eclipse users here, so no, we have not tried to run the tests in IntelliJ as far as I know.

          The tests are working for me both from Ant, and from the eclipse TestNG plugin.


          Are you sure you have followed the instructions in readme.txt and got all required folders in the classpath? Esp. the resources folder...

          • 2. Re: Running noejb
            robjellinghaus

            OK, it turned out to be a build misconfiguration in IDEA. Now the plugin comes up and *starts* to run the test. But then it blows up.

            I'm going to do the horrid paste-the-mondo-stacktrace thing, knowing that Gavin will probably spend the least time diagnosing this if he has the biggest possible stacktrace to look at :-)

            This error comes up when I configure it to run the entire noejb/test/testng.xml suite. All of the subtests fail, but here's the stack dump from the first one. There sure is a lot of stuff that works properly before it blows up with the "IllegalStateException: Already installed Naming" problem....

            And this is with the absolute latest CVS, from tonight.

            Thanks for any clues,
            Rob

            C:\jdk1.5.0_06\bin\java -ea -Xdebug -Xrunjdwp:transport=dt_socket,address=highball:1644,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\p4_robj-home-desktop2\replog\main\build\exploded\WEB-INF\classes;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\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\p4_robj-home-desktop2\replog\main\resources;C:\robj\dev\p4_robj-home-desktop2\replog\main\build\test;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/p4_robj-home-desktop2/replog/main/src/com/robjsoftware/replog/test/testng.xml
            Connected to the target VM at '127.0.0.1:1644' using socket transport.
            INFO 10-01 23:00:49,015 (Initialization.java:loadFromResource:119) -reading properties from: /seam.properties
            INFO 10-01 23:00:49,015 (Initialization.java:loadFromResource:119) -reading properties from: /seam-jndi.properties
            INFO 10-01 23:00:49,031 (Initialization.java:init:86) -initializing Seam
            INFO 10-01 23:00:49,062 (Component.java:<init>:161) -Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
            INFO 10-01 23:00:49,296 (Component.java:<init>:161) -Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
            INFO 10-01 23:00:49,328 (Component.java:<init>:161) -Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
            INFO 10-01 23:00:49,359 (Component.java:<init>:161) -Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
            INFO 10-01 23:00:49,375 (Component.java:<init>:161) -Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
            INFO 10-01 23:00:49,390 (Component.java:<init>:161) -Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
            INFO 10-01 23:00:49,406 (Component.java:<init>:161) -Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
            INFO 10-01 23:00:49,437 (Component.java:<init>:161) -Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
            INFO 10-01 23:00:49,453 (Component.java:<init>:161) -Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
            INFO 10-01 23:00:49,468 (Component.java:<init>:161) -Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
            INFO 10-01 23:00:49,484 (Component.java:<init>:161) -Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
            INFO 10-01 23:00:49,531 (Component.java:<init>:161) -Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
            INFO 10-01 23:00:49,546 (Component.java:<init>:161) -Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
            INFO 10-01 23:00:49,546 (Component.java:<init>:161) -Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
            INFO 10-01 23:00:49,562 (Component.java:<init>:161) -Component: resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
            INFO 10-01 23:00:49,593 (Component.java:<init>:161) -Component: org.jboss.seam.core.microcontainer, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Microcontainer
            INFO 10-01 23:00:49,625 (Component.java:<init>:161) -Component: bookingDatabase, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.ManagedHibernateSession
            INFO 10-01 23:00:49,640 (Scanner.java:getClasses:75) -scanning: C:\robj\dev\p4_robj-home-desktop2\replog\main\build\exploded\WEB-INF\classes
            INFO 10-01 23:00:49,671 (Scanner.java:getClasses:75) -scanning: C:\robj\dev\p4_robj-home-desktop2\replog\main\resources
            INFO 10-01 23:00:49,671 (Scanner.java:getClasses:75) -scanning: C:\robj\dev\p4_robj-home-desktop2\replog\main\build\test
            INFO 10-01 23:00:49,687 (Component.java:<init>:161) -Component: changePassword, scope: EVENT, type: JAVA_BEAN, class: com.robjsoftware.replog.ChangePasswordAction
            INFO 10-01 23:00:49,828 (ResourceBundle.java:loadBundle:62) -resource bundle missing: messages
            INFO 10-01 23:00:49,968 (Component.java:<init>:161) -Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: com.robjsoftware.replog.Hotel
            INFO 10-01 23:00:49,984 (Component.java:<init>:161) -Component: logout, scope: STATELESS, type: JAVA_BEAN, class: com.robjsoftware.replog.LogoutAction
            INFO 10-01 23:00:50,078 (Component.java:<init>:161) -Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: com.robjsoftware.replog.Booking
            INFO 10-01 23:00:50,109 (Component.java:<init>:161) -Component: hotelBooking, scope: CONVERSATION, type: JAVA_BEAN, class: com.robjsoftware.replog.HotelBookingAction
            INFO 10-01 23:00:50,187 (Component.java:<init>:161) -Component: login, scope: STATELESS, type: JAVA_BEAN, class: com.robjsoftware.replog.LoginAction
            INFO 10-01 23:00:50,203 (Component.java:<init>:161) -Component: category, scope: CONVERSATION, type: ENTITY_BEAN, class: com.robjsoftware.replog.domain.Category
            INFO 10-01 23:00:50,203 (Component.java:<init>:161) -Component: bookingList, scope: SESSION, type: JAVA_BEAN, class: com.robjsoftware.replog.BookingListAction
            INFO 10-01 23:00:50,250 (Component.java:<init>:161) -Component: user, scope: SESSION, type: ENTITY_BEAN, class: com.robjsoftware.replog.User
            INFO 10-01 23:00:50,265 (Component.java:<init>:161) -Component: register, scope: EVENT, type: JAVA_BEAN, class: com.robjsoftware.replog.RegisterAction
            INFO 10-01 23:00:52,062 (TransactionManagerFactory.java:getTransactionManager:28) -starting JTA transaction manager
            INFO 10-01 23:00:52,421 (DataSourceFactory.java:getDataSource:42) -starting Datasource at JNDI name: java:/noejbDatasource
            INFO 10-01 23:00:52,437 (LocalTxDataSource.java:bindConnectionFactory:102) -Bound datasource to JNDI name 'java:/noejbDatasource'
            INFO 10-01 23:00:52,500 (Environment.java:<clinit>:479) -Hibernate 3.1
            INFO 10-01 23:00:52,500 (Environment.java:<clinit>:509) -hibernate.properties not found
            INFO 10-01 23:00:52,515 (Environment.java:<clinit>:525) -using CGLIB reflection optimizer
            INFO 10-01 23:00:52,515 (Environment.java:<clinit>:555) -using JDK 1.4 java.sql.Timestamp handling
            INFO 10-01 23:00:52,625 (Configuration.java:configure:1286) -configuring from resource: /hibernate.cfg.xml
            INFO 10-01 23:00:52,640 (Configuration.java:getConfigurationInputStream:1263) -Configuration resource: /hibernate.cfg.xml
            INFO 10-01 23:00:52,796 (Configuration.java:doConfigure:1397) -Configured SessionFactory: bookingDatabase
            INFO 10-01 23:00:53,062 (AnnotationBinder.java:bindClass:340) -Binding entity from annotated class: java.lang.Class
            INFO 10-01 23:00:53,125 (EntityBinder.java:bindTable:298) -Bind entity com.robjsoftware.replog.Hotel on table Hotel
            INFO 10-01 23:00:53,203 (AnnotationBinder.java:bindClass:340) -Binding entity from annotated class: java.lang.Class
            INFO 10-01 23:00:53,203 (EntityBinder.java:bindTable:298) -Bind entity com.robjsoftware.replog.User on table User
            INFO 10-01 23:00:53,218 (AnnotationBinder.java:bindClass:340) -Binding entity from annotated class: java.lang.Class
            INFO 10-01 23:00:53,218 (EntityBinder.java:bindTable:298) -Bind entity com.robjsoftware.replog.Booking on table Booking
            INFO 10-01 23:00:53,359 (Configuration.java:secondPassCompile:1022) -processing extends queue
            INFO 10-01 23:00:53,359 (Configuration.java:secondPassCompile:1026) -processing collection mappings
            INFO 10-01 23:00:53,359 (Configuration.java:secondPassCompile:1035) -processing association property references
            INFO 10-01 23:00:53,375 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints
            INFO 10-01 23:00:53,406 (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 10-01 23:00:53,406 (DatasourceConnectionProvider.java:configure:61) -Using datasource: java:noejbDatasource
            INFO 10-01 23:00:53,890 (SettingsFactory.java:buildSettings:77) -RDBMS: HSQL Database Engine, version: 1.7.2
            INFO 10-01 23:00:53,890 (SettingsFactory.java:buildSettings:78) -JDBC driver: HSQL Database Engine Driver, version: 1.7.2
            INFO 10-01 23:00:53,937 (Dialect.java:<init>:103) -Using dialect: org.hibernate.dialect.HSQLDialect
            INFO 10-01 23:00:53,937 (TransactionFactoryFactory.java:buildTransactionFactory:34) -Transaction strategy: org.hibernate.transaction.JTATransactionFactory
            INFO 10-01 23:00:53,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 10-01 23:00:53,968 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:38) -instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
            INFO 10-01 23:00:53,968 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:42) -instantiated TransactionManagerLookup
            INFO 10-01 23:00:53,968 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:38) -instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
            INFO 10-01 23:00:53,968 (TransactionManagerLookupFactory.java:getTransactionManagerLookup:42) -instantiated TransactionManagerLookup
            INFO 10-01 23:00:53,968 (SettingsFactory.java:buildSettings:125) -Automatic flush during beforeCompletion(): enabled
            INFO 10-01 23:00:53,968 (SettingsFactory.java:buildSettings:129) -Automatic session close at end of transaction: disabled
            INFO 10-01 23:00:53,984 (SettingsFactory.java:buildSettings:136) -JDBC batch size: 15
            INFO 10-01 23:00:53,984 (SettingsFactory.java:buildSettings:139) -JDBC batch updates for versioned data: disabled
            INFO 10-01 23:00:53,984 (SettingsFactory.java:buildSettings:144) -Scrollable result sets: enabled
            INFO 10-01 23:00:53,984 (SettingsFactory.java:buildSettings:152) -JDBC3 getGeneratedKeys(): disabled
            INFO 10-01 23:00:53,984 (SettingsFactory.java:buildSettings:160) -Connection release mode: after_statement
            INFO 10-01 23:00:53,984 (SettingsFactory.java:buildSettings:187) -Default batch fetch size: 1
            INFO 10-01 23:00:53,984 (SettingsFactory.java:buildSettings:191) -Generate SQL with comments: disabled
            INFO 10-01 23:00:53,984 (SettingsFactory.java:buildSettings:195) -Order SQL updates by primary key: disabled
            INFO 10-01 23:00:54,000 (SettingsFactory.java:createQueryTranslatorFactory:338) -Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
            INFO 10-01 23:00:54,000 (ASTQueryTranslatorFactory.java:<init>:21) -Using ASTQueryTranslatorFactory
            INFO 10-01 23:00:54,000 (SettingsFactory.java:buildSettings:203) -Query language substitutions: {}
            INFO 10-01 23:00:54,015 (SettingsFactory.java:buildSettings:209) -Second-level cache: enabled
            INFO 10-01 23:00:54,015 (SettingsFactory.java:buildSettings:213) -Query cache: disabled
            INFO 10-01 23:00:54,015 (SettingsFactory.java:createCacheProvider:325) -Cache provider: org.hibernate.cache.HashtableCacheProvider
            INFO 10-01 23:00:54,015 (SettingsFactory.java:buildSettings:228) -Optimize cache for minimal puts: disabled
            INFO 10-01 23:00:54,015 (SettingsFactory.java:buildSettings:237) -Structured second-level cache entries: disabled
            INFO 10-01 23:00:54,031 (SettingsFactory.java:buildSettings:264) -Statistics: disabled
            INFO 10-01 23:00:54,031 (SettingsFactory.java:buildSettings:268) -Deleted entity synthetic identifier rollback: disabled
            INFO 10-01 23:00:54,046 (SettingsFactory.java:buildSettings:283) -Default entity-mode: pojo
            INFO 10-01 23:00:54,078 (SessionFactoryImpl.java:<init>:153) -building session factory
            INFO 10-01 23:00:54,546 (SessionFactoryObjectFactory.java:addInstance:86) -Factory name: bookingDatabase
            INFO 10-01 23:00:54,546 (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 10-01 23:00:54,546 (SessionFactoryObjectFactory.java:addInstance:91) -Bound factory to JNDI name: bookingDatabase
            WARN 10-01 23:00:54,562 (SessionFactoryObjectFactory.java:addInstance:101) -InitialContext did not implement EventContext
            INFO 10-01 23:00:54,562 (Configuration.java:secondPassCompile:1022) -processing extends queue
            INFO 10-01 23:00:54,562 (Configuration.java:secondPassCompile:1026) -processing collection mappings
            INFO 10-01 23:00:54,562 (Configuration.java:secondPassCompile:1035) -processing association property references
            INFO 10-01 23:00:54,562 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints
            INFO 10-01 23:00:54,562 (Configuration.java:secondPassCompile:1022) -processing extends queue
            INFO 10-01 23:00:54,562 (Configuration.java:secondPassCompile:1026) -processing collection mappings
            INFO 10-01 23:00:54,578 (Configuration.java:secondPassCompile:1035) -processing association property references
            INFO 10-01 23:00:54,578 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints
            INFO 10-01 23:00:54,578 (SchemaExport.java:execute:155) -Running hbm2ddl schema export
            INFO 10-01 23:00:54,578 (SchemaExport.java:execute:182) -exporting generated schema to database
            INFO 10-01 23:00:54,593 (SchemaExport.java:importScript:236) -Executing import script: /import.sql
            INFO 10-01 23:00:54,625 (SchemaExport.java:execute:202) -schema export complete
            INFO 10-01 23:00:54,640 (Configuration.java:secondPassCompile:1022) -processing extends queue
            INFO 10-01 23:00:54,640 (Configuration.java:secondPassCompile:1026) -processing collection mappings
            INFO 10-01 23:00:54,640 (Configuration.java:secondPassCompile:1035) -processing association property references
            INFO 10-01 23:00:54,640 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints
            INFO 10-01 23:00:54,640 (Configuration.java:secondPassCompile:1022) -processing extends queue
            INFO 10-01 23:00:54,656 (Configuration.java:secondPassCompile:1026) -processing collection mappings
            INFO 10-01 23:00:54,656 (Configuration.java:secondPassCompile:1035) -processing association property references
            INFO 10-01 23:00:54,656 (Configuration.java:secondPassCompile:1057) -processing foreign key constraints
            INFO 10-01 23:00:54,656 (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 10-01 23:00:54,671 (SessionFactoryImpl.java:checkNamedQueries:353) -Checking 0 named HQL queries
            INFO 10-01 23:00:54,671 (SessionFactoryImpl.java:checkNamedQueries:373) -Checking 0 named SQL queries
            java.lang.IllegalStateException: Already installed Naming
             at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:131)
             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)
            java.lang.IllegalStateException: Already installed Naming
             at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:131)
             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)
            java.lang.NullPointerException
             at org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:159)
             at com.robjsoftware.replog.test.LoginTest.testLogin(LoginTest.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.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.mock.SeamTest.init()
            java.lang.IllegalStateException: Already installed Naming
             at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:131)
             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)
            
            FAILED: com.robjsoftware.replog.test.LoginTest.testLogin()
            java.lang.NullPointerException
             at org.jboss.seam.mock.SeamTest$Script.run(SeamTest.java:159)
             at com.robjsoftware.replog.test.LoginTest.testLogin(LoginTest.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.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)
            
            SKIPPED: begin
            SKIPPED: end
            SKIPPED: cleanup
            
            ===============================================
             Login
             Tests run: 5, Failures: 2, Skips: 3
            ===============================================
            


            • 3. Re: Running noejb
              gavin.king

              Please re-ask the question in the microcontainer forum, I'm not an expert on the MC stuff.

              • 4. Re: Running noejb
                robjellinghaus

                Done:

                http://jboss.org/index.html?module=bb&op=viewtopic&t=74754

                Here's hoping they're anywhere near as responsive as you ;-)
                Cheers!
                Rob

                • 5. Re: Running noejb
                  robjellinghaus

                  Well, I've decided to set up an IDEA TestNG project running directly out of CVS source, on the theory that that's reproducible by you all.

                  Here's the latest, from the microcontainer thread:
                  http://jboss.org/index.html?module=bb&op=viewtopic&p=3917522#3917522

                  Strange that I now get different TestNG plugin behavior in two different projects :-( IDE configuration is becoming as much of a black art as Ant build maintenance....

                  If anyone here has run Seam TestNG tests under IDEA, please do speak up!

                  Cheers,
                  Rob

                  • 6. Re: Running noejb
                    robjellinghaus

                    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