Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: V3
    • Fix Version/s: not determined
    • Component/s: other
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      5,604
    • Status Whiteboard:
      Hide

      gfv3-prelude-excluded

      Show
      gfv3-prelude-excluded

      Description

      There seems to be a regression related to JNDI in the V2 nightlies.

      Installed glassfish-snapshot-v3-prelude-08_22_2008.zip
      I have a mail resource but spring fails to initialize the mail session due to a
      JNDI exception. The stack trace is below:

      INFO: 10:48:48,707 ERROR [ContextLoader:215] Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean
      with name 'mailSession' defined in class path resource
      [META-INF/infrastructure-spring.xml]: Invocation of init method failed; nested
      exception is javax.naming.NameNotFoundException: mail
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      at java.security.AccessController.doPrivileged(Native Method)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
      at
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
      at
      org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
      at
      org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
      at
      org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
      at
      org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
      at
      org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
      at
      com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:50)
      at
      org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4625)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:5286)
      at com.sun.enterprise.web.WebModule.start(WebModule.java:381)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:922)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:906)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
      at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2194)
      at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1819)
      at com.sun.enterprise.web.WebApplication.start(WebApplication.java:94)
      at com.sun.enterprise.web.WebApplication.start(WebApplication.java:85)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.startModules(ApplicationLifecycle.java:691)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:293)
      at com.sun.enterprise.v3.deployment.DeployCommand.execute(DeployCommand.java:279)
      at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:286)
      at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:130)
      at org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:118)
      at org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:513)
      at
      org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:397)
      at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:333)
      at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:327)
      at
      org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:115)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      Caused by: javax.naming.NameNotFoundException: mail
      at
      com.sun.enterprise.naming.impl.TransientContext.resolveContext(TransientContext.java:255)
      at
      com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:174)
      at
      com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:58)
      at
      com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:96)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:233)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at
      com.sun.enterprise.container.common.impl.MailNamingObjectFactory.create(MailNamingObjectFactory.java:72)
      at
      com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:422)
      at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:149)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:231)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at com.liferay.portal.kernel.jndi.JNDIUtil._lookup(JNDIUtil.java:168)
      at com.liferay.portal.kernel.jndi.JNDIUtil.lookup(JNDIUtil.java:64)
      at com.liferay.portal.kernel.jndi.JNDIUtil.lookup(JNDIUtil.java:46)
      at
      com.liferay.portal.spring.jndi.JndiObjectFactoryBean.lookup(JndiObjectFactoryBean.java:40)
      at
      org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:200)
      at
      org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:186)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
      ... 39 more

      Aug 22, 2008 10:48:48 AM org.apache.catalina.core.ApplicationContext log
      SEVERE: WebModule[]PWC1275: Exception sending context initialized event to
      listener instance of class
      com.liferay.portal.spring.context.PortalContextLoaderListener
      org.springframework.beans.factory.BeanCreationException: Error creating bean
      with name 'mailSession' defined in class path resource
      [META-INF/infrastructure-spring.xml]: Invocation of init method failed; nested
      exception is javax.naming.NameNotFoundException: mail
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
      at java.security.AccessController.doPrivileged(Native Method)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
      at
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
      at
      org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      at
      org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
      at
      org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
      at
      org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
      at
      org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
      at
      org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
      at
      org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
      at
      com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:50)
      at
      org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4625)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:5286)
      at com.sun.enterprise.web.WebModule.start(WebModule.java:381)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:922)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:906)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
      at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2194)
      at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1819)
      at com.sun.enterprise.web.WebApplication.start(WebApplication.java:94)
      at com.sun.enterprise.web.WebApplication.start(WebApplication.java:85)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.startModules(ApplicationLifecycle.java:691)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:293)
      at com.sun.enterprise.v3.deployment.DeployCommand.execute(DeployCommand.java:279)
      at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:286)
      at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:130)
      at org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:118)
      at org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:513)
      at
      org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:397)
      at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:333)
      at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:327)
      at
      org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:115)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)
      Caused by: javax.naming.NameNotFoundException: mail
      at
      com.sun.enterprise.naming.impl.TransientContext.resolveContext(TransientContext.java:255)
      at
      com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:174)
      at
      com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:58)
      at
      com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:96)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:233)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at
      com.sun.enterprise.container.common.impl.MailNamingObjectFactory.create(MailNamingObjectFactory.java:72)
      at
      com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:422)
      at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:149)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:231)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at com.liferay.portal.kernel.jndi.JNDIUtil._lookup(JNDIUtil.java:168)
      at com.liferay.portal.kernel.jndi.JNDIUtil.lookup(JNDIUtil.java:64)
      at com.liferay.portal.kernel.jndi.JNDIUtil.lookup(JNDIUtil.java:46)
      at
      com.liferay.portal.spring.jndi.JndiObjectFactoryBean.lookup(JndiObjectFactoryBean.java:40)
      at
      org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:200)
      at
      org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:186)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
      at
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
      ... 39 more

        Activity

        Hide
        Mahesh Kannan added a comment -

        Not sure if the mail resources are processed and bound to jndi. Transferring to
        Shalini for evaluation.

        Show
        Mahesh Kannan added a comment - Not sure if the mail resources are processed and bound to jndi. Transferring to Shalini for evaluation.
        Hide
        Shalini added a comment -

        mail resource is not supported for prelude. Hence marking this as excluded.

        Show
        Shalini added a comment - mail resource is not supported for prelude. Hence marking this as excluded.
        Hide
        kumara added a comment -

        Reclassifying as P4 because these issues are not must fix for prelude release.
        This issue will be scrubbed after prelude release and will be given the right
        priority for v3 final release.

        Show
        kumara added a comment - Reclassifying as P4 because these issues are not must fix for prelude release. This issue will be scrubbed after prelude release and will be given the right priority for v3 final release.
        Hide
        Shalini added a comment -

        Do you see this issue with the latest v3 builds? If not, please close this issue.

        Show
        Shalini added a comment - Do you see this issue with the latest v3 builds? If not, please close this issue.
        Hide
        Tom Mueller added a comment -

        Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

        Show
        Tom Mueller added a comment - Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

          People

          • Assignee:
            sfelts
            Reporter:
            uppalapati
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: