Question on allowLinking

2009-08-20 Thread Nachiketh G Rao
Hi, I had a query regarding Tomcat 6.X. We are developing a web application which will be using soft-links for files on a the server. To do this we have set allowLinking property to true in the context.xml configuration. We have observed that, upon un-deploying the .war file by deleting it from

Enabling allowLinking in tomcat 6, deleting the soft link contents while undeploying!

2009-08-20 Thread Ningappa Koneri
Hi, By Using allowLinking=true in context.xml of tomcat 6, I am able to access soft links within the application project directory. But the problem is when I undeploy the application by deleting only project.war file, tomcat is deleting all the contents inside the soft link along with that

Re: Question on setting of context path in Tomcat 6

2009-08-20 Thread Pid
On 19/08/2009 23:36, Roger Powers wrote: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html SNIP it seems the context path will come from either the name of the context xml file of the web app (if there is one), or from the directory holding the web app (if there is no context xml

Re: autodeploying/unpacking ROOT.war

2009-08-20 Thread Ognjen Blagojevic
Christoph Kukulies wrote: What again are the bits to auto-unpack/deploy a file in the webapps directory, e.g. ROOT.war? I looked into server.xml and there is unpackWars=true and autoDeploy=true and still a ROOT.war file I put into /usr/share/tomcat5.5/webapps remains untouched when I start

Re: Question on allowLinking

2009-08-20 Thread Pid
On 20/08/2009 07:52, Nachiketh G Rao wrote: Hi, I had a query regarding Tomcat 6.X. We are developing a web application which will be using soft-links for files on a the server. To do this we have set allowLinking property to true in the context.xml configuration. We have observed that, upon

Re: Enabling allowLinking in tomcat 6, deleting the soft link contents while undeploying!

2009-08-20 Thread Pid
On 20/08/2009 08:36, Ningappa Koneri wrote: Hi, By Using allowLinking=true in context.xml of tomcat 6, I am able to access soft links within the application project directory. But the problem is when I undeploy the application by deleting only project.war file, tomcat is deleting all the

Re: Exception Initializing Page Context

2009-08-20 Thread Ognjen Blagojevic
Gwen Way wrote: Hmmm... I will check with the developers then, although the three people on my team are theoretically the only ones with access to make changes to the app. Thank you again, Mark. If you worry how come that application previously worked but now it doesn't, I can think of at

Re: 100% CPU by java process in Tomcat

2009-08-20 Thread Peter Crowther
Tomcat version? OS? JDK version? Any errors or messages in the logs? If you take a thread dump (the method varies depending on OS and JDK version), what's running? - Peter 2009/8/20 Phani Raj Kumar bphanirajku...@gmail.com Hi friends, When i tried to run tomcat server with a web application

Re: 100% CPU by java process in Tomcat

2009-08-20 Thread Phani Raj Kumar
Thanks peter, Here is the info: *JDK version* : j2sdk1.4.2_11 *Tomcat Version*: jakarta-tomcat-5.0.28 *OS*: SunOS burton 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-V440 *CATALINA_OPTS*=-Xms64m -Xmx256m I didn't get any error messages in the log, but even running the tomcat alone without any

Re: Eclipse builtin browser vs system default browser problem

2009-08-20 Thread André Warnier
Tommy Pham wrote: Hi, I'm working a small project seem to run into a snag and can't figure out how to overcome it since my web app doesn't give any exception (log files are clean are error/exception free). The snag is that the eclipse internal web browser shows the desired result while

Re: 100% CPU by java process in Tomcat

2009-08-20 Thread Peter Crowther
2009/8/20 Phani Raj Kumar bphanirajku...@gmail.com Here is the info: *JDK version* : j2sdk1.4.2_11 This is old, though that probably isn't the cause of this problem. Do you need to run this JDK, or can you upgrade? *Tomcat Version*: jakarta-tomcat-5.0.28 This is no longer supported, though

Keep having to login with container based authentaction.

2009-08-20 Thread Dean Chester
Hi, I've written my application using j_security_check yet i keep having to log in in the restricted area. Has anyone else experienced this? Because it works with a small amount of JSPs and then when i implement it all in to my application it doesn't work. Where am i most likely going wrong?

Re: 100% CPU by java process in Tomcat

2009-08-20 Thread Pid
On 20/08/2009 10:24, Peter Crowther wrote: 2009/8/20 Phani Raj Kumarbphanirajku...@gmail.com Here is the info: *JDK version* : j2sdk1.4.2_11 This is old, though that probably isn't the cause of this problem. Do you need to run this JDK, or can you upgrade? *Tomcat Version*:

Re: Keep having to login with container based authentaction.

2009-08-20 Thread Pid
On 20/08/2009 10:40, Dean Chester wrote: Hi, I've written my application using j_security_check yet i keep having to log in in the restricted area. Has anyone else experienced this? Yep. I have to log in each time I want to use our app - it's a side effect of implementing security. Or is

Re: Tomcat 4 start up as (/sbin/service)

2009-08-20 Thread Pid
On 20/08/2009 10:15, sunil chandran wrote: Hello all, As per everyone suggestion, I went ahead and installed tomcat 4.1.40It is successful Now i want to set as /sbin/service. I know it points to /etc/init.d/. How can i make it as /sbin/service tomcat4 stop/start/restart . What changes are

Re: Keep having to login with container based authentaction.

2009-08-20 Thread Dean Chester
Sorry Tomcat 6.20, Red Hat Enterprise edition 4 i think. java 1.6. And i mean once logged in i have to login again after clicking on a link in the restricted area. Dean On Thu, Aug 20, 2009 at 11:23 AM, Pid p...@pidster.com wrote: On 20/08/2009 10:40, Dean Chester wrote: Hi, I've written my

Re: autodeploying/unpacking ROOT.war

2009-08-20 Thread Christoph Kukulies
Ognjen Blagojevic schrieb: Christoph Kukulies wrote: What again are the bits to auto-unpack/deploy a file in the webapps directory, e.g. ROOT.war? I looked into server.xml and there is unpackWars=true and autoDeploy=true and still a ROOT.war file I put into /usr/share/tomcat5.5/webapps

Re: autodeploying/unpacking ROOT.war

2009-08-20 Thread Ognjen Blagojevic
Christoph Kukulies wrote: Nothing got unpacked. I was used that whenever I put a fresh ROOT.war (which hen contained something different than the tomcat ROOT app) it got unpacked into a ROOT directory in webapps. (I helped myself now in unzipping the war file). This is typical behavior when

Re: Tomcat not starting - No error messages seen

2009-08-20 Thread Ognjen Blagojevic
Anisha Parveen -X (anparvee - Infosys at Cisco) wrote: Please find attached the catalina.out logs file and debug logs. I don't see any attachment. Paste your logs into the message. Not the whole files, just last 30 lines. You didn't try ps -ef | grep java? In our case tomcat is started

Re: Keep having to login with container based authentaction.

2009-08-20 Thread Pid
On 20/08/2009 11:55, Dean Chester wrote: Sorry Tomcat 6.20, Red Hat Enterprise edition 4 i think. java 1.6. And i mean once logged in i have to login again after clicking on a link in the restricted area. Dean You don't need to reply-to-all, just to the list. I'm obviously on the mailing

RE: Tomcat not starting - No error messages seen

2009-08-20 Thread Anisha Parveen -X (anparvee - Infosys at Cisco)
Tomcat does listen on 8005 only and it was in Listen state. However when I did grep for 8009, I saw that the ports were in CLOSE_WAIT state.\ Hence I rebooted the machine. Tomcat started properly now and things work fine. Thank all for your support. Regards, Anisha -Original Message-

Re: Keep having to login with container based authentaction.

2009-08-20 Thread Dean Chester
Sorry about that. Yes i have a index page in the restricted area that has links to other restricted jsps. The Logs are not reporting anything. How do you mean encode your urls? I haven't set a time out in the web.xml file so its using the default. The time between clicks is usually about 1-2

Re: Keep having to login with container based authentaction.

2009-08-20 Thread Dean Chester
By default realm i mean the one that is set up in the server.xml and it is a JDBC Realm. Dean On Thu, Aug 20, 2009 at 12:36 PM, Dean Chester dean.g.ches...@googlemail.com wrote: Sorry about that. Yes i have a index page in the restricted area that has links to other restricted jsps. The Logs

Re: Keep having to login with container based authentaction.

2009-08-20 Thread Pid
On 20/08/2009 12:36, Dean Chester wrote: Sorry about that. Yes i have a index page in the restricted area that has links to other restricted jsps. The Logs are not reporting anything. How do you mean encode your urls? If you're being asked to log in every click, your session is probably

Re: Keep having to login with container based authentaction.

2009-08-20 Thread Pid
On 20/08/2009 12:40, Dean Chester wrote: By default realm i mean the one that is set up in the server.xml and it is a JDBC Realm. Which'll do for testing, but you should use a DataSourceRealm for production. p Dean On Thu, Aug 20, 2009 at 12:36 PM, Dean Chester

Re: Keep having to login with container based authentaction.

2009-08-20 Thread Pid
On 20/08/2009 13:00, Pid wrote: On 20/08/2009 12:36, Dean Chester wrote: Sorry about that. Yes i have a index page in the restricted area that has links to other restricted jsps. The Logs are not reporting anything. How do you mean encode your urls? If you're being asked to log in every

Re: Keep having to login with container based authentaction.

2009-08-20 Thread Dean Chester
Ok ive discovered that they are not staying the same between clicks. I'm now going to look at encoding urls now. Dean On Thu, Aug 20, 2009 at 1:06 PM, Pid p...@pidster.com wrote: On 20/08/2009 13:00, Pid wrote: On 20/08/2009 12:36, Dean Chester wrote: Sorry about that. Yes i have a index

Custom 404 page when webapp stopped

2009-08-20 Thread llg
Hi, I have a webapp that needs to be down if we are doing some maintenance. I use the manager to make the application unavailable but in this case the 404 customized error-page is not displayed. I modified the default web.xml (in conf/) to add the error-page 404, but it doesn't seems to

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Serge Fonville
Hi, Likely someone has a better idea... You could create a general error page that redirect (transparently) to a page of the webapp when available, if not, display another If this is the default page for all webapps, it should be solved. You will probably need to create a valve of some sort.

RE: autodeploying/unpacking ROOT.war

2009-08-20 Thread Caldarale, Charles R
From: Ognjen Blagojevic [mailto:ogn...@etf.bg.ac.rs] Subject: Re: autodeploying/unpacking ROOT.war Context path=/ docBase=/usr/share/tomcat5.5-webapps/ROOT debug=0 privileged=true allowLinking=true /Context This might be the problem. Try to remove the docBase attribute, and let us

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Pid
On 20/08/2009 14:25, llg wrote: Hi, I have a webapp that needs to be down if we are doing some maintenance. I use the manager to make the application unavailable but in this case the 404 customized error-page is not displayed. I modified the default web.xml (in conf/) to add the error-page

RE: Custom 404 page when webapp stopped

2009-08-20 Thread Jason Pyeron
-Original Message- From: Serge Fonville [mailto:serge.fonvi...@gmail.com] Sent: Thursday, August 20, 2009 9:35 To: Tomcat Users List Subject: Re: Custom 404 page when webapp stopped Hi, Likely someone has a better idea... You could create a general error page that

RE: Problem closing datasource when used as JNDI resource

2009-08-20 Thread Mohammed Bin Mahmood
Thanks Chris, But I still do not get my answer yet. Does anybody have the better way to shut down the data source when started by tomcat using JNDI resource? Or is there any configuration we can do so that tomcat closes it automatically without us doing any workarounds? Thanks, Mohammed.

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Tim Funk
My first inclination is that this a bug or enhancement request. From a user point of view, if I have an app (which is not the root webapp) and I stop it, then all requests should then go to the root webapp. Of course doing this might introduce bad side effects during the course of an

RE: Custom 404 page when webapp stopped

2009-08-20 Thread Caldarale, Charles R
From: Tim Funk [mailto:funk...@apache.org] Subject: Re: Custom 404 page when webapp stopped From a user point of view, if I have an app (which is not the root webapp) and I stop it, then all requests should then go to the root webapp. Is that really true? If the webapp is undeployed, I

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 Context element may only be used when the Context element is nested inside a Host element in server.xml - which is strongly discouraged. 2) The docBase attribute of a Context element may only be used

