Re: context.xml file location

2024-05-30 Thread Christopher Schultz
Hello, On 5/30/24 10:12, firstName lastName wrote: Renaming my context.xml to ROOT.xml (without changing the folder) fixed the problem. Thanks for the help! The best practice would be to put your context.xml file into your WAR file's META-INF/context.xml path. That way, it will be dep

Re: context.xml file location

2024-05-30 Thread firstName lastName
hu, May 30, 2024 at 7:35 AM firstName lastName < > nouser...@gmail.com> > wrote: > > > I am trying to setup JNDI for tomcat with a java webapp. I am using the > > official tomcat docker image (version 10.1.24-jdk21-temurin-jammy). > > However, I'm a bit confused

Re: context.xml file location

2024-05-30 Thread David Rush
I'm a bit confused about where to put the context.xml file. I > tried putting it in /usr/local/tomcat/conf/Catalina/localhost/context.xml > but tomcat refuses to start with the error "The main resource set specified > [/usr/local/tomcat/webapps/context] is not a directory or war fil

context.xml file location

2024-05-30 Thread firstName lastName
I am trying to setup JNDI for tomcat with a java webapp. I am using the official tomcat docker image (version 10.1.24-jdk21-temurin-jammy). However, I'm a bit confused about where to put the context.xml file. I tried putting it in /usr/local/tomcat/conf/Catalina/localhost/context.xml but t

Re: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-06-07 Thread Christopher Schultz
11:42, Mark Thomas wrote: On 07/06/2021 09:56, xcorpius wrote: Hello again! Checking the documentation ... Tomcat can create an encrypted password with the "digest.sh" tool for application passwords. But you cannot create an encrypted password for the DB in the context.xml file. The only so

Re: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-06-07 Thread xcorpius
Email. > > ‐‐‐ Original Message ‐‐‐ > > On Monday, 7 de June de 2021 11:42, Mark Thomas ma...@apache.org wrote: > > > > > On 07/06/2021 09:56, xcorpius wrote: > > > > > > > Hello again! > > > > Checking the documentation ... Tomc

Re: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-06-07 Thread Mark Thomas
rote: On 07/06/2021 09:56, xcorpius wrote: Hello again! Checking the documentation ... Tomcat can create an encrypted password with the "digest.sh" tool for application passwords. But you cannot create an encrypted password for the DB in the context.xml file. The only solution withou

Re: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-06-07 Thread xcorpius
1 09:56, xcorpius wrote: > > > Hello again! > > Checking the documentation ... Tomcat can create an encrypted password with > > the "digest.sh" tool for application passwords. > > But you cannot create an encrypted password for the DB in the context.xml > >

Re: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-06-07 Thread xcorpius
encrypted password with > > the "digest.sh" tool for application passwords. > > But you cannot create an encrypted password for the DB in the context.xml > > file. The only solution without adding anything is to give restrictive > > permissions to the context.x

Re: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-06-07 Thread Mark Thomas
On 07/06/2021 09:56, xcorpius wrote: Hello again! Checking the documentation ... Tomcat can create an encrypted password with the "digest.sh" tool for application passwords. But you cannot create an encrypted password for the DB in the context.xml file. The only solution with

Re: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-06-07 Thread xcorpius
pted password with > > the "digest.sh" tool for application passwords. > > But you cannot create an encrypted password for the DB in the context.xml > > file. The only solution without adding anything is to give restrictive > > permissions to the context.xml file. >

Re: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-06-07 Thread Olaf Kock
On 07.06.21 10:56, xcorpius wrote: > Hello again! > > Checking the documentation ... Tomcat can create an encrypted password with > the "digest.sh" tool for application passwords. > > But you cannot create an encrypted password for the DB in the context.xml >

RE: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-06-07 Thread xcorpius
Hello again! Checking the documentation ... Tomcat can create an encrypted password with the "digest.sh" tool for application passwords. But you cannot create an encrypted password for the DB in the context.xml file. The only solution without adding anything is to give restrictive p

RE: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-04-30 Thread xcorpius
ately by reply e-mail and delete this message. Thank you for > your cooperation. > > > -Original Message- > > From: xcorpius xcorp...@protonmail.com.INVALID > > Sent: Monday, April 26, 2021 8:36 AM > > To: users@tomcat.apache.org > > Subject: Re: Question about en

Re: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-04-27 Thread Christopher Schultz
pius Sent: Monday, April 26, 2021 8:36 AM To: users@tomcat.apache.org Subject: Re: Question about encrypting database passwords in the context.xml file - Tomcat 9 Thanks Olaf Mensaje original On 26 abr. 2021 14:02, Olaf Kock escribió: On 26.04.21 13:10, xcorpius wrot

