Re: ERROR: A class needed by class org.dita.dost.ant.IntegratorTask cannot be found #DITA-OT


Mark Giffin
 

Yes, the bin\dita command has been the norm for a long time now. But don't completely forget good old 'ant -f integrator.xml' because I had a problem a year or so ago where the dita command was failing to install plugins, and only 'ant -f integrator.xml' would install correctly. I think it was a 2.5 OT, but I never got a good answer on the problem.

Mark Giffin
Mark Giffin Consulting, Inc.
http://markgiffin.com/


On 12/3/2019 8:33 AM, Björn Dahmen wrote:
Hi  Radu,

once again, thanks! Now it works. I still feel quite astonished by the fact 'ant -f Integrator.xml' does not work any more,
but should not matter since your solution definitely does!

Regards,

Bjoern


From: dita-users@groups.io <dita-users@groups.io> on behalf of Radu Coravu <radu_coravu@...>
Sent: Tuesday, December 3, 2019 1:52 PM
To: dita-users@groups.io <dita-users@groups.io>
Subject: Re: [dita-users] ERROR: A class needed by class org.dita.dost.ant.IntegratorTask cannot be found
 
Hi Björn,

Probably in a recent DITA OT version the DITA OT integrator task gained
an extra dependency on that JAR library that I mentioned in my previous
email.
The recommended way to run the integrator is to do something like:

"bin\dita.bat --install"

https://www.dita-ot.org/dev/topics/plugins-installing.html#ariaid-title1

and it should work fine.

Regards,
Radu

Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

On 12/3/2019 2:08 PM, Björn Dahmen wrote:
> Hi Radu,
>
> thanks for your help. The error message does not appear while trying to
> create an output (like pdf for example), but after entering the DITA-OT
> directory and trying to install dita itself using the command ant -f
> Integrator.xml. I have never encountered that error message before.
>
> Regards,
>
> Bjoern
>
> ------------------------------------------------------------------------
> *From:* dita-users@groups.io <dita-users@groups.io> on behalf of Radu
> Coravu <radu_coravu@...>
> *Sent:* Tuesday, December 3, 2019 9:17 AM
> *To:* dita-users@groups.io <dita-users@groups.io>
> *Subject:* Re: [dita-users] ERROR: A class needed by class
> org.dita.dost.ant.IntegratorTask cannot be found
> Hi Björn,
>
> Are you starting the DITA OT process by using the recommended startup
> scripts ("bin\dita.bat" or "bin\dita" executables) or do you have your
> custom way of starting the processing?
>
> https://www.dita-ot.org/dev/topics/build-using-dita-command.html
>
> The command line scripts should know exactly what libraries need to be
> loaded and used.
>
> There is a library "DITA-OT\lib\slf4j-api-1.7.25.jar" which is bundled
> with the DITA OT but it does not seem to be loaded by the class loader
> of the process which you are starting on your side.
>
> Regards,
> Radu
>
> Radu Coravu
> <oXygen/> XML Editor
> http://www.oxygenxml.com
> On 12/2/2019 7:33 PM, Björn Dahmen wrote:
>> Hi there,
>> I have been working with DITA for a couple of years by now. I know about
>> setting path and environmental variables successfully.
>> Nevertheless, since yesterday, when ever I try to install the DITO OT, I
>> get this error:
>>
>> BUILD FAILED
>> D:\dita-ot-3.4\integrator.xml:39: taskdef A class needed by class
>> org.dita.dost.ant.IntegratorTask cannot be found: org/slf4j/Logger
>>   using the classloader
>> AntClassLoader[D:\dita-ot-3.4\lib\dost.jar;D:\dita-ot-3.4\lib\dost-configuration.jar]
>>
>> Does any one know how to fix this? JDK 8 u 231 is installed...
>>
>> Thanks in advance!
>>
>
>
>
>
>
>






Join main@dita-users.groups.io to automatically receive all group messages.