6 Replies Latest reply on Sep 21, 2007 12:15 PM by nayan j

    Problem running integration test

    nayan j Newbie

      I am using Seam 1.2.1GA and testng-4.5.1

      Following test case gives me an exception:

      @Test(groups = { "login" })
       public void testSuccessfulLogin() throws Exception{
      
       new FacesRequest() {
      
       @Override
       protected void invokeApplication()
       {
       assert !isSessionInvalid();
       assert getValue("#{identity.loggedIn}").equals(false);
       }
      
       }.run();
      
       new FacesRequest(){
      
       @Override
       protected void updateModelValues() throws Exception{
       setValue("#{identity.username}","username");
       setValue("#{identity.password}","password");
       }
      
       @Override
       protected void invokeApplication(){
       invokeMethod("#{identity.login}");
       }
      
       @Override
       protected void renderResponse(){
       assert getValue("#{user.givenName}").equals("Given");
       assert getValue("#{user.lastName}").equals("Last");
      
       }
       }.run();
       }
      


      Exception:

      javax.el.PropertyNotFoundException: ELResolver cannot handle a null base Object with identifier 'user'
       at com.sun.el.lang.ELSupport.throwUnhandled(ELSupport.java:52)
       at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:75)
       at com.sun.el.parser.AstValue.getValue(AstValue.java:114)
       at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
       at org.jboss.seam.util.UnifiedELValueBinding.getValue(UnifiedELValueBinding.java:34)
       at org.jboss.seam.mock.SeamTest$Request.getValue(SeamTest.java:366)
       at us.crimnet.iss.security.test.LoginTest$2.renderResponse(LoginTest.java:43)
       at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:521)
       at us.crimnet.iss.security.test.LoginTest.testSuccessfulLogin(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:529)
       at org.testng.internal.Invoker.invokeMethod(Invoker.java:398)
       at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:625)
       at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
       at org.testng.TestRunner.privateRun(TestRunner.java:614)
       at org.testng.TestRunner.run(TestRunner.java:505)
       at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
       at org.testng.SuiteRunner.run(SuiteRunner.java:147)
       at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
       at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
       at org.testng.TestNG.run(TestNG.java:316)
       at org.testng.TestNG.privateMain(TestNG.java:666)
       at org.testng.TestNG.main(TestNG.java:608)
      
      


      Can anyone suggest how to fix this error?

        • 1. Re: Problem running integration test
          Matt Drees Master

          What is "user" supposed to be? Post the code for it.

          • 2. Re: Problem running integration test
            nayan j Newbie



            WEB-INF\components.xml specifies following:

            <security:identity authenticate-method="#{authenticator.authenticate}"/>
            



            @Name("authenticator")
            public class AuthenticatorAction {
            
             @Out(required = false, scope = SESSION)
             private User user;
            
             public boolean authenticate() {
             // does authentication here
             if( authentication successful ){
             user = new User();
             user.setGivenName("Given");
             user.setLastName("Last");
             return true;
             }
             return false;
             }
            }
            


            User.java
            @Name("user")
            @Scope(SESSION)
            public class User implements Serializable {
            
             private String username;
            
             private String password;
            
             private String lastName;
            
             private String givenName;
            
             // followed by get and set methods for all the instance variables
            }
            


            build.xml snippet to run test
            <property name="test.src" location="testsrc"/>
             <path id="testng.classpath">
             <fileset dir="${lib}/mc" includes="*.jar"/>
             <fileset dir="${lib}" includes="*.jar" excludes="commons-el-1.0.jar"/>
             <pathelement location="${build.home}/classes" />
             <pathelement location="${webinf}/classes" />
             <pathelement location="${webinf}"/>
             </path>
            
             <taskdef name="testng" classpathref="testng.classpath" classname="org.testng.TestNGAntTask" />
            
             <target name="tests.compile" depends="compile">
             <mkdir dir="${build.home}/test/classes"/>
             <javac destdir="${build.home}/classes" classpathref="testng.classpath" debug="true">
             <src path="${test.src}" />
             </javac>
             </target>
            
             <target name="test" depends="tests.compile">
             <delete dir="test-output" />
             <testng classpathref="testng.classpath" outputdir="test-output">
             <xmlfileset dir="${test.src}" includes="**/security/test/testng.xml" />
             </testng>
             </target>
            


            complete error log:
             [testng] 10:06:29,969 ERROR [SeamLoginModule] Error invoking login method
             [testng] java.lang.NullPointerException
             [testng] at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:104)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             [testng] at java.lang.reflect.Method.invoke(Unknown Source)
             [testng] at javax.security.auth.login.LoginContext.invoke(Unknown Source)
             [testng] at javax.security.auth.login.LoginContext.access$000(Unknown Source)
             [testng] at javax.security.auth.login.LoginContext$5.run(Unknown Source)
             [testng] at java.security.AccessController.doPrivileged(Native Method)
             [testng] at javax.security.auth.login.LoginContext.invokeCreatorPriv(Unknown Source)
             [testng] at javax.security.auth.login.LoginContext.login(Unknown Source)
             [testng] at org.jboss.seam.security.Identity.authenticate(Identity.java:247)
             [testng] at org.jboss.seam.security.Identity.authenticate(Identity.java:240)
             [testng] at org.jboss.seam.security.Identity.login(Identity.java:170)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             [testng] at java.lang.reflect.Method.invoke(Unknown Source)
             [testng] at com.sun.el.parser.AstValue.invoke(AstValue.java:174)
             [testng] at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:286)
             [testng] at org.jboss.seam.util.UnifiedELMethodBinding.invoke(UnifiedELMethodBinding.java:36)
             [testng] at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
             [testng] at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
             [testng] at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
             [testng] at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
             [testng] at org.jboss.seam.mock.SeamTest$Request.invokeMethod(SeamTest.java:401)
             [testng] at security.test.LoginTest$2.invokeApplication(LoginTest.java:38)
             [testng] at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:489)
             [testng] at security.test.LoginTest.testSuccessfulLogin(LoginTest.java:52)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
             [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
             [testng] at java.lang.reflect.Method.invoke(Unknown Source)
             [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
             [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
             [testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
             [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
             [testng] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
             [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
             [testng] at org.testng.TestRunner.runWorkers(TestRunner.java:678)
             [testng] at org.testng.TestRunner.privateRun(TestRunner.java:624)
             [testng] at org.testng.TestRunner.run(TestRunner.java:495)
             [testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
             [testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
             [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
             [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:190)
             [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
             [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
             [testng] at org.testng.TestNG.run(TestNG.java:699)
             [testng] at org.testng.TestNG.privateMain(TestNG.java:824)
             [testng] at org.testng.TestNG.main(TestNG.java:802)
             [testng] FAILED: testSuccessfulLogin
             [testng] javax.el.PropertyNotFoundException: ELResolver cannot handle a null base Object with identifier 'user'
             [testng] at com.sun.el.lang.ELSupport.throwUnhandled(ELSupport.java:52)
             [testng] at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:75)
             [testng] at com.sun.el.parser.AstValue.getValue(AstValue.java:114)
             [testng] at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
             [testng] at org.jboss.seam.util.UnifiedELValueBinding.getValue(UnifiedELValueBinding.java:34)
             [testng] at org.jboss.seam.mock.SeamTest$Request.getValue(SeamTest.java:366)
             [testng] at security.test.LoginTest$2.renderResponse(LoginTest.java:46)
             [testng] at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:521)
             [testng] at security.test.LoginTest.testSuccessfulLogin(LoginTest.java:52)
             [testng] ... Removed 22 stack frames
            


            • 3. Re: Problem running integration test
              nayan j Newbie


              Anyone got integration tests working.. ?

              • 4. Re: Problem running integration test
                Pete Muir Master

                Looks to me like the Identity isn't being setup correctly in your test environment, is it listed when the container starts?

                • 5. Re: Problem running integration test
                  nayan j Newbie

                  Hi Pete,

                  Thanks for the reply. You may be right. My test environment config may not be correct.. I get following messages when container starts up. note that seam complains that is find 2 instances of identity component.. I am not sure why this happens..

                  [Parser] Running:
                   [testng] ...\test\testng.xml
                   [testng] 09:49:08,621 INFO [Scanner] scanning: projectdir/WebContent/WEB-INF/lib/jboss-seam.jar
                   [testng] 09:49:08,637 INFO [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.security
                   [testng] 09:49:08,637 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
                   [testng] 09:49:08,637 INFO [Initialization] Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
                   [testng] 09:49:08,637 INFO [Initialization] Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
                   [testng] 09:49:08,637 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
                   [testng] 09:49:08,637 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
                   [testng] 09:49:08,653 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
                   [testng] 09:49:08,653 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
                   [testng] 09:49:08,653 INFO [Scanner] scanning: projectdir\WebContent\WEB-INF\classes
                   [testng] 09:49:08,668 INFO [Scanner] scanning: projectdir/WebContent/WEB-INF/lib/jboss-seam-ui.jar
                   [testng] 09:49:08,668 INFO [Scanner] scanning: projectdir/WebContent/WEB-INF/lib/jboss-seam-debug.jar
                   [testng] 09:49:08,684 INFO [Initialization] reading jar:file:/projectdir/WebContent/WEB-INF/lib/jboss-seam.jar!/META-INF/components.xml
                   [testng] 09:49:08,825 INFO [Initialization] reading properties from: /seam.properties
                   [testng] 09:49:08,825 INFO [Initialization] reading properties from: /jndi.properties
                   [testng] 09:49:08,840 INFO [Initialization] initializing Seam
                   [testng] 09:49:08,887 INFO [Scanner] scanning: projectdir\WebContent\WEB-INF\classes
                   [testng] 09:49:08,903 INFO [Scanner] scanning: projectdir/WebContent/WEB-INF/lib/jboss-seam-ui.jar
                   [testng] 09:49:09,200 INFO [Scanner] scanning: projectdir/WebContent/WEB-INF/lib/jboss-seam-debug.jar
                   [testng] 09:49:09,231 INFO [Scanner] scanning: projectdir/WebContent/WEB-INF/lib/jboss-seam.jar
                   [testng] 09:49:10,293 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.security.identity
                   [testng] 09:49:10,372 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
                   [testng] 09:49:10,418 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
                   [testng] 09:49:10,450 INFO [Initialization] Installing components...
                   [testng] 09:49:10,481 INFO [Component] Component: org.jboss.seam.core.applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
                   [testng] 09:49:10,481 INFO [Component] Component: org.jboss.seam.core.businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
                   [testng] 09:49:10,481 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
                   [testng] 09:49:10,481 INFO [Component] Component: org.jboss.seam.core.conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
                   [testng] 09:49:10,481 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
                   [testng] 09:49:10,497 INFO [Component] Component: org.jboss.seam.core.conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
                   [testng] 09:49:10,497 INFO [Component] Component: org.jboss.seam.core.conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
                   [testng] 09:49:10,497 INFO [Component] Component: org.jboss.seam.core.eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
                   [testng] 09:49:10,497 INFO [Component] Component: org.jboss.seam.core.events, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Events
                   [testng] 09:49:10,497 INFO [Component] Component: org.jboss.seam.core.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Exceptions
                   [testng] 09:49:10,497 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Expressions
                   [testng] 09:49:10,528 INFO [Component] Component: org.jboss.seam.core.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
                   [testng] 09:49:10,528 INFO [Component] Component: org.jboss.seam.core.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
                   [testng] 09:49:10,543 INFO [Component] Component: org.jboss.seam.core.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.FacesPage
                   [testng] 09:49:10,543 INFO [Component] Component: org.jboss.seam.core.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
                   [testng] 09:49:10,543 INFO [Component] Component: org.jboss.seam.core.image, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Image
                   [testng] 09:49:10,543 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
                   [testng] 09:49:10,543 INFO [Component] Component: org.jboss.seam.core.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
                   [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
                   [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
                   [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
                   [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
                   [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.methodContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.MethodContext
                   [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
                   [testng] 09:49:10,559 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
                   [testng] 09:49:10,606 INFO [Component] Component: org.jboss.seam.core.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.PersistenceContexts
                   [testng] 09:49:10,606 INFO [Component] Component: org.jboss.seam.core.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
                   [testng] 09:49:10,622 INFO [Component] Component: org.jboss.seam.core.renderer, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletsRenderer
                   [testng] 09:49:10,622 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
                   [testng] 09:49:10,622 INFO [Component] Component: org.jboss.seam.core.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SafeActions
                   [testng] 09:49:10,622 INFO [Component] Component: org.jboss.seam.core.sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
                   [testng] 09:49:10,622 INFO [Component] Component: org.jboss.seam.core.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
                   [testng] 09:49:10,637 INFO [Component] Component: org.jboss.seam.core.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
                   [testng] 09:49:10,637 INFO [Component] Component: org.jboss.seam.core.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
                   [testng] 09:49:10,637 INFO [Component] Component: org.jboss.seam.core.validation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Validation
                   [testng] 09:49:10,637 INFO [Component] Component: org.jboss.seam.core.validators, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validators
                   [testng] 09:49:10,637 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
                   [testng] 09:49:10,762 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
                   [testng] 09:49:10,778 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
                   [testng] 09:49:10,778 INFO [Component] Component: org.jboss.seam.security.configuration, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.Configuration
                   [testng] 09:49:10,778 INFO [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.Identity
                   [testng] 09:49:10,778 INFO [Component] Component: org.jboss.seam.servlet.exceptionFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.ExceptionFilter
                   [testng] 09:49:10,793 INFO [Component] Component: org.jboss.seam.servlet.multipartFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.MultipartFilter
                   [testng] 09:49:10,793 INFO [Component] Component: org.jboss.seam.servlet.redirectFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.RedirectFilter
                   [testng] 09:49:10,793 INFO [Component] Component: org.jboss.seam.theme.theme, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
                   [testng] 09:49:10,793 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
                   [testng] 09:49:10,793 INFO [Component] Component: org.jboss.seam.ui.entityConverter, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityConverter
                   [testng] 09:49:10,809 INFO [Component] Component: org.jboss.seam.ui.entityConverterStore, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityConverterStore
                   [testng] 09:49:10,809 INFO [Component] Component: org.jboss.seam.ui.graphicImage.dynamicImageResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.DynamicImageResource
                   [testng] 09:49:10,809 INFO [Component] Component: org.jboss.seam.ui.graphicImage.dynamicImageStore, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.DynamicImageStore
                   [testng] 09:49:10,809 INFO [Component] Component: org.jboss.seam.ui.resource.webResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.WebResource
                   [testng] 09:49:10,809 INFO [Lifecycle] starting up: org.jboss.seam.servlet.exceptionFilter
                   [testng] 09:49:10,809 INFO [Lifecycle] starting up: org.jboss.seam.ui.graphicImage.dynamicImageResource
                   [testng] 09:49:10,809 INFO [Lifecycle] starting up: org.jboss.seam.servlet.multipartFilter
                   [testng] 09:49:10,809 INFO [Lifecycle] starting up: org.jboss.seam.ui.resource.webResource
                   [testng] 09:49:10,825 INFO [Lifecycle] starting up: org.jboss.seam.servlet.redirectFilter
                   [testng] 09:49:10,825 INFO [Initialization] done initializing Seam
                   [testng] 09:49:11,059 ERROR [SeamLoginModule] Error invoking login method
                  


                  I have included files in embedded-ejb/conf in my classpath. I am not sure how to customize login-config.xml. Also adding or removing <core:ejb/> to components.xml does not seem to make any difference.

                  • 6. Re: Problem running integration test
                    nayan j Newbie

                    I really appreciate if someone can explain what needs to be exactly done to configure test environment to run Seam Integration Test. I think documentation & samples are not enough .. we need some explanation of the configuration so that we can customize...