Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime Error: NoClassDefFoundError for javax/xml/bind/UnmarshalException when running ttt-ttv-all.jar #317

Open
cfadamp opened this issue Jan 27, 2025 · 0 comments

Comments

@cfadamp
Copy link

cfadamp commented Jan 27, 2025

When attempting to execute the ttt-ttv-all.jar file generated from the Timed Text Toolkit project, the application fails to initialize the main class com.skynav.ttv.app.TimedTextVerifier. The following error is encountered:

Error: Unable to initialize main class com.skynav.ttv.app.TimedTextVerifier
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/UnmarshalException

The issue indicates that the javax.xml.bind (JAXB) module is not available at runtime, which is required for the application to function properly. This is likely due to the removal of JAXB from the default Java runtime in versions 9 and above.

>mvn -version
Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
Java version: 1.8.0_241, vendor: Oracle Corporation
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Note that, I had to rename ttt\ttt-ttv\src\test\ and ttt\ttt-ttpe\src\test\ folders , see issue #316

Logs of the runtime error are attached for reference.

runtime_issue.log

To resolve this issue, I had to modify ttt\ttt-ttv-all\pom.xml :

<dependencies>
  <dependency>
    <groupId>${project.groupId}</groupId>
    <artifactId>ttt-ttv</artifactId>
    <version>${project.version}</version>
  </dependency>
  <dependency>
    <groupId>${project.groupId}</groupId>
    <artifactId>ttt-version</artifactId>
    <version>${project.version}</version>
  </dependency>
  <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-core</artifactId>
      <version>2.3.0.1</version>
  </dependency>
  <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>2.3.1</version>
  </dependency>
  <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-impl</artifactId>
      <version>2.3.1</version>
  </dependency>
  <dependency>
  	<groupId>javax.activation</groupId>
  	<artifactId>activation</artifactId>
  	<version>1.1.1</version>
  </dependency>
</dependencies>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant