You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Sjur Moshagen <sj...@mac.com> on 2007/02/12 15:53:19 UTC

Building WAR fails

... here:

load-project-props:
Processing /Users/sjur/Documents/termdb/src/documentation/ 
skinconf.xml to /Users/sjur/Documents/termdb/build/tmp/no-doctype- 
project-skinconf.xml
Loading stylesheet /usr/local/forrest/main/webapp/resources/ 
stylesheets/strip-doctype.xsl
usr/local/forrest/main/webapp/resources/stylesheets/strip-doctype.xsl: 
30:92: Fatal Error! java.lang.ArrayIndexOutOfBoundsException: -1  
Cause: java.lang.ArrayIndexOutOfBoundsException: -1
Failed to process /Users/sjur/Documents/termdb/src/documentation/ 
skinconf.xml

BUILD FAILED
/usr/local/forrest/main/forrest.build.xml:278: Fatal error during  
transformation

skinconf.xml validates just fine.

This is with the latest svn sources. Anyone any clue?

Sjur


Re: Building WAR fails

Posted by Sjur Moshagen <sj...@mac.com>.
Forgot to add that the site is using dispatcher.

Sjur

Den 12. feb. 2007 kl. 16.53 skrev Sjur Moshagen:

> ... here:
>
> load-project-props:
> Processing /Users/sjur/Documents/termdb/src/documentation/ 
> skinconf.xml to /Users/sjur/Documents/termdb/build/tmp/no-doctype- 
> project-skinconf.xml
> Loading stylesheet /usr/local/forrest/main/webapp/resources/ 
> stylesheets/strip-doctype.xsl
> usr/local/forrest/main/webapp/resources/stylesheets/strip- 
> doctype.xsl:30:92: Fatal Error!  
> java.lang.ArrayIndexOutOfBoundsException: -1 Cause:  
> java.lang.ArrayIndexOutOfBoundsException: -1
> Failed to process /Users/sjur/Documents/termdb/src/documentation/ 
> skinconf.xml
>
> BUILD FAILED
> /usr/local/forrest/main/forrest.build.xml:278: Fatal error during  
> transformation
>
> skinconf.xml validates just fine.
>
> This is with the latest svn sources. Anyone any clue?
>
> Sjur
>


Re: Building WAR fails

Posted by Thorsten Scherler <th...@apache.org>.
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}"
          out="${project.temp-dir}/no-doctype-project-skinconf.xml"

style="${forrest.core.webapp}/resources/stylesheets/strip-doctype.xsl">
        <xmlcatalog refid="fcatalog"/>
    </xslt>

    <xmlproperty
file="${project.temp-dir}/no-doctype-project-skinconf.xml"
                 collapseattributes="true"/>
  </target>

because:
load-project-props:
Processing /home/thorsten/src/apache/forrest/trunk/whiteboard/plugins/org.apache
.forrest.plugin.internal.dispatcher/src/documentation/skinconf.xml
to /home/thor
sten/src/apache/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.inter
nal.dispatcher/build/tmp/no-doctype-project-skinconf.xml
Loading
stylesheet /home/thorsten/src/apache/forrest/trunk/main/webapp/resources
/stylesheets/strip-doctype.xsl

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.

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java & XML                consulting, training and solutions


Re: Building WAR fails

Posted by Sjur Moshagen <sj...@mac.com>.
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.

> 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 :-(

Thanks for helping me! :-)

Sjur


Re: Building WAR fails