RE: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-04-26 Thread jonmcalexander
ase passwords in the > context.xml file - Tomcat 9 > > Thanks Olaf > > Mensaje original > On 26 abr. 2021 14:02, Olaf Kock escribió: > > > On 26.04.21 13:10, xcorpius wrote: > >> Hi, > >> > >> I wanted to ask abo

Re: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-04-26 Thread xcorpius
Thanks Olaf Mensaje original On 26 abr. 2021 14:02, Olaf Kock escribió: > On 26.04.21 13:10, xcorpius wrote: >> Hi, >> >> I wanted to ask about how to encrypt database passwords in the context.xml >> file in Tomcat 9. >> > Hi, &g

Re: Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-04-26 Thread Olaf Kock
On 26.04.21 13:10, xcorpius wrote: > Hi, > > I wanted to ask about how to encrypt database passwords in the context.xml > file in Tomcat 9. > Hi, please check this article: https://cwiki.apache.org/confluence/display/TOMCAT/Password It covers the topic once and f

Question about encrypting database passwords in the context.xml file - Tomcat 9

2021-04-26 Thread xcorpius
Hi, I wanted to ask about how to encrypt database passwords in the context.xml file in Tomcat 9. Thank you very much to all. Xcorpius.

Using a context.xml file in /conf/Catalina/local/context.xml

2016-11-02 Thread phiroc
: The name welcomeMessage is not bound to this Context" The only way to prevent the above message from being displayed is to create a context.xml file in the project's META-INF directory. However, for my purposes, I need to store the context.xml file outside of the project's WAR.

Re: Automatic deployment with TCD deletes customized context.xml file

2014-03-12 Thread Jesse Barnum
On Mar 12, 2014, at 8:41 AM, Mark Thomas wrote: > Hmm. It looks like the update command does an undeployment followed by a > deploy rather than a replacement of the WAR file and a redeploy. You > aren't going to be able to fix that without code changes to Tomcat. > Changing the behaviour seems re

Re: Automatic deployment with TCD deletes customized context.xml file

2014-03-12 Thread Mark Thomas
e with TCD (and I suspect > when using the Tomcat manager, although I have not tested that), it > appears that the webapp is deleted and then uploaded (as opposed to > just being replaced), which is causing the customized context.xml > file to be lost and replaced with a default version

Automatic deployment with TCD deletes customized context.xml file

2014-03-12 Thread Jesse Barnum
, although I have not tested that), it appears that the webapp is deleted and then uploaded (as opposed to just being replaced), which is causing the customized context.xml file to be lost and replaced with a default version. Is there something I can do about this? I'm just trying to get the

Re: multiple Context elements in conf/context.xml file

2010-09-03 Thread Pid
On 03/09/2010 18:47, Tom H wrote: > > my existing conf/context.xml file has already a element; > >WEB-INF/web.xml > > > > I would like to add another to allow access to the /manager/status > location to my monitoring, however adding a new Context element lik

multiple Context elements in conf/context.xml file

2010-09-03 Thread Tom H
my existing conf/context.xml file has already a element; WEB-INF/web.xml I would like to add another to allow access to the /manager/status location to my monitoring, however adding a new Context element like so; conf/context.xml WEB-INF/web.xml breaks the

RE: Reading tomcat context.xml file from webapp

2010-05-06 Thread kgaekwad
>> Subject: Re: Reading tomcat context.xml file from webapp >> >> one of these dependencies is the db, which is >> configured in the context.xml file > > You can also use JMX to access numerous attributes maintained by Tomcat. > Enable JMX for your Tomca

RE: Reading tomcat context.xml file from webapp

2010-05-06 Thread Caldarale, Charles R
> From: kgaekwad [mailto:karthik.gaek...@ni.com] > Subject: Re: Reading tomcat context.xml file from webapp > > one of these dependencies is the db, which is > configured in the context.xml file You can also use JMX to access numerous attributes maintained by Tomcat. Enab

Re: Reading tomcat context.xml file from webapp

2010-05-06 Thread kgaekwad
This is true. I'm trying to create a /status page for my application and it's dependencies (ip address/dns name); one of these dependencies is the db, which is configured in the context.xml file I guess I could use the regular java file io stuff, but I was wondering if there wa

Re: Reading tomcat context.xml file from webapp

