[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13550345#comment-13550345
 ] 

Burkhard Buelte commented on OPENMEETINGS-501:
----------------------------------------------

Hello Maxim,

how I got the error, 

environment Win Vista,  tried with both jdk1.6.0 and jdk1.7.0 -> same result

1. - checkout source 
http://svn.apache.org/repos/asf/incubator/openmeetings    Revision HEAD   
(actually using NetBeans integrated svn client)

2. - open command prompt
2.1 - adjust path to include ant/bin and subversion/bin   set 
path=%path%;[adding path to ant, svnclient]

3. - cd into the singlewebapp directory
4. - execute ant without arguments

that's it.

P.S.
checks I've performed to find the error
- found that task -retrieve-anakia  was never called (because the  
"anakia.installed" property is set to true)

- as mentioned in initial post, found the lib/anakia empty, also nothing in the 
ivy2 cache
       - so ivy has the expected jdom*.jar not downloaded 


                
> fresh build fails with class org/jdom/JDOMException not found in anakia build 
> section
> -------------------------------------------------------------------------------------
>
>                 Key: OPENMEETINGS-501
>                 URL: https://issues.apache.org/jira/browse/OPENMEETINGS-501
>             Project: Openmeetings
>          Issue Type: Improvement
>          Components: BuildsAndReleases
>    Affects Versions: 2.0 Apache Incubator Release
>         Environment: ant 1.8.3
>            Reporter: Burkhard Buelte
>            Assignee: SebastianWagner
>            Priority: Minor
>              Labels: build
>         Attachments: build-anakia-jdomjar-missin.patch
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> ant build fails with following error message
> -retrieve-anakia:
> anakia:
> BUILD FAILED
> C:\src\openmeeting2\singlewebapp\build.xml:694: taskdef A class needed by 
> class
> org.apache.velocity.anakia.AnakiaTask cannot be found: org/jdom/JDOMException
>  using the classloader AntClassLoader[....
> Reson: The anakia lib folder is empty (path  ./build/lib/anakia)  but should 
> contain  jdom*.jar, oro*.jar and logkit*.jar.  These were not downloaded by 
> ivy task.
> Possible Fix:
> in build task          target name="-availability-check"    include a check 
> that jdom is available.
> After my workaround, replacing around lin 820
> <available classpathref="check.anakia.classpath" 
> classname="org.apache.oro.text.GlobCompiler" />
> by
>  <condition property="anakia.installed">
>            <and>
>     <available classpathref="check.anakia.classpath" 
> classname="org.apache.oro.text.GlobCompiler" />
>     <available classpathref="check.anakia.classpath" 
> classname="org.jdom.JDOMException"  />
>             </and>
> </condition>
> build will complete w/o error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to