javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

Pentaho BI Platform Tracking | Golda David | 8 years ago
  1. 0

    While starting the Enterprise console in BISERVER EE getting lot of warnings. Though it does not stop any functionality there are lot of warning messages. 2009-02-11 09:37:48.177::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2009-02-11 09:37:49.615::INFO: jetty-6.1.2 WARN ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Pentaho/dry-runs/biserver-ee/enterprise-console/lib/ehcache-1.2.3.jar!/ehcache-fail safe.xml WARN SessionFactoryObjectFactory - Could not bind factory to JNDI javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.getNameParser(Unknown Source) at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52) at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:306) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300) at com.pentaho.mgmt.core.repository.Repository.initialize(SourceFile:92) at com.pentaho.mgmt.core.repository.ManagedPlatformRepository.initialize(SourceFile:57) at com.pentaho.mgmt.core.repository.ManagedPlatformRepository.<init>(SourceFile:28) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:59) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:52) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:639) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:625) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68) at com.pentaho.pac.server.MgmtServicesApplicationContext.<init>(SourceFile:13) at com.pentaho.pac.server.MgmtServicesApplicationContext.<clinit>(SourceFile:19) at com.pentaho.pac.server.DataIntegrationConfigServiceImpl.init(SourceFile:26) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:617) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:210) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.pentaho.pac.server.JettyServer.startServer(JettyServer.java:136) at org.pentaho.pac.server.JettyServer.<init>(JettyServer.java:73) at com.pentaho.pac.server.ProJettyServer.<init>(SourceFile:31) at com.pentaho.pac.server.ProJettyServer.main(SourceFile:118) 2009-02-11 09:38:13.383::INFO: Started SocketConnector @ 0.0.0.0:8088

    Pentaho BI Platform Tracking | 8 years ago | Golda David
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
  2. 0

    While starting the Enterprise console in BISERVER EE getting lot of warnings. Though it does not stop any functionality there are lot of warning messages. 2009-02-11 09:37:48.177::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2009-02-11 09:37:49.615::INFO: jetty-6.1.2 WARN ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Pentaho/dry-runs/biserver-ee/enterprise-console/lib/ehcache-1.2.3.jar!/ehcache-fail safe.xml WARN SessionFactoryObjectFactory - Could not bind factory to JNDI javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.getNameParser(Unknown Source) at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52) at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:306) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300) at com.pentaho.mgmt.core.repository.Repository.initialize(SourceFile:92) at com.pentaho.mgmt.core.repository.ManagedPlatformRepository.initialize(SourceFile:57) at com.pentaho.mgmt.core.repository.ManagedPlatformRepository.<init>(SourceFile:28) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:59) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:52) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:639) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:625) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68) at com.pentaho.pac.server.MgmtServicesApplicationContext.<init>(SourceFile:13) at com.pentaho.pac.server.MgmtServicesApplicationContext.<clinit>(SourceFile:19) at com.pentaho.pac.server.DataIntegrationConfigServiceImpl.init(SourceFile:26) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:617) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:210) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.pentaho.pac.server.JettyServer.startServer(JettyServer.java:136) at org.pentaho.pac.server.JettyServer.<init>(JettyServer.java:73) at com.pentaho.pac.server.ProJettyServer.<init>(SourceFile:31) at com.pentaho.pac.server.ProJettyServer.main(SourceFile:118) 2009-02-11 09:38:13.383::INFO: Started SocketConnector @ 0.0.0.0:8088

    Pentaho BI Platform Tracking | 8 years ago | Golda David
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
  3. 0

    Problem running JUNIT test with JNDI datasource - Spring Forum

    spring.io | 5 months ago
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate Community • View topic - Trying to query with object having composite key

    hibernate.org | 1 year ago
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
  6. 0

    Exception in thread "main" org.hibernate.hql.ast.QuerySyntaxException: TESTING is not mapped [FROM TESTING]

    roseindia.net | 11 months ago
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

    12 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.naming.NoInitialContextException

      Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

      at javax.naming.spi.NamingManager.getInitialContext()
    2. Java RT
      InitialContext.getNameParser
      1. javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
      2. javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
      3. javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
      4. javax.naming.InitialContext.getNameParser(Unknown Source)
      4 frames
    3. Hibernate
      SessionFactoryImpl.<init>
      1. org.hibernate.util.NamingHelper.bind(NamingHelper.java:52)
      2. org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
      3. org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:306)
      3 frames
    4. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
      1 frame
    5. com.pentaho.mgmt
      ManagedPlatformRepository.<init>
      1. com.pentaho.mgmt.core.repository.Repository.initialize(SourceFile:92)
      2. com.pentaho.mgmt.core.repository.ManagedPlatformRepository.initialize(SourceFile:57)
      3. com.pentaho.mgmt.core.repository.ManagedPlatformRepository.<init>(SourceFile:28)
      3 frames
    6. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      4. java.lang.reflect.Constructor.newInstance(Unknown Source)
      4 frames
    7. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82)
      2. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:59)
      3. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:52)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:639)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:625)
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
      7. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
      8. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
      9. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
      10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
      11. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
      11 frames
    8. Spring Context
      ClassPathXmlApplicationContext.<init>
      1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
      2. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
      3. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
      4. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
      4 frames
    9. com.pentaho.pac
      DataIntegrationConfigServiceImpl.init
      1. com.pentaho.pac.server.MgmtServicesApplicationContext.<init>(SourceFile:13)
      2. com.pentaho.pac.server.MgmtServicesApplicationContext.<clinit>(SourceFile:19)
      3. com.pentaho.pac.server.DataIntegrationConfigServiceImpl.init(SourceFile:26)
      3 frames
    10. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:211)
      1 frame
    11. Jetty Server
      ServletHolder.doStart
      1. org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
      2. org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256)
      2 frames
    12. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      1 frame
    13. Jetty Server
      ContextHandler.doStart
      1. org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:617)
      2. org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
      3. org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
      3 frames
    14. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      1 frame
    15. Jetty Server
      HandlerCollection.doStart
      1. org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
      1 frame
    16. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      1 frame
    17. Jetty Server
      Server.doStart
      1. org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
      2. org.mortbay.jetty.Server.doStart(Server.java:210)
      2 frames
    18. Jetty Util
      AbstractLifeCycle.start
      1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      1 frame
    19. org.pentaho.pac
      JettyServer.<init>
      1. org.pentaho.pac.server.JettyServer.startServer(JettyServer.java:136)
      2. org.pentaho.pac.server.JettyServer.<init>(JettyServer.java:73)
      2 frames
    20. com.pentaho.pac
      ProJettyServer.main
      1. com.pentaho.pac.server.ProJettyServer.<init>(SourceFile:31)
      2. com.pentaho.pac.server.ProJettyServer.main(SourceFile:118)
      2 frames