2 Replies Latest reply on Nov 30, 2010 9:09 AM by ssilvert

    i hava a problem in jsfunit

    plus

      Hi,

      i am new to JSFunit and i am having difficulty getting it work.i do the example in the getstarted page.but this always hava some problem.

      i use eclipse 3.6 and jboss 5.1.  can i only use this two tools to use jsfunit?    

      include jars:

      ant-1.5.4.jar

      aspectjrt-1.2.1.jar

      cactus-13.1.7.1.jar

      cactus-ant-13-1.7.1.jar

      cargo-0.5.jar

      commons-collections-3.2.1.jar

      commons-httpclient-3.1.jar

      commons-io-1.4.jar

      commons-lang-2.4.jar

      commons-logging-1.1.1.jar

      cssparser-0.9.5.jar

      jboss-jsfunit-core-1.3.0.final.jar

      junit-3.8.1.jar

      nekohtml-1.9.14.jar

      sac-1.3.jar

      standard.jar

      richfaces-api-3.2.2.ga.jar

      richfaces-impl-3.2.2.ga.jar

      richfaces-ui-3.2.2.ga.jar

      commons-beanutils-1.7.0.jar

      commons-collections-3.2.jar

      commons-digester-1.8.jar

      commons-codec-1.3.jar

      htmlunit-2.8.jar

      htmlunit-core-js-2.8.jar

       

       

      web.xml:

      <?xml version="1.0" encoding="UTF-8"?>

      <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

      <servlet>

        <servlet-name>Faces Servlet</servlet-name>

        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

      </servlet>

       

      <servlet-mapping>

       

        <servlet-name>Faces Servlet</servlet-name>

       

        <url-pattern>*.faces</url-pattern>

       

      </servlet-mapping>

       

       

       

          <filter>

           <filter-name>JSFUnitFilter</filter-name>

           <filter-class>org.jboss.jsfunit.framework.JSFUnitFilter</filter-class>

         </filter>

       

         <filter-mapping>

           <filter-name>JSFUnitFilter</filter-name>

           <servlet-name>ServletTestRunner</servlet-name>

         </filter-mapping>   

       

         <filter-mapping>

           <filter-name>JSFUnitFilter</filter-name>

           <servlet-name>ServletRedirector</servlet-name>

         </filter-mapping>

       

       

         <servlet>

       

           <servlet-name>ServletRedirector</servlet-name>

       

           <servlet-class>org.jboss.jsfunit.framework.JSFUnitServletRedirector</servlet-class>

       

         </servlet>

       

       

       

         <servlet>

       

            <servlet-name>ServletTestRunner</servlet-name>

       

            <servlet-class>org.apache.cactus.server.runner.ServletTestRunner</servlet-class>

       

         </servlet>

       

       

         <servlet-mapping>

       

           <servlet-name>ServletRedirector</servlet-name>

       

           <url-pattern>/ServletRedirector</url-pattern>

       

         </servlet-mapping>

       

       

       

         <servlet-mapping>

       

            <servlet-name>ServletTestRunner</servlet-name>

       

            <url-pattern>/ServletTestRunner</url-pattern>

       

         </servlet-mapping>

       

         <welcome-file-list>

            <welcome-file>index.faces</welcome-file>

         </welcome-file-list>

       

       

       

      </web-app>

       

      JSFUnitTest.java:

      package org.first;

       

      import java.io.IOException;

      import javax.faces.component.UIComponent;

      import org.jboss.jsfunit.jsfsession.JSFClientSession;

      import org.jboss.jsfunit.jsfsession.JSFServerSession;

      import org.jboss.jsfunit.jsfsession.JSFSession;

       

      import junit.framework.Test;

      import junit.framework.TestSuite;

       

      public class JSFUnitTest extends org.apache.cactus.ServletTestCase

      {   

          public static Test suite()   

          {      

              return new TestSuite( JSFUnitTest.class );   

          }       

          public void testInitialPage() throws IOException   

          {      

              // Send an HTTP request for the initial page      

              JSFSession jsfSession = new JSFSession("/index.faces");             

              // A JSFClientSession emulates the browser and lets you test HTML      

              JSFClientSession client = jsfSession.getJSFClientSession();             

              // A JSFServerSession gives you access to JSF state            

              JSFServerSession server = jsfSession.getJSFServerSession();       

              // Test navigation to initial viewID      

              assertEquals("/index.jsp", server.getCurrentViewID());       

              // Assert that the prompt component is in the component tree and rendered      

              UIComponent prompt = server.findComponent("greeting");      

              assertTrue(prompt.isRendered());       

              // Test a managed bean      

              assertEquals("Stan", server.getManagedBeanValue("#{foo.text}"));   

          }

      }

       

      in this page http://localhost:8080/first/ServletTestRunner?suite=org.first.JSFUnitTest&xsl=cactus-report.xsl

       

       

      org/apache/http/client/CredentialsProvider java.lang.NoClassDefFoundError:  org/apache/http/client/CredentialsProvider
      at  org.jboss.jsfunit.framework.WebConversationFactory.makeWebClient(WebConversationFactory.java:127)
      at  org.jboss.jsfunit.framework.WebClientSpec.<init>(WebClientSpec.java:116)
      at  org.jboss.jsfunit.framework.WebClientSpec.<init>(WebClientSpec.java:94)
      at  org.jboss.jsfunit.framework.WebClientSpec.<init>(WebClientSpec.java:78)
      at  org.jboss.jsfunit.jsfsession.JSFSession.<init>(JSFSession.java:58)
      at  org.first.JSFUnitTest.testInitialPage(JSFUnitTest.java:25)
      at  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at  sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at  sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at  org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
      at  org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
      at  org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
      at  org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)
      at  org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
      at  org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
      at  org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)
      at  org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
      at  org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46)
      at  org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
      at  org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)
      at  org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
      at  org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52)
      at  javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      at  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at  org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119)
      at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at  org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      at  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at  org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
      at  org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
      at  org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      at  org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      at  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at  org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      at  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      at  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at  java.lang.Thread.run(Unknown Source)
      Caused by:  java.lang.ClassNotFoundException: org.apache.http.client.CredentialsProvider  from  BaseClassLoader@14a7ff6{VFSClassLoaderPolicy@171c3f{name=vfsfile:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/  domain=ClassLoaderDomain@21ae8c{name=vfsfile:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/  parentPolicy=AFTER_BUT_JAVA_BEFORE  parent=ClassLoaderDomain@dc0435{DefaultDomain}}  roots=[MemoryContextHandler@20945748[path=  context=vfsmemory://a11318-e750ap-ggx3ce2v-1-ggx3qf2z-9r  real=vfsmemory://a11318-e750ap-ggx3ce2v-1-ggx3qf2z-9r],  FileHandler@15655394[path=first.war/WEB-INF/classes  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/classes/],  DelegatingHandler@19906556[path=first.war/WEB-INF/lib/ant-1.5.4.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/ant-1.5.4.jar],  DelegatingHandler@31805585[path=first.war/WEB-INF/lib/aspectjrt-1.2.1.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/aspectjrt-1.2.1.jar],  DelegatingHandler@814303[path=first.war/WEB-INF/lib/cactus-13-1.7.1.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/cactus-13-1.7.1.jar],  DelegatingHandler@29340642[path=first.war/WEB-INF/lib/cactus-ant-13-1.7.1.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/cactus-ant-13-1.7.1.jar],  DelegatingHandler@12246055[path=first.war/WEB-INF/lib/cargo-0.5.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/cargo-0.5.jar],  DelegatingHandler@30117125[path=first.war/WEB-INF/lib/commons-beanutils-1.7.0.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-beanutils-1.7.0.jar],  DelegatingHandler@9925208[path=first.war/WEB-INF/lib/commons-codec-1.3.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-codec-1.3.jar],  DelegatingHandler@13891562[path=first.war/WEB-INF/lib/commons-collections-3.2.1.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-collections-3.2.1.jar],  DelegatingHandler@3753978[path=first.war/WEB-INF/lib/commons-collections-3.2.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-collections-3.2.jar],  DelegatingHandler@10776903[path=first.war/WEB-INF/lib/commons-digester-1.8.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-digester-1.8.jar],  DelegatingHandler@588283[path=first.war/WEB-INF/lib/commons-httpclient-3.1.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-httpclient-3.1.jar],  DelegatingHandler@22273841[path=first.war/WEB-INF/lib/commons-io-1.4.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-io-1.4.jar],  DelegatingHandler@23218488[path=first.war/WEB-INF/lib/commons-lang-2.4.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-lang-2.4.jar],  DelegatingHandler@28646410[path=first.war/WEB-INF/lib/commons-logging-1.1.1.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/commons-logging-1.1.1.jar],  DelegatingHandler@21232737[path=first.war/WEB-INF/lib/cssparser-0.9.5.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/cssparser-0.9.5.jar],  DelegatingHandler@7232382[path=first.war/WEB-INF/lib/htmlunit-2.8.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/htmlunit-2.8.jar],  DelegatingHandler@20501343[path=first.war/WEB-INF/lib/htmlunit-core-js-2.8.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/htmlunit-core-js-2.8.jar],  DelegatingHandler@29166548[path=first.war/WEB-INF/lib/jboss-jsfunit-core-1.3.0.Final.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/jboss-jsfunit-core-1.3.0.Final.jar],  DelegatingHandler@5490870[path=first.war/WEB-INF/lib/junit-3.8.1.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/junit-3.8.1.jar],  DelegatingHandler@10367809[path=first.war/WEB-INF/lib/nekohtml-1.9.14.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/nekohtml-1.9.14.jar],  DelegatingHandler@3608971[path=first.war/WEB-INF/lib/richfaces-api-3.2.2.GA.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/richfaces-api-3.2.2.GA.jar],  DelegatingHandler@23127768[path=first.war/WEB-INF/lib/richfaces-impl-3.2.2.GA.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/richfaces-impl-3.2.2.GA.jar],  DelegatingHandler@13860345[path=first.war/WEB-INF/lib/richfaces-ui-3.2.2.GA.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/richfaces-ui-3.2.2.GA.jar],  DelegatingHandler@15960508[path=first.war/WEB-INF/lib/sac-1.3.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/sac-1.3.jar],  DelegatingHandler@14131824[path=first.war/WEB-INF/lib/standard.jar  context=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/  real=file:/D:/javaEE/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Runtime_Server1289983265781/deploy/first.war/WEB-INF/lib/standard.jar]]  delegates=null exported=[, org.codehaus.cargo.container.installer,  org.richfaces.webapp.taglib, org.codehaus.cargo.module.webapp.orion,  org.apache.cactus.server.runner,  org.apache.cactus.integration.ant.deployment.application,  com.gargoylesoftware.htmlunit.attachment, org.apache.tools.ant.taskdefs,  org.apache.commons.beanutils.locale.converters,  META-INF.maven.org.richfaces.ui.togglePanel,  META-INF.maven.net.sourceforge.htmlunit.htmlunit,  net.sourceforge.htmlunit.corejs.javascript.serialize,  org.richfaces.renderkit.html.scripts.dnd,  org.apache.taglibs.standard.tag.rt.core,  net.sourceforge.htmlunit.corejs.javascript, org.ajax4jsf.org.w3c.tidy,  META-INF.maven.org.richfaces.ui.inputnumber-slider,  org.codehaus.cargo.container.internal.resources.weblogic8x,  org.apache.cactus.integration.ant.container.orion,  org.apache.cactus.integration.ant.container.resources.orion2x.ear,  org.ajax4jsf.taglib.html.jsp, org.apache.tools.ant.helper,  META-INF.resources.jsfunit, org.apache.taglibs.standard.tag.common.fmt,  org.apache.taglibs.standard.lang.support,  META-INF.maven.org.richfaces.ui.tabPanel, org.ajax4jsf,  org.apache.commons.lang.enum, junit.runner, org.apache.commons.lang,  META-INF.maven.org.richfaces.ui.menu-components, org.apache.commons.digester,  org.codehaus.cargo.container.internal.resources.jo1x,  org.richfaces.renderkit.html.scripts.json, org.apache.commons.lang.text,  org.apache.cactus.internal.client, org.aspectj.runtime.internal,  org.apache.taglibs.standard.lang.jstl.parser, org.ajax4jsf.resource,  META-INF.maven.org.jboss.jsfunit.jboss-jsfunit-core, org.apache.tools.bzip2,  org.apache.taglibs.standard.resources, org.richfaces.ui.component,  org.apache.taglibs.standard.tag.el.sql, org.apache.commons.collections.functors,  com.gargoylesoftware.htmlunit.xml, META-INF.skins,  META-INF.maven.org.richfaces.ui.hotKey, org.apache.cactus.spi.server,  org.codehaus.cargo.container.internal.tomcat, META-INF.services,  META-INF.maven.org.richfaces.ui.virtualEarth,  org.apache.commons.digester.parser,  net.sourceforge.htmlunit.corejs.javascript.debug,  org.apache.cactus.integration.ant.deployment.resources,  META-INF.maven.org.richfaces.ui.toolBar, org.aspectj.runtime,  com.gargoylesoftware.htmlunit.protocol.javascript, junit.awtui,  org.apache.tools.ant.taskdefs.cvslib, com.gargoylesoftware.htmlunit.gae,  org.apache.taglibs.standard.functions,  net.sourceforge.htmlunit.corejs.javascript.xml,  org.apache.commons.collections.collection,  org.apache.cactus.internal.server.runner, org.cyberneko.html.filters,  META-INF.maven.org.richfaces.ui.contextMenu,  META-INF.maven.org.richfaces.ui.richfaces-ui, org.apache.cactus.util,  org.apache.cactus.client.authentication, org.apache.tools.ant.input,  net.sourceforge.htmlunit.corejs.javascript.ast,  META-INF.maven.org.richfaces.ui.tree, META-INF.maven.org.richfaces.ui.paint2D,  org.codehaus.cargo.ant.tomcat, META-INF.maven.org.richfaces.ui.panelmenu,  org.ajax4jsf.context, org.codehaus.cargo.container.property,  org.apache.commons.digester.substitution,  META-INF.maven.org.richfaces.ui.columns, org.apache.commons.codec.language,  org.apache.cactus.integration.ant.container.enhydra,  com.gargoylesoftware.htmlunit.javascript.host.canvas,  META-INF.maven.org.richfaces.ui.beanValidator, org.apache.commons.beanutils,  org.codehaus.cargo.container.configuration, org.jboss.jsfunit.init,  org.richfaces.util, org.aspectj.lang,  org.apache.cactus.integration.ant.container.resources.resin2x,  org.richfaces.component.state, org.codehaus.cargo.ant.weblogic,  org.apache.cactus.integration.ant.container.resources.orion2x.share,  org.codehaus.cargo.module.ejb,  META-INF.maven.org.richfaces.ui.simpleTogglePanel,  org.codehaus.cargo.module.ejb.weblogic, org.apache.commons.io,  org.codehaus.cargo.util.monitor, org.codehaus.cargo.container.deployable.jboss,  org.apache.cactus.integration.ant.container.resources.resin3x,  org.apache.taglibs.standard.tag.el.xml, org.ajax4jsf.util.style, META-INF,  net.sourceforge.htmlunit.corejs.javascript.annotations, org.richfaces.ui.taglib,  META-INF.maven.org.richfaces.ui.core,  META-INF.maven.org.richfaces.ui.inplaceSelect,  org.codehaus.cargo.container.weblogic,  org.apache.cactus.integration.ant.container.weblogic,  org.ajax4jsf.resource.image.animatedgif, org.codehaus.cargo.module.application,  org.apache.commons.collections.keyvalue, org.codehaus.cargo.container.spi,  org.apache.taglibs.standard,  org.codehaus.cargo.container.internal.resources.cargocpc.war,  org.richfaces.model.filter, org.richfaces.renderkit.html.scripts.scriptaculous,  META-INF.maven.org.richfaces.ui.dropdown-menu, com.steadystate.css.userdata,  org.richfaces.renderkit.html.script, org.apache.cactus.spi.client.connector,  com.gargoylesoftware.htmlunit.ssl, org.richfaces.model.selection,  org.apache.taglibs.standard.tag.common.core,  META-INF.maven.org.richfaces.ui.spacer, org.richfaces.ui.application,  com.gargoylesoftware.htmlunit.html.impl, org.ajax4jsf.event,  org.apache.commons.httpclient.methods, org.richfaces.model.internal,  org.apache.commons.lang.builder, org.apache.commons.httpclient.params,  org.apache.commons.digester.plugins.strategies, org.ajax4jsf.xml.serializer,  org.apache.tools.ant.listener, org.apache.taglibs.standard.tag.el.core,  org.apache.tools.ant.util.regexp, org.apache.commons.logging.impl,  org.codehaus.cargo.module.webapp.tomcat, org.apache.commons.collections,  org.apache.taglibs.standard.lang.jstl.test.beans, org.apache.tools.zip,  org.cyberneko.html.xercesbridge,  net.sourceforge.htmlunit.corejs.javascript.tools.debugger.treetable,  org.richfaces.ui.renderkit.html, org.apache.commons.httpclient.protocol,  com.gargoylesoftware.htmlunit.javascript.host, org.richfaces.function,  org.apache.cactus.integration.ant.container.resources.tomcat5x,  org.apache.commons.lang.exception, org.codehaus.cargo.container.internal.jetty,  org.richfaces.taglib, org.ajax4jsf.renderkit.html,  org.apache.commons.collections.set, META-INF.maven.org.richfaces.ui.fileUpload,  org.apache.taglibs.standard.tei, org.richfaces.event,  META-INF.maven.org.richfaces.ui.orderingList, org.ajax4jsf.model,  org.richfaces.event.extdt, org.richfaces.renderkit.html.templates,  org.apache.cactus.integration.ant.container.resources.tomcat4x,  org.richfaces.ui.component.html, org.codehaus.cargo.ant.orion,  org.richfaces.model.impl.expressive, org.apache.cactus.util.log,  org.codehaus.cargo.container.internal.resin, org.apache.taglibs.standard.tlv,  org.apache.commons.httpclient.cookie,  net.sourceforge.htmlunit.corejs.javascript.json,  META-INF.maven.org.richfaces.framework.richfaces-api,  org.ajax4jsf.javascript.scripts, org.codehaus.cargo.module.webapp,  org.apache.tools.ant.types.selectors, org.apache.taglibs.standard.tag.rt.fmt,  org.richfaces.json, org.apache.commons.codec.net,  org.apache.cactus.integration.ant.container.tomcat,  org.apache.taglibs.standard.lang.jstl, org.ajax4jsf.ajax,  org.apache.cactus.server,  org.apache.cactus.integration.ant.container.resources.tomcat3x,  org.ajax4jsf.css, org.richfaces.renderkit.html.swf,  org.codehaus.cargo.container.internal.resources.resin2x,  META-INF.maven.org.richfaces.ui.jQuery, org.richfaces.el,  org.apache.commons.lang.math, org.jboss.jsfunit.framework,  org.apache.commons.collections.comparators, org.apache.commons.lang.enums,  org.richfaces.renderkit.html.images, META-INF.maven.org.richfaces.ui.state,  org.codehaus.cargo.ant.jo,  org.codehaus.cargo.container.internal.resources.resin3x, org.richfaces.skin,  org.codehaus.cargo.container.deployable, org.richfaces.renderkit,  com.steadystate.css.sac, com.gargoylesoftware.htmlunit.html.xpath,  com.gargoylesoftware.htmlunit.util,  com.gargoylesoftware.htmlunit.javascript.regexp, org.ajax4jsf.io.parser,  org.apache.taglibs.standard.tag.common.xml, org.apache.commons.io.input,  org.richfaces.renderkit.html.scripts, org.apache.tools.ant.taskdefs.rmic,  org.richfaces.renderkit.html.css, org.apache.tools.ant,  org.codehaus.cargo.container.deployer, org.richfaces.renderkit.html,  net.sourceforge.htmlunit.corejs.javascript.tools, org.richfaces.iterator,  org.apache.cactus.integration.ant.container.jboss, org.cyberneko.html.res,  org.codehaus.cargo.module.webapp.websphere,  org.codehaus.cargo.module.internal.resource, org.apache.tools.ant.util.facade,  org.codehaus.cargo.container.internal.orion,  META-INF.maven.org.richfaces.ui.treeModel,  META-INF.maven.org.richfaces.ui.componentControl, org.w3c.css.sac,  META-INF.maven.commons-logging.commons-logging, org.apache.commons.codec.binary,  org.apache.commons.digester.plugins, org.apache.commons.beanutils.converters,  org.codehaus.cargo.container.internal.jo, org.codehaus.cargo.container.resin,  com.gargoylesoftware.htmlunit.javascript.host.html,  org.apache.taglibs.standard.tag.common.sql,  META-INF.maven.org.richfaces.ui.insert,  net.sourceforge.htmlunit.corejs.classfile, org.w3c.css.sac.helpers,  org.apache.commons.collections.list, org.apache.cactus.extension.jetty,  org.jboss.jsfunit.context, org.ajax4jsf.util.base64,  org.richfaces.renderkit.html.scripts.jquery, junit.swingui,  org.jboss.jsfunit.jsfsession, org.first, com.gargoylesoftware.htmlunit,  org.apache.commons.httpclient.auth, org.codehaus.cargo.util,  org.apache.commons.codec, org.apache.cactus.integration.ant.container.resin,  org.richfaces.renderkit.html.images.background, org.ajax4jsf.webapp.tidy,  com.gargoylesoftware.htmlunit.javascript,  net.sourceforge.htmlunit.corejs.javascript.resources,  net.sourceforge.htmlunit.corejs.javascript.regexp, junit.textui,  org.apache.commons.io.filefilter, org.richfaces.event.sort,  org.apache.commons.io.output,  net.sourceforge.htmlunit.corejs.javascript.tools.debugger.downloaded,  org.ajax4jsf.request, org.ajax4jsf.component.html, org.jboss.jsfunit.seam,  org.ajax4jsf.javascript,  org.codehaus.cargo.container.internal.resources.orion1x2x, org.ajax4jsf.io,  net.sourceforge.htmlunit.corejs.javascript.tools.shell,  com.gargoylesoftware.htmlunit.javascript.host.xml,  org.apache.cactus.internal.server, org.apache.cactus.internal,  org.apache.cactus.integration.ant, org.apache.cactus.integration.ant.container,  org.richfaces.model.impl, org.richfaces.model, org.codehaus.cargo.container,  org.codehaus.cargo.module.ejb.orion, org.apache.commons.collections.map,  org.codehaus.cargo.container.deployable.tomcat,  org.codehaus.cargo.container.internal.util, org.codehaus.cargo.container.jetty,  org.apache.commons.httpclient.util,  net.sourceforge.htmlunit.corejs.javascript.jdk13,  org.apache.taglibs.standard.tag.rt.xml,  net.sourceforge.htmlunit.corejs.javascript.jdk15, org.ajax4jsf.renderkit,  junit.swingui.icons, org.aspectj.lang.reflect,  org.apache.cactus.integration.ant.container.resources.orion1x.share,  net.sourceforge.htmlunit.corejs.javascript.tools.debugger,  META-INF.maven.org.richfaces.ui.progressBar,  META-INF.maven.commons-lang.commons-lang, org.apache.cactus,  org.ajax4jsf.resource.image, org.apache.taglibs.standard.tag.el.fmt,  org.apache.cactus.internal.client.connector.http,  org.ajax4jsf.taglib.html.facelets,  META-INF.maven.org.richfaces.ui.inputnumber-spinner, org.codehaus.cargo.module,  META-INF.maven.commons-io.commons-io, junit.extensions,  org.apache.commons.collections.iterators,  META-INF.maven.org.richfaces.ui.combobox, org.apache.tools.ant.util,  org.apache.tools.ant.filters, org.aspectj.runtime.reflect,  com.gargoylesoftware.htmlunit.html,  META-INF.maven.commons-collections.commons-collections,  META-INF.maven.org.richfaces.ui.modal-panel,  org.apache.cactus.integration.ant.container.resources.orion1x.war,  META-INF.maven.org.richfaces.framework.richfaces-impl, org.ajax4jsf.cache,  org.cyberneko.html, org.richfaces.renderkit.html.js, org.richfaces.javacc,  org.richfaces.utils, com.steadystate.css.parser, org.ajax4jsf.util,  org.apache.cactus.spi.client, org.richfaces.component.state.events,  META-INF.maven.org.richfaces.ui.separator, org.richfaces.component.util,  org.richfaces.renderkit.html.gradientimages, org.cyberneko.html.parsers,  junit.framework, org.apache.commons.collections.bag,  org.richfaces.component.nsutils, org.codehaus.cargo.container.jo,  org.richfaces.renderkit.images, org.ajax4jsf.exception,  org.codehaus.cargo.container.internal.resources.cargocpc.war.WEB-INF,  META-INF.maven.org.richfaces.ui.gmap, org.codehaus.cargo.container.tomcat,  org.codehaus.cargo.ant.resin, org.apache.commons.httpclient.methods.multipart,  org.ajax4jsf.webapp,  org.apache.cactus.integration.ant.container.resources.orion2x.war,  org.apache.taglibs.standard.tag.rt.sql, org.codehaus.cargo.module.webapp.jboss,  org.codehaus.cargo.ant, META-INF.maven.org.richfaces.ui.scrollableDataTable,  org.apache.taglibs.standard.lang.jstl.test, org.apache.commons.beanutils.locale,  org.aspectj.runtime.internal.cflowstack, org.richfaces.taglib.html.jsp,  org.apache.cactus.internal.util, org.apache.tools.tar,  META-INF.maven.org.richfaces.ui.suggestionbox, org.ajax4jsf.renderkit.compiler,  org.ajax4jsf.resource.util, org.apache.cactus.integration.ant.util,  META-INF.maven.org.richfaces.ui.extendedDataTable, com.trend.iwss.jscan.runtime,  org.codehaus.cargo.container.internal.weblogic, org.apache.tools.mail,  org.ajax4jsf.webapp.taglib, org.apache.tools.ant.taskdefs.condition,  org.apache.cactus.integration.ant.deployment.webapp, org.apache.tools.ant.types,  com.gargoylesoftware.htmlunit.javascript.host.css,  META-INF.maven.org.richfaces.ui.datascroller,  org.apache.cactus.integration.ant.deployment, org.richfaces.convert.selection,  com.gargoylesoftware.htmlunit.javascript.configuration,  org.codehaus.cargo.container.internal.resources.tomcat3x,  org.richfaces.component.xml, META-INF.maven.org.richfaces.ui.dataFilterSlider,  META-INF.maven.org.richfaces.ui.inplaceInput, org.apache.cactus.extension.jsp,  org.apache.taglibs.standard.extra.spath, org.apache.tools.ant.taskdefs.email,  org.richfaces.component.html, META-INF.maven.org.richfaces.ui.pickList,  org.apache.cactus.integration.ant.container.resources.orion1x.ear,  org.apache.commons.collections.bidimap,  com.gargoylesoftware.htmlunit.javascript.background,  org.codehaus.cargo.container.internal.resources.tomcat4x,  META-INF.maven.org.richfaces.ui.dataTable, org.apache.commons.lang.mutable,  org.apache.commons.httpclient, org.richfaces.ui.model,  META-INF.maven.org.richfaces.ui.effect,  META-INF.maven.net.sourceforge.cssparser.cssparser,  org.codehaus.cargo.container.internal.resources.tomcat5x,  org.codehaus.cargo.module.webapp.weblogic,  org.codehaus.cargo.container.internal, org.ajax4jsf.resource.cached,  META-INF.maven.org.richfaces.ui.functions,  META-INF.maven.org.richfaces.ui.calendar,  META-INF.maven.org.richfaces.ui.listShuttle,  org.apache.commons.collections.buffer, org.apache.commons.lang.time, images,  org.codehaus.cargo.module.ejb.websphere, org.ajax4jsf.config,  META-INF.maven.org.richfaces.ui.panelbar,  org.apache.cactus.integration.ant.container.resources.weblogic6x,  com.gargoylesoftware.htmlunit.html.applets,  org.apache.commons.digester.xmlrules, org.apache.commons.codec.digest,  org.richfaces.validator, org.ajax4jsf.application,  com.steadystate.css.parser.selectors, org.richfaces.component.events,  org.apache.commons.io.comparator, org.codehaus.cargo.container.orion,  com.gargoylesoftware.htmlunit.protocol.data,  META-INF.maven.org.richfaces.ui.tooltip,  net.sourceforge.htmlunit.corejs.javascript.optimizer,  org.apache.tools.ant.taskdefs.compilers, org.ajax4jsf.webapp.nekko,  com.steadystate.css.dom, org.apache.tools.ant.filters.util,  org.ajax4jsf.component, org.richfaces.renderkit.html.iconimages,  org.apache.cactus.integration.ant.container.resources.weblogic7x,  org.richfaces.event.scroll, com.gargoylesoftware.htmlunit.protocol.about,  org.apache.cactus.internal.configuration, org.richfaces.component,  META-INF.maven.org.richfaces.ui.panel, META-INF.maven.org.richfaces.ui.message,  org.ajax4jsf.xml.serializer.utils, org.richfaces.convert.rowkey,  META-INF.maven.org.richfaces.ui.drag-drop, org.richfaces.ui.renderkit.html.css,  org.richfaces] <IMPORT-ALL>NON_EMPTY}}
      at  org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
      at  java.lang.ClassLoader.loadClass(Unknown Source)
      at  java.lang.ClassLoader.loadClassInternal(Unknown Source)
      ... 50  more

       

      this is my first time to use jsfunit. i read the document for two days ,but i still finish it ...i don't know where i was  wrong..

      sorry ,my english is poor ,i can't express good..can you stand me??     thanks.

       

      111111.JPG

        • 1. Re: i hava a problem in jsfunit
          plus

          now i include all the .jar on the getting started page.

          when i run ,it always popup a windows.and

          2222.JPG

           

          null junit.framework.AssertionFailedError
          at  org.first.JSFUnitTest.testInitialPage(JSFUnitTest.java:30)
          at  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at  sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at  sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at  org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
          at  org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
          at  org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
          at  org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)
          at  org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
          at  org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
          at  org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)
          at  org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
          at  org.jboss.jsfunit.framework.JSFUnitServletRedirector.doPost(JSFUnitServletRedirector.java:46)
          at  org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
          at  org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)
          at  org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
          at  org.jboss.jsfunit.framework.JSFUnitServletRedirector.doGet(JSFUnitServletRedirector.java:52)
          at  javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
          at  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at  org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:119)
          at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at  org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
          at  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at  org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
          at  org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
          at  org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
          at  org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
          at  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at  org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
          at  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
          at  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
          at  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
          at  org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at  java.lang.Thread.run(Unknown Source)

           

          4444.JPG

           

          but the page is no problem

          3333.JPG

          • 2. Re: i hava a problem in jsfunit
            ssilvert

            That's very strange.  I've never seen an applet alert with JSFUnit.  JSFUnit does not use an applet, so I assume that must be coming from Eclipse.  Maybe you should try to deploy your WAR manually and then run from your browser instead of Eclipse.

             

            Stan