Thread: org.hibernate.engine.jndi.JndiException: Error parsing JNDI name ?

Forum : Hibernate Core and Annotations.   8 Jun, 2015 04:00
User Image
sivaiah67

Newbie

Joined: 20 Apr, 2017

Points: 100

Threads: 2

Posts: 5

org.hibernate.engine.jndi.JndiException: Error parsing JNDI name ?

| Quote Date : 8 Jun, 2015    Views:2188    

Exception in thread "main" org.hibernate.engine.jndi.JndiException: Error parsing JNDI name [java:jboss/JDBC/MySqlXATransaction] at org.hibernate.engine.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:141) at org.hibernate.engine.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:112) at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:115) at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:111) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:234) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206) at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:260) at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:94) at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:111) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:234) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206) at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1887) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1845) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1930) at com.ta.xatest.Test.main(Test.java:11) 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) 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.engine.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:135) ... 14

tags: hibernate

Comments

User Image
sivaiah67

Newbie

Joined : 20 Apr, 2017

Points : 100

Threads: 2

Posts: 5

Re: org.hibernate.engine.jndi.JndiException: Error parsing JNDI name ?

Reply Date : 8 Jun, 2015

this is my hibernate.cfg.xml java:/jboss/jdbc/hibDataSource org.hibernate.engine.transaction.jta.platform.internal.JBossAppServerJtaPlatform org.hibernate.dialect.MySQLDialect

Load More

No More Comments