Setting up a Context outside of webapps (was: Host appBase vs. Context docBase)

2016-10-21 Thread Igal @ Lucee.org
rs List Oggetto: Re: Host appBase vs. Context docBase Suppose you tell us your Tomcat version. I'm using Tomcat 8.5.5 -- not sure how relevant that is since AFAIK this has not changed in years. It is highly unlikely that you want the name to be App1 Of course that my host name is not App

R: Host appBase vs. Context docBase

2016-10-21 Thread r.bottoni
Hello, did you received some real config? Roberto. -Messaggio originale- Da: Igal @ Lucee.org [mailto:i...@lucee.org] Inviato: venerdì 7 ottobre 2016 21:57 A: Tomcat Users List Oggetto: Re: Host appBase vs. Context docBase > Suppose you tell us your Tomcat version. I'm usin

Re: Host appBase vs. Context docBase

2016-10-07 Thread Igal @ Lucee.org
evant information in the email. The path attribute of the element must not be used unless the element is in server.xml, which it should not be I actually prefer it to be in server.xml The docBase attribute is used only when the element is located in conf/Catalina/[host]/[appName].xml Th

RE: Host appBase vs. Context docBase

2016-10-07 Thread Caldarale, Charles R
> From: Igal @ Lucee.org [mailto:i...@lucee.org] > Subject: Host appBase vs. Context docBase > Suppose that I have an application at C:\WebApps\App1 Suppose you tell us your Tomcat version. > > > > > > > Both of the above are incorrect. It is hig

Host appBase vs. Context docBase

2016-10-07 Thread Igal @ Lucee.org
Hi, Suppose that I have an application at C:\WebApps\App1 Is it better to set it up as Host appBase (option 1) or as Context docBase with empty path (option 2): Thanks, Igal Sapir Lucee Core Developer Lucee.org <http://lucee.org/>

RE: Host appBase vs Context docBase

2014-07-16 Thread Jeffrey Janner
-Original Message- From: Igal @ getRailo.org [mailto:i...@getrailo.org] Sent: Friday, July 04, 2014 9:05 PM To: Tomcat Users List Subject: Host appBase vs Context docBase I'm a little confused about the Host appBase attribute. Let's say that my website resides in D:\www\site

Re: Host appBase vs Context docBase

2014-07-07 Thread Igal @ getRailo.org
t a single file, server.xml then deploy all the other files. I'm looking to keep the deployment process as simple as possible. you shouldn't need the empty directory. I've used an absolute path for the appBase attribute with relative paths for docBase attributes in Tomcat 6 a

Re: Host appBase vs Context docBase

2014-07-07 Thread Terence M. Bandoian
file, server.xml then deploy all the other files. I'm looking to keep the deployment process as simple as possible. you shouldn't need the empty directory. I've used an absolute path for the appBase attribute with relative paths for docBase attributes in Tomcat 6 and 7 without any

Re: Host appBase vs Context docBase

2014-07-05 Thread Igal @ getRailo.org
I'm looking to keep the deployment process as simple as possible. you shouldn't need the empty directory. I've used an absolute path for the appBase attribute with relative paths for docBase attributes in Tomcat 6 and 7 without any problems. when I try that then "webapps&q

Re: Host appBase vs Context docBase

2014-07-05 Thread Igal @ getRailo.org
Normally,we configure docBase when we want the application to be resided on a separate directory and not inside tomcat that's exactly what I'm trying to do when you use docBase I don't think you need to configure host/appbase as well if I don't use host/appBase then

Re: Host appBase vs Context docBase

2014-07-05 Thread Terence M. Bandoian
config/context.html#Defining_a_context That said, you shouldn't need the empty directory. I've used an absolute path for the appBase attribute with relative paths for docBase attributes in Tomcat 6 and 7 without any problems. I haven't tried it with absolute paths for both appBas

Re: Host appBase vs Context docBase

2014-07-05 Thread Neeraj Sinha
Normally,we configure docBase when we want the application to be resided on a separate directory and not inside tomcat. So, when you use docBase I don't think you need to configure host/appbase as well. Appbase folders go under tomcat directory parallel to default appbase webapps. Each appba

Host appBase vs Context docBase

2014-07-04 Thread Igal @ getRailo.org
I'm a little confused about the Host appBase attribute. Let's say that my website resides in D:\www\site1 I don't like using {Tomcat}/webapps so I don't want to have it as a base directory for websites. What I've been doing so far is create an empty folder alongside "webapps", named "empty",

Re: Deploying a relative docBase outside of appBase

2014-06-30 Thread Peter Rifel
Using the catalina.home variable did the trick, thank you! Peter On 6/26/14, 7:19 PM, "Caldarale, Charles R" wrote: >> From: Peter Rifel [mailto:pri...@mixpo.com] >> Subject: Deploying a relative docBase outside of appBase > >> In Tomcat 7 I had a ROOT.xm

RE: Deploying a relative docBase outside of appBase

2014-06-26 Thread Caldarale, Charles R
> From: Peter Rifel [mailto:pri...@mixpo.com] > Subject: Deploying a relative docBase outside of appBase > In Tomcat 7 I had a ROOT.xml file in conf/Catalina// which > contained > my Context with a docBase="../../www.war" parameter. This was able to reach > my &g

Deploying a relative docBase outside of appBase

2014-06-26 Thread Peter Rifel
Hello, I am in the process of upgrading from Tomcat 7.0.54 to 8.0.9 and am running into an issue with the location of my exploded war directories. In Tomcat 7 I had a ROOT.xml file in conf/Catalina// which contained my Context with a docBase="../../www.war" parameter. This was abl

Re: Embedded Tomcat how to use addContext for docBase

2013-01-30 Thread Jimmy Johnson
; >> > reloadable="false"/> > >> > > >> > and it works great. > >> > > >> > I have tried different variations on the following tomcat embedded > call > >> > without success: > >> > > >> > tom

Re: Embedded Tomcat how to use addContext for docBase

2013-01-30 Thread Konstantin Kolinko
"/> >> > >> > and it works great. >> > >> > I have tried different variations on the following tomcat embedded call >> > without success: >> > >> > tomcat.addContext(tomcat.getHost(), "/MyWebApp/images", >

Re: Embedded Tomcat how to use addContext for docBase

2013-01-29 Thread Jimmy Johnson
tomcat.addContext(tomcat.getHost(), "/MyWebApp/images", > > "/documents/images/"); > > > > I also tried: > > > > tomcat.addContext("/MyWebApp/images", "/documents/images/"); > > > > It seems that Tomcat does see the ex

Re: Embedded Tomcat how to use addContext for docBase

2013-01-29 Thread Konstantin Kolinko
getHost(), "/MyWebApp/images", > "/documents/images/"); > > I also tried: > > tomcat.addContext("/MyWebApp/images", "/documents/images/"); > > It seems that Tomcat does see the external docBase folder I have specified > because if I specify a path that

Re: docBase

2013-01-16 Thread Pid
On 16/01/2013 21:17, Leo Donahue - RDSA IT wrote: >> -Original Message- >> From: Pid [mailto:p...@pidster.com] >> Subject: Re: docBase >> >> On 11/01/2013 20:24, Leo Donahue - RDSA IT wrote: >>> Tomcat 7.0.34 >>> Java 1.6.0_35 >>> &g

RE: docBase

2013-01-16 Thread Leo Donahue - RDSA IT
>-Original Message- >From: Pid [mailto:p...@pidster.com] >Subject: Re: docBase > >On 11/01/2013 20:24, Leo Donahue - RDSA IT wrote: >> Tomcat 7.0.34 >> Java 1.6.0_35 >> >> Can the document base of a context be an administrative share? > >Yes. B

Re: docBase

2013-01-16 Thread Pid
On 11/01/2013 20:24, Leo Donahue - RDSA IT wrote: > Tomcat 7.0.34 > Java 1.6.0_35 > > Can the document base of a context be an administrative share? Yes. But I would not encourage it. 2nd only to NFS for causing random errors. Unless you have a massive number of images totalling large amounts

RE: docBase

2013-01-11 Thread Leo Donahue - RDSA IT
>-Original Message- >From: David kerber [mailto:dcker...@verizon.net] >Subject: Re: docBase > >On 1/11/2013 3:28 PM, Leo Donahue - RDSA IT wrote: >>> -Original Message- >>> From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov] >>&

Re: docBase

2013-01-11 Thread David kerber
On 1/11/2013 3:28 PM, Leo Donahue - RDSA IT wrote: -Original Message- From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov] Subject: docBase Tomcat 7.0.34 Java 1.6.0_35 Can the document base of a context be an administrative share? Ex: \\servername\share$\somedirectory I

Re: docBase

2013-01-11 Thread David kerber
On 1/11/2013 3:24 PM, Leo Donahue - RDSA IT wrote: Tomcat 7.0.34 Java 1.6.0_35 Can the document base of a context be an administrative share? Ex: \\servername\share$\somedirectory I run tomcat as a service using a local account on webserver1, that same local account has read access to the adm

RE: docBase

2013-01-11 Thread Leo Donahue - RDSA IT
>-Original Message- >From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov] >Subject: docBase > >Tomcat 7.0.34 >Java 1.6.0_35 > >Can the document base of a context be an administrative share? > >Ex: >\\servername\share$\somedirectoryctory>

Re: [Tomcat 7] Why can't you use automatic deployment and exploded WAR when docBase is outside appBase?

2012-08-07 Thread Christopher Schultz
.0-doc/config/host.html), a > new important text that wasn't in 6 reads: unpackWARs - (...) WAR > files located outside of the Host's *appBase* will not be > expanded. > > And in > http://tomcat.apache.org/tomcat-7.0-doc/config/host.html#Automatic%20Application%20Deployment

Re: [Tomcat 7] Why can't you use automatic deployment and exploded WAR when docBase is outside appBase?

2012-08-06 Thread Mark Eggers
On 8/6/2012 1:43 PM, Miguel Almeida wrote: Thanks for the input regarding 2). What's the difference between using javax.servlet.context.tempdir vs java.io.tmpdir ? Also, do you know the answer to 1 - ie, why did the change occur regarding not exploding when the WAR is outside appBase? Pleas

Re: [Tomcat 7] Why can't you use automatic deployment and exploded WAR when docBase is outside appBase?

2012-08-06 Thread Miguel Almeida
wrote: > On 8/6/2012 12:40 PM, Caldarale, Charles R wrote: > >> From: Miguel Almeida >> [mailto:migueldealmeida@gmail.**com >>> ] >>> Subject: [Tomcat 7] Why can't you use automatic deployment >>> and exploded WAR when docBase is outside appBa

Re: [Tomcat 7] Why can't you use automatic deployment and exploded WAR when docBase is outside appBase?

2012-08-06 Thread Mark Eggers
On 8/6/2012 12:40 PM, Caldarale, Charles R wrote: From: Miguel Almeida [mailto:migueldealme...@gmail.com] Subject: [Tomcat 7] Why can't you use automatic deployment and exploded WAR when docBase is outside appBase? The motivation for this is a simple code ServletContext.getRealPath(&q

RE: [Tomcat 7] Why can't you use automatic deployment and exploded WAR when docBase is outside appBase?

2012-08-06 Thread Caldarale, Charles R
> From: Miguel Almeida [mailto:migueldealme...@gmail.com] > Subject: [Tomcat 7] Why can't you use automatic deployment > and exploded WAR when docBase is outside appBase? > The motivation for this is a simple code ServletContext.getRealPath("/") > to create a sim

[Tomcat 7] Why can't you use automatic deployment and exploded WAR when docBase is outside appBase?

2012-08-06 Thread Miguel Almeida
eployment: - When using automatic deployment, the docBase defined by an XML Context<http://tomcat.apache.org/tomcat-7.0-doc/config/context.html>file should be outside of the appBase directory. If this is not the case, difficulties may be experienced deploying the web application or the

Re: Access dbf files outside context/docbase - fixed

2011-12-20 Thread David kerber
On 12/20/2011 1:09 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 12/19/11 8:28 PM, David Kerber wrote: Just to close out this thread, it's now fixed. I found a native Java dBase (.dbf) file driver, and it works great in both 32- and 64-bit environments

Re: Access dbf files outside context/docbase - fixed

2011-12-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 12/19/11 8:28 PM, David Kerber wrote: > Just to close out this thread, it's now fixed. I found a native > Java dBase (.dbf) file driver, and it works great in both 32- and > 64-bit environments, without having to mess with ODBC or the screw

Re: Access dbf files outside context/docbase - fixed

2011-12-19 Thread David Kerber
Just to close out this thread, it's now fixed. I found a native Java dBase (.dbf) file driver, and it works great in both 32- and 64-bit environments, without having to mess with ODBC or the screwy Microsoft database file drivers. D On 12/16/2011 10:09 PM, David Kerber wrote: On 12/16/2011

Re: Access dbf files outside context/docbase

