[
https://issues.apache.org/jira/browse/GERONIMO-5862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
viola.lu updated GERONIMO-5862:
-------------------------------
Description:
MailGBean is already registered as osgi service, but its jndi name is bound to
a wrong jca context, so get no inital context exception if set its jndi name
ger;session;
2011-03-17 15:06:31,453 ERROR [GBeanInstanceState] Error while starting; GBean
is now in the FAILED state:
abstractName="org.apache.geronimo.configs/javamail/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/javamail/3.0-SNAPSHOT/car,j2eeType=JavaMailResource,name=mail/MailSession"
javax.naming.NoInitialContextException
at
org.apache.aries.jndi.DelegateContext.getDefaultContext(DelegateContext.java:228)
at
org.apache.aries.jndi.DelegateContext.findContext(DelegateContext.java:203)
at
org.apache.aries.jndi.DelegateContext.getNameParser(DelegateContext.java:124)
at javax.naming.InitialContext.getNameParser(InitialContext.java:480)
at
org.apache.geronimo.resource.mail.MailGBean.doStart(MailGBean.java:380)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:560)
at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:211)
at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:91)
at
org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107)
at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:32)
2011-03-17 15:06:31,500 INFO [KernelContextGBean] unbound gbean
was:
MailGBean is already registered as osgi service, but its jndi name is not bound
to context(get context exception).So fail to lookup it via
osgi:service/ger:Session or osgi:service/mail/MailSession.
Also try to lookup it via osgi:service/$MailGBean.class.getName(),but got
constructor error.
See testcase under $source
\testsuite\aries-testsuite\mail-osgi-service\mail-wab\
Assignee: viola.lu
Summary: mail/MaiSession is bound to a wrong jca global context (was:
mail/MaiSession is not bound to context)
> mail/MaiSession is bound to a wrong jca global context
> ------------------------------------------------------
>
> Key: GERONIMO-5862
> URL: https://issues.apache.org/jira/browse/GERONIMO-5862
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: mail
> Affects Versions: 3.0
> Environment: OS: win
> Reporter: viola.lu
> Assignee: viola.lu
> Priority: Minor
> Fix For: 3.0
>
>
> MailGBean is already registered as osgi service, but its jndi name is bound
> to a wrong jca context, so get no inital context exception if set its jndi
> name ger;session;
> 2011-03-17 15:06:31,453 ERROR [GBeanInstanceState] Error while starting;
> GBean is now in the FAILED state:
> abstractName="org.apache.geronimo.configs/javamail/3.0-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/javamail/3.0-SNAPSHOT/car,j2eeType=JavaMailResource,name=mail/MailSession"
> javax.naming.NoInitialContextException
> at
> org.apache.aries.jndi.DelegateContext.getDefaultContext(DelegateContext.java:228)
> at
> org.apache.aries.jndi.DelegateContext.findContext(DelegateContext.java:203)
> at
> org.apache.aries.jndi.DelegateContext.getNameParser(DelegateContext.java:124)
> at javax.naming.InitialContext.getNameParser(InitialContext.java:480)
> at
> org.apache.geronimo.resource.mail.MailGBean.doStart(MailGBean.java:380)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:975)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:560)
> at
> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
> at
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
> at
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
> at
> org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:211)
> at
> org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:91)
> at
> org.apache.geronimo.system.osgi.BootActivator$1.execute(BootActivator.java:107)
> at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:65)
> at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
> at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:32)
> 2011-03-17 15:06:31,500 INFO [KernelContextGBean] unbound gbean
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira