Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

tomcat 5.5 deploy webapp in eclipse directory

Thread view: 
eunever32@yahoo.co.uk - 03 Feb 2007 02:08 GMT
Hi

I notice it is discouraged (not allowed) to use <Context> in
server.xml in tomcat 5.5
My tomcat is in
\tomcat\
   webapps\
       \jsp-examples
       \servlet-examples

But my development environment is not located under my tomcat
installation

Instead it is in my eclipse workspace directory ie
\workspace
   \WebApp\
       \web
           \WEB-INF
               \web.xml

The documentation would seem to suggest that I need to build a .war
and deploy into \tomcat\webapps

But is this really necessary? What about hot-deploy of classes in
eclipse?

I tried to figure it out from the documentation but got lost in a sea
of verbosity.
(If it was unix I could easily use a symbolic link but this is
windows)

Can someone please enlighten me.

Rgds
none - 03 Feb 2007 18:15 GMT
> Hi
>
[quoted text clipped - 30 lines]
>
> Rgds

you can add a context.xml file the directory:
$CATALINA_HOME/conf/[enginename]/[hostname]/
This includes a 'docBase' attribute that can be used to specify the
directory of your app eg '\workspace\webapp\web'

See here for more details:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

an example would be:
<Context docBase="C:\workspace\webapp\web">
</Context>

Tim Terry
www.tim.devisland.net


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.