Re: Error: Cannot get a connection, pool exhausted

2005-10-26 Thread Jan Pernica
And try to use removeAbandoned="true" logAbandoned="true" removeAbandonedTimeout="120" to track which connections were not properly closed (see http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html) Regards Jan Steve Kirk wrote: how many concurrent requests are you

Tomcat / CPanel

2005-10-26 Thread enLogica
Does anyone know if Tomcat is Compatible with CPanel? And if so, is it a reasonable production server configuration? One additional semi-related question. I have been told that apache has a mod_rewrite which is great for masking querystring-driven urls and turning them into more search-engine fr

RE: problem in getting database connection from remote machine using JNDI

2005-10-26 Thread rahul
Finally I figured out the problem Actually the context file which tomcat creates for every application in conf// folder was not getting updated. It was having the localhost settings instead of remote server. After correcting this file my application is working perfectly. Thanks for the help -

RE: Securing Manager Role

2005-10-26 Thread B Wiley Snyder
Greetings Mark, Got it ;) thanks again ... At 06:18 PM 10/26/2005, you wrote: Sorry, as has been pointed out my response isn't correct. Digesting the passwords is supported - see the docs. Where encrypting passwords is not supported is for external resources such as databases. Mark > -O

RE: Securing Manager Role

2005-10-26 Thread Mark Thomas
Sorry, as has been pointed out my response isn't correct. Digesting the passwords is supported - see the docs. Where encrypting passwords is not supported is for external resources such as databases. Mark > -Original Message- > From: Mark Thomas [mailto:[EMAIL PROTECTED] > Sent: Tuesday,

RE: j_security_check

2005-10-26 Thread Mark Thomas
Whilst I think everyone who writes JSPs and Servlets should read and understand the specs before they start writing any code - and for that matter before they post to the Tomcat user list ;) - this wasn't the reason I pointed you towards the servlet spec. Neither did I do it for kicks. Quite simply

RE: j_security_check

2005-10-26 Thread B Wiley Snyder
Greetings, This is a big help ... http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/authenticator/FormAuthenticator.java thank you ! also, There isn't a j_security_check servlet. <- then why does it act like one ? The places to start are: - se

RE: j_security_check

2005-10-26 Thread Mark Thomas
There isn't a j_security_check servlet. The places to start are: - servlet spec - http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/ apache/catalina/authenticator/FormAuthenticator.java Configuration is automatic if you specify FORM authentication in your web.xml Ma

RE: Why tomcat has a wrapped dbcp?

2005-10-26 Thread Mark Thomas
Look in http://svn.apache.org/repos/asf/tomcat/build/tags/tc5.5.x/TOMCAT_5_5_12/build.pr operties.default or the relevant version under http://svn.apache.org/repos/asf/tomcat/build/tags/ Mark > -Original Message- > From: Darryl L. Miles [mailto:[EMAIL PROTECTED] > Sent: Wednesday, Octobe

j_security_check

2005-10-26 Thread B Wiley Snyder
Greetings, Anybody here know a post or a link to something that might help me understand exactly how j_security_check works? Where is the j_security_check servlet ? The source code etc... conf files or a full breakdown step by step of what it's doing and where ? ... gracias --

Re: tomcat webapps help

