Hi,

your docBase does _not_ point to an external location as it is. It is 
therefore interpreted by Tomcat as a relative path with your standard 
webapps dir as basis, which of course will not work. As I said before, you 
need to point docBase to D:/JAVA/API. In turn, your path attribute should 
state the URL path you want to access your webapp under - most probably 
/API in your case. 

This should work:

<Context path="/API" docBase="D:/JAVA/API" 
workDir="work\Catalina\localhost\API"> </Context>

HTH, Jan


> Hi Form
> 
>   [ Sorry for the font's]
> 
>   I exactly did the same as u told several times last week (some body
> mentioned this in the form)
>   The application name is API under d:/JAVA/API and the application name 
is
> API.xml.
> 
>   <?xml version='1.0' encoding='utf-8'?>
>   <Context displayName="API" docBase="API" path="D:/JAVA/API"
> workDir="work\Catalina\localhost\API">
>   </Context>
> 
> Tomcat5.5.12 is throwing an error on the console screen as shown below.
> 
> SEVERE: Error starting static Resources
> java.lang.IllegalArgumentException: Document base
> D:\JAVA\TOMCAT5\webapps\API does not exist or is not a read
> ectory
>         at
> 
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:14
> 0)
>         at
> 
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java
> :3777)
>         at
> 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3948)
>         at
> 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
> 59)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
>         at
> 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535
> )
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>         at
> 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>         at
> 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
> t.java:119)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>         at
> 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at 
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>         at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> 
> am i missing something in here
> 
> 
> 
> 
> with regards
> Karthik
> 
> 
> 
> -----Original Message-----
> From: Jan Behrens [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 14, 2005 5:25 PM
> To: Tomcat Users List
> Subject: Antwort: WEB APPS OUTSIDE TOMCAT ENV 5.X
> 
> 
> Stil much the same, but as from TC5 onwards it is discouraged to place
> your context elements directly into your server.xml, you will have to 
put
> an appropriate <appname>.xml under
> <Catalina_Home>/conf/<SERVICENAME>/<HOSTNAME>/ (e.g.
> conf/Catalina/localhost/). This should contain your context definition,
> and only that. Then you just have to point the docBase parameter to your
> (external) location and you are set.
> 
> HTH, Jan
> 
> 
> Jan Behrens
> OFFIS
> FuE-Bereich Betriebliches Informationsmanagement
> Escherweg 2  -  26121 Oldenburg  -  Germany
> Fon: +49 4 41 97 22 - 187  -  Fax:  +49 4 41 97 22-102
> E-mail: [EMAIL PROTECTED]  -  URL: http://www.offis.de
> 
> "Karthik" <[EMAIL PROTECTED]> schrieb am 14.12.2005 12:47:23:
> 
> >
> > HI FORM
> >
> >     IN TOMCAT4.X EXTERNAL WEB APPLICATIONS CAN BE LOADED OUT OF TOMCAT
> ENV
> > BY <APPLN>.XML FILE BE PLACED IN TOMCAT4.X/CONF/
> >     HOW TO ACHIEVE THE SAME IN CASE OF TOMCAT5.X [ IS THIS FEATURE
> ABSENT
> > FROM TOMCAT5.X ONWARDS ]
> >
> >
> >
> >  WITH REGARDS
> > kARTHIK
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.13.13/199 - Release Date: 
12/13/2005
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to