AdoptOpenJDK / IcedTea-Web

The new home for IcedTea-Web
Other
223 stars 85 forks source link

Unable to start iDRAC7 due to missing jars in classpath #824

Open gnif opened 2 years ago

gnif commented 2 years ago

Note: I am no java expert so how I have solved this issue for myself may be completely wrong, but it works.

Starting the iDRAC7 KVM client fails with the following error

javax.xml.parsers.DocumentBuilderFactory: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

Adding the following to javaws.sh fixes this

for F in /usr/share/java/*.jar; do
  LAUNCHER_BOOTCLASSPATH="$LAUNCHER_BOOTCLASSPATH:$F"
done

Versions

$ dpkg -l icedtea-netx
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-============================================================
ii  icedtea-netx   1.8.4-1      all          Implementation of the Java Network Launching Protocol (JNLP)

$ java --version
openjdk 11.0.12 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2)
OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2, mixed mode, sharing)

jnlp source

<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase="https://192.168.1.31:443" spec="1.0+">
<information>
  <title>Virtual Console Client</title>
  <vendor>Dell Inc.</vendor>
   <icon href="https://192.168.1.31:443/images/logo.gif" kind="splash"/>
   <shortcut online="true"/>
 </information>
 <application-desc main-class="com.avocent.idrac.kvm.Main">
   <argument>ip=192.168.1.31</argument>
   <argument>vm=1</argument>
   <argument>title=idrac%2C+PowerEdge+R320%2C+User%3A+root</argument>
   <argument>user=1@@1743867846</argument>
   <argument>passwd=880249431</argument>
   <argument>kmport=5900</argument>
   <argument>vport=5900</argument>
   <argument>apcp=1</argument>
   <argument>reconnect=2</argument>
   <argument>chat=1</argument>
   <argument>F1=1</argument>
   <argument>custom=0</argument>
   <argument>scaling=15</argument>
   <argument>minwinheight=100</argument>
   <argument>minwinwidth=100</argument>
   <argument>videoborder=0</argument>
   <argument>version=2</argument>
 </application-desc>
 <security>
   <all-permissions/>
 </security>
 <resources>
   <j2se version="1.6+"/>
   <jar href="https://192.168.1.31:443/software/avctKVM.jar" download="eager" main="true" />
 </resources>
 <resources os="Windows" arch="x86">
   <nativelib href="https://192.168.1.31:443/software/avctKVMIOWin32.jar" download="eager"/>
   <nativelib href="https://192.168.1.31:443/software/avctVMAPI_DLLWin32.jar" download="eager"/>
 </resources>
 <resources os="Windows" arch="amd64">
   <nativelib href="https://192.168.1.31:443/software/avctKVMIOWin64.jar" download="eager"/>
   <nativelib href="https://192.168.1.31:443/software/avctVMAPI_DLLWin64.jar" download="eager"/>
 </resources>
 <resources os="Windows" arch="x86_64">
   <nativelib href="https://192.168.1.31:443/software/avctKVMIOWin64.jar" download="eager"/>
   <nativelib href="https://192.168.1.31:443/software/avctVMAPI_DLLWin64.jar" download="eager"/>
 </resources>
  <resources os="Linux" arch="x86">
    <nativelib href="https://192.168.1.31:443/software/avctKVMIOLinux32.jar" download="eager"/>
   <nativelib href="https://192.168.1.31:443/software/avctVMAPI_DLLLinux32.jar" download="eager"/>
  </resources>
  <resources os="Linux" arch="i386">
    <nativelib href="https://192.168.1.31:443/software/avctKVMIOLinux32.jar" download="eager"/>
   <nativelib href="https://192.168.1.31:443/software/avctVMAPI_DLLLinux32.jar" download="eager"/>
  </resources>
  <resources os="Linux" arch="i586">
    <nativelib href="https://192.168.1.31:443/software/avctKVMIOLinux32.jar" download="eager"/>
   <nativelib href="https://192.168.1.31:443/software/avctVMAPI_DLLLinux32.jar" download="eager"/>
  </resources>
  <resources os="Linux" arch="i686">
    <nativelib href="https://192.168.1.31:443/software/avctKVMIOLinux32.jar" download="eager"/>
   <nativelib href="https://192.168.1.31:443/software/avctVMAPI_DLLLinux32.jar" download="eager"/>
  </resources>
  <resources os="Linux" arch="amd64">
    <nativelib href="https://192.168.1.31:443/software/avctKVMIOLinux64.jar" download="eager"/>
   <nativelib href="https://192.168.1.31:443/software/avctVMAPI_DLLLinux64.jar" download="eager"/>
  </resources>
  <resources os="Linux" arch="x86_64">
    <nativelib href="https://192.168.1.31:443/software/avctKVMIOLinux64.jar" download="eager"/>
   <nativelib href="https://192.168.1.31:443/software/avctVMAPI_DLLLinux64.jar" download="eager"/>
  </resources>
  <resources os="Mac OS X" arch="x86_64">
    <nativelib href="https://192.168.1.31:443/software/avctKVMIOMac64.jar" download="eager"/>
   <nativelib href="https://192.168.1.31:443/software/avctVMAPI_DLLMac64.jar" download="eager"/>
  </resources>
</jnlp>
lherschi commented 1 year ago

Presumably this problem still exists with Debian. https://github.com/AdoptOpenJDK/IcedTea-Web/issues/382#issuecomment-526161612