2005-10-26 Thread John Laughton
I had a similar issue, where I wanted to expose a bunch of jpeg files (use thumbails in the normal jsp pages, but hyperlink'd to the full size image - which I did not want to put into the war file) I basically created another web app I created the file .../tomcat/conf/Catalina/localhost/imageD

Re: tomcat webapps help

2005-10-26 Thread Anoop kumar V
Well - you can start off by adding a context in your server.xml file. It will be under the /conf folder You have not mentioned the version of tomcat you are using - or else peope could have given you more precise answers... -Anoop On 10/26/05, Raviteja Veerla <[EMAIL PROTECTED]> wrote: > > Hi, >

tomcat webapps help

2005-10-26 Thread Raviteja Veerla
Hi, I know that to create the root of a web application, we just have to make a directory in the webapps folder of tomcat and then copy the files in to that directory. but my situation is different, i have these folders which are to be exposed as web applications else where and i need to somehow po

Re: JNDIRealm Configuration

2005-10-26 Thread PHIL CAVAZOS
Looks like I got this to work. My web app is now authenticating with eDirectory using a form-based login. If anyone needs help on this same issue, let me know. I'd be more than willing to reprieve you from the stress this created. >>> [EMAIL PROTECTED] 10/21/2005 1:36:09 pm >>> I need advice on

Realm JDBC Configuration

2005-10-26 Thread Vicente Couto
Hi All, I'm using tomcat 5.5.12 and i want use authentification with JDBC realm. I'm using netbeans 4.1 and firebird. I had got added to the file web.xml: Example Security Constraint Protected Area /* DELETE GET POST

Re: can I run tomcat on port 80 without running as root

2005-10-26 Thread John Laughton
I run the machine that has tomcat behind a router that does a NAT from port 80 to port 8080 John At 01:00 PM 10/26/2005 -0600, Kam Lung Leung wrote: Hi, I want to have Tomcat listen to port 80 instead port 8080. However, I don't want to run Tomcat as root. Is this possible? Thank you in adva

RE: can I run tomcat on port 80 without running as root

2005-10-26 Thread George Sexton
Yes. The solution is (assuming you're running Linux or something like it) is to port forward requests on port 80 to port 8080. Here's a discussion. http://linux.org.mt/article/tomcat-ports George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message-

RE: can I run tomcat on port 80 without running as root

2005-10-26 Thread Klotz Jr, Dennis
Just a quick reply. Do a google on jsvc. I use it on our linux box to do exactly what you are asking. You can find the tar ball in the bin directory of tomcat. -Dennis -Original Message- From: Kam Lung Leung [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 26, 2005 3:00 PM To: Tomcat

RE: jCIFS Jboss Tomcat IIS NTLM Authentication

2005-10-26 Thread Scott Shaver
This is a quote from a microsoft waeb site: Windows NT Challenge/Response authentication (often called NTLM authentication) is the most secure form of authenticating a user because the username and password are not sent across the wire. Rather, the Windows Security Provider interface is used to p

can I run tomcat on port 80 without running as root

2005-10-26 Thread Kam Lung Leung
Hi, I want to have Tomcat listen to port 80 instead port 8080. However, I don't want to run Tomcat as root. Is this possible? Thank you in advance, Kam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

FarmWarDeployer

2005-10-26 Thread Brian O'Rourke
Hello, Is FarmWarDeployer ready for use? I have played around with it a little but have been unsuccessful so far. Is there any documentation of this that I have missed? I haven't been able to figure out how context configuration is done for this deployer, but I noticed some oddities - e.g. that th

RE: jCIFS Jboss Tomcat IIS NTLM Authentication

2005-10-26 Thread Scott Shaver
I thought I tried that but I'll give it another go. Won't this mean that the user's realm groups (security groups from active directory) won't be loaded then? If tomcat doesn't do the authentication via the filter I would assume that would be the case. That won't work for me if it is true. The a

Re: DBCP connection leak after undeploy

2005-10-26 Thread Bogdan Calmac
When tomcat is stopped the connection is closed. I'll probably submit the example to bugzilla. Can somebody familiar with the code suggest which catalina object keeps a reference of the datasource (beside being registered in JNDI)? On 10/26/05, Steve Kirk <[EMAIL PROTECTED]> wrote: > > Your code a

Re: getPageContext returns null

2005-10-26 Thread Michael Neel
Thanks Tim and Steve... though a combination of session.setAttribute and request.setAttribute I'm able to put thing where I want. In retrospect that seems so obvious... Mike On 10/26/05, Steve Kirk <[EMAIL PROTECTED]> wrote: > > not sure about use of PageContext, never used it. > > ... or about

RE: Error: Cannot get a connection, pool exhausted

2005-10-26 Thread KUMAR, NANDA [AG-Contractor/1000]
Thanks Steve for quick reply. I will try as you mentioned. The releaseConnection() method basically what it does is, it will close the connection. if (connection_ != null) connection_.close(); Kumar -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Wednesday, October

RE: Tomcat is dying unpredictably

2005-10-26 Thread Steve Kirk
A long shot, but if you are running RHL9 you might try this, as mentioned in the TC 5.5 release notes at http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES.txt : Tomcat on Linux: GLIBC 2.2 / Linux 2.4 users should define an environment variable: export LD_ASSU

RE: Error: Cannot get a connection, pool exhausted

2005-10-26 Thread Steve Kirk
IMHO I would say that you just need to rearrange your code a little - I would move some code that you have in the try{} block to a finally{} block, so that it gets executed whether or not there is an error. At the moment, the section > rs.close(); > > pstm

Tomcat is dying unpredictably

2005-10-26 Thread Mark Shifman
Recently tomcat has started dying in an unpredictable manner. I am running java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28) Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode) jakarta-tomcat-5.0.19 on a Linux box with kernel 2.4.21-37.ELsmp #1 SMP Wed

Re: problem in getting database connection from remote machine using JNDI

2005-10-26 Thread Hassan Schroeder
rahul wrote: > url="jdbc:mysql://localhost:3306/myDB" removeAbandoned="true" > This works absolutely fine. But when I try to connect to a remote database > by changing url in above > file to "jdbc:mysql://192.168.5.65:3306/myDB" my application fails > It creates following exception while retrie

RE: Error: Cannot get a connection, pool exhausted

2005-10-26 Thread KUMAR, NANDA [AG-Contractor/1000]
Thanks Steve.. I am confident that, we don't have 100 concurrent conns. Our DAO handles the connection, here is the DAO example, please let me know what we are doing wrong here? public java.util.Vector getYears(String teamId) throws DAOException{ java.sql.ResultSet rs = null;

RE: Should a missing jsp:include target cause TC to throw an exception or HTTP error code?

2005-10-26 Thread Steve Kirk
I got no reply to my first post (below), maybe I was too wordy, so here's a short version of the Q: If I include a JSP fragment within another JSP page like this: but the file "test.jsp" does not exist, should TC throw an Exception? Or maybe an HTTP 404? I have a case like this where

RE: ? xmlValidation Attribute -- What's it Mean ?

2005-10-26 Thread Steve Kirk
I believe (although am not 100% sure because I haven't tried it myself) that xmlValidation="true" means that TC's XML parser should check all XML against the DTD defined in each XML source. With xmlValidation="false", it will check that the xml is "well-formed" but not that it is "valid". See th

RE: getPageContext returns null

2005-10-26 Thread Steve Kirk
not sure about use of PageContext, never used it. ... or about the "correct" way to pass info from servlet to jsp (if there even is one), but if it helps, I use this approach and it works well: // in the servlet's doPost() request.setAttribute(MyConstants.MY_OBJECT_CONSTANT_NAME, myObject); requ

RE: Error: Cannot get a connection, pool exhausted

2005-10-26 Thread Steve Kirk
how many concurrent requests are you handling? you have configured > maxActive > 100 so as soon as 100 concurrent conns are reached, you will exhaust the pool. If you do not have as many as 100 concurrent conns, then it is likely that your servlet calls are not returning conns t

Re: getPageContext returns null

2005-10-26 Thread Tim Funk
Variables in pageContext scope are only available to the JSP. It looks like you should be setting variables in the request scope. -Tim Michael Neel wrote: Hi, Quick overview, I'm setting some variables in the session from my servlet to be used in my JSP/JSTL page. Everything is fine if a JS

RE: problem in getting database connection from remote machine using JNDI

2005-10-26 Thread rahul
Yes I am perfectly connecting to that remote db with command line mysql client (running on the tomcat box) > -Original Message- > From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 26, 2005 7:54 PM > To: Tomcat Users List > Subject: Re: problem in getting databas

Error: Cannot get a connection, pool exhausted

2005-10-26 Thread KUMAR, NANDA [AG-Contractor/1000]
Frequently we were getting "Cannot get a connection, pool exhausted" error on production. I know in our application, we are closing the connection after each connection. Here is our context.xml parameters and values. We set maxActive connection to 100. Please let me know what we are doing wrong or

getPageContext returns null

2005-10-26 Thread Michael Neel
Hi, Quick overview, I'm setting some variables in the session from my servlet to be used in my JSP/JSTL page. Everything is fine if a JSP page is called before the servlet, but a call to the servlet first results in JspFactory.getPageContext to return null. To reproduce, I restart the Tomcat ser

Re: problem in getting database connection from remote machine using JNDI

2005-10-26 Thread David Delbecq
Just my 2 cents Mysql does authentification not based on username:password but based on [EMAIL PROTECTED]:password Possible the selected user is allowed only for localhost or, even better, that mysql does not listen on any interface other than localhost (default configuration for security reasons)

RE: DBCP connection leak after undeploy

2005-10-26 Thread Steve Kirk
Your code and config below look fine to me, conns seem to be returned OK to pool as you say. Sounds to me like the pool itself leaves the database with hanging conns in the pool when it goes down. When you say "If I deploy/undeploy several times" do you stop and restart TC between undeploy and r

Re: problem in getting database connection from remote machine using JNDI

2005-10-26 Thread Mikolaj Rydzewski
rahul wrote: Yes the database myDB exists on the remote server, at the same prot number, with the same username and password, And there is no known IP address filters (unless there is some provision in default settings of mysql server) Are you sure that you can connect to that remote db wi

RE: problem in getting database connection from remote machine using JNDI

2005-10-26 Thread rahul
Hi Steve, Yes the database myDB exists on the remote server, at the same prot number, with the same username and password, And there is no known IP address filters (unless there is some provision in default settings of mysql server) > -Original Message- > From: Steve Kirk [mailto:[EMA

RE: How to create a website in apache-tomcat-5.5.12

2005-10-26 Thread Steve Kirk
Two things: 1. you need to deploy your webapp as the ROOT webapp on the server. there is a standard ROOT webapp that ships with TC, you can just replace that if you want to, examine that to see how to configure it, look especially at the %catalina_home%/webapps/ROOT/WEB-INF/web.xml config file.

RE: Tracking

2005-10-26 Thread Steve Kirk
Charles, I don't know of a way to have TC clear up conns for you, but you really should clear up connections explicitly. To some extent DBCP will clear up "abandoned" connections (to which you had a variable reference, which goes out of scope when you have finished processing the request), but th

RE: Remote deployments in Tomcat 5.5.9

2005-10-26 Thread Steve Kirk
I am using TC 5.5.9 on WinXP Pro here, but AFAIK the config is the same on Solaris. Your remote server needs to have the manager webapp installed and enabled. It is installed in TC as standard (at least it is in 5.5.9, which I am using). However it ships disabled for security reasons so before t

RE: problem in getting database connection from remote machine using JNDI

2005-10-26 Thread Steve Kirk
at the risk af asking the obvious, does the database "myDB" exist on the remote server at the same port number, and with the same username and pw as on the local server, and if so, does it have any IP address filters that forbid remote mysql client connections? > -Original Message- > From:

RE: HTTP 500 Error.

2005-10-26 Thread Steve Kirk
the key lines to look at more closely at these: java.lang.ClassCastException org.apache.jsp.errorpage_jsp._jspService(errorpage_jsp.java:103) ... org.apache.jsp.preview_jsp._jspService(preview_jsp.java:135) (esp the latter), and: "note The full stack trace of the root cause is av

Re: JK.Log Rotation In Windows - RESOLVED

2005-10-26 Thread Jon Chau
Peter that worked great! My problem was with the path specification. Thanks. On 10/26/05, Peter Rossbach <[EMAIL PROTECTED]> wrote: > Following Config works for me :-) > > JkLogFile "|bin/rotatelogs.exe logs/mod_jk.%Y-%m-%d-%H_%M_%S.log 5M" > > Regards > Peter > > Jon Chau schrieb: > > >Hello, >

new Date() returns 0 w/ Tomcat 5.028 on IBM JDK 1.4.2 Linux PPC

2005-10-26 Thread ml
Hi, i am getting strange things on the following environment: Tomcat 5.0.28 IBMJDK 1.4.2 on SLES Linux PPC When i start up our webapplication, everything is fine, i am getting current dates back when issuesing new Date() and log4j is also logging like expected. After some minutes new Date() retu

HTTP Status 404 - Servlet ControlServlet is not available

2005-10-26 Thread Nehal Sangoi
How can i resolve this error? I added manager context in server.xml first. Then deployed webapp using ant script. again, modified server.xml by inserting context for jdbc conn. and all. Restarted tomcat and apache. But this is not working. --

AW: jCIFS Jboss Tomcat IIS NTLM Authentication

2005-10-26 Thread Bernhard Slominski
A short follow up question here which is not Tomcat related: When you use request.getRemoteUser() to do your authentication it is very unsecure isn't it: You just can send your "bad" HTTP request which containts the administrator name as the remote user HTTP header field and your authenticated as

Re: How to measure queueing time: from tomcat recieving request to axis web service

2005-10-26 Thread Tim Funk
A Valve might be what you need - but you might need to hack the Connectors depending on how granular you need to be. A Valve is just like a servlet filter. -Tim Pim W. wrote: Hi, I want to measure the queueing time starting from when Tomcat recieve the request from a client until the reques

Tomcat Deployment Problem

2005-10-26 Thread Varley, Roger
Forget it! I've spoken to the developer, which with hindsight I should've done first, and this helpful error message is issued by the application itself when one of its initialisation parameters can't be found. Enlightenment has been delivered with the clue bat and all is now working Regards Ro

Tomcat Deployment Problem

2005-10-26 Thread Varley, Roger
Hi I have deployed a web-app that was developed under Tomcat 5.0.28 into our live environment which is running Tomcat 4.1.31. When I call the web-app from the browser I get a page that says "Internal Server Error" and that's it. There is no stacktrace data on the returned page, in any of the To

RE: jCIFS Jboss Tomcat IIS NTLM Authentication

2005-10-26 Thread Allistair Crossley
if you're using IIS in front of your application you don't need to use jCIFs. All you do is set the directory permissions on your website to Integrated Windows Authentication, then configure your Tomcat AJP Connector element with tomcatAuthentication="false". Then request.getRemoteUser() will re

Re: Tomcat User Permession

2005-10-26 Thread Mohammad Tag EL-Deen
the problem is: The intranet (website) contains many links to many folders, every folder has its own permission owner-group-other. i need to prevent the usr who havn't permission to access the folder( e.gftp) to access the link to this folder on the website. can i do this? On 10/26/05, David Delbe

Re: Tomcat User Permession

2005-10-26 Thread David Delbecq
Question is not clear, but i'll try to reply. All action attempted by any code inside the jvm running tomcat (that is operations done by JSP, servlet, realms, tomcat itself and any other java classes you may add to webapp) are done on behalf of the user which started tomcat. So if you start tomcat

Tomcat User Permession

2005-10-26 Thread Mohammad Tag EL-Deen
I'm using mandrake 10.1 as a server, and jakarta-tomcat-5.0.27. My intranet running on tomcat should be updated and should use the mandrake linux users permission for the folders while browsing. If the intranet is pure html can this happened also? -- Respectfully, Mohammad TAg EL-Deen 012 68 10 68

Re: Securing Manager Role

2005-10-26 Thread Charlie C.L. King
Hi, you can change it to a digested form, either in md5 or in sha1 or some others(see java.security.MessageDigest). but sha1 should be safer. here's the choir you have to do. 1. in your server.xml, add to its child element a new attribute named "digest" and with its value "SHA1"(whatever you want

RE: Securing Manager Role

2005-10-26 Thread Nehal Sangoi
Is there any way for associating unix user "manager" to tomcat's manager rols and have encrypted password? -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 26, 2005 2:14 AM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Securing Manager Role

Re: Again Please Help!!! SimpleTCPCluster, No session state received time out 60s during start up

2005-10-26 Thread Peter Rossbach
Hey, I think you must used a new Tomcat version. In last year I change a lot. Use tomcat 5.5.12 for your configuration and read the docs for configruation options: http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html My perferred mode for production is fastasyncqueue! Regards Peter mic

Re: JK.Log Rotation In Windows

2005-10-26 Thread Peter Rossbach
Following Config works for me :-) JkLogFile "|bin/rotatelogs.exe logs/mod_jk.%Y-%m-%d-%H_%M_%S.log 5M" Regards Peter Jon Chau schrieb: Hello, I cannot figure out a way to rotate my jklogfile. I tried searching the archives, but could not find an answer specific to windows, but I did find so