Reading a xml file from a simple java programein Tomcat 5.9.9 server

2006-10-11 Thread mridu
hello I am trying to read a file (xml file ) from a simple java programe which will be called in a jsp page .Now i am getting the error java.io.FileNotFoundException: The code for the java programe is like String fileName = /home/mpw/testdir/account.xml BufferedReader in = new

Re: org.apache.jk.common.ChannelSocket processConnection WARNING: processCallbacks status 2

2006-10-11 Thread Pascal Alberty
Same problem here. Any idea ? On 3/29/06, Sean O'Reilly [EMAIL PROTECTED] wrote: I hope someone can help me with this. I have been searching the archives for similar problems and have found a few but with no solutions. Running Fedora core 4, apache2.2 and tomcat5.5 jdk1.5 and am getting the

Tomcat 5 Realm

2006-10-11 Thread patrick . maron
Hi, I want to create my own Realm (for tomcat 5.5) with webservice call for authentication. I have develop a class to implement my own Realm. It works fine, but not the service call (axis api). Here we are the error log : 11 oct. 2006 11:07:00

Re: change server default enconding -Where to set JAVA_OPTS in catalina.sh for UTF8?

2006-10-11 Thread David Delbecq
Hi mark, not at all 1) there are 20 results for Djavax.servlet.request.encoding in google ^^ (but am really not sure this parameter really exists in tomcat) 2) URIEncoding=UTF-8 set the encoding used for html link, the default is platform dependent. I suppose the Zis wanted to set the default

cluste failure to initiate

2006-10-11 Thread Assaf Flatto
Hello List i just upgraded my tomcat to 5.5.17 mdk , since we wanted to test the replication mechanism of the tomcat 5.5 . after i added the Cluster definitions in the server.xml i get the following error : 3543 [main] ERROR org.apache.catalina.mbeans.ServerLifecycleListener - Exception

Re: change server default enconding -Where to set JAVA_OPTS in catalina.sh for UTF8?

2006-10-11 Thread Mark Thomas
David Delbecq wrote: Hi mark, not at all 1) there are 20 results for Djavax.servlet.request.encoding in google ^^ (but am really not sure this parameter really exists in tomcat) My bad. I kept the - in front which, of course, suppressed the results. The option isn't in the spec and isn't in

Re: org.apache.jk.common.ChannelSocket processConnection WARNING: processCallbacks status 2

2006-10-11 Thread Martin Gainty
Good Morning Sean- Error 2 is directory program or file not found Send us the whole stack dump so we can see the specific message on what is missing Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated

Re: catalina.out not rolling

2006-10-11 Thread David Smith
Catalina.out is the redirected standard output (Console output in log4j parlance) of tomcat. I don't think you can roll it in log4j. Best bet is to steer as much logging as possible away from catalina.out into a file logger you can roll. --David Rizwan Merchant wrote: Hi, We are trying

Problem with HttpSessionListener

2006-10-11 Thread Juanjo Cuadrado
Hi, I'm trying to create a listener in my application. I have created a listener class that implements HttpSessionLister and I have put the element listener in my web.xml. My listener class only sets a object in the session (getSession().getAttribute(k, kk)), but when I try to recover

RE: The value for the useBean class attribute... is invalid

2006-10-11 Thread Aynalem, Seblewengel (Trawick)
SessionBean is declared public and it has a public default constructor with no agrument... but still shows the value for the useBean class attribute ISOTracking.SessionBean is invalid error. What could be wrong? Any help or hint is highly appreciated. Thanks, Seble. -Original

Re: The value for the useBean class attribute... is invalid

2006-10-11 Thread David Smith
Well... the last thought I have is to check file permissions to be sure the tomcat service has read access to the class. Seems like if that was the case there would be some kind of exception in the logs when the webapp started though. The link I posted below actually came from near the top

Re: jvm thread dump

2006-10-11 Thread Christopher Schultz
Riz, I had to restart tomcat, but I am not sure if there was a simpler way to solve the problem at that time. There were threads that were waiting on loading user from db (for authentication), which explains why I couldnt login. They were waiting on loading the user data? Or, they were

Re: jvm thread dump

2006-10-11 Thread Christopher Schultz
Riz, We are using BasicDataSource from apache dbcp for pooling, and the methods to set the debug options you mentioned have been deprecated. Check out http://wiki.apache.org/jakarta-commons/DBCP#head-735f1d0347421ab736748d8c6ed547ab5050e450 They seem to indicate that (in spite of deprecating

Re: change server default enconding -Where to set JAVA_OPTS in catalina.sh for UTF8?

2006-10-11 Thread Java Development Team
I have used a sevlet filter and translte from ISO8859_1 to UTF8 just works through all application. 1) there are 20 results for Djavax.servlet.request.encoding in google ^^ (but am really not sure this parameter really exists in tomcat) My bad. I kept the - in front which, of course,

Re: Problem with HttpSessionListener

2006-10-11 Thread Martin Gainty
message was cutoff which object are you attempting to recover? Servlet? SessionListener? Session? SessionAttribute? also you will not set any object in Session thru getAttribute as this is an accessor method and not a mutator Martin -- This e-mail communication and any attachments may contain

Re: Problem with HttpSessionListener

2006-10-11 Thread Juanjo Cuadrado
I'm going to try to explain it better, if my English allows me. I have this classe: ... public class HttpTestListener implements HttpSessionListener { public void sessionCreated(HttpSessionEvent e){ e.getSession().setAttribute(test, new String(testValue); } ... In my web.xml I

RE: Classloader Question

2006-10-11 Thread Fran Varin
Larry, We tried the shared.loader suggestion and it seems to be working fine. Thanks very much for the suggestion. Fran Larry Isaacs wrote: Since you are using Tomcat 5, check out the shared.loader property specified in the catalina.properties file of your Tomcat instances. You could

Re: JDBC Pool exhaustion

2006-10-11 Thread Pascal Alberty
Check your code to unclosed connections (and statments) first ! On 10/11/06, DE VINZELLES, Guillaume (ext.) [EMAIL PROTECTED] wrote: Hello there, We are running a Tomcat 5.5.17 on a Sun Solaris system (SunFire V240) with a Sun JVM 1.5, and we are facing unavoidable JDBC pool exhaustions. We

RE: JDBC Pool exhaustion

2006-10-11 Thread DE VINZELLES, Guillaume \(ext.\)
We've checked it two weeks ago, but we got to be sure, so we are doing it again today (and tomorrow, I expect). Thanks for the advice. Guillaume de Vinzelles DSI/PFS Neuf Cegetel Altran Technologies [EMAIL PROTECTED] 01 70 18 21 64 -Message d'origine- De : [EMAIL PROTECTED]

Re: JDBC Pool exhaustion

2006-10-11 Thread Martin Gainty
Guillaume- Use Connection Pool an excellent tutorial available at http://www.webdevelopersjournal.com/columns/connection_pool.html config max connnections to suit your requirement M- This e-mail communication and any attachments may contain confidential and privileged information for the use of

Re: JDBC Pool exhaustion

