org.osgi.framework.ServiceException

Service factory exception: Error parsing JNDI name [osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/adwTeraDS)]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web694

  • via Unknown by Susan Javurek,
  • via Unknown by Susan Javurek,
  • via Unknown by Unknown author,
  • Stack trace

    • org.osgi.framework.ServiceException: Service factory exception: Error parsing JNDI name [osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/adwTeraDS)] at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:349)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.ServiceRegistrationImpl.access$100(ServiceRegistrationImpl.java:47)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.ServiceRegistrationImpl$1.call(ServiceRegistrationImpl.java:249)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.Felix.runInContext(Felix.java:2188)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:238)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:328)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.Felix.getService(Felix.java:3819)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.hibernate.osgitest.HibernateUtil.getSessionFactory(HibernateUtil.java:49)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.hibernate.osgitest.HibernateUtil.getSession(HibernateUtil.java:39)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.hibernate.osgitest.DataPointServiceImpl.add(DataPointServiceImpl.java:42)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.hibernate.osgitest.command.AddCommand.execute(AddCommand.java:40)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] Caused by: org.hibernate.service.jndi.JndiException: Error parsing JNDI name [osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/adwTeraDS)] at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:92)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:63)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:76)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:158)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:130)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:76)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:158)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:130)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1825)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1783)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.osgi.OsgiSessionFactoryService.getService(OsgiSessionFactoryService.java:115)[282:org.hibernate.osgi:4.2.9.Final] at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:345)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] ... 21 more Caused by: 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(NamingManager.java:662)[:1.7.0_51] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)[:1.7.0_51] at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:344)[:1.7.0_51] at javax.naming.InitialContext.getNameParser(InitialContext.java:499)[:1.7.0_51] at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:86)[280:org.hibernate.core:4.2.9.Final] ... 35 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    51 more bugmates