maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose M. Rus" <jm...@euneo.com>
Subject Re: jxr exception (apache.ORO method not found)
Date Tue, 20 Jul 2004 06:30:05 GMT
Yes ! Very good guess. I have looked inside the jython.jar file and have 
found that it includes some compiled classes of an (ancient) version of ORO.

With your hint I have googled a little, a workaround is to add the new 
oro-2.0.8  as a dependency  *before*  the jython one. I also found that 
ibiblio stores a jython-20020807-no-oro.jar, but I don't know if it 
corresponds to the last official jython released on 2001-12-30. 
Hopefully the new release of Jython, expected for this summer, won't be 
packaged with ORO.

Thanks,

    Jose M. Rus.


BUILD SUCCESSFUL

Ben Walding wrote:

> Do you have jython as a dep in your project?
>
> Jose M. Rus wrote:
>
>> Thanks for the quick answer, but I got the same result after 
>> completely deleting the repository, finally Maven downloads the same 
>> version of ORO (2.0.7):
>>
>> $ rm -fr ~/.maven
>> $ maven -X site
>>
>> [...]
>> maven-javadoc-plugin:register:
>>    [mkdir] Created dir: 
>> /home/jmrus/proyectos/desarrollo/doppel/target/javadoc/src
>> Attempting to download oro-2.0.7.jar.
>> 63K downloaded
>> [...]
>> same error as before.
>>
>> Emmanuel Venisse wrote:
>>
>>> Delete your oro jar in your local repository.
>>>
>>> Emmanuel
>>>
>>> ----- Original Message ----- From: "Jose M. Rus" <jmrus@euneo.com>
>>> To: <users@maven.apache.org>
>>> Sent: Monday, July 19, 2004 11:05 AM
>>> Subject: jxr exception (apache.ORO method not found)
>>>
>>>
>>>  
>>>
>>>> Hi all,
>>>>
>>>> Maven can't generate the source code reference (jxr-plugin) when 
>>>> parsing
>>>> one of my files that uses the Java Regular Expresion API. All that 
>>>> I get
>>>> is a NoSuchMethodError about a method in the Jakarta ORO library, 
>>>> which
>>>> I don't use. I tried to clean the .maven/cache with no luck.
>>>>
>>>> Is it a configuration problem ? A bug in Maven?
>>>>
>>>> Regards,
>>>>    Jose M. Rus.
>>>>
>>>>
>>>> Maven: 1.0.
>>>> Java: 1.4.2_04 on Linux.
>>>>
>>>> $ maven -X site
>>>>
>>>> [ ...]
>>>> adding dependency /home/jmrus/.maven/repository/oro/jars/oro-2.0.7.jar
>>>> into project classloader
>>>>
>>>> [...]
>>>>
>>>>    [echo] Generating the Source Xref...
>>>> maven-jxr-plugin:report:
>>>>    [echo]
>>>> PackageManager -> parsing... com/euneo/doppel/tools/reciper/Main.java
>>>> PackageManager -> parsing... com/euneo/io/FileUtils.java
>>>> PackageManager -> parsing... com/euneo/io/RegExFileFilter.java
>>>>
>>>> BUILD FAILED
>>>> java.lang.NoSuchMethodError:
>>>>
>>>>   
>>>
>>>
>>> org.apache.oro.text.regex.Util.substitute(Ljava/lang/StringBuffer;Lorg/apach

>>>
>>> e/oro/text/regex/PatternMatcher;Lorg/apache/oro/text/regex/Pattern;Lorg/apac

>>>
>>> he/oro/text/regex/Substitution;Ljava/lang/String;I)I
>>>  
>>>
>>>>        at org.apache.oro.text.perl.Perl5Util.substitute(Unknown 
>>>> Source)
>>>>        at org.apache.oro.text.perl.Perl5Util.substitute(Unknown 
>>>> Source)
>>>>        at
>>>>
>>>>   
>>>
>>>
>>> org.apache.maven.jxr.DirectoryIndexer.getPackageInfo(DirectoryIndexer.java:2

>>>
>>> 72)
>>>  
>>>
>>>>        at
>>>> org.apache.maven.jxr.DirectoryIndexer.process(DirectoryIndexer.java:193)

>>>>
>>>>        at org.apache.maven.jxr.JxrBean.xref(JxrBean.java:104)
>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>        at
>>>>
>>>>   
>>>
>>>
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39

