This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Doubt on Eclipse hot deployment of web-app. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Doubt on Eclipse hot deployment of web-app." Watch "Doubt on Eclipse hot deployment of web-app." New topic
Author

Doubt on Eclipse hot deployment of web-app.

Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

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

Joined: Sep 29, 2008
Posts: 12617

Is your Hibernate config file located in a source directory (or other place that will get it deployed)?
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

The 'hibernate.cfg.xml' is located in the root source folder. And the same is copied to 'Default output folder' as configured in Eclipse.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Doubt on Eclipse hot deployment of web-app.
 
Similar Threads
How to deploy a WAR file/EAR file on websphere ?
Eclipse Doubt
Hot Deploy in iPlanet 6
Doubt in EL?
Eclipse + Lomboz problem