2011-12-16 Thread David Kerber
On 12/16/2011 5:54 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, Thanks for posting back. On 12/16/11 2:50 PM, David kerber wrote: Figured out the cause, though I don't have it fixed yet: I'm running under a 64-bit JRE, and there is no 64-bit dBAse drive

Re: Access dbf files outside context/docbase

2011-12-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, Thanks for posting back. On 12/16/11 2:50 PM, David kerber wrote: > Figured out the cause, though I don't have it fixed yet: I'm > running under a 64-bit JRE, and there is no 64-bit dBAse driver > installed, just 32-bit. So I have to either

Re: Access dbf files outside context/docbase

2011-12-16 Thread David kerber
ction server. I've seen plenty of suggestions for just reading and streaming files from outside the docbase, but nothing for accessing them for database purposes. I'm using the Microsoft DBF driver. As I said above, it all works fine in my dev environment through Eclipse, connection to t

Re: Access dbf files outside context/docbase

2011-12-16 Thread David kerber
networked drive from my TC 5.5.xx server. I have no trouble with the coding; it all works fine from my Eclipse dev environment. I believe the issue is tomcat's contexts on the production server. I've seen plenty of suggestions for just reading and streaming files from outside the docbase, b

Re: Access dbf files outside context/docbase

2011-12-16 Thread André Warnier
have no trouble with the coding; it all works fine from my Eclipse dev environment. I believe the issue is tomcat's contexts on the production server. I've seen plenty of suggestions for just reading and streaming files from outside the docbase, but nothing for accessing them for databas

Re: Access dbf files outside context/docbase

2011-12-16 Thread David kerber
the coding; it all works fine from my Eclipse dev environment. I believe the issue is tomcat's contexts on the production server. I've seen plenty of suggestions for just reading and streaming files from outside the docbase, but nothing for accessing them for database purposes. I'm usin

Re: Access dbf files outside context/docbase

2011-12-16 Thread André Warnier
dev environment. I believe the issue is tomcat's contexts on the production server. I've seen plenty of suggestions for just reading and streaming files from outside the docbase, but nothing for accessing them for database purposes. I'm using the Microsoft DBF driver. As I sai

Re: Access dbf files outside context/docbase

2011-12-16 Thread André Warnier
believe the issue is tomcat's contexts on the production server. I've seen plenty of suggestions for just reading and streaming files from outside the docbase, but nothing for accessing them for database purposes. I'm using the Microsoft DBF driver. As I said above, it all works

Re: Access dbf files outside context/docbase

2011-12-15 Thread Mark Eggers
- Original Message - > From: Pid > To: Tomcat Users List > Cc: > Sent: Thursday, December 15, 2011 1:47 PM > Subject: Re: Access dbf files outside context/docbase > > On 15/12/2011 20:56, David kerber wrote: >> I am trying to figure out how to acce

Re: Access dbf files outside context/docbase

2011-12-15 Thread David Kerber
tomcat's contexts on the production server. I've seen plenty of suggestions for just reading and streaming files from outside the docbase, but nothing for accessing them for database purposes. I'm using the Microsoft DBF driver. As I said above, it all works fine in my dev envi

Re: Access dbf files outside context/docbase

2011-12-15 Thread Pid
s contexts on the production server. I've seen > plenty of suggestions for just reading and streaming files from outside > the docbase, but nothing for accessing them for database purposes. I'm > using the Microsoft DBF driver. > > As I said above, it all works fine in my dev en

Access dbf files outside context/docbase

2011-12-15 Thread David kerber
uggestions for just reading and streaming files from outside the docbase, but nothing for accessing them for database purposes. I'm using the Microsoft DBF driver. As I said above, it all works fine in my dev environment through Eclipse, connection to the dbf files in their real home

Re: Set docBase in pom.xml for maven tomcat plugin

2011-11-02 Thread Olivier Lamy
>> Hi Olivier, >> >> >> >> Thank you for you reply. I run maven in cli not in ecclipse. Since the >> >> project is a eclipse native dynamc web project, so I gues eclipse has >> its >> >> own way to handle it. But regardless, the warSou

Re: Set docBase in pom.xml for maven tomcat plugin

2011-11-02 Thread Bin Lan
pse has > its > >> own way to handle it. But regardless, the warSourceDirectory did not > change > >> the docBase for me. > >> > >> Regards > >> Bin > >> On Nov 2, 2011 5:08 AM, "Olivier Lamy" wrote: > >> &

Re: Set docBase in pom.xml for maven tomcat plugin

2011-11-02 Thread Olivier Lamy
; Hi Olivier, >> >> Thank you for you reply. I run maven in cli not in ecclipse. Since the >> project is a eclipse native dynamc web project, so I gues eclipse has its >> own way to handle it. But regardless, the warSourceDirectory did not change >> the docBase for me. &

Re: Set docBase in pom.xml for maven tomcat plugin

2011-11-02 Thread Bin Lan
handle it. But regardless, the warSourceDirectory did not change > the docBase for me. > > Regards > Bin > On Nov 2, 2011 5:08 AM, "Olivier Lamy" wrote: > >> Hello, >> Yup that's the correct ml. >> Did you try with last trunk version from ASF (tomca

Re: Set docBase in pom.xml for maven tomcat plugin

2011-11-02 Thread Bin Lan
Hi Olivier, Thank you for you reply. I run maven in cli not in ecclipse. Since the project is a eclipse native dynamc web project, so I gues eclipse has its own way to handle it. But regardless, the warSourceDirectory did not change the docBase for me. Regards Bin On Nov 2, 2011 5:08 AM

Re: Set docBase in pom.xml for maven tomcat plugin

2011-11-02 Thread Olivier Lamy
lipse user :-) ). Do you have issues running that with cli ? 2011/11/2 Bin Lan : > Hi all, > > I hope this message reaches the right user group. My question is pretty > simple. In maven-tomcat-plugin, how can I set the docBase path? Currently, > my project is a Eclipse dynamic web

Set docBase in pom.xml for maven tomcat plugin

2011-11-01 Thread Bin Lan
Hi all, I hope this message reaches the right user group. My question is pretty simple. In maven-tomcat-plugin, how can I set the docBase path? Currently, my project is a Eclipse dynamic web project and all the webapp files are being stored inside ${basedir}/WebContent folder. Whenever I tried

RE: docBase="" and in server.xml

2011-10-21 Thread Caldarale, Charles R
> From: Gianoglio Gabriele [mailto:g.gianog...@eurogroup.it] > Subject: docBase="" and in server.xml > in my Tomcat 5.5 instance I'm trying to set a webapp as the > root (docBase="") webapp Right there you have a fatal error; docBase must *never* be an emp

docBase="" and in server.xml

2011-10-21 Thread Gianoglio Gabriele
Hy everibody, in my Tomcat 5.5 instance I'm trying to set a webapp as the root (docBase="") webapp so that when users connect to http://server:port/ will not respond "manager" webapp. I've done this by adding the tag in server.xml, but I ca

Re: exception fixing docbase [/axis2]

2010-12-23 Thread Nuria Sánchez Almodóvar
xception fixing docbase [/axis2]' and a list of exceptions because for some reason the axis2.war cannot be correctly unpackaged and consequently the corresponding folder cannot be found, resources cannot be copied, etc. (Attached you can find a screenshot, sorry it is in Spanish) The list strips

Re: exception fixing docbase [/axis2]

2010-12-22 Thread Pid *
or axis2. Apache version? Tomcat version? etc > However, if we try the same but with a different user (also with > administrator privileges) we got a SEVERE error 'exception fixing docbase > [/axis2]' and a list of exceptions because for some reason the axis2.war > cann

exception fixing docbase [/axis2]