2006-10-11 Thread Pascal Alberty
Stupid questions (sorry): - Are you sure that you are using the tomcat connection pool ? - have you dump (by logging or by a simple system.out.println) your connection objets to see if you are reusing the same or a new one ? Good luck On 10/11/06, DE VINZELLES, Guillaume (ext.) [EMAIL

Betr.: Re: Problem with HttpSessionListener

2006-10-11 Thread Roel De Nijs
Juan, what you also could do is, adjusting your code as follows: public void sessionCreated(HttpSessionEvent e){ System.out.println(sessionCreated - id = + e.getSession().getId()); e.getSession().setAttribute(test, new String(testValue)); } add this line

RE: JDBC Pool exhaustion

2006-10-11 Thread DE VINZELLES, Guillaume \(ext.\)
For Christopher and Alberty, here is an example of how we connect to the database. I'm quite sure we are using the JDBC pool. My next step is to try to log the Connection objects life, and I hope to find some memory leaks! I got to say that we were using the same application with a Tomcat 4 and

Re: JDBC Pool exhaustion

2006-10-11 Thread Mikolaj Rydzewski
DE VINZELLES, Guillaume (ext.) wrote: finally { try { if (result != null) { result.close(); result = null; } if (oCmd != null) { oCmd.close();

RE: JDBC Pool exhaustion

2006-10-11 Thread DE VINZELLES, Guillaume \(ext.\)
I will consider this option, thanks ! Guillaume de Vinzelles DSI/PFS Neuf Cegetel Altran Technologies [EMAIL PROTECTED] 01 70 18 21 64 -Message d'origine- De : Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Envoyé : mercredi 11 octobre 2006 16:46 À : Tomcat Users List Objet : Re: JDBC

Re: JDBC Pool exhaustion

2006-10-11 Thread Christopher Schultz
Guillaume, For Christopher and Alberty, here is an example of how we connect to the database. I'm quite sure we are using the JDBC pool. From your DataSource configuration, it looks like you are using the Oracle driver directly. Does that have built-in pooling? If not, it looks like you

Global Error Page Override

2006-10-11 Thread Darren
Hi, I am looking for a way to globally change the error pages on java.lang.Exception (stacktrace) and 404 because they contain information that is best kept secret on production servers. I realise you can do this on a per application basis with WEB-INF/ web.xml but I'm looking at this

Re: JDBC Pool exhaustion

2006-10-11 Thread Pascal Alberty
Seems to be good except: finally { try { if (result != null) { result.close(); result = null; } if (oCmd != null) { oCmd.close(); oCmd = null;

Re: JDBC Pool exhaustion

2006-10-11 Thread Davide Romanini
Il giorno mer, 11/10/2006 alle 16.02 +0200, DE VINZELLES, Guillaume (ext.) ha scritto: Hello there, We are running a Tomcat 5.5.17 on a Sun Solaris system (SunFire V240) with a Sun JVM 1.5, and we are facing unavoidable JDBC pool exhaustions. We are using an Oracle 9i database. Here is

Re: JDBC Pool exhaustion

2006-10-11 Thread Martin Gainty
If you have 1000 connections then you would be well advised to use connection pooling more specifically you need to separate the activities of settingup a connection from getting the connection you also need to separate the activities of freeing the connection from connection teardown

RE: JDBC Pool exhaustion

2006-10-11 Thread DE VINZELLES, Guillaume \(ext.\)
Wow, thanks for all those advices, we're going to clean up our code following your guidelines. I'll also check the Oracle driver capabilities. Hope it will fix our problem. Thanks again! Guillaume de Vinzelles DSI/PFS Neuf Cegetel Altran Technologies [EMAIL PROTECTED] 01 70 18 21 64

RE: The value for the useBean class attribute... is invalid

2006-10-11 Thread Aynalem, Seblewengel (Trawick)
I remebered originally my file structure was as follows: webapps\isotrackingtest isotrackingtest\isotracking isotrackingtest\META-INF isotrackingtest\WEB-INF isotrackingtest\index.jsp isotracking\isotracking isotracking\index.jsp isotracking\isotracking\*.jsp and *.html META-INF\context.xml

RE: JDBC Pool exhaustion

2006-10-11 Thread DE VINZELLES, Guillaume \(ext.\)
Thanks a lot all of you! I'll keep you posted. Guillaume de Vinzelles DSI/PFS Neuf Cegetel Altran Technologies [EMAIL PROTECTED] 01 70 18 21 64 -Message d'origine- De : Martin Gainty [mailto:[EMAIL PROTECTED] Envoyé : mercredi 11 octobre 2006 17:16 À : Tomcat Users List Objet : Re:

Re: JDBC Pool exhaustion

2006-10-11 Thread Richard DeGrande
Martin, Isn't dbcp connection pooling ?? I think I am missing something, I am not clear on why you are advocating a separate pooling mechanism. Can you elaborate on this a little ? thanks rick Martin Gainty [EMAIL PROTECTED] 10/11/2006 9:15 AM If you have 1000 connections then you would be

RE: The value for the useBean class attribute... is invalid

2006-10-11 Thread Caldarale, Charles R
From: Aynalem, Seblewengel (Trawick) [mailto:[EMAIL PROTECTED] Subject: RE: The value for the useBean class attribute... is invalid I don't think any of the following will resolve your immediate problem, but there are a couple of odd things in your app deployment and configuration.

Re: catalina.out not rolling

2006-10-11 Thread Rizwan Merchant
Thanks for the response. So how do I stop tomcat from logging to catalina.out and into a different file? Basically I want to send all tomcat output to a file that can roll on a daily basis. Any ideas or examples? Thanks, -Riz. David Smith wrote: Catalina.out is the redirected standard

Tomcat 5.5.17: context.xml-mysteries

2006-10-11 Thread Gregor Schneider
Hi list, a simple question, where I hope somebody could shed some light upon my head: I've specified [webapp]/META-INF/context.xml, where I defined the connection-pool and the datasource that should be used. However, when I'm using the old format of the element Resource, everything runs

Issue with specifying Session timeout value

2006-10-11 Thread Kim Albee
Hello -- I set the web.xml to specify a 45 minute time out... but sessions are still timing out at 30 minutes... We are using tomcat 5.0.30, and have tomcat clustering between two servers. The entry that I placed in the web.xml file is: web-app session-config

Jorge Rodriguez is out of the office.

2006-10-11 Thread Jorge Rodriguez
I will be out of the office starting 10/11/2006 and will not return until 10/16/2006. I can not check emails while away and will respond to your message when I return. **Confidentiality Notice** The information contained in this transmission contains confidential information. The

Re: Issue with specifying Session timeout value

2006-10-11 Thread Kim Albee
thanks! i think that was it. Kim :-) On 10/11/06, Gregor Schneider [EMAIL PROTECTED] wrote: Hi Kim, You can specify session-timeout either in the deplyment-descriptor of your web-app (web.xml) or in the web.xml of Tomcat itself, which is located at tomcat/conf/web.xml I bet my bottom penny

JspC precompilation dilemma

2006-10-11 Thread Karen Koch
I am using JspC to precompile a large number of JSPs (1000ish). I want to take advantage of the servlet-mapping generation/merge into web.xml that is available using the taskdef classname=org.apache.jasper.JspC name=jasper2 syntax; however, I have been unsuccessful in my efforts to fork a new JVM

RE: Tomcat 5.5.17: context.xml-mysteries

2006-10-11 Thread Richard Mixon
Gregor, I believe you've got it backwards. The correct syntax for Tomcat 5.5 is your working context.xml. See: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html -Original Message- From: Gregor Schneider [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006

Re: jvm thread dump

2006-10-11 Thread Christopher Schultz
Riz, here is the thread dump from when the app hung. Any insights? Well, a quick run-through of the thread dump suggests that your DBCP was definitely stalled for some reason. I counted about 70 idle threads, about 30 threads waiting on database connections, and maybe 15 doing other things

Tomcat using MS SQL2000 Named Instance

2006-10-11 Thread Dan Decker
I am trying to get Tomcat to connect to a MS SQL2000 Named instance rather than the default instance. Using the following it connects to the database TWO on the default server KEYSTONE with no problems. jdbc:sqlserver://KEYSTONE;databaseName=TWO When I try to access the MS SQL2000 named

JNI native libraries and Tomcat reloading web-apps

2006-10-11 Thread Eric Johanson
Hello, I have a question using native JNI shared objects within a servlet running under Tomcat 5.5. Our servlet code depends on some shared .dll files (for windows, and .so files for Linux). so we have classes that have code such as: public class Abc { public native static boolean

subdirectories of WEB-INF/lib

2006-10-11 Thread Micah Wedemeyer
Is it possible to place .jar files in subdirectories of WEB-INF/lib? I'd like to organize my .jar files a little because there are quite a few. I tried making a META-INF/MANIFEST.MF file and monkeying around with the classpath, but it didn't seem to work. Has this approach worked for anyone

Re: subdirectories of WEB-INF/lib

2006-10-11 Thread Wendy Smoak
On 10/11/06, Micah Wedemeyer [EMAIL PROTECTED] wrote: Is it possible to place .jar files in subdirectories of WEB-INF/lib? I'd like to organize my .jar files a little because there are quite a few. I tried making a META-INF/MANIFEST.MF file and monkeying around with the classpath, but it didn't

RE: subdirectories of WEB-INF/lib

2006-10-11 Thread Caldarale, Charles R
From: Micah Wedemeyer [mailto:[EMAIL PROTECTED] Subject: subdirectories of WEB-INF/lib Is it possible to place .jar files in subdirectories of WEB-INF/lib? Yes. Honestly, I have searched for this information quite a bit and found nothing. You could try looking at the spec - it's all

RE: subdirectories of WEB-INF/lib

2006-10-11 Thread Caldarale, Charles R
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Subject: RE: subdirectories of WEB-INF/lib Is it possible to place .jar files in subdirectories of WEB-INF/lib? Yes. Sorry, that's an incomplete answer. Any jars not directly in WEB-INF/lib would have to be handled by a custom