forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <>
Subject Re: Building WAR fails
Date Thu, 15 Feb 2007 13:52:13 GMT
On Thu, 2007-02-15 at 13:37 +0200, Sjur Moshagen wrote:
> Den 15. feb. 2007 kl. 12.18 skrev Thorsten Scherler:
> >>> Are you sure that strip-doctype.xsl is valid xsl?
> >>
> >> I just checked - it is untouched locally, ie it is the same as in the
> >> svn repository, which probably is the same as you have.
> >
> > I am trying to locate the ant target where the error happens. Did you
> > try to turn off validating?
> Just tried. No difference.

Did you try the dispatcher plugin? We need to figure out whether this is
a global issue for you or just project specific.

> > usr/local/forrest/main/webapp/resources/stylesheets/strip-
> >>>> doctype.xsl:
> >>>> 30:92: Fatal Error! java.lang.ArrayIndexOutOfBoundsException: -1
> >>>> Cause: java.lang.ArrayIndexOutOfBoundsException: -1
> >
> > That looks like a target that is processing the xsl is missing some
> > values which is causing ArrayIndexOutOfBoundsException.
> >
> > We need to find out where exactly the error happens in the ant build
> > files to debug why.
> I know nothing about the build files, and not so much more about ant :-(

Ant works in targets which can depend on each other. We need to find out
where the error occurs. You tried the validation option so my first
guess was wrong.

Let us see. I guess it is: 
  <!-- Load properties from user's skinconf.xml, if it is defined -->
  <target name="load-project-props" depends="validation-props,
prepare-context" if="skinconf.present">
    <xslt in="${skinconf}"

        <xmlcatalog refid="fcatalog"/>


Processing /home/thorsten/src/apache/forrest/trunk/whiteboard/plugins/org.apache
to /home/thor
stylesheet /home/thorsten/src/apache/forrest/trunk/main/webapp/resources

Do you have a skinconf.xml file (even if you are using dispatcher) which
is valid? How does no-doctype-project-skinconf.xml look like?

Try to comment <xslt/> and see whether you can build.

> Thanks for helping me! :-)

De nada.

Thorsten Scherler                       
Open Source Java & XML                consulting, training and solutions

View raw message