glassfish
  1. glassfish
  2. GLASSFISH-17046

Deployment with precompile of jsp of a portable J2EE 6 EAR on a cluster using admin interface doesn't work

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1, 3.1.1_b11
    • Fix Version/s: None
    • Component/s: web_container
    • Labels:
      None
    • Environment:

      Windows XP
      Java 1.6.0_24
      J2EE 6.0 portable and distributable EAR application (no dependancy injection)
      Note that the EAR has all referenced JARs on manifests as required for portable applications.

      Description

      By testing Glassfish 3.1 (b48) and Glassfish 3.1.1 (b11) I found that the deployment with precompile option doesn't work as expected.

      I tried two different packaging:
      1) providing utility JARs under EAR/lib
      2) providing all utility JARs references on META-INF/MANIFEST.mf for all interested modules.
      In both cases the deployment raises the following error that is asserting the JSP cannot resolve many class libraries that are actually visible and correctly packaged in the EAR.

      The same packaged EARs are correctly deployed with Netbeans 7.0 in a GF 3.1 (developer profile)

      ERROR RAISED:
      Error occurred during deployment: Exception while preparing the app : JSP Compilation Error: org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP PWC6199: Generated servlet error: string:///download_jsp.java:8: package com.portal.util does not exist PWC6199: Generated servlet error: string:///download_jsp.java:9: package com.portal.util does not exist PWC6199: Generated servlet error: string:///download_jsp.java:12: package com.contshipitalia.broker does not exist PWC6199: Generated servlet error: string:///download_jsp.java:13: package com.contshipitalia.persistence does not exist PWC6199: Generated servlet error: string:///download_jsp.java:14: package com.contshipitalia.persistence does not exist PWC6199: Generated servlet error: string:///download_jsp.java:15: package com.contshipitalia.util does not exist PWC6199: Generated servlet error: string:///download_jsp.java:16: package com.contshipitalia.net does not exist PWC6197: An error occurred at li .... msg.seeServerLog

      Using GF 3.1.1 errors are thousand and I do not list them here but I just can say the deployment is completely corrupted in this version using the admin GUI.
      I had no time to test the asadmin command-line yet.

      Using GF 3.1 I tried a deployement always using the asadmin GUI but without precompile option and I found that the EAR is deployed with no errors apparently.
      Anyway the Application it doesn't work as I obtain always HTTP 404 when a jsp or servlet is requested.
      The 404 is raised because pages are searched in the docroot location which is empty after deployment:

      [#|2011-07-14T10:53:34.500+0200|SEVERE|glassfish3.1|org.apache.jasper.servlet.JspServlet|_ThreadID=23;_ThreadName=Thread-1;|PWC6117: File "D%3A%5Cglassfish3%5Cglassfish%5Cnodes%5Clocalhost-domain1%5Cinstance1%5Cdocroot%5Cnews%5Clatest_news.jsp" not found|#]

      By inspecting the GF directories I found that under /domain1/applications/... the EAR has been deployed, and docroot is empty.
      A request to a jsp or servlet do not trigger its compilation bacause it is not resolved under /docroot.

      It is not clear the role of /docroot that should be optional (see when static pages in the root are installed on a web server)

        Activity

        cistox created issue -
        Anissa Lam made changes -
        Field Original Value New Value
        Assignee Anissa Lam [ anilam ] Hong Zhang [ hzhang_jn ]
        Component/s deployment [ 10594 ]
        Component/s admin_gui [ 10588 ]
        cistox made changes -
        Attachment CSIPortal-J2EE6.zip [ 46691 ]
        Hong Zhang made changes -
        Assignee Hong Zhang [ hzhang_jn ] kchung [ kchung ]
        Component/s web_container [ 10622 ]
        Component/s deployment [ 10594 ]
        kchung made changes -
        Tags 3_1-next 3_1_1-scrubbed
        kchung made changes -
        Tags 3_1-next 3_1_1-scrubbed 3_1-next 3_1_1-scrubbed 3_1_2-exclude

          People

          • Assignee:
            kchung
            Reporter:
            cistox
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: