4 Replies Latest reply on Feb 19, 2009 1:00 PM by ssilvert

    Attempting to build from SVN

      I just attempted to build from subversion and encountered a couple problems. First, maven was unable to download version 1.0-SNAPSHOT of the maven cargo plugin, therefore I changed the pom.xml to use 0.3, which is the latest from the cargo website (see http://cargo.codehaus.org/Downloads).

      After that hurdle, apparently there is some other version mis-match because the build failed with the following:

      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[28,26] [deprecation] javax.servlet.http.HttpSessionContext in javax.servlet.http has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[88,10] [deprecation] javax.servlet.http.HttpSessionContext in javax.servlet.http has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/seam/ConversationScopeVariableResolver.java:[26,22] [deprecation] javax.faces.el.EvaluationException in javax.faces.el has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/seam/ConversationScopeVariableResolver.java:[27,22] [deprecation] javax.faces.el.VariableResolver in javax.faces.el has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/seam/ConversationScopeVariableResolver.java:[37,55] [deprecation] javax.faces.el.VariableResolver in javax.faces.el has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/seam/ConversationScopeVariableResolver.java:[41,11] [deprecation] javax.faces.el.VariableResolver in javax.faces.el has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/seam/ConversationScopeVariableResolver.java:[50,44] [deprecation] javax.faces.el.VariableResolver in javax.faces.el has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/seam/ConversationScopeVariableResolver.java:[60,80] [deprecation] javax.faces.el.EvaluationException in javax.faces.el has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/jsfsession/JSFClientSession.java:[291,43] [deprecation] getHtmlElementsByName(java.lang.String) in com.gargoylesoftware.htmlunit.html.HtmlPage has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/jsfsession/JSFServerSession.java:[131,40] [deprecation] createValueBinding(java.lang.String) in javax.faces.application.Application has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[50,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[56,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[62,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[68,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[74,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[80,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[87,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[94,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[104,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[117,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[123,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[130,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[136,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[142,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[149,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[155,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpSession.java:[162,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/framework/FaceletsErrorPageException.java:[55,47] [deprecation] getResponseBody() in com.gargoylesoftware.htmlunit.WebResponse has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/framework/FaceletsErrorPageException.java:[71,47] [deprecation] getResponseBody() in com.gargoylesoftware.htmlunit.WebResponse has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[346,18] [deprecation] isRequestedSessionIdFromUrl() in javax.servlet.http.HttpServletRequest has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[438,17] [deprecation] getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[130,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[136,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[142,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[148,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[154,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[160,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[166,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[172,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[189,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[195,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[201,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[207,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[213,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[219,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[225,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[231,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[237,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[246,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[255,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[261,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[267,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[273,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[279,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[285,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[291,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[297,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[303,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[309,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[315,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[321,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[327,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[333,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[339,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[345,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[351,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[357,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[363,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[369,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[380,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[386,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[392,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[398,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[406,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[417,17] [deprecation] parse(java.lang.String) in java.util.Date has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[412,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[420,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[426,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[437,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[446,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[455,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[461,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[472,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[484,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[496,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitHttpServletRequest.java:[508,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/framework/FormAuthenticationStrategy.java:[159,39] [deprecation] getHtmlElementsByName(java.lang.String) in com.gargoylesoftware.htmlunit.html.HtmlPage has been deprecated
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitFacesContext.java:[355,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/context/JSFUnitFacesContext.java:[361,4] method does not override a method from its superclass
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/seam/SeamUtil.java:[91,86] non-varargs call of varargs method with inexact argument type for last parameter;
      cast to java.lang.Class for a varargs call
      cast to java.lang.Class[] for a non-varargs call and to suppress this warning
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/seam/SeamUtil.java:[92,61] non-varargs call of varargs method with inexact argument type for last parameter;
      cast to java.lang.Object for a varargs call
      cast to java.lang.Object[] for a non-varargs call and to suppress this warning
      
      /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-core/src/main/java/org/jboss/jsfunit/jsfsession/HtmlUnitSnooper.java:[91,55] [deprecation] getLoadTimeInMilliSeconds() in com.gargoylesoftware.htmlunit.WebResponse has been deprecated
      
      




        • 1. Re: Attempting to build from SVN
          ssilvert

          You need to build with JDK 1.6. There is a bug in the JDK 1.5 compiler that keeps JSFUnit from building. It still builds a JDK 1.5 target, so you can use JSFUnit without issues under 1.5.

          As for Cargo, I'll have to look into that.

          Stan

          • 2. Re: Attempting to build from SVN

            Thanks for the response. I switched to java 1.6 and got a little further.

            /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-examples/jboss-jsfunit-examples-hellojsf/jboss-jsfunit-examples-hellojsf-webapp/src/main/java/org/jboss/jsfunit/example/hellojsf/Marathons.java:[27,26] package javax.faces.context does not exist
            
            /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-examples/jboss-jsfunit-examples-hellojsf/jboss-jsfunit-examples-hellojsf-webapp/src/main/java/org/jboss/jsfunit/example/hellojsf/Marathons.java:[58,6] cannot find symbol
            symbol : class FacesContext
            location: class org.jboss.jsfunit.example.hellojsf.Marathons
            
            /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-examples/jboss-jsfunit-examples-hellojsf/jboss-jsfunit-examples-hellojsf-webapp/src/main/java/org/jboss/jsfunit/example/hellojsf/Marathons.java:[58,25] cannot find symbol
            symbol : variable FacesContext
            location: class org.jboss.jsfunit.example.hellojsf.Marathons
            
            /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-examples/jboss-jsfunit-examples-hellojsf/jboss-jsfunit-examples-hellojsf-webapp/src/main/java/org/jboss/jsfunit/example/hellojsf/Marathons.java:[66,6] cannot find symbol
            symbol : class FacesContext
            location: class org.jboss.jsfunit.example.hellojsf.Marathons
            
            /home/brian/Development/WorkArea/jsfunit/jboss-jsfunit-examples/jboss-jsfunit-examples-hellojsf/jboss-jsfunit-examples-hellojsf-webapp/src/main/java/org/jboss/jsfunit/example/hellojsf/Marathons.java:[66,25] cannot find symbol
            symbol : variable FacesContext
            location: class org.jboss.jsfunit.example.hellojsf.Marathons
            


            This isn't a big deal because its way down in the examples.

            • 3. Re: Attempting to build from SVN
              ssilvert

              The examples won't compile unless you set a profile. It needs to know the target container and/or the target JSF version. See https://jira.jboss.org/jira/browse/JSFUNIT-86

              I'll be updating the "How to build" page today.

              Stan

              • 4. Re: Attempting to build from SVN
                ssilvert

                The Cargo problem should be fixed now. I had to move the Codehaus plugin repo declaration to the root pom. I committed the change. Please let me know if that takes care of the problem.

                Stan