Re: Using native and ld_library_path

2005-02-02 Thread Andreas Andersson
Has no-one done this? I think the problem is when the already loaded .so-file wants to load other .so's. The java.library.path is set correctly but perhaps only for tomcat and not for the loaded .so. I've also tried to copy all of the required files to /usr/lib but without success. Andreas

Losing Request Parameters between Browser and Tomcat

2005-02-02 Thread Kifle Mengesha
i have the following system configuration. Apache Mod_JK Tomcat 4.1.18 which is running on Solaris 8. The problem now is when a user fills an HTML form and submits it, the request parameters are getting lost (meaning the 'service()' method is being called in a servlet but the

Re: Failed JDBC connection hangs Tomcat

2005-02-02 Thread Diego Espada
This is so strange... i switched to a commercial driver and deadlocks started to arise (hangs stopped)... i made some changes in the transaction logic and everything went fine... after talking with a JTDS developer I switched to JTDS again to force him to freeze so I could get some debug

Re: OT: Java / Tomcat Job Abroad

2005-02-02 Thread Siarhei Dudzin
http://www.monster.com On Wed, 2 Feb 2005 09:52:13 +0800, Aris Javier [EMAIL PROTECTED] wrote: Hello! This is an out of topic question... Sorry, but since all of you guys are using Java and Tomcat, and are from different countries... im just wondering if i can land a job abroad? I'm

Re: Deny access to a JSP page

2005-02-02 Thread apuerta.foros
Thanks, my Tomcat version is 5.0.28. I think you are suggesting the use of Remote Address Filter, but i can only use it with a Engine, a Host or a Context, not for a individual JSP. I find ipflt.jar but i will probe first mod_rewrite. Thanks again. El mar, 01-02-2005 a las 18:19 -0600, QM

AW: Deny access to a JSP page

2005-02-02 Thread Bernhard Slominski
Hi, I think the easiest way is to add a security contsraint in you web.xml of you web application: web app... security-contraint web-resources-collection web-resource-nameTest/web-resource-name url-pattern/myjsps/*/url-pattern /web-resources-collection

Using a database under tomcat for linux

2005-02-02 Thread Andreas Andersson
Hi! I'm having problems useing a database under my tomcat on my linux. If I disable security it works fine but with security I get connection errors. I've read the small documention on the policy file but doesn' succedd when I try to do the same thing. This is from my policy file grant

Does from a filter setCharacterEncoding work for tc-5.0.27?

2005-02-02 Thread Zsolt Koppany
Hi, Does setCharacterEncoding work under tc-5.0.27 with java-1.4.2-06? To get UTF-8 request parameter I need to do: String par = request.getParameter(filename); String filename = new String(par.getBytes(ISO8859-1), UTF-8); request.setCharacterEncoding(UTF-8) doesn't seem to help from a filter.

RE: Java / Tomcat Job Abroad

2005-02-02 Thread Phillip Qin
You will be disappointed if you immigrate to Canada. You will end up with driving a cab in best case senario. -Original Message- From: Aris Javier [mailto:[EMAIL PROTECTED] Sent: February 2, 2005 12:25 AM To: Tomcat Users List Subject: RE: Java / Tomcat Job Abroad Thanks Rhino for

[Fwd: IO Error while parsing file '/WEB-INF/tiles.xml'. Connection timed out]

2005-02-02 Thread Sébastien GALLET
Hi, I've got a problem with my struts application. Here is the trace : *Type* Rapport d'exception *message* *description* _Le serveur a rencontré une erreur interne () qui l'a empêché de satisfaire la requête._ *exception* javax.servlet.ServletException: IO Error while parsing file

Re: [Fwd: IO Error while parsing file '/WEB-INF/tiles.xml'. Connection timed out]

2005-02-02 Thread Tim Funk
It looks like your tiles file contains external references for DTD or schema validation. The timeout occurs when your server is trying to download those resources. -Tim Sébastien GALLET wrote: Hi, I've got a problem with my struts application. Here is the trace : *Type* Rapport d'exception

Tomcat 5 Struts

2005-02-02 Thread Paolo Audiberti
All, I'm having a class not found issue running an application that uses Struts 1.0 in Tomcat 5.0.25. Tomcat fires up and the application deploys properly. When I hit the index.jsp page I get the following exception: java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei The

RE: Using a database under tomcat for linux

2005-02-02 Thread Phillip Qin
Post your error message. It usually tells you what additional permission you need to grant. -Original Message- From: Andreas Andersson [mailto:[EMAIL PROTECTED] Sent: February 2, 2005 9:19 AM To: Tomcat Users List Subject: Using a database under tomcat for linux Hi! I'm having

Re: Java / Tomcat Job Abroad

2005-02-02 Thread Wade Chandler
Phillip Qin wrote: You will be disappointed if you immigrate to Canada. You will end up with driving a cab in best case senario. -Original Message- From: Aris Javier [mailto:[EMAIL PROTECTED] Sent: February 2, 2005 12:25 AM To: Tomcat Users List Subject: RE: Java / Tomcat Job Abroad

Re: Java / Tomcat Job Abroad

2005-02-02 Thread rcdunn
I am Canadian, living down in the US now. If you are lucky enough to find a job in Canada it will be for half the pay and the govt will take the rest. It will be better down here in the US until us Canadians pull our heads out and make it more like the US in the economy. Phillip Qin wrote: You

OT: Java / Tomcat Job Abroad

2005-02-02 Thread Filip Hanik - Dev
Getting a VISA is the biggest concern. I wouldn't suggest coming to the US,then looking for a VISA sponsor, do it the other way around. Filip - Original Message - From: Aris Javier [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, February 01, 2005

Memory leak in tomcat 5.0.28

2005-02-02 Thread Robert Wille
I'm running tomcat 5.0.28 on Linux with JRE 1.4.2_04 and I seem to have a memory leak. I am not using Apache, but am using the Coyote connector. The server has been running under heavy load, being accessed by about 150 computers running automated tests. I took heap snapshots about 8 and 20

Page Redirect

2005-02-02 Thread Christopher Brizzell
I am running Tomcat 4.1 on a Windows 2003 server box, along with Apache and JRE 1.4.1_06. I have very little programming knowledge. What I would like to do, is redirect any requests to http://thisserver:9091/thiswebpage to go to http://thisserver:8080/someotherwebpage. Is this possible, and if

Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory

2005-02-02 Thread DAVID TURNER
I'm running Tomcat 5.5.4 on Windows 2000 Server and encountered the below error on Tomcat startup: Feb 2, 2005 10:50:49 AM org.apache.catalina.core.NamingContextListener addResource WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory,

disabling tomcat cache

2005-02-02 Thread [EMAIL PROTECTED]
Anyone knows how to desable tomcat cache .It' s a serious problem for file generated on-fly. Tomcat does not see an automatically generated file in a normal webapps. I means sometimes it appears ...sometimes not. Has to exists something for avoid that Or not? Help I'm desperate?!!? regrards

JNDI resources different between 5.0 and 5.5?

2005-02-02 Thread Mark Winslow
Hi, I'm trying to upgrade from 5.0.28 to 5.5.4. I have a java bean resource that no longer works in 5.5.4. Apparently the resource isn't being found. My code for looking up the resources is: public static Manager getManager() { try { Context initCtx = new

Re: Missing application web.xml

2005-02-02 Thread Joe Reger, Jr.
Hi! I'm having problems with the Missing application web.xml error on dev machines running Windows XP,. Tomcat 5.5.7, Java 5.0. It happens when I try to deploy a war file by using the Manager app or by placing it in the /webapps directory. Here are some of the things I've done, each time

Re: Java / Tomcat Job Abroad

2005-02-02 Thread epyonne
Sorry to say that, but as long as you are letting the Socialists to run your country, it will never change. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, February 02, 2005 09:48 AM Subject: Re: Java / Tomcat Job Abroad

Cross-context

2005-02-02 Thread Murphy, Eric
Tomcat Users - We are distributing a servlet application that relies on the application's Context element's 'cross-context' attribute to be set to 'true'. Is it possible to set the 'cross-context' in the application's web.xml? This would simplify the configuring of this application for clients

How to Disabling HTTP Trace on Tomcat 4.1.30

2005-02-02 Thread Curry, Ivory
Hello all, After scanning our TOMCAT 4.1.30 server for vulnerabilities, the report came back with HTTP TRACE as being a MEDIUM level vulnerability. Is there a way to disable HTTP TRACE on Tomcat 4.1.30? Thanks in advance!

ISAPI redirector warnings

2005-02-02 Thread Eric Sandusky
While running Tomcat 5 with IIS and JK2.. The Windows Application Logs often log several Warnings at the same point in time, see below for example. The problem is, these Warnings pile up in the Windows Event logs and force the Administrator to manually clear out the logs daily or weekly.

Memory Requirement

2005-02-02 Thread Jiang, Peiyun
I have two questions: (1) How much memory to give to JVM to run tomcat? As mush as possible? (2) How to reasonably estimate the memory requirement for a web application running in tomcat? Thanks. Peiyun Jiang - To unsubscribe,

Re: Memory Requirement

2005-02-02 Thread Peter Lin
the best way to figure out how much heap to set is to stress test your application. 1. figure out the average load 2. figure out the peak load 3. stress test the webapp with default settings 4. tweak the settings and retest 5. compare the results there's no magic formula that works for all

[OT] Re: Java / Tomcat Job Abroad

2005-02-02 Thread Tim Funk
As much as I love political flame wars - we are now off topic. There are many other good blogs/list/groups/etc that may be used to discuss those topics. -Tim epyonne wrote: Sorry to say that, but as long as you are letting the Socialists to run your country, it will never change. - Original

How to run Tomcat 5.5 as a user ?

2005-02-02 Thread hicham
Hello usin Tomcat 5.5 under Fedora core linux , How do I get to launch it as user and not as root ? thanks hicham. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Admin application creates duplicate secure attribute in server.xml

2005-02-02 Thread Jeffrey Barnett
More info: Apparently the manual change didn't fix things after all. The server starts, and some webapps run, but those using ssl get the following error message: Connection refused when attempting to contact myhost:8443 The full service definition follows: Service name=Catalina Connector

RE: Memory leak in tomcat 5.0.28

2005-02-02 Thread Robert Wille
I've figured out my problem. I'm posting what I've discovered for the benefit of others. The SystemLogHandler uses a map called logs where the key is a ThreadWithAttributes and the value is a stack of CaptureLogs. The problem is that when a thread dies, the ThreadWithAttributes object lives

Re: [Fwd: IO Error while parsing file '/WEB-INF/tiles.xml'. Connection timed out]

2005-02-02 Thread Sébastien GALLET
Thank you Tim. Everything works fine. I've create an apache site which holds my dtds... but ... Is there a way to include dtds in tomcat application ? Tim Funk a écrit : It looks like your tiles file contains external references for DTD or schema validation. The timeout occurs when your server

Re: Memory leak in tomcat 5.0.28

2005-02-02 Thread Filip Hanik - Dev
feel free to open a bug report, so that this issue can be tracked. - Original Message - From: Robert Wille [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Wednesday, February 02, 2005 1:25 PM Subject: RE: Memory leak in tomcat 5.0.28 I've figured out my problem. I'm posting

Re: [ANN] JK 1.2.8 Released

2005-02-02 Thread Ellen Blank
I hope you're not suggesting that I need httpd-2.0.52 for jk-1.2.8 use. I should be able to compile it against Apache 2.0.43, correct? thanks, Ellen Mladen Turk wrote: Ellen Blank wrote: Hello, wondering how soon jk-1.2.8 binaries will become available for Solaris platform, and whether it makes

please give me index.jsp

2005-02-02 Thread Carlos A.García
Hi. I accidentally deleted it.. Anybody has it form? Please send Thanks !!! Carlos

Re: please give me index.jsp

2005-02-02 Thread Ben Souther
Why not just download it? On Wed, 2005-02-02 at 14:49, Carlos A.Garca wrote: Hi. I accidentally deleted it.. Anybody has it form? Please send Thanks !!! Carlos - To unsubscribe, e-mail:

Shutdown not working under SLES8 and FC2

2005-02-02 Thread Al Sutton
Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under

Re: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Carl Howells
Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing

RE: SocketException: Too many open files

2005-02-02 Thread Randall Svancara
You need to increase the maximum number of open file descriptors for your platform. There are lots of documents on how to do this. Thanks, Randall -Original Message- From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 01, 2005 4:30 PM To: Tomcat User Subject:

RE: please give me index.jsp

2005-02-02 Thread Carlos A.García
Thanks.. From where? I searched the apache home.. Do you know where is the file? Thank you Carlos -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 11:52 AM To: Tomcat Users List Subject: Re: please give me index.jsp Why not just

Re: jspc taglib handling different between 5.5.4 and 5.5.7

2005-02-02 Thread Vinny
I am having the same issue. My absolute uri'd tld are not getting resolved. Also I am getting this error when I try running my struts app: ERROR: 2005-02-02 14:45:27,578: ApplicationDispatcher: Servlet.service() for servlet jsp threw exception java.lang.ClassCastException at

RE: please give me index.jsp

2005-02-02 Thread Caldarale, Charles R
From: Carlos A.García [mailto:[EMAIL PROTECTED] Subject: RE: please give me index.jsp Thanks.. From where? I searched the apache home.. Do you know where is the file? It's in your original Tomcat download. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Al Sutton
Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro you're using just for the sake of testing this. As stated in the bug twice this is after

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Al Sutton
And it's the latest version, if it was any earlier ones I would have upgraded already. Thats 5.5.7 Thats the one voted as stable. OK? -Original Message- From: Carl Howells [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:08 To: Tomcat Users List Subject: Re: Shutdown not working

Re: Shutdown not working under SLES8 and FC2

2005-02-02 Thread arvind singh
I am using under Suse 9.2 E server, no problems. Make sure you are the right user prefer tomcat when executing the script. From: Carl Howells [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Shutdown

RE: please give me index.jsp

2005-02-02 Thread Ben Souther
You haven't stated which version. Here is the latest from CVS. You will see a download link at the top of the page. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/webapps/ROOT/index.jsp?rev=1.17view=log On Wed, 2005-02-02 at 15:11, Carlos A.Garca wrote: Thanks.. From where? I

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Ben Souther
I'm running FC2 and it shuts down fine On Wed, 2005-02-02 at 15:14, Al Sutton wrote: Please read the bug. One person tried under cygwin and then closed it. No-one else has said what platforms they've tried it on, and I was told One thing is certain: no developer will install the crappy distro

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Al Sutton
Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:18 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 I'm running FC2 and it shuts down fine On Wed, 2005-02-02

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Al Sutton
Thanks for the info. Can you expand on what you mean by right user prefer. I'm running tomcat as a user, and running the startup and shutdown scripts as that user. -Original Message- From: arvind singh [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:15 To:

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Ben Souther
Straight out of the box. What config are you talking about? Also, what version of Tomcat? On Wed, 2005-02-02 at 15:20, Al Sutton wrote: Are you using the default or modified config? Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Al Sutton
I'm using 5.5.7 out of the box with the compat package under JDK 1.4.2. Are you using JDK 1.5? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:24 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Straight out of the

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Ben Souther
Yes, hang on I'll try with j2sdk1.4.2 On Wed, 2005-02-02 at 15:28, Al Sutton wrote: I'm using 5.5.7 out of the box with the compat package under JDK 1.4.2. Are you using JDK 1.5? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:24 To:

RE: please give me index.jsp

2005-02-02 Thread Carlos A.García
Thank you so much. My version is 4.1 Anybody has the file? Thanks -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 12:17 PM To: Tomcat Users List Subject: RE: please give me index.jsp You haven't stated which version. Here is the

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread arvind singh
hmm seems like you are using Tomcat 5.5.x for Java 1.5 with jdk1.4.2 Not sure if it will work. From: Al Sutton [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: RE: Shutdown not working under SLES8 and FC2

RE: please give me index.jsp

2005-02-02 Thread Ben Souther
I just got you to the CVS tree, browse to whatever version you want... http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/webapps/ROOT/index.jsp?rev=1.9view=log On Wed, 2005-02-02 at 15:31, Carlos A.Garca wrote: Thank you so much. My version is 4.1 Anybody has the file? Thanks

Re: JNDI resources different between 5.0 and 5.5?

2005-02-02 Thread Mark Winslow
OK, I think I found the problem. You need to put in the resource factory in the context section which I didn't do. I have one question about the docs, though. The docs seem to indicate that a new instance of the bean will be created with every call to lookup. This is not the behavior that I am

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Ben Souther
Here you go. I just downloaded 5.5.7 with the compat stuff. Set JAVA_HOME, Started and Stopped Tomcat. Then ran ps to see if there were any java processes hanging. Here is the session: = [EMAIL PROTECTED] bin]$ export

Re: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Drew Jorgenson
Mine won't shutdown either, I have to killall -9 java. The server this is happening to is running RH 3AS with jdk1.5 and Tomcat 5.5.4 Drew. On Wed, 2005-02-02 at 12:05, Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Al Sutton
Can you do a uname -a so I can compare kernel versions. Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:48 To: Tomcat Users List Subject: RE: Shutdown not working under SLES8 and FC2 Here you go. I just downloaded 5.5.7 with the

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Al Sutton
I've extracted the compat archive which is supposed to give 1.4 compatibility, so sorry, no cigar :). Al. -Original Message- From: arvind singh [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 20:44 To: tomcat-user@jakarta.apache.org Subject: RE: Shutdown not working under SLES8 and FC2

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Ben Souther
Linux bsouther 2.6.9-1.6_FC2 #1 Thu Nov 18 22:03:19 EST 2004 i686 athlon i386 GNU/Linux On Wed, 2005-02-02 at 15:56, Al Sutton wrote: Can you do a uname -a so I can compare kernel versions. Thanks, Al. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 02

sharing session across Hosts

2005-02-02 Thread Charles N. Harvey III
Hello. I have two Hosts setup in the same Engine, and I would like to be able to share session variables across them. Is this possible? And, if so, what do I have to configure? Realm? Listener? Thanks a lot. Charlie - To

compiling and deployment in tomcat

2005-02-02 Thread Julio Macedo
Hi, I've just installed Tomcat 5.5 and I have two main doubts and I hope someone may help me. 1. Do I really have to compile a servlet manually using javac (or using another tool) or may I save it in a specific folder so Tomcat compiles it to me? 2. Do I really have to register my

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Al Sutton
Hmmm The latest updates gives me; Linux host 2.6.10-1.9_FC2 #1 Thu Jan 13 17:54:57 EST 2005 i686 athlon i386 GNU/Linux and I'm on JDK 1.4.2_06 as opposed to _05. Would it be possible for you to upgrade?, I'd like to have the exact same environment, but please don't put yourself out or risk a

Re: compiling and deployment in tomcat

2005-02-02 Thread Ben Souther
On Wed, 2005-02-02 at 17:34, Julio Macedo wrote: Hi, I've just installed Tomcat 5.5 and I have two main doubts and I hope someone may help me. 1. Do I really have to compile a servlet manually using javac (or using another tool) or may I save it in a specific folder so Tomcat

Re: sharing session across Hosts

2005-02-02 Thread Mark Winslow
I imagine creating a static variable would be global to the JVM. Something like: public class MyClass { public static int nUsers; }; would allow you to set and retrieve MyClass.nUsers in a global maner. I haven't tested this and its an absurdly trivial example, but it seems like it should

Re: compiling and deployment in tomcat

2005-02-02 Thread Mark Thomas
Julio Macedo wrote: 1. Do I really have to compile a servlet manually using javac (or using another tool) or may I save it in a specific folder so Tomcat compiles it to me? You have to do this, Tomcat won't do it for you. 2. Do I really have to register my servlets in web.xml file or this process

Re: jspc taglib handling different between 5.5.4 and 5.5.7

2005-02-02 Thread Jason Schuchert
i submitted a bug (http://issues.apache.org/bugzilla/show_bug.cgi?id=33373) for the precompile error i'm getting which you may want to add your information too as well if you think it's related (or log separate bug if not) thanks, -jason - Original Message - From: Vinny [EMAIL

RE: sharing session across Hosts

2005-02-02 Thread Caldarale, Charles R
From: Mark Winslow [mailto:[EMAIL PROTECTED] Subject: Re: sharing session across Hosts I imagine creating a static variable would be global to the JVM. Not quite. It's global to the classloader, not the JVM. Since each web app has its own classloader, you would have to put such a class

idle connections

2005-02-02 Thread Bobby Tahir
Hey, wondering if someone could help me out on this. I'm using: Tomcat 5 RedHat Oracle 9i I'm using jdbc and dbcp connection pooling and am trying to tune my app for more scalability. I have my maxActive set to 0 (infinite) and my maxIdle set to 50. When I load test and then look at oracle

Changing the Default Mime Type

2005-02-02 Thread Scott Wilson
The quick version: Is it possible to change the default MIME type on a Tomcat 4.1 server? Currently files with unknown extensions are treated as text/plain. More background: I run a server that runs a Tomcat that is provided by an App Vendor. With their last upgrade they upgrade the Tomcat to

RE: idle connections

2005-02-02 Thread Al Sutton
Doesn't setting maxIdle to 50 mean that you've confiured it to have 50 connections idle and not do anything about them? Try lowering this number if you want less connections left open. -Original Message- From: Bobby Tahir [mailto:[EMAIL PROTECTED] Sent: 02 February 2005 22:05 To: Tomcat

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Ben Souther
On Wed, 2005-02-02 at 16:43, Al Sutton wrote: Hmmm The latest updates gives me; Linux host 2.6.10-1.9_FC2 #1 Thu Jan 13 17:54:57 EST 2005 i686 athlon i386 GNU/Linux and I'm on JDK 1.4.2_06 as opposed to _05. Would it be possible for you to upgrade?, I'd like to have the exact same

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Al Sutton
Ben, Thanks for doing this. I'm going to put _07 on tomorrow and give that a spin as well, but it'd be useful to know if _06 has problems for the future. I've just downloaded the main and compat packages, no modifications have been made to any files contained within, and no webapps have been

Re: sharing session across Hosts

2005-02-02 Thread Charles N. Harvey III
So... If I create some class, SessionHolder.java, compile it (SessionHolder.class) and put it in shared/lib, I could then set variables and then retrieve them from this class? Charlie Caldarale, Charles R said the following on 2/2/2005 5:00 PM: From: Mark Winslow [mailto:[EMAIL PROTECTED]

Re: idle connections

2005-02-02 Thread Bobby Tahir
I think I get your meaning. Basically its ok/good to have 50 connections idle connections laying around because those will get used for future queries. This whole problem started when I got a maximum sessions exceeded on oracle (back when i had maxIdle=1000). I was thinking that since millions

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Ben Souther
On Wed, 2005-02-02 at 17:16, Al Sutton wrote: Ben, Thanks for doing this. Not a problem. I'm going to put _07 on tomorrow and give that a spin as well, but it'd be useful to know if _06 has problems for the future. If the problem doesn't exits on _07, you've narrowed it down quite a bit

Summary in pdf format

2005-02-02 Thread Peter Lin
http://cvs.apache.org/~woolfel/benchmark_summary.pdf I've posted a pdf version of the benchmark write up. peter lin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Environment entry env.entry in web.xml not executed by Tomcat (4.1)

2005-02-02 Thread Mai Nguyen
Hello, Is there a way to execute the Tomcat defaults settings other than using the web.xml file? I have the following entry env.entry in the web.xml file located in the Tomcat webapps directory where our app is deployed: ...webapps/MyTest/WEB-INF/web.xml env-entry descriptiontrue or false

Re: idle connections

2005-02-02 Thread Parsons Technical Services
Just to clarify on the abandoned connections, this will reclaim connections that have be orphaned in code (like not closing the statement) and return them to the pool. Doug - Original Message - From: Bobby Tahir [EMAIL PROTECTED] To: Al Sutton [EMAIL PROTECTED] Cc: Tomcat Users List

Re: compiling and deployment in tomcat

2005-02-02 Thread Mario Winterer
Hi, it is not possible to make Tomcat automatically compile and deploy your servlets. Usually this is not necessary. If you use a good IDE, it is no great effort to compile your servlets. Deployment could be done by using an Ant script - just copy the servlet-binaries in the correct directory

RE: Shutdown not working under SLES8 and FC2

2005-02-02 Thread Ben Souther
On Wed, 2005-02-02 at 17:11, Ben Souther wrote: On Wed, 2005-02-02 at 16:43, Al Sutton wrote: Hmmm The latest updates gives me; Linux host 2.6.10-1.9_FC2 #1 Thu Jan 13 17:54:57 EST 2005 i686 athlon i386 GNU/Linux and I'm on JDK 1.4.2_06 as opposed to _05. Would it be possible

isUserInRole question

2005-02-02 Thread Denny Lee
Hello, I am trying to use isUserInRole in an app within Tomcat. The problem is that I consistently get false as the return regardless of what I pass in. I am using J2SE 1.4.2_06 and Tomcat 5.0. Here is the code and any help would be great: import java.io.*; import javax.servlet.*; import

Re: sharing session across Hosts

2005-02-02 Thread Mario Winterer
Hi! Do you want to share some kind of global variables or session information? Global variables should exist only once while session information is stored for each user (to be more correct: for each user-session). I think you want to share session-information, but using a class-variable from

Re: isUserInRole question

2005-02-02 Thread Mario Winterer
Hi! I'm not sure, but I think your code is OK. The question is: How did you configure your security realm in web.xml and server.xml. (request.isUserInRole only works, if the user has already been authenticated against the web server.) Best regards, Tex Hello, I am trying to use isUserInRole

Re: idle connections

2005-02-02 Thread Mario Winterer
Hi! the parameter maxIdle is the maximum number of idle connections that can retain in the pool. That means it is ok for the pool to have 50 connections waiting for usage - you told him to do so! So what different behaviour did you expect? Best regards, Tex Hey, wondering if someone could

Re: Cross-context

2005-02-02 Thread Mario Winterer
In Tomcat 5.x, you can define the default settings for application contexts in %TOMCAT_HOME%/conf/context.xml. (I'm not sure if Tomcat versions prior to 5.x support this.) Best regards, Tex Tomcat Users - We are distributing a servlet application that relies on the application's Context

Re: Tomcat 5.5.4/Windows 2000 server - Failed to register in JMX: BasicDataSourceFactory

2005-02-02 Thread Mario Winterer
Hi! How did you define your JDBC DataSource? As far as I know, the original jakarta-commons-dbcp and jakarta-commons-pool-libraries are not included with Tomcat. Instead, just a subset of the required classes with modified package names (starting with 'org.apache.tomcat.dbcp') are packed in

RE: compiling and deployment in tomcat

2005-02-02 Thread Subir Sengupta
1 - Yes, you have to compile them 2 - If you don't want to register your servlets in web.xml, you can use the Invoker servlet. However, I believe there are security issues with it, since it will allow any servlet on your site to be run. Subir -Original Message- From: Julio Macedo

Re: [OT] Advertising website

2005-02-02 Thread Steven J. Owens
On Fri, Jan 28, 2005 at 08:04:57AM -0800, t t wrote: Does anyone know a easy and cheap (even free) way to advertise a website? The answer is it depends, mostly on your site, your goals, your resources, etc. In general, I recommend substituting brains for money. Even if you have

Hiding resources

2005-02-02 Thread Mario Winterer
Hi! I'm running a web application that is under CVS, which means my web application contains a lot of CVS-related directories (for the CVS-metadata). Is there a possibility to tell Tomcat to hide or protect all those CVS directories? More general, what I need is a way to hide/protect all files

Re: Hiding resources

2005-02-02 Thread Mark Eggers
How about doing your development in a different area, and do your your deployment via export? You could also frontend your Tomcat wtih Apache and deny access with Apache. Just a couple of random thoughts . . . /mde/ __ Do you Yahoo!?

RE: Does from a filter setCharacterEncoding work for tc-5.0.27?

2005-02-02 Thread A jie
-- MSN:[EMAIL PROTECTED] QQ:29967409 - From: Zsolt Koppany [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Subject: Does from a filter setCharacterEncoding work for

Anyone with Tomcat on FreeBSD 5.3

2005-02-02 Thread Todd Reed
--SHORT VERSION In a nutshell, I'm asking if there is someone that could shed some light on the install process of Tomcat5 on FreeBSD 5.x --MORE DETAILS I am new to Tomcat with a need to serve JSP pages. I have a basic FreeBSD 5.3 box installed with a few security/system tweaks. Also installed

How to make my error page in the case of BASIC JDBC realm

2005-02-02 Thread joby.joseph1
Hi, I am using Tomcat 5.x. I am using BASIC JDBC Realm. I want to make my own error page as the error page in the case of HTTP Status 401 error. This error comes when I click on Cancel button when the realm asks for user name and password. Any one knowing this stuff, kindly reply. Thanks in

Re: Anyone with Tomcat on FreeBSD 5.3

2005-02-02 Thread Joel
On Wed, 2 Feb 2005 22:20:44 -0600 (B"Todd Reed" [EMAIL PROTECTED] wrote (B (B [...] Linux-jdk1.3 (B doesn't exist anymore, but linux-sun-jdk13 does. I'm assuming this is (B the same ports package? (B (BI think that may be due to the recent license changes (and Sun's not (Bbeing able to

Apache-Coyote/1.1 application configuration

2005-02-02 Thread Paul Denham
Hi I posted this but have had no replies. Am I on the wrong user list here? Any advice appreciated. Paul -Original Message- From: Paul Denham [mailto:[EMAIL PROTECTED] Sent: 31 January 2005 07:40 To: 'tomcat-user@jakarta.apache.org' Subject: Apache-Coyote/1.1 application

RE: Apache-Coyote/1.1 application configuration

2005-02-02 Thread Caldarale, Charles R
From: Paul Denham [mailto:[EMAIL PROTECTED] Subject: Apache-Coyote/1.1 application configuration I posted this but have had no replies. Am I on the wrong user list here? Is there anything in your query related to Tomcat? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR

Webapps won't go out of manager when deleted

2005-02-02 Thread Ethan Michaels
I'm using Tomcat 5.5.4 on Windows XP. My question is about the manager application. I deployed a web app called commutercorps and then wanted to undeploy it. Instead of using the undeploy command, I deleted CATALINA_HOME/webapps/commutercorps/ and CATALINA_HOME/work/commutercorps/, and then

  1   2   >