2010-12-22 Thread Nuria Sánchez Almodóvar
privileges) we got a SEVERE error 'exception fixing docbase [/axis2]' and a list of exceptions because for some reason the axis2.war cannot be correctly unpackaged and consequently the corresponding folder cannot be found, resources cannot be copied, etc. (Attached you can find a screens

Re: Docbase inside the host appBasehas been specified, and will be ignored

2010-07-01 Thread André Warnier
Ockleford Paul (NHS Connecting for Health) wrote: Ok, so if I am just working in development and only using classes outside of a war or a jar file how should I configure the application? If I remove those mappings how would tomcat know that a request for /LabCatalogue should be matched to my c

RE: Docbase inside the host appBasehas been specified, and will be ignored

2010-07-01 Thread Ockleford Paul (NHS Connecting for Health)
Message- From: Pid [mailto:p...@pidster.com] Sent: 01 July 2010 09:21 To: Tomcat Users List Subject: Re: Docbase inside the host appBasehas been specified, and will be ignored On 01/07/2010 09:06, Ockleford Paul (NHS Connecting for Health) wrote: > Hi, > > I am using tomcat 5.5 a

Re: Docbase inside the host appBasehas been specified, and will be ignored

2010-07-01 Thread Pid
or a directory (actually an exploded .war file). For an application placed in the appBase, Tomcat will automatically determine the 'path' it will be deployed at and the 'docBase', so you don't need to specify either attribute. You get the warning if the docBase is present a

Docbase inside the host appBasehas been specified, and will be ignored

2010-07-01 Thread Ockleford Paul (NHS Connecting for Health)
Hi, I am using tomcat 5.5 and I have deployed a web application that is working fine, but on tomcat start up I have noticed this message. I have googled around but it seems most people see this message and their web app doesn't work, mine does however work fine. Does anybody know why I am seei

RE: What should docbase be set to ?

2010-03-23 Thread Caldarale, Charles R
> From: Patrick Flaherty [mailto:pflah...@rampageinc.com] > Subject: What should docbase be set to ? > > I am deploying a single app under the ROOT context. > My appbase is c:/comapany/myapps. > So my app is in c:/company/myapps/ROOT. > > My question is for *both* Tomcat

What should docbase be set to ?

2010-03-23 Thread Patrick Flaherty
Hello, I am deploying a single app under the ROOT context. My appbase is c:/ comapany/myapps. So my app is in c:/company/myapps/ROOT. My question is for *both* Tomcat 5.5.23 and 6.0.20, in my context.xml what should my docbase be set to ? Right now I have it set to docbase=""

Re: Trying to access a directory outside docBase... is possible !

2009-12-15 Thread Ingo Gambin
Hi, thanks a lot! Using the 'deprecated' way of putting the '' directive to server.xml worked whereas trying to put it into documents.xml in the localhost directory did not (using Tomcat 5.5). I am using an extra servlet for the viewer because I dont want to reload the whole page but still want

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 12/15/2009 11:05 AM, Peter Crowther wrote: > If you're going to do this, be Very Very Careful. Tomcat doesn't follow > symbolic links by default, even on UNIX. This is for a very good reason: if > you do this, Tomcat *will* follow the syml

RE: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Caldarale, Charles R
> From: peter.crowth...@googlemail.com > [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther > Subject: Re: Trying to access a directory outside docBase... is it > possible ? > > This is a common enough use case (it comes up about once a month on the > list)

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread André Warnier
Pid wrote: On 15/12/2009 16:05, Peter Crowther wrote: 2009/12/15 André Warnier But maybe you could just create a link, inside your deployment directory, to the mount ? /opt/Tomcat/webapps/myApp/docs --> /opt/document-repository If you're going to do this, be Very Very Careful. Tomcat does

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Paolo Santarsiero
2009/12/15 Ingo Gambin > Hi, > > I am new to Tomcat and JEE, but a new job means to learn new things. > > So right to my problem, wich I am sure is not too unusual, but I > couldn't really find a solution (via google) so far. > > my directory structure looks as follows > > /opt/document-repositor

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Pid
On 15/12/2009 16:05, Peter Crowther wrote: 2009/12/15 André Warnier But maybe you could just create a link, inside your deployment directory, to the mount ? /opt/Tomcat/webapps/myApp/docs --> /opt/document-repository If you're going to do this, be Very Very Careful. Tomcat doesn't follow s

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Peter Crowther
2009/12/15 André Warnier > But maybe you could just create a link, inside your deployment directory, > to the mount ? > > /opt/Tomcat/webapps/myApp/docs --> /opt/document-repository > > If you're going to do this, be Very Very Careful. Tomcat doesn't follow symbolic links by default, even on UNI

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread André Warnier
Ingo Gambin wrote: ... my directory structure looks as follows /opt/document-repository <- mounted nfs-disk of an archiving system /opt/Tomcat/webapps/myApp.war <- my project deployment file my webapp for now is just a bunch of servlets which, using java.io.File..., have no trouble to read t

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Pid
On 15/12/2009 15:25, Ingo Gambin wrote: Am Dienstag, den 15.12.2009, 15:01 + schrieb Pid: o right to my problem, wich I am sure is not too unusual, but I couldn't really find a solution (via google) so far. my directory structure looks as follows /opt/document-repository<- mounted nfs-dis

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Ingo Gambin
Am Dienstag, den 15.12.2009, 15:01 + schrieb Pid: > o right to my problem, wich I am sure is not too unusual, but I > > couldn't really find a solution (via google) so far. > > > > my directory structure looks as follows > > > > /opt/document-repository<- mounted nfs-disk of an archiving system

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Pid
On 15/12/2009 13:46, Ingo Gambin wrote: Hi, I am new to Tomcat and JEE, but a new job means to learn new things. So right to my problem, wich I am sure is not too unusual, but I couldn't really find a solution (via google) so far. my directory structure looks as follows /opt/document-reposito

Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Ingo Gambin
Hi, I am new to Tomcat and JEE, but a new job means to learn new things. So right to my problem, wich I am sure is not too unusual, but I couldn't really find a solution (via google) so far. my directory structure looks as follows /opt/document-repository <- mounted nfs-disk of an archiving sy

Re: Putting Docbase on network drive. Is it Possible ?

2009-11-20 Thread R. S. Patil
Thanks André Warnier >> well the window from which catalina start command has been fired comes >> to command >> prompt after showing four lines but it opens another window which shows >> startup log remains open and if I close that Tomcat terminates. >> > In the same window where you entered "sta

RE: Putting Docbase on network drive. Is it Possible ?

2009-11-20 Thread Caldarale, Charles R
> From: R. S. Patil [mailto:kpr.rspa...@gmail.com] > Subject: Re: Putting Docbase on network drive. Is it Possible ? > > well the window from which catalina start command has been fired > comes to command prompt after showing four lines but it opens > another window which

Re: Putting Docbase on network drive. Is it Possible ?

2009-11-20 Thread André Warnier
R. S. Patil wrote: well the window from which catalina start command has been fired comes to command prompt after showing four lines but it opens another window which shows startup log remains open and if I close that Tomcat terminates. In the same window where you entered "startup.bat" to star

Re: Putting Docbase on network drive. Is it Possible ?

2009-11-20 Thread R. S. Patil
On Sat, Nov 21, 2009 at 12:56 AM, Caldarale, Charles R wrote: >> From: R. S. Patil [mailto:kpr.rspa...@gmail.com] >> Subject: Re: Putting Docbase on network drive. Is it Possible ? >> >> I ran the startup script in a terminal window. The terminal window wont >> com

RE: Putting Docbase on network drive. Is it Possible ?

2009-11-20 Thread Caldarale, Charles R
> From: R. S. Patil [mailto:kpr.rspa...@gmail.com] > Subject: Re: Putting Docbase on network drive. Is it Possible ? > > I ran the startup script in a terminal window. The terminal window wont > come back to prompt as it does on Linux. For shutting down I have to > open ano

Re: Putting Docbase on network drive. Is it Possible ?

2009-11-20 Thread André Warnier
R. S. Patil wrote: Hi Chuck Caldarale Works fine for me - as long as I'm running Tomcat via the startup.bat script. If you're running Tomcat as a service, the service has no access to any drive mappings you've made under your userid. Yes it works with startup.bat script. I just tested it

Re: Putting Docbase on network drive. Is it Possible ?

2009-11-20 Thread R. S. Patil
Hi Chuck Caldarale > Works fine for me - as long as I'm running Tomcat via the startup.bat script. >  If you're running Tomcat as a service, the service has no access to any > drive mappings you've made under your userid. > Yes it works with startup.bat script. I just tested it and found mapped

Re: Putting Docbase on network drive. Is it Possible ?

2009-11-20 Thread R. S. Patil
Thank You very much Chuck Caldarale > > In the docs: > http://tomcat.apache.org/tomcat-6.0-doc/config/context.html > I just read that and its a very valuable resource. Thanks and best regards Raja - To unsubscribe, e-mail: user

RE: Putting Docbase on network drive. Is it Possible ?

2009-11-20 Thread Caldarale, Charles R
> From: R. S. Patil [mailto:kpr.rspa...@gmail.com] > Subject: Re: Putting Docbase on network drive. Is it Possible ? > > where can I get more info about attributes and deployment xml file ? In the docs: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html - Chuck THIS C

Re: Putting Docbase on network drive. Is it Possible ?

2009-11-20 Thread R. S. Patil
Thanks Chuck Caldarale >> >       docBase="E:/" >>       antiResourceLocking="false" >>       allowLinking="true" >>       /> > > Take out the path attribute (it's not allowed) and the allowLinking attribute > (ineffectiv

RE: Putting Docbase on network drive. Is it Possible ?

2009-11-20 Thread Caldarale, Charles R
> From: R. S. Patil [mailto:kpr.rspa...@gmail.com] > Subject: Putting Docbase on network drive. Is it Possible ? > > I have created a Test-E.xml in C:\Program Files\Tomcat > 6.0\conf\Catalina\localhost > the contents are >docBase="E:/" >

Putting Docbase on network drive. Is it Possible ?

2009-11-20 Thread R. S. Patil
-E I wont get Error response. But if I copy all contents of e: to c:\Test-C and create Test-C.xml with contents http://localhost:8080/Test-C it gives index.html I am newbie to Tomcat and would like to know whether docbase on mapped drives are permitted or Not ? or shall I have to take any further

RE: Tomcat 6 Context, docBase and path

2009-10-27 Thread Caldarale, Charles R
> From: Nils Weinander [mailto:nils.weinan...@mogul.com] > Subject: Re: [SPAM] - RE: Tomcat 6 Context, docBase and path - Found > word(s)if you received this in error in the Text body > > I know, but as I read the docs, that's primarily if you > need to modify contexts wi

Re: [SPAM] - RE: Tomcat 6 Context, docBase and path - Found word(s) if you received this in error in the Text body

2009-10-27 Thread Nils Weinander
Caldarale, Charles R wrote: From: Nils Weinander [mailto:nils.weinan...@mogul.com] Subject: Tomcat 6 Context, docBase and path Sorry if this is a common question, I didn't find anything like it by Google. Reading the actual Tomcat doc and FAQ is probably more productive. Tried tha

RE: Tomcat 6 Context, docBase and path

2009-10-27 Thread Caldarale, Charles R
> From: Nils Weinander [mailto:nils.weinan...@mogul.com] > Subject: Tomcat 6 Context, docBase and path > > Sorry if this is a common question, I didn't find anything > like it by Google. Reading the actual Tomcat doc and FAQ is probably more productive. > In a Tom

Tomcat 6 Context, docBase and path

2009-10-27 Thread Nils Weinander
Sorry if this is a common question, I didn't find anything like it by Google. In a Tomcat 6, I have a Context declaration in server.xml with a path and a docBase to a war file with a different name than the path: ... When the webapp is deployed, two directories are created under we

RE: Problem with respecting docBase in context file in TC 6.0.20?

2009-08-20 Thread Roger Powers
> You may have already figured this out, but just in case: > > 1) The path attribute of a element may only > be used when the element is nested inside a > element in server.xml - which is strongly > discouraged. > > 2) The docBase attribute of a element may > only

RE: Problem with respecting docBase in context file in TC 6.0.20?

2009-08-19 Thread Caldarale, Charles R
> From: Roger Powers [mailto:prog...@yahoo.com] > Subject: Problem with respecting docBase in context file in TC 6.0.20? > > How can I get it to not make such a presumption, and look at the > docBase in the t.xml file? You may have already figured this out, but just in cas

Re: Problem with respecting docBase in context file in TC 6.0.20?

2009-08-19 Thread Roger Powers
Powers wrote: > From: Roger Powers > Subject: Problem with respecting docBase in context file in TC 6.0.20? > To: users@tomcat.apache.org > Date: Wednesday, August 19, 2009, 3:19 PM > Problem: > > 1) /usr/tomcat/conf/Catalina/localhost/t.xml has: > > > 2) /usr/tomcat/

Problem with respecting docBase in context file in TC 6.0.20?

2009-08-19 Thread Roger Powers
/t does not exist or is not a readable directory Since I never gave it a docBase of /usr/tomcat/webapps/t, I presume the problem is that it expects one due to the presense of /usr/tomcat/conf/catalina/localhost/t.xml ? How can I get it to not make such a presumption, and look at the docBase in

RE: SEVERE: Exception fixing docBase: {0} on Windows XP

2008-12-15 Thread Caldarale, Charles R
> From: joe_77 [mailto:joseph_freema...@yahoo.com] > Subject: SEVERE: Exception fixing docBase: {0} on Windows XP > > SEVERE: Exception fixing docBase: {0} > java.util.zip.ZipException: Access is denied. The error message seems pretty descriptive. Have you checked that the acc

SEVERE: Exception fixing docBase: {0} on Windows XP

2008-12-15 Thread joe_777777
service. The war file was copied to webapps directory prior to start of Tomcat. And if. 2) if the war file is dropped into the webapps directory when the Tomcat Windows service is running. SEVERE: Exception fixing docBase: {0} java.util.zip.ZipException: Access is denied. Any suggestions on

  1   2   >