FW: Accessing Properties file located in Conf Directory of Tomcat 5.XX

2009-08-20 Thread Kaverappa.Prabhakar
_ From: Prabhakar, Kaverappa Sent: Thursday, August 20, 2009 10:20 AM To: 'users@tomcat.apache.org' Subject: Accessing Properties file located in Conf Directory of Tomcat 5.XX We have to place, as per rules set by the department, the properties file

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Tim Funk
From a high level, whats the difference between a webapp thats stopped and a webapp thats undeployed? One could call stopped a special scenario. In the past - a 503 was returned to the user. Now its a 404. IIRC ... it changed to 404 as part of a bug report but maybe that is the wrong change

[OT] The perfect answer

2009-08-20 Thread André Warnier
Can't resist copying it The original poster's message was : On Thu, Aug 20, 2009 at 12:17 PM, Apache Adminaamit.apa...@gmail.com wrote: Hi , users How to create Payment Gateway by Apache with other Application ... And here was Krist's answer (try it) :

Accessing Properties file located in Conf Directory of Tomcat 5.XX

2009-08-20 Thread Kaverappa.Prabhakar
We have to place, as per rules set by the department, the properties file in the Conf directory of Tomcat AS. The TOMCAT does not find the properties file placed in CONF directory but it does find when placed in Common or Shared directory of TOMCAT. I tried placing the directory path in the

RE: Problem closing datasource when used as JNDI resource

2009-08-20 Thread Pham, Hop
I'm new to this users list. I think that JNDI resource management (i.e., datasource) is JEE app server domain, and remains available while Tomcat up by design so that it can be shared across multiple applications. It is not effective to terminate datasource connections, and resume connetion

RE: Accessing Properties file located in Conf Directory of Tomcat 5.XX

2009-08-20 Thread Martin Gainty
there are at least 100 people on this list that can accomplish this requirement you will need to handle this requirement by posting a statement of work details on how to write a statement of work referenced here http://www.usability.gov/plan/sow.html 1 or more engineers will respond with a RFQ

Re: Custom 404 page when webapp stopped

2009-08-20 Thread llg
Le 20/08/09 15:41, Pid a écrit : On 20/08/2009 14:25, llg wrote: Hi, I have a webapp that needs to be down if we are doing some maintenance. I use the manager to make the application unavailable but in this case the 404 customized error-page is not displayed. I modified the default web.xml

Re: Accessing Properties file located in Conf Directory of Tomcat 5.XX

2009-08-20 Thread Tim Funk
I am assuming loader is an instance of a classloader. The classloader doesn't see the conf directory. (But as your noticed - it does see the common directory) Your easiest (but tomcat specific) solution is to do something like this: File confDir = new File(System.properties(catalina.home),

