facebook

HQL Editor Error: Could not find datasource

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #282546 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

Viewing 1 post (of 1 total)
Reply To: HQL Editor Error: Could not find datasource

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