Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Susan Javurek, 1 year ago
Service factory exception: Error parsing JNDI name [osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/adwTeraDS)]
via Hibernate JIRA by Susan Javurek, 2 years ago
Service factory exception: Error parsing JNDI name [osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/adwTeraDS)]
via stanbol-dev by Pooja H Bavishi, 1 year ago
Service factory returned null.
via stanbol-dev by Rupert Westenthaler, 10 months ago
Service factory returned null.
via Stack Overflow by Gabriel Duchateau
, 2 years ago
Service factory exception: /config/hibernate.cfg.xml not found
via Atlassian JIRA by Eric Dalgliesh, 1 year ago
Service factory exception: org.apache.velocity.exception.VelocityException: Failed to initialize an instance of org.apache.velocity.runtime.log.CommonsLogLogChute with the current runtime configuration.
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)	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)	at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:344)	at javax.naming.InitialContext.getNameParser(InitialContext.java:499)	at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:86)	at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:63)	at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116)	at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:76)	at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:158)	at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:130)	at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)	at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)	at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:76)	at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:158)	at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:130)	at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1825)	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1783)	at org.hibernate.osgi.OsgiSessionFactoryService.getService(OsgiSessionFactoryService.java:115)	at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:345)	at org.apache.felix.framework.ServiceRegistrationImpl.access$100(ServiceRegistrationImpl.java:47)	at org.apache.felix.framework.ServiceRegistrationImpl$1.call(ServiceRegistrationImpl.java:249)	at org.apache.felix.framework.Felix.runInContext(Felix.java:2188)	at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:238)	at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:328)	at org.apache.felix.framework.Felix.getService(Felix.java:3819)	at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)	at org.hibernate.osgitest.HibernateUtil.getSessionFactory(HibernateUtil.java:49)	at org.hibernate.osgitest.HibernateUtil.getSession(HibernateUtil.java:39)	at org.hibernate.osgitest.DataPointServiceImpl.add(DataPointServiceImpl.java:42)	at org.hibernate.osgitest.command.AddCommand.execute(AddCommand.java:40)	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)	at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)	at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)