Re: 100% CPU by java process in Tomcat

2009-08-20 Thread Juha Laiho
On Thu, 20 Aug 2009, Phani Raj Kumar wrote: Here is the info: *JDK version* : j2sdk1.4.2_11 *Tomcat Version*: jakarta-tomcat-5.0.28 *OS*: SunOS burton 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-V440 *CATALINA_OPTS*=-Xms64m -Xmx256m I didn't get any error messages in the log, but even

Re: Where should we deploy/put web application patch jar in Tomcat 5.5 ?

2009-08-20 Thread Kris Schneider
On Wed, Aug 19, 2009 at 1:10 PM, Mark Thomasma...@apache.org wrote: Fang Zhu wrote: I know I can unpackage the abcPatch.jar and put under /WEB-INF/classes folder, but this is not we are looking for. That is your only option. Mark Not sure how difficult it would be to implement, but

Problems with Tomcat when trying to get Jackrabbit installed

2009-08-20 Thread kbar
I am trying to get Jackrabbit running on Ubuntu. I have followed these instruction http://wiki.apache.org/jackrabbit/JackRabbitOnTomcat6 , but I used jackrabbit 1.6.0 instead of 1.5.0. So I did the following... 1) Install a fresh Ubuntu server with Tomcat package. 2 ) cd

