You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Lester Ward <lw...@tagaudit.com> on 2003/08/27 00:21:01 UTC

org.apache.commons.lang.Strings

I'm doing a site generate and am getting a failure in the that ends with
this:

BUILD FAILED
File...... file:/<yadda>/plugins/maven-linkcheck-plugin-1.1-SNAPSHOT/
Element... linkcheck:linkcheck
Line...... 73
Column.... 9
java.lang.reflect.InvocationTargetException
com.werken.werkz.UnattainableGoalException: Unable to obtain goal [site] --
file:/C:/Documents and Settings/lward/.maven/plugins
/maven-linkcheck-plugin-1.1-SNAPSHOT/:73:9: <linkcheck:linkcheck> null
        at com.werken.werkz.Goal.fire(Goal.java:646)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
        at com.werken.werkz.Goal.attain(Goal.java:573)
<...snip...>
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/Strings
        at org.apache.commons.util.XmlUtils.escapeXml(XmlUtils.java:68)
        at
org.apache.maven.linkcheck.LinkCheckResult.toXML(LinkCheckResult.java:112)
        at
org.apache.maven.linkcheck.FileToCheck.toXML(FileToCheck.java:299)
        at org.apache.maven.linkcheck.LinkCheck.toXML(LinkCheck.java:328)
        at
org.apache.maven.linkcheck.LinkCheck.createDocument(LinkCheck.java:236)
        at
org.apache.maven.linkcheck.LinkCheck.doExecute(LinkCheck.java:167)
        ... 65 more

It would seem that my classpath is missing org.apache.commons.lang.Strings.
One question: where the %&*@ is this class? I assumed it to be in the
commons-lang jar, but it isn't in any of the ones in my repository
(including the one that the linkcheck plugin claims to use).

A quick Google was not particularly helpful. Anyone else solved this
problem?

Thanks,
Wordman

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: org.apache.commons.lang.Strings

Posted by Henri Yandell <ba...@generationjava.com>.
Yep. It's a dependency on a non-released version of Commons Lang.

At one point we had 'Strings' 'Numbers' 'Bytes' etc, rather than
StringUtils.

Are you on an old version of Maven?

Hen

On Wed, 27 Aug 2003, Ben Walding wrote:

> (No idea what happened with that first one!)
>
> This is quite odd.
>
>  From my brief excursion into this, commons-util-final.jar does not have
> any calls to Strings. It uses calls to StringUtils.  The Strings class
> has been gone for a long time - commons-lang-0.1-dev
>
> unzip -l commons-lang-0.1-dev.jar | grep Strings
>     21452  03-07-02 13:30   org/apache/commons/lang/Strings.class
>
>
> So... I'd take a look at your $REPO/commons-util/jars/commons-util-final.jar
>
> The one I have has the MD5Sum -
> 42c089f726327a7f5ae6b2f3278bbd43  commons-util-final.jar
>
>
> Lester Ward wrote:
>
> >I'm doing a site generate and am getting a failure in the that ends with
> >this:
> >
> >BUILD FAILED
> >File...... file:/<yadda>/plugins/maven-linkcheck-plugin-1.1-SNAPSHOT/
> >Element... linkcheck:linkcheck
> >Line...... 73
> >Column.... 9
> >java.lang.reflect.InvocationTargetException
> >com.werken.werkz.UnattainableGoalException: Unable to obtain goal [site] --
> >file:/C:/Documents and Settings/lward/.maven/plugins
> >/maven-linkcheck-plugin-1.1-SNAPSHOT/:73:9: <linkcheck:linkcheck> null
> >        at com.werken.werkz.Goal.fire(Goal.java:646)
> >        at com.werken.werkz.Goal.attain(Goal.java:575)
> >        at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
> >        at com.werken.werkz.Goal.attain(Goal.java:573)
> ><...snip...>
> >Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/Strings
> >        at org.apache.commons.util.XmlUtils.escapeXml(XmlUtils.java:68)
> >        at
> >org.apache.maven.linkcheck.LinkCheckResult.toXML(LinkCheckResult.java:112)
> >        at
> >org.apache.maven.linkcheck.FileToCheck.toXML(FileToCheck.java:299)
> >        at org.apache.maven.linkcheck.LinkCheck.toXML(LinkCheck.java:328)
> >        at
> >org.apache.maven.linkcheck.LinkCheck.createDocument(LinkCheck.java:236)
> >        at
> >org.apache.maven.linkcheck.LinkCheck.doExecute(LinkCheck.java:167)
> >        ... 65 more
> >
> >It would seem that my classpath is missing org.apache.commons.lang.Strings.
> >One question: where the %&*@ is this class? I assumed it to be in the
> >commons-lang jar, but it isn't in any of the ones in my repository
> >(including the one that the linkcheck plugin claims to use).
> >
> >A quick Google was not particularly helpful. Anyone else solved this
> >problem?
> >
> >Thanks,
> >Wordman
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: org.apache.commons.lang.Strings