>>>
>>> )
>>>  
>>>
>>>>        at
>>>>
>>>>   
>>>
>>>
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl

>>>
>>> .java:25)
>>>  
>>>
>>>>        at java.lang.reflect.Method.invoke(Method.java:324)
>>>>        at
>>>>
>>>>   
>>>
>>>
>>> org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:230) 
>>>
>>>  
>>>
>>>>        at
>>>>
>>>>   
>>>
>>>
>>> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:145) 
>>>
>>>  
>>>
>>>>        at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>>>>        at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>>>>        at 
>>>> org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
>>>>        at 
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>>>>        at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>>>>        at
>>>>
>>>>   
>>>
>>>
>>> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:

>>>
>>> 79)
>>>  
>>>
>>>>        at
>>>>
>>>>   
>>>
>>>
>>> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction

>>>
>>> (MavenGoalTag.java:110)
>>>  
>>>
>>>>        at com.werken.werkz.Goal.fire(Goal.java:639)
>>>>        at com.werken.werkz.Goal.attain(Goal.java:575)
>>>>        at 
>>>> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
>>>>        at
>>>>
>>>>   
>>>
>>>
>>> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTa

>>>
>>> g.java:127)
>>>  
>>>
>>>>        at 
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>>>>        at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>>>>        at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>>>>        at 
>>>> org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
>>>>        at 
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>>>>        at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>>>>        at
>>>> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>>>>        at
>>>> org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:145)

>>>>
>>>>        at 
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>>>>        at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>>>>        at
>>>>
>>>>   
>>>
>>>
>>> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:

>>>
>>> 79)
>>>  
>>>
>>>>        at
>>>>
>>>>   
>>>
>>>
>>> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction

>>>
>>> (MavenGoalTag.java:110)
>>>  
>>>
>>>>        at com.werken.werkz.Goal.fire(Goal.java:639)
>>>>        at com.werken.werkz.Goal.attain(Goal.java:575)
>>>>        at 
>>>> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
>>>>        at
>>>>
>>>>   
>>>
>>>
>>> org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTa

>>>
>>> g.java:127)
>>>  
>>>
>>>>        at 
>>>> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>>>>        at
>>>> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>>>>        at
>>>>
>>>>   
>>>
>>>
>>> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:

>>>
>>> 79)
>>>  
>>>
>>>>        at
>>>>
>>>>   
>>>
>>>
>>> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction

>>>
>>> (MavenGoalTag.java:110)
>>>  
>>>
>>>>        at com.werken.werkz.Goal.fire(Goal.java:639)
>>>>        at com.werken.werkz.Goal.attain(Goal.java:575)
>>>>        at 
>>>> com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
>>>>        at
>>>> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java: 
>>>> 634)
>>>>        at
>>>>   
>>>
>>>
>>> org.apache.maven.MavenSession.attainGoals(MavenSession.java:266)
>>>  
>>>
>>>>        at org.apache.maven.cli.App.doMain(App.java:486)
>>>>        at org.apache.maven.cli.App.main(App.java:1215)
>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>        at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>> java:39)
>>>>        at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>> sorImpl.java:25)
>>>>        at java.lang.reflect.Method.invoke(Method.java:324)
>>>>        at com.werken.forehead.Forehead.run(Forehead.java:551)
>>>>        at com.werken.forehead.Forehead.main(Forehead.java:581)
>>>> File...... 
>>>> /home/jmrus/.maven/cache/maven-jxr-plugin-1.4.1/plugin.jelly
>>>> Element... jxr:jxr
>>>> Line...... 97
>>>> Column.... 31
>>>>
>>>>   
>>>
>>>
>>> org.apache.oro.text.regex.Util.substitute(Ljava/lang/StringBuffer;Lorg/apach

>>>
>>> e/or
>>>  
>>>
>>>>   
>>>
>>>
>>> o/text/regex/PatternMatcher;Lorg/apache/oro/text/regex/Pattern;Lorg/apache/o

>>>
>>> ro/t
>>>  
>>>
>>>> ext/regex/Substitution;Ljava/lang/String;I)I
>>>> Total time: 17 seconds
>>>> Finished at: Mon Jul 19 10:22:28 CEST 2004
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>
>>
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message