geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <>
Subject [jira] Commented: (GERONIMO-4801) it says "JACC manager gbean already present" when i deploy PlantsByWebSphere sample
Date Tue, 01 Sep 2009 06:49:32 GMT


David Jencks commented on GERONIMO-4801:

This patch looks to me as if it will work but it may be more complicated than necessary. 
The earContext contextIDToPermissionsMap is returned from earContext rather than copied, and
the gbeanData attributes are also not copied.  So the map from the EARContext is shared between
the ear context and the gbeandata.  Therefore if there's a second call to create  the gbean,
you don't need to do anything at all, just check that the gbean is already present.

On the other hand, if, after checking that the gbean is not present, we get a GBeanAlreadyExists
exception, something is definitely wrong and we should throw a deployment exception, as we
do now.

> it says "JACC manager gbean already present" when i deploy PlantsByWebSphere  sample
> ------------------------------------------------------------------------------------
>                 Key: GERONIMO-4801
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: security
>    Affects Versions: 2.2
>         Environment: windows xp sp2(x86)
> jdk6
>            Reporter: Bin He
>            Assignee: Ivan
>         Attachments: Geronimo-4801.patch, PlantsByWebSphere.7z, sample-datasource.7z
> 1、start server 
> 2、deploy  sample-datasource sample
> 3、deploy  PlantsByWebSphere sample   but it   says:(but this sample can run well)
> 2009-08-19 10:28:52,370 ERROR [EjbModuleBuilder] GeronimoSecurityBuilderImpl.addGBeans()
failed: JACC manager gbean already present
> org.apache.geronimo.common.DeploymentException: JACC manager gbean already present
> 	at
> 	at
> 	at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(
> 	at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(
> 	at org.apache.geronimo.deployment.Deployer.deploy(
> 	at org.apache.geronimo.deployment.Deployer.deploy(
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> 	at java.lang.reflect.Method.invoke(
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
> 	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(
> 	at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(
> 	at
> 	at
> Caused by: org.apache.geronimo.kernel.GBeanAlreadyExistsException:,j2eeType=JACCManager,name=JACCManager
> 	at org.apache.geronimo.kernel.config.Configuration.addGBean(
> 	at org.apache.geronimo.deployment.DeploymentContext.addGBean(
> 	at
> 	... 16 more

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message