RE : set default web application

2005-01-12 Thread LERBSCHER Jean-Pierre
If i understand what you want to do, you have to edit your web.xml file and specify your url-pattern element in servlet-mapping section. For example : servlet-mapping servlet-nameyour servlet classe/servlet-name url-pattern//url-pattern /servlet-mapping Servlet

Deploying an application with its own xml file

2005-01-12 Thread Paul Taylor
I have an application myapp.war and a corresponding xml file myapp.xml. Previously I was copying myapp.xml into tomcat/conf/catalina/localhost and manually unpacking my war. Now I realised I can put the war into tomcat/webapps and it will automatically deploy, but I then have to shutdown server

SSL app - the document contains no data

2005-01-12 Thread Juan Pedro López Sáez
Helo everybody. I have a problem with a SSL web application. This are the global settings: - Tomcat 4.1.27 running on a Linux Debian machine. - SSL application configured in the web.xml file as follows: security-constraint web-resource-collection web-resource-nameSecured

Unable to initialize TldLocationsCache: null

2005-01-12 Thread K B
Hi, I'm using tomcat 5.5.4 on Linux and jdk 1.4.2, I deployed a web application but I am getting the error below. Has anyone seen this before, what is the fix? SEVERE: Servlet.service() for servlet action threw exception org.apache.jasper.JasperException: Unable to initialize TldLocationsCache:

Re: Memory leak

2005-01-12 Thread Harry Mantheakis
Possibly. If you are using a connection pool and do not close the connection, it will not be released back to the pool, so subsequent calls to the pool will create new connections. There's a simple procedure to help you avoid this problem, even when errors occur during your JDBC calls, and

Authentication - Best practice

2005-01-12 Thread VAN DER MARLIERE FREDERIC
Hi all. For the web-application I'm developping, I need the user to authenticate himself. I read tomcat documentation and found the realms. My question is: are there best pratice on how to use realm? Thanks. Fred. Ce message et toutes les

RE: Authentication - Best practice

2005-01-12 Thread Rajaneesh
Try http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html for Simple Authentication. Is there any reason why you are going to Realm specifically. If the application security is least of concern then it would be ok. Else it would be better to go for other security soln. Regards

java.lang.NoSuchMethodError: org.apache.tools.ant.taskdefs

2005-01-12 Thread ssk 2001
Hi I installed tomcat 5.5.4 ,jdk1.5 with ant 1.3 .I can able to run the tomcat but when i modify any jsp page , it gives following error , pls advice .. type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request.

RE: Authentication - Best practice

2005-01-12 Thread Quinten Verheyen
What's insecure about using a realm ? Security level is dependant on the realm type (e.g. jdbc/jndi can be used to), no ? -Original Message- From: Rajaneesh [mailto:[EMAIL PROTECTED] Sent: 12 January 2005 12:13 To: 'Tomcat Users List' Subject: RE: Authentication - Best practice

RE: Authentication - Best practice

2005-01-12 Thread Rajaneesh
Hi, It uses Base64 for sending the data. Heard that Base64 data is easily compramised compared to SSL. Please correct me if I am wrong. Regards Rajaneesh -Original Message- From: Quinten Verheyen [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 4:48 PM To: Tomcat Users

RE: Authentication - Best practice

2005-01-12 Thread Rajaneesh
Ok! I found the link... It is here. java.sun.com/developer/Books/certification/scwcd_9.pdf Regards Rajaneesh -Original Message- From: Rajaneesh [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 4:57 PM To: 'Tomcat Users List' Subject: RE: Authentication - Best practice Hi,

Re: new Host without restarting Tomcat

2005-01-12 Thread Lionel Farbos
So nobody knows how to deploy a new Host without the restart of Tomcat ? On Tue, 11 Jan 2005 16:05:06 +0100 Lionel Farbos [EMAIL PROTECTED] wrote: Hi all, I'd want to create and deploy new Virtual(s) Host(s) and Contexts without having to restart the entire Tomcat Server (4.1.31 or

RE: Authentication - Best practice

2005-01-12 Thread Quinten Verheyen
Ah ok, in that case I'm not worried ;-) The security level aimed for should be dependant on the application/client types of the company, there are a lot of (mostly small) companies who do not want more security then HTTP Basic authentication simply because none of the applications they develop

Re: Authentication - Best practice

2005-01-12 Thread Nikola Milutinovic
Rajaneesh wrote: Hi, It uses Base64 for sending the data. Heard that Base64 data is easily compramised compared to SSL. Please correct me if I am wrong. You are not wrong. HTTP Basic authentication uses base64 encoding of user credentials. base64 is encoding, not encrypting. The only thing

Re: Authentication - Best practice

2005-01-12 Thread PA
On Jan 12, 2005, at 12:03, VAN DER MARLIERE FREDERIC wrote: My question is: are there best pratice on how to use realm? RFC 2617 - HTTP Authentication: Basic and Digest Access Authentication http://www.faqs.org/rfcs/rfc2617.html In a nutshell, neither Basic nor Digest offers much in terms of

Re: Deploying an application with its own xml file

2005-01-12 Thread Parsons Technical Services
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Automatic%20Application%20Deployment http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html Doug - Original Message - From: Paul Taylor [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org

Re: Authentication - Best practice

2005-01-12 Thread PA
On Jan 12, 2005, at 13:04, Nikola Milutinovic wrote: SSL is encryption using asymetric+symetric encryption. Asymetric is used for the initial handshake/negotiation (usually RSA) and symmetric is for the channel traffic encryption (usually 3DES). You can also use TLS for authentication purpose

Re: Unable to initialize TldLocationsCache: null

2005-01-12 Thread Parsons Technical Services
Did you set up 5.5 to run on jdk1.4 per the RUNNING.txt? Doug - Original Message - From: K B [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Wednesday, January 12, 2005 5:26 AM Subject: Unable to initialize TldLocationsCache: null Hi, I'm using tomcat 5.5.4 on Linux and jdk

Re: Multiple domain names to a single site

2005-01-12 Thread Parsons Technical Services
Does the dnsmanager have a choice for redirection of an URL? If not: If the URL is pointed to an IP it will not change on its own. You could set up an app under a host of myapp.net and do a redirect to .com yourself. Or I think you can do the rewrite of the URL from a jsp welcome page of myapp.

Re: apache + tomcat with 2 domains but same session?

2005-01-12 Thread Tim Funk
[I have a major sinus cold - so I might not be writing clearly ...] I don't think URL rewriting from apache mod_rewrite will solve your problem. Tomcat maintains state with the session via a session cookie. The cookie is fixed to the currnet domain name (not configurable) and the cookie is fixed

Re: new Host without restarting Tomcat

2005-01-12 Thread Parsons Technical Services
I may be incorrect, but in all I have read, the server.xml is only read once, during Tomcat startup. This is the reason for the context.xml fragment files which can be read and loaded without a restart. So the answer is it can't be done at this point. To the best of my knowledge.

Shutdown port

2005-01-12 Thread Frank Parato
Is there a way to remove the shutdown port on a server ? I tried pulling the port=8005 option out, but it still listens on that port and I'm able to shut it down. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

AccessControlException

2005-01-12 Thread A Leg
Hi For our application we get AccessControlException on our WEB-INF/classes directory content We have the policy to : grant { permission java.security.AllPermission , ; }; And we get these errors : at java.lang.Thread.run(Thread.java:534) java.security.AccessControlException: access denied

Re: Shutdown port

2005-01-12 Thread David Smith
From what I understand from other postings, no. However, the shutdown port is bound to the localhost interface so only a connection from 127.0.0.1 will work. Joe Schmoe client out in internet land can't shutdown your tomcat service. --David Frank Parato wrote: Is there a way to remove the

RE: Shutdown port

2005-01-12 Thread Dale, Matt
I don't think you can as tomcat uses this itself for shutting down nicely. You could use a firewall to block the port from external access and changing the SHUTDOWN command to something else will stop people guessing at it. You can also change the port to a non default one. Ta Matt

RE: Shutdown port

2005-01-12 Thread Frank Parato
You're right. Thanks! -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 8:06 AM To: Tomcat Users List Subject: Re: Shutdown port From what I understand from other postings, no. However, the shutdown port is bound to the localhost

Redirecting to another site when Error 500 occurs

2005-01-12 Thread Edd Dawson
Hi I am running a site served by Apache and Tomcat, When tomcat dies and gives a 500 error i want to redirect to an external site.. I thought the way of doing this was via httpd.conf for Apache.. so i added ErrorDocument 500 http://my.external.site/ to httpd.conf However it doesn't redirect

RE: Tomcat 5.5.4 - Using a Context.xml File With a Path Different Than The File Name

2005-01-12 Thread Matt Mejaski
That worked! Thank you very much. Now I don't have to tell the developers that to upgrade to TC5.5, they have to change their code. Thanks again, Matt Mejaski -Original Message- From: Benjamin Armintor [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 5:52 PM To: Tomcat Users

Re: Memory leak

2005-01-12 Thread Larry Meadors
Another (simpler) solution is to let someone else write that code. ;-) I know there are times when you need JDBC directly, but tools like iBATIS make it darn easy to handle the other 99% of the cases. Here is a tutorial on using struts with iBATIS that could be helpful if people are interested.

Re: new Host without restarting Tomcat

2005-01-12 Thread Lionel Farbos
Thank you for your response. server.xml is read only once, but, with the Tomcat Admin Tool, we can increase this config and save it. So, I think the only (perhaps?) missing feature to do the creation of the Host is the ability to declare the privileged=true within the Context Manager. I'll try

RE: Tomcat5 java.lang.OutOfMemoryError

2005-01-12 Thread Furash Gary
Whoops. I thought I had. Must have not used the right search criteria. ;-) Gary Furash, MBA, PMP Applications Manager, Maricopa County Attorney's Office 602-506-0351 (Work), 602-725-1985 (Mobile) -Original Message- From: Ryan Stewart [mailto:[EMAIL PROTECTED] Sent: Tuesday, January

RE: Tomcat5 java.lang.OutOfMemoryError

2005-01-12 Thread Furash Gary
I searched under beanshell and BSH on http://mail-archives.apache.org/eyebrowse/SearchList?listId=[EMAIL PROTECTED]searchText=bshdefaultField=subjectSearch=Search No items. Gary Furash, MBA, PMP Applications Manager, Maricopa County Attorney's Office 602-506-0351 (Work), 602-725-1985

RE: 24X7 deployment tips

2005-01-12 Thread Phillip Qin
Non-clustering. The deploy task does not shutdown the container. It undeploys your webapp and then deploy the new war. -Original Message- From: Rajaneesh [mailto:[EMAIL PROTECTED] Sent: January 12, 2005 12:36 AM To: 'Tomcat Users List' Subject: RE: 24X7 deployment tips Hu Philip,

RE: Deploying an application with its own xml file

2005-01-12 Thread Phillip Qin
Sotre your context.xml into META-INF. Pack your webapp as war. Then let catalina-ant task or Tomcat Manager to deploy your war. -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 12, 2005 4:47 AM To: Tomcat Users List Subject: Deploying an application with its

[OT]shared memory

2005-01-12 Thread Elihu Smails
I have a C based application running on the same box as tomcat, and I want to know if I would be able to access the shared memory segment using Java. The C program is setting up the shared memory using shmctl, and not using memory mapped files. I know that Java can support reading memory mapped

Tomcat monitoring scripts

2005-01-12 Thread Edd Dawson
Hi Does anyone know of the location of any scripts (for Linux) that will monitor tomcat every x minutes and if it finds it not running will restart it automatically? Any suggestions would be appreciated. thanks Edd - To

Re: Tomcat monitoring scripts

2005-01-12 Thread Peter Lin
JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with tomcat4 or older. in terms of restarting, you're probably going to have to write a shell script to do that. Typically, on unix a cron job is used. peter On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson [EMAIL PROTECTED] wrote:

Recommendations for connector from Apache to Tomcat

2005-01-12 Thread Justin Crabtree
I am going to soon be attempting to setup an existing Apache web server on a Windows Server 2003 machine with a connnector to a new install of Tomcat. Any recommendations on what connector to use? Problems to watch out for? Any good documentation on how to do this? Here are my specs.

Re: Tomcat monitoring scripts

2005-01-12 Thread Edd Dawson
I'm looking more for something that sits on the actual servers and probes at set intervals and takes remedial action if necessary.. i just wondered if anyone had documented doing such a thing before. Peter Lin wrote: JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with tomcat4

Re: Tomcat monitoring scripts

2005-01-12 Thread Peter Lin
most people use Perl or shell scripts to do that. There's plenty of scripts on the net for doing that by the process id. sorry, I don't have any links handy. google is your friend. peter On Wed, 12 Jan 2005 15:20:53 +, Edd Dawson [EMAIL PROTECTED] wrote: I'm looking more for something that

RE: Tomcat monitoring scripts

2005-01-12 Thread Peter Crowther
From: Edd Dawson [mailto:[EMAIL PROTECTED] I'm looking more for something that sits on the actual servers and probes at set intervals and takes remedial action if necessary. One trick that might work and takes almost no effort is to start Tomcat from [x]inetd - if it stops, the next

Re: Tomcat monitoring scripts

2005-01-12 Thread Edd Dawson
My googling skills are letting me down today.. i haven't managed to find any examples online (and i've been trying most of the day!) Peter Lin wrote: most people use Perl or shell scripts to do that. There's plenty of scripts on the net for doing that by the process id. sorry, I don't have any

Re: Tomcat monitoring scripts

2005-01-12 Thread Peter Lin
how about these http://www.kernel.org/software/mon/ http://www.eveandersson.com/arsdigita/free-tools/keepalive.html hope one of them helps. peter On Wed, 12 Jan 2005 15:47:37 +, Edd Dawson [EMAIL PROTECTED] wrote: My googling skills are letting me down today.. i haven't managed to find

Re: Tomcat monitoring scripts

2005-01-12 Thread Didier McGillis
Ch-Check this out. Shell script http://www.wespoke.com/archives/000728.php From: Edd Dawson [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Tomcat monitoring scripts Date: Wed, 12 Jan 2005 15:20:53 + I'm looking more for something

RE: Recommendations for connector from Apache to Tomcat

2005-01-12 Thread Didier McGillis
http://johnturner.com/howto/apache-tomcat-howto.html try that one, there are a couple of Windows ones. From: Justin Crabtree [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat User List tomcat-user@jakarta.apache.org Subject: Recommendations for connector from Apache to Tomcat Date: Wed, 12

Re: Deploying an application with its own xml file

2005-01-12 Thread Paul Taylor
Thanks now working I had previously found the bit about META-INF but called the file myapp.xml not context.xml Phillip Qin wrote: Sotre your context.xml into META-INF. Pack your webapp as war. Then let catalina-ant task or Tomcat Manager to deploy your war. -Original Message- From: Paul

Re: Tomcat monitoring scripts

2005-01-12 Thread Didier McGillis
btw the script I would use as a starting point, it doesnt work quite right on my system but I was looking for a starting point. From: Didier McGillis [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: [EMAIL PROTECTED], tomcat-user@jakarta.apache.org Subject: Re:

Re: [OT]shared memory

2005-01-12 Thread Wade Chandler
Elihu Smails wrote: I have a C based application running on the same box as tomcat, and I want to know if I would be able to access the shared memory segment using Java. The C program is setting up the shared memory using shmctl, and not using memory mapped files. I know that Java can support

High reliability tomcat

2005-01-12 Thread Roberto Cosenza
Hi. We have two instances of tomcat configured as cluster. We are using: Tomcat 5.0.28 mod_jk2 Apache2 Our purpose it to be able to upgrade a webapp with no down time. Now, everythink works fine except that: If we shut down server A while incoming requests are coming in, they eventually get a

Minimum Memory Requirement for TC 5.0.x

2005-01-12 Thread Yang Xiao
Hi all, What is the minimum memory requirement to run TC 5.0.x in a Linux environment? or is there such a thing? I can't find it anywhere, which is kind of amusing. Many thanks, Yang - To unsubscribe, e-mail: [EMAIL PROTECTED]

tomcat memory settings when running as service?

2005-01-12 Thread Woodchuck
hihi all, how can i find out all the various memory parameter values that was used to start tomcat as a service in windows? i looked at the properties for the Apache Tomcat service and all i could find was that it pointed to Tomcat.exe in the tomcat bin folder. thanks in advance, woodchuck

servlet help

2005-01-12 Thread Casas, Claudia
I am running tomcat5.5.4, apache2.0.52 and jk2. 1)I an run my jsp's and servlets from root. I have configured tomcat to run my jsp's from the homedirs, but I do not know how to configure tomcat to run servlets from the homedirs. I can run my jsp's like this:

Re: dynamically compile JSPs

2005-01-12 Thread Matt Bathje
So it looks like I need to send in classpath and destination directory configuration stuff to the JspC task (using setClassPath and setOutputDir on antTask I think) Where do I get the proper information from though? (The proper information to me means the same classpath and output directory

RE: servlet help

2005-01-12 Thread Casas, Claudia
Oki doki, I got my servlets to work from tomcat using port 8080 (http://myserver:8080/~myacct/servlet/myservlet), but I still do not know how to make apache recognize my servlets and send them to tomcat. I want to access (http://myserver/~myacct/servlet/myservlet) I tried to add these lines to

RE: servlet help

2005-01-12 Thread David da Guia Carvalho
Configurando Apache + Jakarta-TOMCAT + Connector MOD_JKConfigurando Apache + Jakarta-TOMCAT + Connector MOD_JKHi... follow down the mini-howto (Unfortunely I write in portuguese so I have to make a translation...) I will work on it to translante and correct some issues... perhaps even in

Where / How to place app config file without overwriting

2005-01-12 Thread Jonathan Wilson
My current upgrade procedures are to shutdown tomcat 3.x, move the current version of my webapp directory somewhere else, recreate the /webapp directory, then un-jar the war file created by NetBeans. After doing this I then have to modify the WEB-INF/app.config file with customer-specific

JNDI Realm

2005-01-12 Thread sudip shrestha
Does the tomcat version 5.5.4 and above support JNDI Realm with SSL. If you check previous posts, several users have reported unsuccessful attempts at using JNDIRealm with SSL. I have been successful in setting up LDAPRealm with SSL on tomcat 5.0.28 that uses Mozilla's Java-LDAP SDK. This

Re: Shutdown port

2005-01-12 Thread Ben Ricker
For an extra bit of security,replace SHUTDOWN with some sort of long, random string and then lock down the server.xml to 640. Someone who gains, or already has access to the box can shut it down the other way. Ben Ricker On Jan 12, 2005, at 6:55 AM, Frank Parato wrote: Is there a way to remove

RE: servlet help

2005-01-12 Thread Casas, Claudia
Thanks for your support David. Unfortunately, the configuration for jk2 is a bit different, but I really appreciate it. -Original Message- From: David da Guia Carvalho [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 1:52 PM To: Tomcat Users List Subject: RE: servlet help

Re: set default web application

2005-01-12 Thread xhu1
Thanks for your reply. I turned on the debug and didn't see any error log. I still get blank screen when I request http://localhost:8081 (I change the port to be 8081), the following is the log that when request the default http://localhost:8081: DEBUG http-8081-Processor24

fine tuning

2005-01-12 Thread Krishna Gunturu \(kgunturu\)
Hi We migrated to tomcat 5.0.28 from jserv, which is affecting the performance after migration (for the same load as Jserv) Is there any recommended configuration changes/performance tuning documentation ? Any help is really appreciated Thanks, -Krishna

Tomcat 5.0.28 exiting randomly

2005-01-12 Thread Greg Lappen
Hello- I have been tracking down this problem for a while now and finally have some more information. I am using Tomcat 5.0.28 on RedHat EL 3.0 with JDK 1.4.2_06 and we occasionally find that Tomcat is no longer running in our production server. It runs fine for days, then suddenly the java

Re: Minimum Memory Requirement for TC 5.0.x

2005-01-12 Thread QM
On Wed, Jan 12, 2005 at 01:28:16PM -0500, Yang Xiao wrote: : What is the minimum memory requirement to run TC 5.0.x in a Linux : environment? or is there such a thing? I can't find it anywhere, There really isn't one, because Tomcat is sandwiched between the JVM and your application. Chances

Bootstrap.jar does not get released when starting multiple instances of Tomcat

2005-01-12 Thread Robert Lin
Hi, We have a project where we need 3 different Tomcat instances running 3 different server.xml files, and we have that as part of our JUnit tests for our automated build process. However, for some reason, the file bootstrap.jar will not get released on the every nth build, n~= 1 to 10. And

Re: Minimum Memory Requirement for TC 5.0.x

2005-01-12 Thread Julius Davies
Linux itself requires 12MB of RAM: http://www.debian.org/releases/stable/i386/ch-hardware-req.en.html#s2.3 I think you could squeeze Tomcat + Java into an additional 32MB, so I would say the minimum memory requirement is 48MB. :-) yours, Julius On Wed, 2005-12-01 at 19:03 -0600, QM wrote:

Missing application log file, Realm authenication error

2005-01-12 Thread Peter Moore
Hi, I'm trying to track down an odd Realm authentication problem, but I can't seem to get anything to show up in any of the logs. My application (henceforth referred to as myapp) deploys successfully via war file with the manager application. When I try to access those portions of the

Re: set default web application

2005-01-12 Thread Parsons Technical Services
I think I have found the answer. In 5.5 any path elements are ignored and the filename/docBase is used instead, UNLESS you specify it in a context element placed in the server.xml. So to set the default app for Tomcat you will need to do it this way. As I said I think. So try adding a context

Re: Tomcat monitoring scripts

2005-01-12 Thread Faisal Abdullah
On demand restarts with: http://wrapper.tanukisoftware.org On Wed, 12 Jan 2005 16:50:54 +, Didier McGillis [EMAIL PROTECTED] wrote: btw the script I would use as a starting point, it doesnt work quite right on my system but I was looking for a starting point. From: Didier McGillis

Re: servlet help

2005-01-12 Thread Edmon Begoli
Claudia, Are you using mod_jk with Apache and Tomcat? You should be able to configure in Apache's httpd.conf to forward particular url patterns to your Tomcat(s') worker(s). Something like: JkMount /yourapp/* yourworker More details are in mod_jk documentation. I do not think that there is a way

RE: Shutdown port

2005-01-12 Thread Rajaneesh
Hey! I had a question! Can you shutdown the machine by typing http://localhost:8005 in the browser? I thought this was disabled in the Tomcat version 4 onwards? Regards Rajaneesh -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 4:44 AM To: