Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-811

TJWSEmbeddedJaxrsServer reports "MIME map can't be loaded:java.lang.NullPointerException"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • None
    • 2.3.3.Final, 2.3.4.Final, 2.3.5.Final
    • None
    • None
    • Hide

      new TJWSEmbeddedJaxrsServer();

      Show
      new TJWSEmbeddedJaxrsServer();

    Description

      When instantiating TJWSEmbeddedJaxrsServer(), the console reports:

      MIME map can't be loaded:java.lang.NullPointerException

      This is because Serve.initMime() looks for a resource called 'Acme/Resource/mime.properties', which appears to have been removed from the JAR file since 2.3.3 (it was present in 2.3.2).

      TJWSEmbeddedJaxrsServer extends TJWSServletServer, which contains a static class called FileMappingServe which extends Serve. initMime() is called at the very end of the Serve(Map, PrintStream) constructor.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            bj-objective Ben Johnson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: