2 Replies Latest reply on Aug 10, 2007 12:26 PM by pmuir

    Problem in Seam Integration testing

    swetas

      I am using Jboss Seam 1.2 with Tomcat 6.1 for my application.
      I am getting java.lang.NoClassDefFoundError: com/sun/el/ExpressionFactoryImpl while running Seam integration testcase.

      Exception Stack trace:-
      java.lang.RuntimeException: exception invoking: create
      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:133)
      at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
      at org.jboss.seam.Component.callCreateMethod(Component.java:1757)
      at org.jboss.seam.Component.newInstance(Component.java:1746)
      at org.jboss.seam.Component.getInstance(Component.java:1643)
      at org.jboss.seam.Component.getInstance(Component.java:1610)
      at com.subexazure.spark.web.test.UserDetailTest$1.updateModelValues(UserDetailTest.java:64)
      at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:476)
      at com.subexazure.spark.web.test.UserDetailTest.test(UserDetailTest.java:80)
      at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
      at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
      ... 30 more
      Caused by: java.lang.NoClassDefFoundError: com/sun/el/ExpressionFactoryImpl
      at org.jboss.seam.util.UnifiedELValueBinding.(UnifiedELValueBinding.java:18)
      at org.jboss.seam.mock.MockApplication.createValueBinding(MockApplication.java:272)
      at org.jboss.seam.jsf.SeamApplication11.createValueBinding(SeamApplication11.java:143)
      at org.jboss.seam.core.Expressions$1.getFacesValueBinding(Expressions.java:119)
      at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:69)
      at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1684)
      at org.jboss.seam.Component.getInstance(Component.java:1633)
      at org.jboss.seam.Component.getInstance(Component.java:1610)
      at org.jboss.seam.Component.getValueToInject(Component.java:1885)
      at org.jboss.seam.Component.injectAttributes(Component.java:1368)
      at org.jboss.seam.Component.inject(Component.java:1195)
      at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
      at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
      at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
      at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
      at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
      at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
      at com.subexazure.spark.web.app.model.security.UserDetail_$$_javassist_0.create(UserDetail_$$_javassist_0.java)


      I am getting the exception when i try to get the component from the context .The code written for this in testcase(using TestNG) is

      user = (User) Component.getInstance("user", true);

      If anyone have faced this sort of problem then give some idea.