facebook

Hibernate – Some optional options cause ClassNotFoundExcept.

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #227833 Reply

    jerrek
    Member

    The options in hibernate.cfg.xml

    <property name=”jndi.url”></property>
    <property name=”jndi.class”></property>

    Are apparently optional according to the Hibernate docs (and I’m no expert at this, but this is my findings after todays little excercise) – but the MyEclipse Hibernate wizard adds them even if they’re blank.

    The trouble is, if they are there at all they are parsed by Hibernate and result in a ClassNotFoundException when Hibernate tries to Class.forName(“”);

    So I think we need them not added to hibernate.cfg.xml if they’re blank.

    By the way, is there a proper way within the IDE to edit the hibernate settings – I’ve been looking for days and can’t find one (and the docs here appear to be for a different version of MyEclipse?)

    Ta for now,
    Jerrek.

    #227863

    Riyad Kalla
    Member

    I am researching this…

    #227875

    jerrek
    Member

    Hi Riyad,
    No worries – I manually edit for now, it’s only a few lines to take out and using the hibernate wizard is still infinitely easier than coding from scratch 🙂

    On an unrelated issue, I notice that even though my project isn’t JSF enabled that all the faces jar files are deployed too – is that something weird with my project or is that expected?

    Ta,
    Jerrek

    #227888

    Riyad Kalla
    Member

    I notice that even though my project isn’t JSF enabled that all the faces jar files are deployed too

    It depends on how they exist for your project. If they are in your WEB-INF/lib dir, then yes they will get deployed. If they are only on your build path BUT you have your deployment rules setup to deploy JARs from your build path OR from User Libraries, that will also cause them to get deployed.

    #228509

    bephinney
    Member

    I would be interested in the answer to this question:

    By the way, is there a proper way within the IDE to edit the hibernate settings – I’ve been looking for days and can’t find one

    Thanks
    Bryon

    #228510

    Riyad Kalla
    Member

    By the way, is there a proper way within the IDE to edit the hibernate settings – I’ve been looking for days and can’t find one

    Which settings? The hibernate.cfg.xml file? YOu can do this by editing the file source, or re-running the New Hibernate Configuration File, although I believe you will need to regenerate your mappings so it updates the files.

    In future releases (including 4.0 and on) Hibernate will continue to get more attention and refinements. Please keep in mind that you are looking at the first itteration of our hibernate tools 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Hibernate – Some optional options cause ClassNotFoundExcept.

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