[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-1285) Datasources not found during testng run when using JDK 6
Max Rydahl Andersen (JIRA)
jira-events at lists.jboss.org
Thu Feb 26 07:50:54 EST 2009
[ https://jira.jboss.org/jira/browse/JBIDE-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Rydahl Andersen resolved JBIDE-1285.
----------------------------------------
Resolution: Won't Fix
its documented here, we dont have a hook to add it...
> Datasources not found during testng run when using JDK 6
> --------------------------------------------------------
>
> Key: JBIDE-1285
> URL: https://jira.jboss.org/jira/browse/JBIDE-1285
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: Seam
> Affects Versions: 2.0.0.CR1
> Reporter: Max Rydahl Andersen
> Assignee: Max Rydahl Andersen
> Priority: Minor
> Fix For: 3.0.0.GA
>
>
> EXECUTE: New Seam Web Project (Seam 1.2)
> EXECUTE: New Action
> EXECUTE: Run the generated test xml with testng
> ASSERT: Green bar
> I get:
> [Parser] Running:
> C:\Users\max\workspace\floppy-test\test-src\org\domain\floppy\test\PingTest.xml
> 20:51:17,219 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
> 20:51:17,233 ERROR [NamingHelper] Could not obtain initial context
> javax.naming.NamingException: Local server is not initialized
> at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
> at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
> at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
> at javax.naming.InitialContext.init(Unknown Source)
> at javax.naming.InitialContext.<init>(Unknown Source)
> at org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
> 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:61)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
> at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
> at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
> at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151)
> at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205)
> at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114)
> at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
> at org.jboss.seam.core.EntityManagerFactory.startup(EntityManagerFactory.java:74)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
> at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
> at org.jboss.seam.Component.callComponentMethod(Component.java:1842)
> at org.jboss.seam.Component.callCreateMethod(Component.java:1757)
> at org.jboss.seam.Component.newInstance(Component.java:1746)
> at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:175)
> at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:145)
> at org.jboss.seam.init.Initialization.init(Initialization.java:504)
> at org.jboss.seam.mock.SeamTest.init(SeamTest.java:701)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
> at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
> at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:166)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
> at org.testng.TestRunner.runWorkers(TestRunner.java:689)
> at org.testng.TestRunner.privateRun(TestRunner.java:566)
> at org.testng.TestRunner.run(TestRunner.java:466)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
> at org.testng.SuiteRunner.run(SuiteRunner.java:191)
> at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
> at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
> at org.testng.TestNG.run(TestNG.java:701)
> at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
> at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
> 20:51:17,234 FATAL [DatasourceConnectionProvider] Could not find datasource: java:/floppyTestDatasource
> javax.naming.NamingException: Local server is not initialized
> at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
> at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
> at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
> at javax.naming.InitialContext.init(Unknown Source)
> at javax.naming.InitialContext.<init>(Unknown Source)
> at org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
> 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:61)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
> at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
> at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
> at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151)
> at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205)
> at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114)
> at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
> at org.jboss.seam.core.EntityManagerFactory.startup(EntityManagerFactory.java:74)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
> at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
> at org.jboss.seam.Component.callComponentMethod(Component.java:1842)
> at org.jboss.seam.Component.callCreateMethod(Component.java:1757)
> at org.jboss.seam.Component.newInstance(Component.java:1746)
> at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:175)
> at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:145)
> at org.jboss.seam.init.Initialization.init(Initialization.java:504)
> at org.jboss.seam.mock.SeamTest.init(SeamTest.java:701)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
> at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
> at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:166)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
> at org.testng.TestRunner.runWorkers(TestRunner.java:689)
> at org.testng.TestRunner.privateRun(TestRunner.java:566)
> at org.testng.TestRunner.run(TestRunner.java:466)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
> at org.testng.SuiteRunner.run(SuiteRunner.java:191)
> at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
> at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
> at org.testng.TestNG.run(TestNG.java:701)
> at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
> at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
> FAILED CONFIGURATION: @BeforeClass init
> javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not find datasource
> at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:217)
> at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114)
> at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
> at org.jboss.seam.core.EntityManagerFactory.startup(EntityManagerFactory.java:74)
> at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
> at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
> at org.jboss.seam.Component.callComponentMethod(Component.java:1842)
> at org.jboss.seam.Component.callCreateMethod(Component.java:1757)
> at org.jboss.seam.Component.newInstance(Component.java:1746)
> at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:175)
> at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:145)
> at org.jboss.seam.init.Initialization.init(Initialization.java:504)
> at org.jboss.seam.mock.SeamTest.init(SeamTest.java:701)
> Caused by: org.hibernate.HibernateException: Could not find datasource
> at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
> 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:61)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
> at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
> at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
> at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151)
> at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205)
> ... 38 more
> Caused by: javax.naming.NamingException: Local server is not initialized
> at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
> at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
> at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
> at javax.naming.InitialContext.init(Unknown Source)
> at javax.naming.InitialContext.<init>(Unknown Source)
> at org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
> at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
> ... 47 more
> ... Removed 26 stack frames
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list