Posted by Thorsten Scherler <th...@apache.org>.
On Thu, 2007-02-15 at 09:59 +0200, Sjur Moshagen wrote:
> Den 14. feb. 2007 kl. 23.56 skrev Thorsten Scherler:
> 
> > On Mon, 2007-02-12 at 16:53 +0200, Sjur Moshagen wrote:
> >> ... here:
> >>
> >> load-project-props:
> >> Processing /Users/sjur/Documents/termdb/src/documentation/
> >> skinconf.xml to /Users/sjur/Documents/termdb/build/tmp/no-doctype-
> >> project-skinconf.xml
> >> Loading stylesheet /usr/local/forrest/main/webapp/resources/
> >> stylesheets/strip-doctype.xsl
> >> usr/local/forrest/main/webapp/resources/stylesheets/strip- 
> >> doctype.xsl:
> >> 30:92: Fatal Error! java.lang.ArrayIndexOutOfBoundsException: -1
> >> Cause: java.lang.ArrayIndexOutOfBoundsException: -1
> >> Failed to process /Users/sjur/Documents/termdb/src/documentation/
> >> skinconf.xml
> >>
> >> BUILD FAILED
> >> /usr/local/forrest/main/forrest.build.xml:278: Fatal error during
> >> transformation
> >>
> >> skinconf.xml validates just fine.
> >>
> >> This is with the latest svn sources. Anyone any clue?
> >
> > Hmm, I just tried with the dipatcher plugin:
> > org.apache.forrest.plugin.internal.dispatcher/build/my-project.war
> > BUILD SUCCESSFUL
> >
> > 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? 

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.

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java & XML                consulting, training and solutions


Re: Building WAR fails

Posted by Sjur Moshagen <sj...@mac.com>.
Den 14. feb. 2007 kl. 23.56 skrev Thorsten Scherler:

> On Mon, 2007-02-12 at 16:53 +0200, Sjur Moshagen wrote:
>> ... here:
>>
>> load-project-props:
>> Processing /Users/sjur/Documents/termdb/src/documentation/
>> skinconf.xml to /Users/sjur/Documents/termdb/build/tmp/no-doctype-
>> project-skinconf.xml
>> Loading stylesheet /usr/local/forrest/main/webapp/resources/
>> stylesheets/strip-doctype.xsl
>> usr/local/forrest/main/webapp/resources/stylesheets/strip- 
>> doctype.xsl:
>> 30:92: Fatal Error! java.lang.ArrayIndexOutOfBoundsException: -1
>> Cause: java.lang.ArrayIndexOutOfBoundsException: -1
>> Failed to process /Users/sjur/Documents/termdb/src/documentation/
>> skinconf.xml
>>
>> BUILD FAILED
>> /usr/local/forrest/main/forrest.build.xml:278: Fatal error during
>> transformation
>>
>> skinconf.xml validates just fine.
>>
>> This is with the latest svn sources. Anyone any clue?
>
> Hmm, I just tried with the dipatcher plugin:
> org.apache.forrest.plugin.internal.dispatcher/build/my-project.war
> BUILD SUCCESSFUL
>
> 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.

Sjur


Re: Building WAR fails

Posted by Thorsten Scherler <th...@apache.org>.
On Mon, 2007-02-12 at 16:53 +0200, Sjur Moshagen wrote:
> ... here:
> 
> load-project-props:
> Processing /Users/sjur/Documents/termdb/src/documentation/ 
> skinconf.xml to /Users/sjur/Documents/termdb/build/tmp/no-doctype- 
> project-skinconf.xml
> Loading stylesheet /usr/local/forrest/main/webapp/resources/ 
> stylesheets/strip-doctype.xsl
> usr/local/forrest/main/webapp/resources/stylesheets/strip-doctype.xsl: 
> 30:92: Fatal Error! java.lang.ArrayIndexOutOfBoundsException: -1  
> Cause: java.lang.ArrayIndexOutOfBoundsException: -1
> Failed to process /Users/sjur/Documents/termdb/src/documentation/ 
> skinconf.xml
> 
> BUILD FAILED
> /usr/local/forrest/main/forrest.build.xml:278: Fatal error during  
> transformation
> 
> skinconf.xml validates just fine.
> 
> This is with the latest svn sources. Anyone any clue?

Hmm, I just tried with the dipatcher plugin:
org.apache.forrest.plugin.internal.dispatcher/build/my-project.war
BUILD SUCCESSFUL

Are you sure that strip-doctype.xsl is valid xsl?

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java & XML                consulting, training and solutions