javax.naming.NoInitialContextException: Unable to find the InitialContextFactory org.apache.naming.java.javaURLContextFa ctory.

aries-user | David Cao | 2 years ago
  1. 0

    Fwd: Construct persistence unit without blueprint jndi

    aries-user | 2 years ago | David Cao
    javax.naming.NoInitialContextException: Unable to find the InitialContextFactory org.apache.naming.java.javaURLContextFa ctory.
  2. 0

    Fwd: Construct persistence unit without blueprint jndi

    incubator-aries-user | 2 years ago | David Cao
    javax.naming.NoInitialContextException: Unable to find the InitialContextFactory org.apache.naming.java.javaURLContextFa ctory.
  3. 0

    Fwd: Construct persistence unit without blueprint jndi

    aries-user | 2 years ago | David Cao
    javax.naming.NoInitialContextException: Unable to find the InitialContextFactory org.apache.naming.java.javaURLContextFa ctory.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ServiceMix unable to find OSGI data source

    Stack Overflow | 2 years ago
    java.lang.RuntimeException: The DataSource osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/test) required by bundle persistence/0.0.1.SNAPSHOT could not be found.
  6. 0

    RE: how to use jndi both outside and inside osgi container?

    aries-user | 4 years ago | Mike Wilson
    javax.naming.NoInitialContextException: The calling code's BundleContext could not be determined.

    2 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

      Unable to find the InitialContextFactory org.apache.naming.java.javaURLContextFa ctory.

      at org.apache.aries.jndi.ContextHelper.getInitialContext()
    2. org.apache.aries
      OSGiInitialContextFactoryBuilder.getInitialContext
      1. org.apache.aries.jndi.ContextHelper.getInitialContext(ContextHelper.java:148)
      2. org.apache.aries.jndi.OSGiInitialContextFactoryBuilder.getInitialContext(OSGiInitialContextFactoryBuilder.java:49)
      2 frames
    3. Java RT
      InitialContext.<init>
      1. javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:695)
      2. javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:318)
      3. javax.naming.InitialContext.init(InitialContext.java:253)
      4. javax.naming.InitialContext.<init>(InitialContext.java:227)
      4 frames
    4. org.apache.aries
      DelayedLookupDataSource.getConnection
      1. org.apache.aries.jpa.container.unit.impl.JndiDataSource.getDs(JndiDataSource.java:63)
      2. org.apache.aries.jpa.container.unit.impl.DelayedLookupDataSource.getConnection(DelayedLookupDataSource.java:36)
      2 frames
    5. OpenJPA Aggregate Jar
      JDBCConfigurationImpl.getConnectionFactory
      1. org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:137)
      2. org.apache.openjpa.lib.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:112)
      3. org.apache.openjpa.jdbc.schema.DataSourceFactory.installDBDictionary(DataSourceFactory.java:239)
      4. org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:725)
      4 frames