4 Replies Latest reply on Mar 29, 2008 10:47 PM by Tomas Cirip

    StaticViewTest error

    Tomas Cirip Newbie

      Folks,

      I am using static view test and I am getting error. I just want to ask before I dive into source code. I am using Spring but bean that is used on tested page is managed by JSF RI.

      Thanks

      Could not load class for element managed-bean-class
      
      junit.framework.AssertionFailedError:
      Could
      not
      load
      class
      
      
      
      
      
      for
      element
      managed-bean-class at
      org.jboss.jsfunit.analysis.util.ClassUtils.loadClass(ClassUtils.java:58) at
      org.jboss.jsfunit.analysis.ViewConfigReconciler.verifyMethodExists(ViewConfigReconciler.java:105) at
      org.jboss.jsfunit.analysis.ViewConfigReconciler.reconcile(ViewConfigReconciler.java:98) at
      org.jboss.jsfunit.analysis.ViewConfigReconciler.reconcileEl(ViewConfigReconciler.java:77) at
      org.jboss.jsfunit.analysis.ViewConfigReconciler.reconcileEL(ViewConfigReconciler.java:70) at
      org.jboss.jsfunit.analysis.ViewConfigReconciler.reconcileActions(ViewConfigReconciler.java:57) at
      org.jboss.jsfunit.analysis.AbstractViewTestCase.testActions(AbstractViewTestCase.java:149) at
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native
      Method) at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
      org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java:308) at
      org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(ServletTestRunner.java:186) at
      org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice(ServletTestRunner.java:224) at
      org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java) at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at
      org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at
      org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at
      org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:123) at
      org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at
      org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) at
      org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124) at
      org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at
      org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) at
      org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) at
      org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at
      org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at
      org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at
      org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at
      org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) at
      org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at
      org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at
      org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at
      org.mortbay.jetty.Server.handle(Server.java:324) at
      org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at
      org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828) at
      org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at
      org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
      org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at
      org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at
      org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
      
      


      Tomas