NoInitialContextException « Exception « JPA Q&A





1. NoInitialContextException    forum.hibernate.org

16:27:57,609 FATAL DatasourceConnectionProvider:47 - Could not find datasource: java:comp/env/jdbc/Technique 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:640) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280) at javax.naming.InitialContext.lookup(InitialContext.java:347) at net.sf.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:44) ...

2. javax.naming.NoInitialContextException    forum.hibernate.org

Author Message nileshp Post subject: javax.naming.NoInitialContextException Posted: Wed May 12, 2004 12:46 am Newbie Joined: Tue May 11, 2004 4:44 am Posts: 5 Hi, I have a user class which i'm mapping to a table in a MySQL database (i'm using version 4.0.12). It's a simple class which has fields like username, password . I've written the following methods ...

3. javax.naming.NoInitialContextException    forum.hibernate.org

Hibernate version: 2.1.6 JNDI error: SessionFactory sessions = null; try { Context ctx = new InitialContext(); String jndiname = "java:/hibernate/KJSSessionFactory"; sessions = (SessionFactory) ctx.lookup(jndiname); s = sessions.openSession(); } catch (NamingException nme) { nme.printStackTrace(); } return s; 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:640) ...

4. javax.naming.NoInitialContextException -- how to avoid    forum.hibernate.org

Hi I am getting this exception eveytime i run my test application. I am not using any JNDI naming stuff nor any application server, its just a simple test program. The application runs fine as expected but how can i avoid this exception. javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in ...

5. NoInitialContextException    forum.hibernate.org

Author Message Agustina Post subject: NoInitialContextException Posted: Fri Sep 09, 2005 2:05 pm Newbie Joined: Fri Sep 09, 2005 1:31 pm Posts: 1 I saw a similar message asking this before, but I did not understand the answer. I am using Eclipse 3.1.0 with JDK 5. My hibernate version is 3.0. In my java prioject I have the following ...

6. NoInitialContextException: Hibernate with JBPM    forum.hibernate.org

I apologize in advance for being a complete Hibernate newb, but the library I'm using for a project uses hibernate in the background for its persistence. The library is is JBoss JBPM 3.1.4, though I'm using the library without JBoss. It's using hibernate 3.1, connecting to a MySQL db. Connection parameters in hibernate.xfg.xml are as follows: Code: org.hibernate.dialect.MySQLDialect com.mysql.jdbc.Driver ...

7. Getting javax.naming.NoInitialContextException    forum.hibernate.org

Dear Mr. cbredsen: Thanks for your Kind Reply. Yes I am using Tomcat 5.5 So do you mean to say I should comment the following from hibernate.cfg.xml java:comp/env/hibernate/SessionFactory As for building it manually, will you pls direct me to resources where I can do so. As this later part is a little Unclear to me. Thanks Chetan