Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt on Eclipse hot deployment of web-app.

 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,


I recently came across a new process of deploying a web-app. Here no build tool (ant or maven) are used and they go ahead and deploy the application on the server configured. The IDE used is Eclipse - Ganymede 3.4.2 along with Tomcat 6.0. Feel its sort of a hot deployment operation and there is no .war file created.

Coming to my doubt. Since the war is absent I do not get to see the application in the webapps folder and the same applies to the work folder. Now I face a missing file issue with Tomcat failing to start mentioning a 'org.hibernate.HibernateException: /hibernate.cfg.xml not found' exception.

How do I solve this. And how can Tomcat deploy/deliver the application if it is not in the webapps or even the work temporary folder. This seems a little weird to me. Or is Eclipse helping things out in any way?

Any help with this or ideas would be highly valued and appreciated.

Thanks,
Raj.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your Hibernate config file located in a source directory (or other place that will get it deployed)?
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The 'hibernate.cfg.xml' is located in the root source folder. And the same is copied to 'Default output folder' as configured in Eclipse.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic