So is it possible to add a context that's not within the tomcat root
directory. By tomcat root directory I mean C:\Program Files\Apache
Group\Tomcat 4.1\ as an example on my machine.
If I want to put my jsps in c:\some_dir, is that possible?

thanks for the help

-jonthan

----- Original Message -----
From: "Jan-Michael Ong" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Tomcat Users
List" <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 5:13 PM
Subject: Re: adding context


> Hi there,
>
> path is for url so your example below will fail
> <Context path="C:/" docbase="Projects/calendar/htdocs" debug="0"/>
>
> http://localhost:8080/<context_path>/path/to/servlet
>
> Does the examples work for you? http://localhost:8080/examples?
>
> How about removing this context and sticking with the basic build and
> enabling debugging (i.e. change debug from 0 to 1 on the <Context>)
>
> Finally check for stray characters in your MANIFEST-MF file. At least with
> ATG/Dynamo its very picky about its manifest file with ^M control chars.
>
> Good luck
>
> JM
>
>
> At 05:02 PM 11/1/2002 -0800, Jonathan Zhang wrote:
> >I tried that, and a couple of other variations like
> ><Context path="C:/" docbase="Projects/calendar/htdocs" debug="0"/>
> >  but it still gave me the same nullPointer exception.why?
> >thanks for the help
> >
> >----- Original Message -----
> >From: "M. Hockings" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Friday, November 01, 2002 4:13 PM
> >Subject: Re: adding context
> >
> >
> > > Try using forward slashes for  the directory delimiter?
> > >
> > > <Context path="" docbase="c:/Projects/calendar/htdocs" debug="0"/>
> > >
> > > Mike
> > >
> > >
> > > Jonathan Zhang wrote:
> > >
> > > >hi Guys,
> > > >I'm running tomcat 4.x on windows xp and I'm trying to add a context
to
> > > > <Context path="" docbase="c:\Projects\calendar\htdocs" debug="0"/>
> > > >
> > > >I get the following exception:
> > > >
> > > >Starting service Tomcat-Standalone
> > > >Apache Tomcat/4.1.12
> > > >java.lang.NullPointerException
> > > >        at java.io.File.<init>(File.java:180)
> > > >        at
> >org.apache.catalina.core.StandardContext.getBasePath(StandardContext.
> > > >java:3833)
> > > >        at
> >org.apache.catalina.core.StandardContext.start(StandardContext.java:3
> > > >397)
> > > >        at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > >
> > > >        at
> >org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> > > >        at
> >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > >
> > > >        at
> >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
> > > >)
> > > >        at
> >org.apache.catalina.core.StandardService.start(StandardService.java:4
> > > >97)
> > > >        at
> >org.apache.catalina.core.StandardServer.start(StandardServer.java:218
> > > >9)
> > > >        at
org.apache.catalina.startup.Catalina.start(Catalina.java:510)
> > > >        at
> >org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> > > >        at
> >org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> > > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
> > > >        at
> >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > > >java:39)
> > > >        at
> >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > > >sorImpl.java:25)
> > > >        at java.lang.reflect.Method.invoke(Method.java:324)
> > > >        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> > > >
> > > >thanks for the help
> > > >
> > > >
> > > >
> > >
> > > --
> > >
> > > Note new email address -> [EMAIL PROTECTED] <-
> > >
> > > Mike's Page               :  http://www.hockings.net/~mike
> > > Rifle Shooting in Ontario :  http://www.hockings.net/rso/
> > > Scarborough Rifle Club    :  http://www.hockings.net/rso/src/
> > > Canadian Shooting Sports  :  http://www.CdnShootingSports.org
> > > Ontario Rifle Association :  http://www.OntarioRifleAssociation.org
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> ><mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> > > For additional commands, e-mail:
> ><mailto:tomcat-user-help@;jakarta.apache.org>
> > >
> >
> >
> >--
> >To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> >For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to