Re: [OT] The perfect answer

2009-08-20 Thread Pid
On 20/08/2009 15:59, André Warnier wrote: Can't resist copying it The original poster's message was : On Thu, Aug 20, 2009 at 12:17 PM, Apache Adminaamit.apa...@gmail.com wrote: Hi , users How to create Payment Gateway by Apache with other Application ... And here was Krist's answer (try

Re: Accessing Properties file located in Conf Directory of Tomcat 5.XX

2009-08-20 Thread Pid
On 20/08/2009 16:24, Martin Gainty wrote: there are at least 100 people on this list that can accomplish this requirement *Can* yes. *Will*, no. you will need to handle this requirement by posting a statement of work details on how to write a statement of work referenced here

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Pid
On 20/08/2009 16:04, llg wrote: Le 20/08/09 15:41, Pid a écrit : On 20/08/2009 14:25, llg wrote: Hi, I have a webapp that needs to be down if we are doing some maintenance. I use the manager to make the application unavailable but in this case the 404 customized error-page is not displayed.

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Len Popp
On Thu, Aug 20, 2009 at 10:58, Tim Funkfunk...@apache.org wrote: From a high level, whats the difference between a webapp thats stopped and a webapp thats undeployed? When a webapp is undeployed it is deleted from the webapps directory. When it's stopped it's not deleted and can simply be

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Tim Funk
Since there is manual intervention to stop the app. There can be manual intervention to tell apache not to forward requests to tomcat, for example: - change the apache config and graceful restart (but it does require a restart) - Use mod_rewrite to look for some marker (file existence or rewrite

Master Proxy/Filter in Tomcat

2009-08-20 Thread Gerardo Corro
Hi, I have any number of webapps deployed in Tomcat, I need to create a proxy that filters all redirections until the end is reached and displays the final result to users. I already implemented a method that follows all redirections and gets the final result, now, that works from the

SSL with multiple Tomcat instances

2009-08-20 Thread Don Prezioso
I have two instances of Tomcat 5.5 set up on a Red Hat box, each using separate IP addresses. I have obtained two certificates, one for each instance, and have put them in separate keystores. Both certificates are from IPSCA and both keystores have been set up in the same manner. Each keystore

Re: Custom 404 page when webapp stopped

2009-08-20 Thread llg
Le 20/08/09 17:48, Pid a écrit : On 20/08/2009 16:04, llg wrote: Le 20/08/09 15:41, Pid a écrit : On 20/08/2009 14:25, llg wrote: Hi, I have a webapp that needs to be down if we are doing some maintenance. I use the manager to make the application unavailable but in this case the 404

Re: Custom 404 page when webapp stopped

2009-08-20 Thread André Warnier
llg wrote: ... I added in ${CATALINA_HOME}/conf/web.xml error-page error-code404/error-code location/my404.html/location error-code503/error-code location/my503.html/location /error-page I do not really *know* this, but based on the XML structure of other Tomcat config files, the above form

Re: Problems with Tomcat when trying to get Jackrabbit installed

2009-08-20 Thread André Warnier
kbar wrote: I am trying to get Jackrabbit running on Ubuntu. ... This far above my head (I don't even know what Jackrabbit is), but just based on one of the error messages you mentioned : check the file /etc/default/tomcat6, and see if it enables the Java security manager. If it does, set it

Re: Custom 404 page when webapp stopped

2009-08-20 Thread llg
Le 20/08/09 21:25, André Warnier a écrit : llg wrote: ... I added in ${CATALINA_HOME}/conf/web.xml error-page error-code404/error-code location/my404.html/location error-code503/error-code location/my503.html/location /error-page I do not really *know* this, but based on the XML structure

Re: SSL with multiple Tomcat instances

2009-08-20 Thread Peter Crowther
2009/8/20 Don Prezioso dp...@ashland.edu: I have two instances of Tomcat 5.5 set up on a Red Hat box, each using separate IP addresses. I have obtained two certificates, one for each instance, and have put them in separate keystores. Both certificates are from IPSCA and both keystores have

Re: Problems with Tomcat when trying to get Jackrabbit installed

2009-08-20 Thread kbar
Thanks awarnier, That worked perfectly. Although I will have to hunt down why I have to disable this as disabling the security I guess is not such a great idea once the site goes into production. Cheers, Kent awarnier wrote: kbar wrote: I am trying to get Jackrabbit running on Ubuntu.

RE: SSL with multiple Tomcat instances

2009-08-20 Thread Don Prezioso
Peter, Thanks for the reply. When I first started having this problem I was actually using a single keystore for both certificates. Yes there is both an intermediate and a root certificate that get loaded in the keystore, and I'm sure, at least when I was using a single keystore that they were

Re: Eclipse builtin browser vs system default browser problem

2009-08-20 Thread Tommy Pham
- Original Message From: Martin Gainty mgai...@hotmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, August 19, 2009 4:09:28 PM Subject: RE: Eclipse builtin browser vs system default browser problem run FF firebug-plugin and view the DOM on both screens

Re: Problems with Tomcat when trying to get Jackrabbit installed

2009-08-20 Thread André Warnier
kbar wrote: ... as disabling the security I guess is not such a great idea once the site goes into production. Do not take my word for this, as I am far from the Java expert. As far as I can understand it however, the Java security manager, in the case of Tomcat, is there mainly to protect

Re: Problems with Tomcat when trying to get Jackrabbit installed

2009-08-20 Thread Filip Hanik - Dev Lists
You would have to know all the security options to define in the policy file that apply to jackrabbit, in order to run it with the security manager turned on On 08/20/2009 02:46 PM, kbar wrote: Thanks awarnier, That worked perfectly. Although I will have to hunt down why I have to disable

Re: Custom 404 page when webapp stopped

2009-08-20 Thread Pid
On 20/08/2009 20:51, llg wrote: Le 20/08/09 21:25, André Warnier a écrit : llg wrote: ... I added in ${CATALINA_HOME}/conf/web.xml error-page error-code404/error-code location/my404.html/location error-code503/error-code location/my503.html/location /error-page I do not really *know*

tomcat reading from manager

2009-08-20 Thread Angelo Chen
Hi, always see folllowing from tomcat manager, got some question: Free memory: 90.40 MB Total memory: 501.12 MB Max memory: 912.12 MB Q:the free memory is the one already assigned to JVM? or any extra memory in the OS? Max threads: 200 Min spare threads: 4 Max spare threads: 50 Current thread

Re: SSL with multiple Tomcat instances

2009-08-20 Thread Crypto Sal
Hi Don, Is this Tomcat for Windows or Tomcat for a UNIX variant? Have you verified the keystore as correct via * keytool -v -list -keystore KEYSTORE_PATH/FILE* ? (Redirect that text to a file if need be!) Did you use the *-trustcacerts* flag upon importing the certificates or was this

Re: SSL with multiple Tomcat instances

2009-08-20 Thread Ben Stringer
Any ideas on why I am only getting the warning only on the second instance? I can't believe it is an issue with IPSCA since the first instance does not exhibit the problem. Hi Don, Are you certain that each tomcat instance is bound to a seperate IP? (netstat -anp | grep java is useful for