dcache icon indicating copy to clipboard operation
dcache copied to clipboard

Missing saxon StyleSheet for dcache-info-provider

Open ArturAkh opened this issue 7 months ago • 4 comments
trafficstars

Dear dCache developers,

We at KIT have made an attempt to install dCache 10.2.10 on our test instance at GridKa running on RHEL 8:

https://www.dcache.org/old/downloads/1.9/repo/10.2/dcache-10.2.10-1.noarch.rpm

We have noticed then, that for running the dcache-info-provider, the following error message is appearing:

> dcache-info-provider
Error: Could not find or load main class com.icl.saxon.StyleSheet
Caused by: java.lang.ClassNotFoundException: com.icl.saxon.StyleSheet

So the saxon java class seems to be missing.

To resolve that, we had to add this class by hand, at first downloading the corresponding .zip file:

> wget https://github.com/Saxonica/Saxon-Archive/raw/refs/heads/main/Saxon-6/6.5.5/saxon6-5-5.zip
--2025-03-25 17:57:14--  https://github.com/Saxonica/Saxon-Archive/raw/refs/heads/main/Saxon-6/6.5.5/saxon6-5-5.zip
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/Saxonica/Saxon-Archive/refs/heads/main/Saxon-6/6.5.5/saxon6-5-5.zip [following]
--2025-03-25 17:57:15--  https://raw.githubusercontent.com/Saxonica/Saxon-Archive/refs/heads/main/Saxon-6/6.5.5/saxon6-5-5.zip
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8001::154, 2606:50c0:8002::154, 2606:50c0:8003::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8001::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3346162 (3.2M) [application/zip]
Saving to: ‘saxon6-5-5.zip’

saxon6-5-5.zip                                                      100%[===================================================================================================================================================================>]   3.19M  --.-KB/s    in 0.04s   

2025-03-25 17:57:15 (73.1 MB/s) - ‘saxon6-5-5.zip’ saved [3346162/3346162]

Then we have extracted the .jar file from it, and moved it to /usr/share/dcache/classes/saxon directory used by dcache-infor-provider.

After that, the tool was working again:

> dcache-info-provider
#  
#  LDIF generated by Xylophone v0.2
#  
#  XSLT processing using SAXON 6.5.5 from Michael Kay 1 (http://saxon.sf.net/)
#   at: 2025-03-25T18:06:22+01:00
# 
(...)

We would kindly ask you to re-add this class to the ones needed by dCache, or to make a suggestion to resolve this issue in a different way.

Thank you very much in advance!

Best regards,

Artur Gottmann (KIT)

ArturAkh avatar Mar 27 '25 11:03 ArturAkh