Posted by Ben Walding <be...@walding.com>.
(No idea what happened with that first one!)

This is quite odd.

 From my brief excursion into this, commons-util-final.jar does not have 
any calls to Strings. It uses calls to StringUtils.  The Strings class 
has been gone for a long time - commons-lang-0.1-dev

unzip -l commons-lang-0.1-dev.jar | grep Strings
    21452  03-07-02 13:30   org/apache/commons/lang/Strings.class


So... I'd take a look at your $REPO/commons-util/jars/commons-util-final.jar

The one I have has the MD5Sum -
42c089f726327a7f5ae6b2f3278bbd43  commons-util-final.jar


Lester Ward wrote:

>I'm doing a site generate and am getting a failure in the that ends with
>this:
>
>BUILD FAILED
>File...... file:/<yadda>/plugins/maven-linkcheck-plugin-1.1-SNAPSHOT/
>Element... linkcheck:linkcheck
>Line...... 73
>Column.... 9
>java.lang.reflect.InvocationTargetException
>com.werken.werkz.UnattainableGoalException: Unable to obtain goal [site] --
>file:/C:/Documents and Settings/lward/.maven/plugins
>/maven-linkcheck-plugin-1.1-SNAPSHOT/:73:9: <linkcheck:linkcheck> null
>        at com.werken.werkz.Goal.fire(Goal.java:646)
>        at com.werken.werkz.Goal.attain(Goal.java:575)
>        at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
>        at com.werken.werkz.Goal.attain(Goal.java:573)
><...snip...>
>Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/Strings
>        at org.apache.commons.util.XmlUtils.escapeXml(XmlUtils.java:68)
>        at
>org.apache.maven.linkcheck.LinkCheckResult.toXML(LinkCheckResult.java:112)
>        at
>org.apache.maven.linkcheck.FileToCheck.toXML(FileToCheck.java:299)
>        at org.apache.maven.linkcheck.LinkCheck.toXML(LinkCheck.java:328)
>        at
>org.apache.maven.linkcheck.LinkCheck.createDocument(LinkCheck.java:236)
>        at
>org.apache.maven.linkcheck.LinkCheck.doExecute(LinkCheck.java:167)
>        ... 65 more
>
>It would seem that my classpath is missing org.apache.commons.lang.Strings.
>One question: where the %&*@ is this class? I assumed it to be in the
>commons-lang jar, but it isn't in any of the ones in my repository
>(including the one that the linkcheck plugin claims to use).
>
>A quick Google was not particularly helpful. Anyone else solved this
>problem?
>
>Thanks,
>Wordman
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: org.apache.commons.lang.Strings

Posted by Ben Walding <be...@walding.com>.
Lester Ward wrote:

>I'm doing a site generate and am getting a failure in the that ends with
>this:
>
>BUILD FAILED
>File...... file:/<yadda>/plugins/maven-linkcheck-plugin-1.1-SNAPSHOT/
>Element... linkcheck:linkcheck
>Line...... 73
>Column.... 9
>java.lang.reflect.InvocationTargetException
>com.werken.werkz.UnattainableGoalException: Unable to obtain goal [site] --
>file:/C:/Documents and Settings/lward/.maven/plugins
>/maven-linkcheck-plugin-1.1-SNAPSHOT/:73:9: <linkcheck:linkcheck> null
>        at com.werken.werkz.Goal.fire(Goal.java:646)
>        at com.werken.werkz.Goal.attain(Goal.java:575)
>        at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
>        at com.werken.werkz.Goal.attain(Goal.java:573)
><...snip...>
>Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/Strings
>        at org.apache.commons.util.XmlUtils.escapeXml(XmlUtils.java:68)
>        at
>org.apache.maven.linkcheck.LinkCheckResult.toXML(LinkCheckResult.java:112)
>        at
>org.apache.maven.linkcheck.FileToCheck.toXML(FileToCheck.java:299)
>        at org.apache.maven.linkcheck.LinkCheck.toXML(LinkCheck.java:328)
>        at
>org.apache.maven.linkcheck.LinkCheck.createDocument(LinkCheck.java:236)
>        at
>org.apache.maven.linkcheck.LinkCheck.doExecute(LinkCheck.java:167)
>        ... 65 more
>
>It would seem that my classpath is missing org.apache.commons.lang.Strings.
>One question: where the %&*@ is this class? I assumed it to be in the
>commons-lang jar, but it isn't in any of the ones in my repository
>(including the one that the linkcheck plugin claims to use).
>
>A quick Google was not particularly helpful. Anyone else solved this
>problem?
>
>Thanks,
>Wordman
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org