facebook

HQL Editor Error: Could not find datasource

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #282548 Reply

    icon911
    Member

    Hi,

    I decided to try out HQL editor, for the first time, on my hibernate project. When I try to run a query I get the following:

    Error Building Session Factory
    A session factory for this cofiguration could not be built, dynamic query transaction will be unavailable. Queries cannot be executed.
    Reason:
    Could not find datasource

    I use JNDI for my connection and it is specified in my hibernate.cfg.xml file
    The JNDI Resource is defined in my context.xml (Tomcat5). If I run my project, hibernate sees the datasource no problem, however, running queries in HQL Editor produces error above. What am I missing?

    Thank you, Oleg

    #293237 Reply

    Loyal Water
    Member

    Hi,
    This issue occurs if your derby database connection (or the databse you are trying to connect to) is not established. Could you please check that the database connection is up and running.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: HQL Editor Error: Could not find datasource

You must be logged in to post in the forum log in