Re: serving content from outside the context

2005-10-12 Thread Darryl L. Miles
John Laughton wrote: Hi, I hope this is the right mailing list for this question I am using tomcat 5.0.28 I have a simple web app and want to serve up some images in the jsp pages, but the images are outside the context The HTTP statement looks like trtd img alt=thumb image src=/data

RE: serving content from outside the context

2005-10-12 Thread Arup Vidyerthy
-Original Message- From: Darryl L. Miles [mailto:[EMAIL PROTECTED] Sent: 12 October 2005 09:59 To: Tomcat Users List Subject: Re: serving content from outside the context John Laughton wrote: Hi, I hope this is the right mailing list for this question I am using tomcat 5.0.28 I have a simple

RE: serving content from outside the context

2005-10-12 Thread John Laughton
Thanks for the suggestions I didn't really want to run Apache, especially as I have tomcat (which is suppose to be a web server - I thought ?) For now I have added a file to .../tomcat/conf/Catalina/localhost/myData.xml This xml file contains ?xml version='1.0' encoding='utf-8'? Context path

Context Relative versus Path Relative error pages

2005-10-12 Thread Arlene Milgram
/bugzilla/show_bug.cgi?id=35230 One can get the correct errorPage by using a Context relative path. %@ page language=java session=true errorPage=/popdrv/PopError.jsp % We have attached 6 files, PathServ.java, pathRelative.jsp, ContextServ.java

Re: apache virtual hosting + server.xml + context

2005-10-12 Thread sudip shrestha
We are having the similar problem, but if we place context in server.xml, ( I also have a META-INF/context.xml ) and as we are using dbcp connection pool, and it seems that tomcat initializes those pool twice On 10/7/05, gianni dalmasso [EMAIL PROTECTED] wrote: hi list, i have a problem. i

RE: apache virtual hosting + server.xml + context

2005-10-12 Thread Caldarale, Charles R
From: sudip shrestha [mailto:[EMAIL PROTECTED] Subject: Re: apache virtual hosting + server.xml + context We are having the similar problem, but if we place context in server.xml, ( I also have a META-INF/context.xml ) and as we are using dbcp connection pool, and it seems that tomcat

After adding a context xml file, web-app doesn't always start

2005-10-11 Thread David Farrell
Hi all, For a while my web app was connecting manually to the db but obviously that's a bit rubbish so I looked at some examples and moved the db stuff into the context file for my app. I have never written a context file and I think I may have missed something. Now when I use ant to install my

Manage a context via JMX

2005-10-11 Thread Björn König
Hello, i'm using jmx to access the tomcat 5.5 server. I succeeded in retrieving a list of context mbeans. My problem is that the context-mbean doesn't contain any information about the availability of a context, the context description and number of sessions. I tried to get the original context

RE: After adding a context xml file, web-app doesn't always start

2005-10-11 Thread Caldarale, Charles R
From: David Farrell [mailto:[EMAIL PROTECTED] Subject: After adding a context xml file, web-app doesn't always start I think I may have missed something. Such as telling us which version of Tomcat you're using. tomcat throw an exeption that my app conspiracy cannot be found under

serving content from outside the context

2005-10-11 Thread John Laughton
Hi, I hope this is the right mailing list for this question I am using tomcat 5.0.28 I have a simple web app and want to serve up some images in the jsp pages, but the images are outside the context The HTTP statement looks like trtd img alt=thumb image src=/data/webData/family/DSC01183.JPG

mod_jk + context don't work ?

2005-10-08 Thread gianni dalmasso
i configured several html virtual hosts sites with jsps ; (apache 2.0 + mod_jk.+ tomcat 5.5.) - virtual hosting managed by apache (name based virtual host) - connector ajp13 for all jsps - if a i create in server.xml : an host www.aaa.com + context infos -- everythink works but it's no longer

apache virtual hosting + server.xml + context

2005-10-07 Thread gianni dalmasso
hi list, i have a problem. i have apache 2.0 + tomcat 5.5. i have N name based virtual hosts on the same machine managed by apache; some of them need to use tomcat (have jsp pages and servlets...) if i set a server.xml of tomcat with several hosts, and every host has ist context -- it's ok

RE: apache virtual hosting + server.xml + context [255643:132138]

2005-10-07 Thread RTE - Meridian Club
[EMAIL PROTECTED] Received: 10/7/2005 10:51 AM To: tomcat-user@jakarta.apache.org Subject: apache virtual hosting + server.xml + context hi list, i have a problem. i have apache 2.0 + tomcat 5.5. i have N name based virtual hosts on the same machine managed by apache; some of them need to use

Re: Context path changes in context.xml not working

2005-10-06 Thread David Kerber
I did a bunch of googling before posting my question, but never came across that post; thanks for listing it; it appears to be exactly what I need. Dave Caldarale, Charles R wrote: From: David Kerber [EMAIL PROTECTED] Subject: Re: Context path changes in context.xml not working Nobody

Add context to URI (Tomcat5/Apache2)

2005-10-05 Thread Benjamin Lerman
is to have a line like: [uri:/tomcat/*] debug=0 and that that all the URI in /tomcat/foo be converted in /foo for the tomcat server. For that to work it should be a parameter to give to the tomcat server, but I did not find the right one. Context seems to be the right one, but when I add Context

Context path changes in context.xml not working

2005-10-05 Thread David Kerber
Running Tomcat 5.5.9 on Windows 2000 server. I am trying to change the context path of an application, and it works fine when I put this into my server.xml: Context path=/wradev/pelican docBase=e:\TomcatClients\Pelican\webapps\SiteData debug=0 reloadable=true autoDeploy=true

Re: Context path changes in context.xml not working

2005-10-05 Thread Mark Eggers
As mentioned several times on the mailing list, path is no longer read from webapp/META-INF/context.xml. Try placing the context information in: engine-name\hostname\appname.xml under %CATALINA_HOME%\conf or %CATALINA_BASE%\conf if you're using multiple Tomcats served from one binary

Re: Context path changes in context.xml not working

2005-10-05 Thread David Smith
Intended behavior. path attributes are ignored in context xml files. If you'd like to change the name of the webapp, I'd suggest changing the name of the .war file to change it's name. If you aren't working with .war files, change the name of the webapp folder and then the name of it's context

Re: Context path changes in context.xml not working

2005-10-05 Thread David Kerber
I guess I missed that part about paths - thanks for pointing that out. How do I rename things to get the 2-level context path? This is an app I'm migrating from SilverStream to Tomcat, and I don't want to change the url my users use to connect to it. David Smith wrote: Intended behavior

Re: Context path changes in context.xml not working

2005-10-05 Thread David Kerber
Nobody has any suggestions about setting up a 2-level context path *without* putting it in the server.xml (it works fine in there)? Dave David Kerber wrote: I guess I missed that part about paths - thanks for pointing that out. How do I rename things to get the 2-level context path

Re: Context path changes in context.xml not working

2005-10-05 Thread Mark Eggers
Did you try it in: $CATALINA_HOME/conf/engine-name/hostname/appname.xml? /mde/ --- David Kerber [EMAIL PROTECTED] wrote: Nobody has any suggestions about setting up a 2-level context path *without* putting it in the server.xml (it works fine in there)? Dave

Re: Context path changes in context.xml not working

2005-10-05 Thread Caldarale, Charles R
From: David Kerber [EMAIL PROTECTED] Subject: Re: Context path changes in context.xml not working Nobody has any suggestions about setting up a 2-level context path *without* putting it in the server.xml (it works fine in there)? I thought I remembered something about this, and went

setting the context path in tomcat5.5.9?

2005-10-04 Thread Mbah Tenjoh-Okwen
hello i would like to know how to set the context path in tomcat5.5.9 hi I also read something and a build.properties file and i dont know how to do this too. please i need help on this cause i cant see my application file when i give in the uri http://localhost:8080/myApp

RE: setting the context path in tomcat5.5.9?

2005-10-04 Thread Trung Nguyen
To add the context path, you need to edit the $TOMCAT_HOME/conf/server.xml file and these lines: Host name=www.yourdomainname.com debug=0 unpackWARs=true Context path=/myApp docBase=/where/you/store/your/apps debug=0 reloadable=true crossContext=true / /Host Hope this help... ---Trung

RE: setting the context path in tomcat5.5.9?

2005-10-04 Thread Caldarale, Charles R
From: Trung Nguyen [mailto:[EMAIL PROTECTED] Subject: RE: setting the context path in tomcat5.5.9? To add the context path, you need to edit the $TOMCAT_HOME/conf/server.xml file and these lines: This completely ignores the admonition in the Tomcat doc: Please note that for tomcat 5

RE: setting the context path in tomcat5.5.9?

2005-10-04 Thread Stephen Faustino
In an issue related to this and the documentation cited below, my attempts to create a Context in the META-INF/context.xml were not successful, that is, I could create the context.xml file but the attributes did not seem to take affect. I could set them in the $CATALINA_HOME/conf/[enginename

RE: setting the context path in tomcat5.5.9?

2005-10-04 Thread Caldarale, Charles R
From: Stephen Faustino [mailto:[EMAIL PROTECTED] Subject: RE: setting the context path in tomcat5.5.9? my attempts to create a Context in the META-INF/context.xml were not successful, that is, I could create the context.xml file but the attributes did not seem to take affect. I could set

Tomcat sample initial context for jboss

2005-10-04 Thread Lee Morgan
Does anyone have a sample initial context setup that works with jboss external? Do I need to create a resource for the context that will be performing the JNDI lookup in the conf/server.xml file? I have read all the docs and scoured the net but cannot find a solution. *Disclaimer

Re: setting the context path in tomcat5.5.9?

2005-10-04 Thread Mark Thomas
ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner Mbah Tenjoh-Okwen wrote: hello i would like to know how to set the context path in tomcat5.5.9 hi I also read

Multi-level context paths possible in TC 5.5.9?

2005-09-30 Thread David Kerber
SiteData.war, so when I deploy it to tomcat, it shows up at context path /SiteData. I would love it if Tomcat could present the same stuff at the /level1/level2 path. If I have to deploy it as individual files instead of in a .war file, that's ok to, as would be other mods to path names, etc

RE: Multi-level context paths possible in TC 5.5.9?

2005-09-30 Thread Trung Nguyen
David, You can do this by modify the server.xml file from $TOMAT_HOME/conf/ directory: Host name=www.myserver.com debug=0 unpackWARs=true Context path=/level1/level2 docBase=/usr/var/apps/SiteData debug=0 reloadable=true crossContext=true / /Host Where docBase is where you store your

Re: Multi-level context paths possible in TC 5.5.9?

2005-09-30 Thread David Kerber
Awesome!!! Worked first time. I had tried messing with context paths in an application .xml, but never thought to try the server.xml. One question: what does the crossContext flag do? Or is that what lets it look to a different path for the context path? The help files I looked

RE: Multi-level context paths possible in TC 5.5.9?

2005-09-30 Thread Trung Nguyen
() always return null. Hope this help. ---Trung -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Friday, September 30, 2005 2:47 PM To: Tomcat Users List Subject: Re: Multi-level context paths possible in TC 5.5.9? Awesome!!! Worked first time. I had tried

Re: Multi-level context paths possible in TC 5.5.9?

2005-09-30 Thread David Kerber
(the default) in security conscious environments, to make getContext() always return null. Hope this help. ---Trung -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Friday, September 30, 2005 2:47 PM To: Tomcat Users List Subject: Re: Multi-level context paths

Re: Why doesn't my context work?

2005-09-29 Thread Mark Eggers
--- Michael Sullivan [EMAIL PROTECTED] wrote: [ lots of stuff snipped ] OK, I finally got around to putting this together on my Limux (Fedora Core 4) box. My environment: 2.6.12-1.1456_FC4 running on a Dell 8200 with 768 MB java 1.5.0_04-b05 apache 2.0.54 mod_jk 1.2.14.1 tomcat 5.5.9 My

mangae more than one context in META-INF/context.xml

2005-09-27 Thread [EMAIL PROTECTED]
Anyone knows how mangae more than one context in META-INF/context.xml? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

setting more than one context in META-INF/context.xml

2005-09-27 Thread [EMAIL PROTECTED]
Hi all I'd like to set more than one context in META-INF/context.xml Any idea? Is it usefulle creating another context.xml in METa-INF and how to configure it?? please help Regards - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Why doesn't my context work?

2005-09-26 Thread Mark Eggers
--- Michael Sullivan [EMAIL PROTECTED] wrote: Right now I use symlinks to my individual users' website directories, but now that I've discovered Alias I'll probably switch completely to using Aliases. Good. I created a test Alias point to the ~/webspace/webapps directory in my

Re: Why doesn't my context work?

2005-09-26 Thread Michael Sullivan
On Sun, 2005-09-25 at 23:21 -0700, Mark Eggers wrote: --- Michael Sullivan [EMAIL PROTECTED] wrote: Right now I use symlinks to my individual users' website directories, but now that I've discovered Alias I'll probably switch completely to using Aliases. Good. I created a

Re: Why doesn't my context work?

2005-09-25 Thread Michael Sullivan
directory would be /home/michael/webspace/webapps . Just for the sake of arguments I created a directory called user under /home/michael/webspace/webapps and moved my jsp files into it. My /opt/tomcat5/conf/Catalina/localhost/user.xml file looks like this now: Context docBase

Re: session tracking in a context that contains JSP and servlets

2005-09-22 Thread Leon Rosenberg
On 9/22/05, Mark [EMAIL PROTECTED] wrote: I would think that this is possible. I have been writing servlets for over a year, but have not written a single line of JSP. Technically speaking each JSP is actually a servlet... more or less. Everything that works in the server works in the jsp

session tracking in a context that contains JSP and servlets

2005-09-21 Thread Mark
I want to create a webapp that will contain both servlets and JSP. I will be using a login page to authenticate users. I will probably use one of the Tomcat supported authentication modules. I am wondering if it is possible for tomcat to properly manage session information when going between

Re: session tracking in a context that contains JSP and servlets

2005-09-21 Thread David Wall
Mark wrote: I want to create a webapp that will contain both servlets and JSP. I will be using a login page to authenticate users. I will probably use one of the Tomcat supported authentication modules. I am wondering if it is possible for tomcat to properly manage session information when

Re: session tracking in a context that contains JSP and servlets

2005-09-21 Thread Mark
I would think that this is possible. I have been writing servlets for over a year, but have not written a single line of JSP. On 9/21/05, David Wall [EMAIL PROTECTED] wrote: Mark wrote: I want to create a webapp that will contain both servlets and JSP. I will be using a login page to

Unable to start context - Mail session not bound...

2005-09-20 Thread Darryl L. Pierce
I have a context which includes a mail session. However, when I startup Tomcat (version 5.0.28 on Windows XP) and it loads the context, I get an error message saying: 11:09:53,556 ERROR ContextLoader:177 - Context initialization failed org.springframework.beans.factory.BeanCreationException

How to get process URL in different context?

2005-09-19 Thread Kyle
Hi, I need to get hold of and process an http-encoded URL (effectively an operational servlet) within a different context on the same machine and read back the response it provides. e.g. from the root Context within a doPost, I need to execute /abc/api/action.do?param1=123param2=abc

Why doesn't my context work?

2005-09-16 Thread Michael Sullivan
/localhost. I made home.xml by copying admin.xml and altering it. Here are the contents of home.xml: Context path=/user appBase=/home docBase=michael/webspace/webapps debug=0 privileged=true /Context If I understand this correctly, when I ask for www.espersunited.com/user/index.jsp

Re: Why doesn't my context work?

2005-09-16 Thread Mark Eggers
Here are the contents of home.xml: Context path=/user appBase=/home docBase=michael/webspace/webapps debug=0 privileged=true /Context From the documentation for Tomcat 5.5.9 at http://localhost:8080/tomcat-docs/config/context.html: The Document Base (also known as the Context

Re: Why doesn't my context work?

2005-09-16 Thread Hassan Schroeder
Michael Sullivan wrote: what I found. Anyway, I created a file called home.xml in /opt/tomcat5/conf/Catalina/localhost. I made home.xml by copying admin.xml and altering it. Here are the contents of home.xml: Context path=/user appBase=/home docBase=michael/webspace/webapps debug=0

Re: Why doesn't my context work?

2005-09-16 Thread Michael Sullivan
From the documentation for Tomcat 5.5.9 at http://localhost:8080/tomcat-docs/config/context.html: The Document Base (also known as the Context Root) directory for this web application, or the pathname to the web application archive file (if this web application is being executed directly

Re: Why doesn't my context work?

2005-09-16 Thread Mark Eggers
for the sake of arguments I created a directory called user under /home/michael/webspace/webapps and moved my jsp files into it. My /opt/tomcat5/conf/Catalina/localhost/user.xml file looks like this now: Context docBase=/home/michael/webspace/webapps/user debug=0 privileged=true

Deploying root context

2005-09-15 Thread Durfee, Bernard
Is there a way to use the Tomcat 5.5.9 manager to deploy a WAR file as the root context? If not, how to I munge the deployed web application to make it the root context? Bernie - To unsubscribe, e-mail: [EMAIL PROTECTED

AW: cross context info

2005-09-14 Thread Bernhard Slominski
Hi Alain, First of all the session is ALWAYS on application scope, this is not an Tomcat specific behaviour but a requirement of the Specification: SRV.7.3 Session Scope HttpSession objects must be scoped at the application (or servlet context) level. The underlying mechanism, such as the cookie

Re: cross context info

2005-09-14 Thread Edmund Urbani
Alain Gaeremynck wrote: I have 2 webapps living on the same server and they are linked to the same user experiance.. Now both apps require login but i don't want my users to have to login on both apps. Also while they are browsing in one context i don't want the session to expire

tomcat4 does not close database connections on reload context

2005-09-14 Thread armin walland
, java 1.4, postgres database7.4 with jdbc connectivity, the OS is linux 2.6.8, debian sarge) with CodeCharge Studio (yessoftware.com) which create a connection pool of, say 10 connections. when i upload a new version of an application to the server tomcat reloads the context correctly

cross context info

2005-09-13 Thread Alain Gaeremynck
I have 2 webapps living on the same server and they are linked to the same user experiance.. Now both apps require login but i don't want my users to have to login on both apps. Also while they are browsing in one context i don't want the session to expire for the other context. so

suppressing cookies for only part of a context

2005-09-09 Thread Brian Moseley
i've got a webapp deployed in tomcat 5.5.9 that provides three separate interfaces to my business logic: 1) web ui 2) webdav 3) rest i want session management via cookies and url-rewriting for the web ui but not for the other interfaces. is there a clean way to achieve that portably with the

RE: getRealPath() returns real path plus context path

2005-09-06 Thread Raghupathy,Gurumoorthy
servletContext.getRealPath() is real path to the context path + the argument ... So if you say servletContext.getRealPath(hithere) .. It will return C:\path\to\tomcat\webapps\tool\hithere Regards Guru -Original Message- From: Franz-Josef Herpers [mailto:[EMAIL PROTECTED] Sent: 05

Re: getRealPath() returns real path plus context path

2005-09-06 Thread Edmund Urbani
Franz-Josef Herpers wrote: Hi, I've a problem when using ServletContext#getRealPath() with Tomcat 5.5.9. My web application resides under the name tool in the webapps directory. When I call servletContext.getRealPath(request.getContextPath() I get the real path but always with the context

Re: getRealPath() returns real path plus context path

2005-09-06 Thread Franz-Josef Herpers
Hi, Edmund Urbani wrote: the getRealPath method simply returns a path inside the webapp's directory. eg. you can do getRealPath(images/someimg.jpg) and get the actual filesystem path for that file, so you can access it using java.io.File and do something with it. getRealPath(/) should give

getRealPath() returns real path plus context path

2005-09-05 Thread Franz-Josef Herpers
Hi, I've a problem when using ServletContext#getRealPath() with Tomcat 5.5.9. My web application resides under the name tool in the webapps directory. When I call servletContext.getRealPath(request.getContextPath() I get the real path but always with the context path added at the end

[jasper] compiling jsp in an osgi context

2005-09-05 Thread Gilles Dodinet
hi- resending a mail i inadvertently sent to commons-user.. i'm trying to execute jsp in an osgi context with no luck as of today. i've embedded jetty as an osgi bundle and registered a BundleListener which registers installed bundles as webapp if they contain a web descriptor file. so far

Re: Manager error 'FAIL - Invalid context path null was specified'

2005-09-04 Thread Mark Thomas
Andy wrote: When I request a reload like this - http://testxtb.example.com/manager/reload?xtb I get this response- FAIL - Invalid context path null was specified However according to this page - http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html This is a valid syntax You

Manager error 'FAIL - Invalid context path null was specified'

2005-09-03 Thread Andy
Hi All, I'm trying to configure the manager application with virtual hosts. When I request a reload like this - http://testxtb.example.com/manager/reload?xtb I get this response- FAIL - Invalid context path null was specified However according to this page - http://jakarta.apache.org

Context in separate file doesn't work

2005-09-02 Thread Trond Hersløv
Hi tomcat fellas! http://venus:8080 gives me the index.html in the folder /home/trond/GTG/inside, but only when I use the server.xml below. When I take the Context. / and put it in a separate file, ${CATALINA_HOME}/conf/Catalina/venus/test.xml it doesnt work anymore. Does anybody know why

RE: Context in separate file doesn't work

2005-09-02 Thread George Sexton
The context name and the file name have to match exactly. Also, root contexts need to have a path of . George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Trond Hersløv [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005

RE: Context in separate file doesn't work

2005-09-02 Thread George Sexton
One other thing, for a ROOT context, the file should be named ROOT.xml George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Trond Hersløv [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 4:50 AM To: Tomcat Users List

RE: Context in separate file doesn't work

2005-09-02 Thread Trond Hersløv
' Subject: RE: Context in separate file doesn't work One other thing, for a ROOT context, the file should be named ROOT.xml George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Trond Hersløv [mailto:[EMAIL PROTECTED] Sent: Friday, September

RE: Context in separate file doesn't work

2005-09-02 Thread George Sexton
, 2005 12:02 PM To: Tomcat Users List Subject: RE: Context in separate file doesn't work Hi George, Thank you very much, you made my day!! I thought I could name the .xml files whatever I like to, but that was a huge mistake that costed me 2 days. Naming the file ROOT.xml solved the problem

tomcat not finding the context root.

2005-09-01 Thread bachoo jahnkar
webapps/hst/htdocs/WEB-INF/web.xml. my server.xml has context which has docbase=hst/htdocs. When i try to run my application on tomcat i get the following error. Context path is set to /hst and not /hst/htdocs as in server.xml. Please help ---log

Realm in Context in War

2005-08-29 Thread Chirag
Software Tomcat 5.5.2 JDK 1.5 I have created a webapplication named b It works perfectly fine including the realm declared inside the context.xml file in META-INF folder THen I created war by using C:\webapps\bjar cvf c.war *.* Later I copied c.war in the webapps folder and started

Re: Automatic deploy of updated war deletes the context file

2005-08-26 Thread Paul Austin
=org.apache.catalina.logger.FileLogger prefix=host timestamp=false / /Host 3. In conf/Catalina/host/app.xml ?xml version='1.0' encoding='utf-8'? Context debug=9 docBase=wars/host/app.war path=/app reloadable=true workDir=work/Catalina/host/app ResourceLink global=jdbc/appDs name=jdbc/appDs

Re: Automatic deploy of updated war deletes the context file

2005-08-26 Thread Hassan Schroeder
=99 name=host unpackWARs=false deployXML=false Logger className=org.apache.catalina.logger.FileLogger prefix=host timestamp=false / /Host 3. In conf/Catalina/host/app.xml ?xml version='1.0' encoding='utf-8'? Context debug=9 docBase=wars/host/app.war path=/app reloadable=true

Re: Automatic deploy of updated war deletes the context file

2005-08-26 Thread Remy Maucherat
=false deployXML=false Logger className=org.apache.catalina.logger.FileLogger prefix=host timestamp=false / /Host 3. In conf/Catalina/host/app.xml ?xml version='1.0' encoding='utf-8'? Context debug=9 docBase=wars/host/app.war path=/app reloadable=true workDir=work

Re: Automatic deploy of updated war deletes the context file

2005-08-26 Thread Paul Austin
/ /Host - conf/Catalina/host/app.xml ?xml version='1.0' encoding='utf-8'? Context debug=9 docBase=app-web.war path=/app reloadable=true ResourceLink global=jdbc/appDs name=jdbc/appDs type=javax.sql.DataSource / /Context Now the final question is how can I set the path

Re: Automatic deploy of updated war deletes the context file

2005-08-26 Thread Hassan Schroeder
Paul Austin wrote: Now the final question is how can I set the path to be a sub directory? So /subdir/app. This worked on my Tomcat 5 installation on Linux but doesn't work here. It seems to just ignore the path. No idea, never had a reason to try such a configuration -- sorry! -- Hassan

Automatic deploy of updated war deletes the context file

2005-08-25 Thread Paul Austin
When I copy an updated copy of a war file that was deployed with a context.xml file in the META-INF directory and also I have a copy of the context.xml in the conf/Catalina/host directory the deployer just deletes the context altogether and doesn't reploy the application. How is this supposed

Re: Automatic deploy of updated war deletes the context file

2005-08-25 Thread Hassan Schroeder
So Paul Austin says: Doctor, When I copy an updated copy of a war file that was deployed with a context.xml file in the META-INF directory and also I have a copy of the context.xml in the conf/Catalina/host directory the deployer just deletes the context altogether and doesn't reploy

Re: Automatic deploy of updated war deletes the context file

2005-08-25 Thread Paul Austin
, Hassan Schroeder wrote: So Paul Austin says: Doctor, When I copy an updated copy of a war file that was deployed with a context.xml file in the META-INF directory and also I have a copy of the context.xml in the conf/Catalina/host directory the deployer just deletes the context altogether

Re: Automatic deploy of updated war deletes the context file

2005-08-25 Thread Hassan Schroeder
Paul Austin wrote: Right but where should it go so that tomcat doesn't delete it? I've tried setting the deployXML=false on the host and having it just in the conf/Catalina/host directory (which is my preferred location), just in the war file and all various combinations. I've used both

Remotely restart Tomcat container (not just a context)

2005-08-24 Thread Richard Gaywood
but there is a snag: the web service uses JNI. So, whenever a new context is deployed, I have to restart the Tomcat container to avoid classloader problems -- it tries to load the JNI wrapper class twice, which causes it to just stop working. Unfortunatly, the JNI is non-negotiable so I can't just

Re: Securing Tomcat Context Descriptor

2005-08-20 Thread Peter Rossbach
in plaintext (in the open). Like many people, we are using JNDI datasources in our web application. The datasource connection information (including the database username/password) is stored in the Tomcat Context Descriptor under TOMCATDIR/conf/Catalina/localhost/myApp.xml. Does Tomcat

Re: Securing Tomcat Context Descriptor

2005-08-20 Thread Mark Thomas
A couple of observations: - If someone can read the context descriptor they pretty much own Tomcat and probably the server as well. If this person is unauthorised, you have big problems regardless of whether or not they have read-only access to the database. - If the password is encrypted

Re: Array as context parameter

2005-08-19 Thread Konrad Billewicz
Litty Preeth iamlitty at yahoo.com writes: Or u can use a comma separated list of strings and parse them using StringTokenizer. That sounds better. It's surely more user friendly. But the chance of an error during entering coma-separated values is bigger. It's easy to forget about coma or

[T4.1] java:comp is not bound in this context...

2005-08-19 Thread Arnaud Vandyck
the hell did I changed to break this?! In my configuration file: server.xml: I have a global resource, I have these resources in the context, I have another resource in the context (not a reference), I can't call none of them. If I do: Context ctx = new InitialContext(); log (Name in manespace

RE: Array as context parameter

2005-08-19 Thread Richard Mixon (qwest)
of the file. Just have context listener read this file at startup and place the array in the context. Hope this helps - Richard -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Konrad Billewicz Sent: Friday, August 19, 2005 12:29 AM To: tomcat-user@jakarta.apache.org Subject

Securing Tomcat Context Descriptor

2005-08-19 Thread Brett Parsons
the database username/password) is stored in the Tomcat Context Descriptor under TOMCATDIR/conf/Catalina/localhost/myApp.xml. Does Tomcat provide a more secure way of storing the connection information stored in these context deployment descriptors? Has anyone else run into the same problem and been

Array as context parameter

2005-08-18 Thread Konrad Billewicz
I would like to pass an array to my application using Environment inside Context. Manual says that only primitive types are available. But... I need an array. How would you handle this problem? My only, little dummy idea is to do something like: Environment name=xxx/1 ... Environment name

Re: Array as context parameter

2005-08-18 Thread Litty Preeth
Hi, Or u can use a comma separated list of strings and parse them using StringTokenizer. With Regards, Litty Preeth --- Konrad Billewicz [EMAIL PROTECTED] wrote: I would like to pass an array to my application using Environment inside Context. Manual says that only primitive types

Context-specific System.properties

2005-08-15 Thread Nelson, Lorrin
I've got some 3rd-party dependencies that rely on System.Properties for part of their configuration. I'd like to use these same dependencies in multiple Contexts in a single Tomcat deployment. However, I'll want each Context to have different values for those System.Properties. Is there any way

Re: Context-specific System.properties

2005-08-15 Thread Larry Meadors
dependencies in multiple Contexts in a single Tomcat deployment. However, I'll want each Context to have different values for those System.Properties. Is there any way to pull this off? Thanks -Lorrin - To unsubscribe

Problems with context

2005-08-12 Thread Fermin Jimenez Najar
://mycomputer:8080/activation/obligatorios.jsp;) response.sendRedirect(/obligatorios.jsp) response.sendRedirect(activation/obligatorios.jsp) I think that could be some context problems because, for make the webapp structure, i copied one example webapp that comes with the tomcat, then i deleted

RE: Problems with context

2005-08-12 Thread Allistair Crossley
And what is the error you are getting? 404? 500? Exception? What? Allistair. -Original Message- From: Fermin Jimenez Najar [mailto:[EMAIL PROTECTED] Sent: 12 August 2005 08:54 To: Tomcat Users List Subject: Problems with context Hi. I just has beginning to use the Tomcat

RE: Problems with context

2005-08-12 Thread Scott Purcell
12, 2005 10:22 AM To: Tomcat Users List Subject: RE: Problems with context And what is the error you are getting? 404? 500? Exception? What? Allistair. -Original Message- From: Fermin Jimenez Najar [mailto:[EMAIL PROTECTED] Sent: 12 August 2005 08:54 To: Tomcat Users List Subject

RE: Problems with context

2005-08-12 Thread Fermin Jimenez Najar
List Objet : RE: Problems with context And what is the error you are getting? 404? 500? Exception? What? Allistair. -Original Message- From: Fermin Jimenez Najar [mailto:[EMAIL PROTECTED] Sent: 12 August 2005 08:54 To: Tomcat Users List Subject: Problems with context Hi. I just

realm in context in war file

2005-08-11 Thread Michal Kwiatek
Has any of you tried defining a realm inside the context.xml taken form META-INF file from inside the war file? I have the following context definition: context path=/test1 override=true docBase=webapps/test1 realm className=org.apache.catalina.realm.MemoryRealm debug=

RE: realm in context in war file

2005-08-11 Thread Caldarale, Charles R
From: Michal Kwiatek [mailto:[EMAIL PROTECTED] Subject: realm in context in war file I have the following context definition: context path=/test1 override=true docBase=webapps/test1 realm className=org.apache.catalina.realm.MemoryRealm debug= pathname=webapps

RE: realm in context in war file

2005-08-11 Thread Michal Kwiatek
I've sorted it out: the problem was in the syntax! I was using context instead of Context, and tomcat (5.0.28) simply ignored it without writing any error message. But thanks for the tip for 5.5 - I'm going to migrate soon, so it will be useful. Michal. -Original Message- From

Context reloading

2005-08-11 Thread Graham Smith
I'm having a problem reloading / redeploying one of my web applications using the ant tasks. The target I am trying to run is this and it fails on when stopping the application. target name=redeploy description=Reinstall the existing web application stop url=${url}

Same servlets in 2 contexts. Update 1 of them, not reloaded on context reload

2005-08-10 Thread Martyn Hiemstra
Hi All, I am having a problem with Tomcat. I have a website application that I use over 2 aplications. 1 context I use for testing and the other is meant for vistors (live version). This means that the same application is running over 2 contexts . When I update a servlet in the test context

  1   2   3   4   5   6   7   8   9   10   >