Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3859

Deployment of war file with glassfish-resources.xml inordinately slow

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 11.2
    • Fix Version/s: Next
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 10, Java 11, Payara 11.2, Jakarta 8.0, EclipseLink

      Description

      If a web app managed by Maven has a glassfish-resources.xml file the time to deploy is a minimum of 50 seconds to Payara. Manually deploying the war to Payara's autodeploy folder or by using the Maven Cargo plugin occurs almost instantly.

      Renaming glassfish-resources.xml to payara-resources.xml resolves the problem. Changing the dtd reference from "http://glassfish.org/dtds/glassfish-resources_1_5.dtd" to "https://raw.githubusercontent.com/payara/Payara-Server-Documentation/master/schemas/payara-resources_1_6.dtd" also resolves the problem. Yet, the dtd is already in Payara at <YOUR_GLASSFISH_FOLDER>/glassfish/lib/dtds/ .

      I suspect but cannot prove that something in NetBeans, possibly the Payara plugin, attempts to access the dtd file on the web where it does not exist. The URL for the server in this environment is localhost:8080.

      This issue did not occur in older versions of netbeans such as 8.2

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              omniprof Kenneth Fogel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: