Hi,

Ok. I've debugged the problem. It comes from the addition, yesterday of
the servletapi-4 to the httpunit project...

Cactus tries to guess with J2EE API version is being used by checking if
there is a Filter class in the j2ee.jar or servlet.jar jars:

    <condition property="j2ee.api" value="13">
      <available classname="javax.servlet.Filter">
        <classpath>
          <pathelement location="${j2ee.jar}"/>
          <pathelement location="${servlet.jar}"/>
        </classpath>
      </available>
    </condition>

The problem is that as Gump runs in classpath ignore mode the whole CP
is considered for this Filter search. And as httpunit has added
servletapi-4 to its CP, Cactus somehow inherits it...

Here's Cactus definition:

    <ant buildfile="framework/build.xml" target="dist">

      <property name="project.version" value="@@DATE@@"/>

      <depend property="j2ee.jar" project="jakarta-servletapi"/>
      <depend property="log4j.jar" project="logging-log4j" id="log4j"/>
      <depend property="commons.logging.jar" project="commons-logging"
id="all"/>
      <depend property="commons.httpclient.jar"
project="commons-httpclient-2.0-branch"/>
      <depend property="httpunit.jar" project="httpunit"/>
      <depend property="aspectjrt.jar" project="aspectj"
id="aspectjrt"/>
      <depend property="junit.jar" project="junit"/>

    </ant>
  
    <depend project="ant" inherit="runtime"/>
    <depend project="xml-xerces"/>
    <depend project="aspectj"/>
    <option project="checkstyle" inherit="runtime"/>

I don't understand why it would inherit all dependencies defines in
httpunit. There's no inherit="true", and the httpunit project only
declares a single jar:

    <jar id="httpunit" name="lib/httpunit.jar"/>

Any idea?

Thanks
-Vincent

