Geronimo
  1. Geronimo
  2. GERONIMO-5020

"JACC manager gbean already present" deploymentException stop car-maven-plugin to generate valid geronimo plugin car

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2.1
    • Component/s: car-maven-plugin
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      ubuntu 8.04
      IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr7-20091214_49398 (JIT enabled, AOT enabled)

      Description

      If the deployment plan includes security configs, there will be a known issue:

      [ERROR] GeronimoSecurityBuilderImpl.addGBeans() failed: JACC manager gbean already present
      org.apache.geronimo.common.DeploymentException: JACC manager gbean already present
      org.apache.geronimo.security.deployment.GeronimoSecurityBuilderImpl.buildJaccManager(GeronimoSecurityBuilderImpl.java:224)

      this exception will stop car-maven-plugin to generate configuration data.

        Issue Links

          Activity

          Forrest Xia made changes -
          Link This issue relates to GERONIMO-5854 [ GERONIMO-5854 ]
          Hide
          David Jencks added a comment -

          I haven't looked at the plan you are trying to use to build the plugin with, however if you are using the car-maven-plugin you want to let it build most of the environment element for you from the maven project id (which turns into the geronimo module id) and the maven dependencies (modified if necessary with import type in the c-m-p configuration in the pom) (which produce the dependencies in the environment element). You ought to be able to specify class filtering elements in the plan and have them preserved. What problem are you seeing?

          Show
          David Jencks added a comment - I haven't looked at the plan you are trying to use to build the plugin with, however if you are using the car-maven-plugin you want to let it build most of the environment element for you from the maven project id (which turns into the geronimo module id) and the maven dependencies (modified if necessary with import type in the c-m-p configuration in the pom) (which produce the dependencies in the environment element). You ought to be able to specify class filtering elements in the plan and have them preserved. What problem are you seeing?
          Hide
          Forrest Xia added a comment -

          This is an interesting problem. If I keep the environment config there, the plugin cannot be generated correctly. Though I know it's a valid config for plan.xml according to geronimo-modules-1.2.xsd schema.

          A further comparation between the sample plan.xml and tomcat6-no-ha plan.xml, I noticed the sample one has module ID definition, but the tomcat6-no-ha one has none. That might be the reason?

          Show
          Forrest Xia added a comment - This is an interesting problem. If I keep the environment config there, the plugin cannot be generated correctly. Though I know it's a valid config for plan.xml according to geronimo-modules-1.2.xsd schema. A further comparation between the sample plan.xml and tomcat6-no-ha plan.xml, I noticed the sample one has module ID definition, but the tomcat6-no-ha one has none. That might be the reason?
          Hide
          Shawn Jiang added a comment -

          Sure environment is a valid config element in plan.xml . See 22branch\plugins\tomcat\tomcat6-no-ha\src\main\plan\plan.xml as an example.

          Show
          Shawn Jiang added a comment - Sure environment is a valid config element in plan.xml . See 22branch\plugins\tomcat\tomcat6-no-ha\src\main\plan\plan.xml as an example.
          Hide
          Forrest Xia added a comment -

          Yes, Ivan, the src/main/plan/plan.xml should not include environment configs, that's the reason caused failed to generate the car file correctly. thanks for your time on this issue.

          Show
          Forrest Xia added a comment - Yes, Ivan, the src/main/plan/plan.xml should not include environment configs, that's the reason caused failed to generate the car file correctly. thanks for your time on this issue.
          Ivan made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Closed [ 6 ]
          Hide
          Ivan added a comment -

          The issue is caused by some configurations in the sample's pom files, for the "jacc manager" issue, it is definitely fixed.
          If other problems found, please open another JIRA.

          Show
          Ivan added a comment - The issue is caused by some configurations in the sample's pom files, for the "jacc manager" issue, it is definitely fixed. If other problems found, please open another JIRA.
          Forrest Xia made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Hide
          Forrest Xia added a comment -

          Yes, the exception is not thrown out, but the plugin is still failed to generate correctly.

          Show
          Forrest Xia added a comment - Yes, the exception is not thrown out, but the plugin is still failed to generate correctly.
          viola.lu made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Hide
          viola.lu added a comment -

          After update geronimo 2.2 branch samples root pom.xml:
          change <geronimoVersion>2.2</geronimoVersion> to <geronimoVersion>$

          {version}

          </geronimoVersion>
          which will call geronimo 2.2.1-snapshot modules not old 2.2.
          this error doesn't exist.

          Show
          viola.lu added a comment - After update geronimo 2.2 branch samples root pom.xml: change <geronimoVersion>2.2</geronimoVersion> to <geronimoVersion>$ {version} </geronimoVersion> which will call geronimo 2.2.1-snapshot modules not old 2.2. this error doesn't exist.
          viola.lu made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Hide
          viola.lu added a comment -

          After investigation, this jira is different from G4801.
          This exception is reproduced when build geronimo sample: DataCDInfor-JTA-Tomcat, although it's built successfully finally.
          and can be deployed to server, can be found under repository, but cann't find this application under Application EAR porlet.
          So reopen it.

          Show
          viola.lu added a comment - After investigation, this jira is different from G4801. This exception is reproduced when build geronimo sample: DataCDInfor-JTA-Tomcat, although it's built successfully finally. and can be deployed to server, can be found under repository, but cann't find this application under Application EAR porlet. So reopen it.
          viola.lu made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Hide
          viola.lu added a comment -

          https://issues.apache.org/jira/browse/GERONIMO-4801 this jira is fixed and verified.
          This exception is removed already from latest build 2010.05.25-15:32:06.587-0400, so close it.

          Show
          viola.lu added a comment - https://issues.apache.org/jira/browse/GERONIMO-4801 this jira is fixed and verified. This exception is removed already from latest build 2010.05.25-15:32:06.587-0400, so close it.
          Hide
          Shawn Jiang added a comment -

          This should be a duplication of

          https://issues.apache.org/jira/browse/GERONIMO-4801

          Which was just resloved. Can you please verify this jira with the latest build again ?

          Show
          Shawn Jiang added a comment - This should be a duplication of https://issues.apache.org/jira/browse/GERONIMO-4801 Which was just resloved. Can you please verify this jira with the latest build again ?
          Ivan made changes -
          Assignee Ivan [ xuhaihong ]
          Shawn Jiang made changes -
          Field Original Value New Value
          Fix Version/s 2.2.1 [ 12314336 ]
          Forrest Xia created issue -

            People

            • Assignee:
              Ivan
              Reporter:
              Forrest Xia
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development