Hi, I cannot use Hibernate Query in JBoss Tools. I get an error with cannot connect to datasource when I try to execute a query.
I suspect this has something to do with JNDI service not available or datasource not setup. Can someone point me where I can setup this data source in eclipse IDE plugin ? Thanks, -Guillaume See below: eclipse.buildId=M20071023-1652 | java.version=1.6.0_03 | java.vendor=Sun Microsystems Inc. | BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_CA | Command-line arguments: -os win32 -ws win32 -arch x86 -data C:\gjeudy\workspace | | Error | Wed Feb 06 15:38:20 EST 2008 | 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 | | 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(Unknown Source) | at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) | at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source) | at javax.naming.InitialContext.lookup(Unknown Source) | at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52) | at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) | at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) | at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62) | at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009) | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292) | at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915) | at org.hibernate.console.ConsoleConfiguration$3.execute(ConsoleConfiguration.java:357) | at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65) | at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:88) | at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:352) | at org.hibernate.eclipse.console.workbench.LazySessionFactoryAdapter.getChildren(LazySessionFactoryAdapter.java:41) | at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:97) | at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:103) | at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:196) | at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127175#4127175 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127175 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
