[
https://issues.apache.org/jira/browse/GERONIMO-4844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833266#action_12833266
]
David Jencks commented on GERONIMO-4844:
----------------------------------------
Ashish,
I think this should work on 2.2 where the getGBean call used returns a proxy.
In 2.1 it looks like we're trying to get the actual gbean from the remote
kernel which doesn't work.
2.2 code:
public <T> T getGBean(Class<T> type) throws GBeanNotFoundException,
InternalKernelException, IllegalStateException {
Set<AbstractName> set = listGBeans(new
AbstractNameQuery(type.getName()));
for (AbstractName name : set) {
return proxyManager.createProxy(name, type);
}
throw new GBeanNotFoundException("No implementation found for type " +
type.getName(), null, set);
}
2.1 code:
public Object getGBean(Class type) throws GBeanNotFoundException,
InternalKernelException, IllegalStateException {
try {
return invokeKernel("getGBean", new Object[] {type}, new String[]
{Class.class.getName()});
} catch (GBeanNotFoundException e) {
throw e;
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw new InternalKernelException(e);
}
}
I'm not sure why the other getGBean methods also don't use proxies. Can you
see if this change fixes things in 2.1?
> There is an error after undeploy the application and deploy the application
> again when configure WADI clustering,
> ------------------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-4844
> URL: https://issues.apache.org/jira/browse/GERONIMO-4844
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Clustering
> Affects Versions: 2.1.4, 2.2
> Environment: windows:sp2
> jdk1.6
> Reporter: liangkun
> Assignee: Shawn Jiang
> Fix For: 2.1.5, 2.2.1, 3.0
>
> Attachments: GERONIMO-4844.patch
>
>
> I deploy the application cviewer.war after undeploy it when configure the
> WADI clustering ,the there is an error:
> org.apache.geronimo.common.DeploymentException: Unable to deploy
> cviewer-2.1.1.2.war: Module com.ibm.wasce.samples/cviewer/2.1.1.2/car already
> exists in the server. Try to undeploy it first or use the redeploy command.
> at
> org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(CommandDeploy.java:45)
> at
> org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(CommandDistribute.java:139)
> at
> org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandDistribute.java:125)
> at
> org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:168)
> at
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at
> org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
> However,actually,there are no any module in the server.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.