• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question for Eclipse/Tomcat

 
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using Lomboz3.1.2 for Web application development using eclipse.

I have created a Dynamic web project and I have setup tomcat for the same. I have added Tomcat4.1 in the Installed runtimes list.

When I run my application from within eclipse, it runs perfectly fine. Surprisingly, when I go to the physical location of the tomcat directory (D:\Tomcat\apache-tomcat-4.1.32), I do not find anything specific to my web application there. No xml file for my webapplication, no new context folder under TOMCAT_HOME/webapps, no entry in the server.xml file...

So, the question here is:
- Where does eclipse deploys the web application?
- Why nothing appears in the actual tomcat location?


Thanks,
Ankit
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eclipse tells Tomcat during startup where to find the web application (which is the build directory of your project of course).
When it shuts down Tomcat it removes that information again.
 
Ankit Doshi
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the quick reply Jeroen.

Eclipse tells Tomcat during startup where to find the web application



Further to this, do you also know how does eclipse do that internally? I mean it must be using the catalina.bat to start the tomcat, so how does it instruct tomcat to build a new context using my build directory?
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using Lomboz, but I think I have sysdeo's Tomcat plugin to handle that.

Neither the Windows "bat" or the Unix "sh" scripts are run. However, the sysdeo plugin runs Tomcat in embedded mode in almost exactly the same way as the scripts do. Part of that architecture is the concept of a CATALINA_HOME and a CATALINA_BASE. CATALINA_HOME is where the software and other shared stuff live, CATALINA_BASE is where a specific instance of TOMCAT gets its nonshared data such as the server.xml and application contexts.

With the sysdeo plugin, you can set these properties - and others - using the Window/Preferences menu dialog under the Tomcat topic.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic