You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2018/12/01 01:24:00 UTC

[jira] [Created] (JUNEAU-92) Depend on javax.activation for Java 11

Gary Gregory created JUNEAU-92:
----------------------------------

             Summary: Depend on javax.activation for Java 11
                 Key: JUNEAU-92
                 URL: https://issues.apache.org/jira/browse/JUNEAU-92
             Project: Juneau
          Issue Type: Improvement
          Components: Code
    Affects Versions: 7.2.2
            Reporter: Gary Gregory


In order to run on Java 11, Juneau must depend onĀ {{javax.activation}} for classes like {{javax/activation/MimetypesFileTypeMap}}:
{noformat}
java.lang.NoClassDefFoundError: javax/activation/MimetypesFileTypeMap
	at org.apache.juneau.rest.RestServlet.init(RestServlet.java:50)
	at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:672)
	at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:521)
{noformat}
Maven coordinates:

{code:xml}
    <dependency>
      <!-- Java 11 -->
      <groupId>javax.activation</groupId>
      <artifactId>javax.activation-api</artifactId>
      <version>1.2.0</version>
    </dependency>
    <dependency>
      <!-- Java 11 -->
      <groupId>com.sun.activation</groupId>
      <artifactId>javax.activation</artifactId>
      <version>1.2.0</version>
    </dependency>
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)