Thank you Mark for spotting that. I had renamed the file and replacing it
with the changed version. It working now.
Cheers,
Nason
On Friday, 6 March 2026 at 12:15:39 UTC Nason Bimbe wrote:
> Hi Mark,
>
> I have made the change on the import and also the following line and the
> build is fine.
>
> /*params.put("Authorization", "Basic " +
> Base64.encode(authString.getBytes()));*/
> params.put("Authorization", "Basic " +
> Base64.getEncoder().encodeToString(authString.getBytes()));
>
>
> When I run dspace/bin/dspace filter-media I get the following...
>
> The script has started
> org.dspace.core.PluginInstantiationException: Cannot load plugin class:
> java.lang.ClassNotFoundException: org.dspace.app.mediafilter.PDFBoxThumbnail
> at
> org.dspace.core.LegacyPluginServiceImpl.getNamedPlugin(LegacyPluginServiceImpl.java:355)
> at
> org.dspace.app.mediafilter.MediaFilterScript.internalRun(MediaFilterScript.java:139)
> at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:150)
> at
> org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:155)
> at
> org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:133)
> at
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:100)
> Caused by: java.lang.ClassNotFoundException:
> org.dspace.app.mediafilter.PDFBoxThumbnail
> at
> org.dspace.core.PathsClassLoader.findClass(PathsClassLoader.java:131)
> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
> at java.base/java.lang.Class.forName0(Native Method)
> at java.base/java.lang.Class.forName(Class.java:469)
> at
> org.dspace.core.LegacyPluginServiceImpl.getNamedPlugin(LegacyPluginServiceImpl.java:343)
> ... 5 more
>
>
> Regards,
> Nason
> On Thursday, 5 March 2026 at 14:00:26 UTC [email protected] wrote:
>
>> On Wed, Mar 04, 2026 at 01:13:20PM +0000, Nason Bimbe wrote:
>> > I have applied for DSpace 7.6.x (
>> https://github.com/DSpace/DSpace/issues/11678) and the build is failing
>> with the following:
>> >
>> > [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:3.14.0:compile
>> (default-compile) on project dspace-api: Compilation failure: Compilation
>> failure:
>> > [ERROR]
>> /usr/local/dspace/DSpace-dspace-7.6.5/dspace-api/src/main/java/org/dspace/importer/external/epo/service/EpoImportMetadataSourceServiceImpl.java:[32,46]
>>
>> error: package org.apache.jena.ext.xerces.impl.dv.util does not exist
>> > [ERROR]
>> /usr/local/dspace/DSpace-dspace-7.6.5/dspace-api/src/main/java/org/dspace/importer/external/epo/service/EpoImportMetadataSourceServiceImpl.java:[167,47]
>>
>> error: cannot find symbol
>> > [ERROR] symbol: variable Base64
>> > [ERROR] location: class EpoImportMetadataSourceServiceImpl
>>
>> I ran into that recently while working on another part of DSpace. I
>> don't know why the symbol is no longer available, but I think DSpace
>> shouldn't be using that anyway. That class is internal to Xerces and,
>> I am told, deprecated. There are reports that the standard JRE
>> version is faster, too.
>>
>> I was able to make it compile by replacing
>>
>> -import org.apache.xerces.impl.dv.util.Base64;
>>
>> with
>>
>> +import java.util.Base64;
>>
>> I haven't tested the result yet.
>>
>> You will need to sort the new import into the other java.util imports
>> in its proper order or Checkstyle will complain.
>>
>> If the change works for you, please let us know.
>>
>> --
>> Mark H. Wood
>> Lead Technology Analyst
>>
>> University Library
>> Indiana University Indianapolis
>> 755 W. Michigan Street
>> Indianapolis, IN 46202
>> 317-274-0749 <(317)%20274-0749>
>> library.indianapolis.iu.edu
>>
>> ORCiD: 0000-0002-9558-3768
>>
>
--
All messages to this mailing list should adhere to the Code of Conduct:
https://lyrasis.org/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/dspace-tech/8129388e-d730-4b5b-b21c-56f855ec9fa0n%40googlegroups.com.