2 Replies Latest reply on Nov 19, 2007 12:26 PM by dheeraj segapalli

    org.hibernate.HibernateException: Could not find datasource

    dheeraj segapalli Newbie

      Hi,
      I am trying to test my application with Testng ..
      but i m getting some errors as given below.


      javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not find datasource


      Can aynone tell me what the error may be and what should be done to solve it...

        • 1. Re: org.hibernate.HibernateException: Could not find datasou
          Himadri Saha Newbie

          What is the datasource name you have provided in hibernate.cfg.xml.

          --Himadri

          • 2. Re: org.hibernate.HibernateException: Could not find datasou
            dheeraj segapalli Newbie

            Thanks, I modified the code and it throws me new error as


            javax.el.PropertyNotFoundException: ELResolver cannot handle a null base Object with identifier 'user'
            at com.sun.el.lang.ELSupport.throwUnhandled(ELSupport.java:52)
            at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:75)
            at com.sun.el.parser.AstValue.getValue(AstValue.java:114)
            at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
            at org.jboss.seam.util.UnifiedELValueBinding.getValue(UnifiedELValueBinding.java:34)
            at org.jboss.seam.mock.SeamTest$Request.getValue(SeamTest.java:366)
            at AuthenticatorActionTest$2.renderResponse(AuthenticatorActionTest.java:48)
            at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:521)
            at AuthenticatorActionTest.testLogin(AuthenticatorActionTest.java:28)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
            at org.testng.internal.Invoker.invokeMethod(Invoker.java:398)
            at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:625)
            at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
            at org.testng.TestRunner.privateRun(TestRunner.java:614)
            at org.testng.TestRunner.run(TestRunner.java:505)
            at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
            at org.testng.SuiteRunner.run(SuiteRunner.java:147)
            at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
            at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
            at org.testng.TestNG.run(TestNG.java:316)
            at org.testng.TestNG.privateMain(TestNG.java:666)
            at org.testng.TestNG.main(TestNG.java:608)