2010-05-06 Thread Pid
On 06/05/2010 16:30, kgaekwad wrote: > > Hello, > > Is there a way to read the context.xml stored in /conf/ folder from a > webapplication? String pathToContextXmlFile = "..."; File contextXmlFile = new File(pathToContextXmlFile); Why would you want to do such a thing? p signature.asc D

RE: Reading tomcat context.xml file from webapp

2010-05-06 Thread Caldarale, Charles R
> From: kgaekwad [mailto:karthik.gaek...@ni.com] > Subject: Reading tomcat context.xml file from webapp > > Is there a way to read the context.xml stored in /conf/ > folder from a webapplication? You can issue normal Java I/O requests to the file system path, but ... Why

Reading tomcat context.xml file from webapp

2010-05-06 Thread kgaekwad
Hello, Is there a way to read the context.xml stored in /conf/ folder from a webapplication? Thank you! -K -- View this message in context: http://old.nabble.com/Reading-tomcat-context.xml-file-from-webapp-tp28475444p28475444.html Sent from the Tomcat - User mailing list archive at

RES: RES: RES: Context.xml file

2007-08-17 Thread Milanez, Marcus
as I can in my environment. I just can't assume anything... Thank you! -Mensagem original- De: Christopher Schultz [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 17 de agosto de 2007 16:43 Para: Tomcat Users List Assunto: Re: RES: RES: Context.xml file -BEGIN PGP SIGNED MESSAGE

Re: RES: RES: Context.xml file

2007-08-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus, Milanez, Marcus wrote: > I know.. This is quite difficult to address... > > Have your company adhered to SOX already? Erm... correct me if I'm wrong, but SOX is all about public disclosure of bad things happening. There are no preventative

Re: RES: RES: Context.xml file

2007-08-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus, Milanez, Marcus wrote: > Microsoft seems to have a good solution for that. The 'keys' are > associated with na specific domain account... What do you think: > http://msdn2.microsoft.com/en-us/library/ms995355.aspx I don't see this as a soluti

Re: RES: RES: Context.xml file

2007-08-17 Thread Mark H. Wood
All the solutions I ever heard of boil down to two approaches: 1) The secrets are stored in the computer, and protected by filesystem permissions. This is what you have now. Ensure that the filemode/ACL/whatever is correct to prevent unauthorized access to the files containing the s

RES: RES: Context.xml file

2007-08-17 Thread Milanez, Marcus
Enviada em: sexta-feira, 17 de agosto de 2007 15:17 Para: Tomcat Users List Assunto: Re: RES: Context.xml file -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus, Milanez, Marcus wrote: > Regarding that, I came across an implementation suggestion which seems > to be valid, but still seems

RES: RES: Context.xml file

2007-08-17 Thread Milanez, Marcus
I know.. This is quite difficult to address... Have your company adhered to SOX already? -Mensagem original- De: Christopher Schultz [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 17 de agosto de 2007 15:17 Para: Tomcat Users List Assunto: Re: RES: Context.xml file -BEGIN PGP

Re: RES: Context.xml file

2007-08-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus, Milanez, Marcus wrote: > Regarding that, I came across an implementation suggestion which seems > to be valid, but still seems to have security issues. What do you think? > Take a look at http://wldj.sys-con.com/read/393364.htm Wow, what a mi

RES: Context.xml file

2007-08-17 Thread Milanez, Marcus
-feira, 17 de agosto de 2007 14:18 Para: Tomcat Users List Assunto: Context.xml file Hello everyone! Is there a way to make the context.xml file more secure? I mean, inside this file we have database users and passwords in plain form, and this seems to be a severe security issue... How do you guys

Context.xml file

2007-08-17 Thread Milanez, Marcus
Hello everyone! Is there a way to make the context.xml file more secure? I mean, inside this file we have database users and passwords in plain form, and this seems to be a severe security issue... How do you guys usually protect these informations (using context.xml file) in your projects

Re: context.xml file and war

2005-10-21 Thread Lionel Farbos
Some times ago, I wrote a HowTo deploy on Tomcat 5.5 (with an example) and I put it here : http://issues.apache.org/bugzilla/show_bug.cgi?id=35063 This doc is for Tomcat 5.5 but, perhaps, you'll find your answer for Tomcat 4 ... On Thu, 20 Oct 2005 21:48:13 +0200 Alexander Eller <[EMAIL PROTECT

context.xml file and war

2005-10-20 Thread Alexander Eller
Hello list users, after searching the documenation and the internet, I finally ask the list for help: I want to deploy an application as a war file. As I need to configure JNDI Resources (datasources), I want to use a context-specific xml file instead of modifying server.xml. But I can't get