glassfish
  1. glassfish
  2. GLASSFISH-13036

Deployment suppresses actual error message

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1_b32
    • Component/s: deployment
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Macintosh

    • Issuezilla Id:
      13,036

      Description

      This is all that I see in the server.log:

      [#|2010-08-18T18:54:48.327-0700|SEVERE|glassfish3.1|javax.enterprise.system.core.org.glassfish.internal.data|_ThreadID=16;_ThreadName=Thread-1;|Exception
      while invoking class org.glassfish.ejb.startup.EjbDeployer load method|#]

      [#|2010-08-18T18:54:48.337-0700|SEVERE|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=16;_ThreadName=Thread-1;|Exception
      while loading the app|#]

        Activity

        Hide
        marina vatkina added a comment -

        Created an attachment (id=4696)
        deploy this war onto web profile

        Show
        marina vatkina added a comment - Created an attachment (id=4696) deploy this war onto web profile
        Hide
        Hong Zhang added a comment -

        scrubbing issues

        Show
        Hong Zhang added a comment - scrubbing issues
        Hide
        Hong Zhang added a comment -

        I just tried this with the web profile, and the deployment failed as expected.
        $ asadmin deploy test_create_war.war
        org.glassfish.api.admin.CommandException: remote failure: Error occurred during deployment: Exception while loading the app : EJB Container initialization error. Please see server.log for more details.
        Command deploy failed.

        The error message pointed to the server.log for more details. And the server.log has more information about the exception, for example, one stack trace from ejb container tells user the application uses a feature which is available in the full profile and not the web profile:

        [#|2010-12-07T11:18:34.697-0500|SEVERE|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=15;_ThreadName=Thread-1;|Exception while loading the app : EJB Container initialization error
        java.lang.RuntimeException: Invalid application. EJB MyBean uses the EJB Timer Service. This feature is not part of the EJB 3.1 Lite API
        at com.sun.ejb.containers.BaseContainer.assertFullProfile(BaseContainer.java:1106)
        at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:716)
        at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:155)

        Show
        Hong Zhang added a comment - I just tried this with the web profile, and the deployment failed as expected. $ asadmin deploy test_create_war.war org.glassfish.api.admin.CommandException: remote failure: Error occurred during deployment: Exception while loading the app : EJB Container initialization error. Please see server.log for more details. Command deploy failed. The error message pointed to the server.log for more details. And the server.log has more information about the exception, for example, one stack trace from ejb container tells user the application uses a feature which is available in the full profile and not the web profile: [#|2010-12-07T11:18:34.697-0500|SEVERE|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=15;_ThreadName=Thread-1;|Exception while loading the app : EJB Container initialization error java.lang.RuntimeException: Invalid application. EJB MyBean uses the EJB Timer Service. This feature is not part of the EJB 3.1 Lite API at com.sun.ejb.containers.BaseContainer.assertFullProfile(BaseContainer.java:1106) at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:716) at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:155)

          People

          • Assignee:
            Hong Zhang
            Reporter:
            marina vatkina
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: