facebook

hibernate.cfg.xml is not deploying [Closed]

💡
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 IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #210817 Reply

    mattlangston
    Member

    Our ant build script creates hibernate.cfg.xml and copies it to WEB-INF/classes. However, it does not get deployed with everything else when we use the Project Deployment feature of MyEclipse.

    We don’t want to use the MyEclipse Hibernate functionality, as we already have a working project. Somehow, MyEclipse is ignoring this file when it deploys the rest of the web app to our Tomcat 5 server.

    Can you help us get MyEclipse to deploy WEB-INF/classes/hibernate.cfg.xml please?

    Thank you.

    Warmest regards, Matt

    #210824

    Riyad Kalla
    Member

    Matt,
    The project needs to be refreshed after the Ant script runs so Eclipse is aware of the new file before the deployment tool runs.Try and turn on the Window > Preferences > Workspace > “Refresh workspace automatically” setting.

    #211368

    mattlangston
    Member

    That solved our problem. Thank you.

    #211369

    Riyad Kalla
    Member

    Great, glad to hear it.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: hibernate.cfg.xml is not deploying [Closed]

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