> -----Original Message-----
> From: Vincent Massol [mailto:[EMAIL PROTECTED]
> Sent: 18 March 2004 06:52
> To: [EMAIL PROTECTED]
> Subject: [EMAIL PROTECTED]: jakarta-cactus/jakarta-cactus-framework-12 failed
> 
> To whom it may engage...
> 
> This is an automated request, but not an unsolicited one. For help
> understanding the request please visit
> http://gump.apache.org/nagged.html,
> and/or contact [EMAIL PROTECTED]
> 
> Project jakarta-cactus-framework-12 has an issue affecting its
community
> integration. This issue affects 1 projects. The current state is
'Failed',
> for reason 'Build Failed'
> 
> Full details are available at:
http://lsd.student.utwente.nl/gump/jakarta-
> cactus/jakarta-cactus-framework-12.html, however some snippets follow:
> 
> -  -  -  -  - -- -- ------------------------------------ G U M P
> 
> Gump provided these annotations:
> 
>  - Info - Sole jar [/data3/gump/jakarta-cactus/framework/dist-
> 12/lib/cactus-20040318.jar] identifier set to project name
>  - Info - Dependency on aspectj exists, no need to add for property
> aspectjrt.jar.
>  - Error - Failed with reason build failed
> 
> 
> -  -  -  -  - -- -- ------------------------------------ G U M P
> Gump performed this work:
> 
> Work Name: build_jakarta-cactus_jakarta-cactus-framework-12 (Type:
Build)
> State: Failed
> Elapsed: 0 hours, 0 minutes, 18 seconds
> Command Line: java -Djava.awt.headless=true -Dbuild.clonevm=true -
> Xbootclasspath/p:/data3/gump/xml-
> xerces2/java/build/xercesImpl.jar:/data3/gump/xml-
> xerces2/java/build/xmlParserAPIs.jar org.apache.tools.ant.Main -
> Dgump.merge=/data3/gump/gump-install/work/merge.xml -
> Dbuild.sysclasspath=only -Dlog4j.jar=/data3/gump/logging-log4j/log4j-
> 20040318.jar -Djunit.jar=/data3/gump/dist/junit/junit.jar -
> Dhttpunit.jar=/data3/gump/httpunit/lib/httpunit.jar -
> Dcommons.logging.jar=/data3/gump/jakarta-commons/logging/dist/commons-
> logging.jar -Dproject.version=20040318 -
> Dcommons.httpclient.jar=/data3/gump/commons-httpclient-20-
> branch/dist/commons-httpclient-2.0-20040318.jar -
> Dj2ee.jar=/data3/gump/jakarta-servletapi/dist/lib/servlet.jar -
> Daspectjrt.jar=/data3/gump/opt/aspectj1.1/lib/aspectjrt.jar -f
> framework/build.xml dist
> [Working Directory: /data3/gump/jakarta-cactus]
> ---------------------------------------------
>      [iajc]                                             ^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/server/FilterConfigWr
ap
> per.java:42 FilterConfig cannot be resolved (or is not a valid type)
for
> the field FilterConfigWrapper.originalConfig
>      [iajc] private FilterConfig originalConfig;
>      [iajc]         ^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/server/FilterConfigWr
ap
> per.java:57 FilterConfig cannot be resolved (or is not a valid type)
for
> the argument theOriginalConfig of the method FilterConfigWrapper
>      [iajc] public FilterConfigWrapper(FilterConfig theOriginalConfig)
>      [iajc]                            ^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/server/FilterConfigWr
ap
> per.java:59 originalConfig cannot be resolved or is not a field
>      [iajc] this.originalConfig = theOriginalConfig;
>      [iajc] ^^^^^^^^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/server/FilterConfigWr
ap
> per.java:98 originalConfig cannot be resolved or is not a field
>      [iajc] return this.originalConfig.getFilterName();
>      [iajc]        ^^^^^^^^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/server/FilterConfigWr
ap
> per.java:107 originalConfig cannot be resolved or is not a field
>      [iajc] this.originalConfig.getServletContext());
>      [iajc] ^^^^^^^^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/server/FilterConfigWr
ap
> per.java:133 originalConfig cannot be resolved or is not a field
>      [iajc] enum = this.originalConfig.getInitParameterNames();
>      [iajc]        ^^^^^^^^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/server/FilterConfigWr
ap
> per.java:162 originalConfig cannot be resolved or is not a field
>      [iajc] value = this.originalConfig.getInitParameter(theName);
>      [iajc]         ^^^^^^^^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/server/HttpServletReq
ue
> stWrapper.java:79 The method getRequestURL() is undefined for the type
> HttpServletRequest
>      [iajc] result = this.request.getRequestURL();
>      [iajc]                       ^^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/server/HttpServletReq
ue
> stWrapper.java:91 The method setCharacterEncoding(String) is undefined
for
> the type HttpServletRequest
>      [iajc] this.request.setCharacterEncoding(theEnvironment);
>      [iajc]              ^^^^^^^^^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/server/HttpServletReq
ue
> stWrapper.java:99 The method getParameterMap() is undefined for the
type
> HttpServletRequest
>      [iajc] return this.request.getParameterMap();
>      [iajc]                     ^^^^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/server/PageContextWra
pp
> er.java:61 The method handlePageException(Exception) in the type
> PageContext is not applicable for the arguments (Throwable)
>      [iajc]
this.originalPageContext.handlePageException(theThrowable);
>      [iajc]                          ^^^^^^^^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/server/ServletContext
Wr
> apper.java:51 The method getServletContextName() is undefined for the
type
> ServletContext
>      [iajc] return this.originalContext.getServletContextName();
>      [iajc]                             ^^^^^^^^^^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/FilterTestCase.java:2
2
> The import javax.servlet.FilterChain cannot be resolved
>      [iajc] import javax.servlet.FilterChain;
>      [iajc]        ^^^^^^^^^^^^^^^^^^^^^^^^^
>      [iajc] /data3/gump/jakarta-
>
cactus/framework/src/java/j2ee13/org/apache/cactus/FilterTestCase.java:7
6
> FilterChain cannot be resolved (or is not a valid type) for the field
> FilterTestCase.filterChain
>      [iajc] public FilterChain filterChain;
>      [iajc]        ^^^^^^^^^^^
>      [null] Copying 1 file to
/data3/gump/jakarta-cactus/framework/target-
> 13/classes/java
>      [null] Copied 27 empty directories to 9 empty directories under
> /data3/gump/jakarta-cactus/framework/target-13/classes/java
> 
> BUILD FAILED
> /data3/gump/jakarta-cactus/framework/build.xml:242: 54 errors
> 
> Total time: 15 seconds
> ---------------------------------------------
> 
> 
> 
> 
> To subscribe to this information via syndicated feeds:
> RSS: http://lsd.student.utwente.nl/gump/jakarta-cactus/jakarta-cactus-
> framework-12.rss | Atom: http://lsd.student.utwente.nl/gump/jakarta-
> cactus/jakarta-cactus-framework-12.atom
> 
> --
> Gump http://gump.apache.org/
> [lsd]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to