Re: jsp:useBean problem (bug?) with Jasper

2004-09-13 Thread Michiel Toneman
Just replying to myself here, upgrading to 5.0.28 solved the problem. If anyone else is having this problem with 5.0.25, please note that the jasper that comes with that release is 'borken'. Sing with me: happy, happy, happy, joy, joy, joy Michiel Michiel Toneman wrote: We are using an ant

Accessing the user name

2004-09-13 Thread David . Pawson
Having logged in using form based login via a servlet How, on another page, can I access the users name? I can't see a way to pass either pass on the username to other servlets or to retrieve it from a subsequently called servlet? tc 5.0.27, win2k, mySQL for password checking. Regards DaveP.

RE: Accessing the user name

2004-09-13 Thread Aris Javier
have you tried putting it in session? session.setAttribute(username,xxx); just a thought.. aris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 13, 2004 5:33 PM To: [EMAIL PROTECTED] Subject: Accessing the user name Having logged in using

RE: Accessing the user name

2004-09-13 Thread David . Pawson
have you tried putting it in session? session.setAttribute(username,xxx); I hadn't. I will now. Then use HttpSession.getAttribute('username'). Sounds about right. I'll investigate. Thanks. DaveP -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is

Detecting The Stop Button

2004-09-13 Thread Les Parkin
Hi, I am working on an application that allows users to run database queries from a web browser (we are currently using Tomcat 5.0.25). A problem arises when a user starts a new query and then decides that they want to cancel it by hitting the browser stop button. After a lot of reading on

Re: Detecting The Stop Button

2004-09-13 Thread Thomas Kellerer
On 13.09.2004 11:51 Les Parkin wrote: Hi, I am working on an application that allows users to run database queries from a web browser (we are currently using Tomcat 5.0.25). A problem arises when a user starts a new query and then decides that they want to cancel it by hitting the browser

Re: Detecting The Stop Button

2004-09-13 Thread Andoni List
This is certainly not an easy thing to do, you could try to use JavaScript to continuously generate requests to the server every 5 seconds until the results are ready and then they are returned instead of the waiting screen. Then you would have to tell the servlet to expect requests every 5 (maybe

RE: Detecting The Stop Button

2004-09-13 Thread Varley, Roger
If your application is for internal use *and* you have control over your client configuration you may want to investigate placing an invisible applet on your page that talks to your pinger program. Regards Roger __ This

TC 5.5.1 and Cactus?

2004-09-13 Thread Michael Schuerig
Has anyone managed to get Cactus to work with Tomcat 5.5.1 on JDK 1.5RC? I always get stuck with java.lang.ClassFormatError: Invalid index 0 in LocalVariableTable in class file org/apache/cactus/util/log/LogAspect LogAspect is indeed an aspect compiled by AspectJ, which doesn't support JDK

RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic TomcatConnectionPooling Questions????

2004-09-13 Thread Shapira, Yoav
Hi, That's a pretty good solution, yeah. The include you refer to can be done in several nice OO ways, such as a common parent class or a singleton utility. Yoav Shapira Millennium Research Informatics -Original Message- From: Luke (Terry) Vanderfluit [mailto:[EMAIL PROTECTED] Sent:

RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat ConnectionPooling Questions????

2004-09-13 Thread Shapira, Yoav
Hi, It's inefficient to do the DataSource lookup (an expensive operation) every time you need a connection. See Luke's approach in the other message with a similar subject. And please don't put my name in subject lines -- there are a ton of other people here who can give great advice on this

RE: Issue Running Current Forrest Dev under Tomcat 5

2004-09-13 Thread Shapira, Yoav
Hi, The reason I ask is because of the commons-logging CNFEs. If commons-logging can't load or initialize itself, Tomcat will basically not start. Yoav Shapira Millennium Research Informatics -Original Message- From: Hare, Michael [mailto:[EMAIL PROTECTED] Sent: Friday, September 10,

RE: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory --help. using Tomcat4.1

2004-09-13 Thread Shapira, Yoav
Hi, Well, then don't do it -- I guess your Tomcat version is before the change in DBCP configuration parameter names. Yoav Shapira Millennium Research Informatics -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 2:06 PM To: Tomcat

RE: TC 5.5.1 and Cactus?

2004-09-13 Thread Shapira, Yoav
Hi, It's possible to use Cactus with Tomcat 4.x and 5.0.x. I haven't tried 5.5 with Cactus yet. If I were you, I'd try to make Cactus and Tomcat 5.5 work together first, without any aspects, and then add those later if you want. Yoav Shapira Millennium Research Informatics -Original

RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat ConnectionPooling Questions????

2004-09-13 Thread Allistair Crossley
definately wasteful. try changing your DBConnection object (which should be called DBConnectionFactory) and maintaining DataSource as a class member. Then in yuor constructor for DBConnectionFactory acquire the datasource from JNDI. Ensure you add a finalize() method to nullify your datasource

How to implement Custom webapp classloader?

2004-09-13 Thread G Q
Hi, The scenario I have is as follows: The application jar file is located on a remote server. When tomcat starts up, I would like to make a URL connection to the remote server and download the latest jar file and use that instead of actually placing the jar file in the WEB-INF/lib/ directory.

xalan's Transformer performance in Tomcat

2004-09-13 Thread Michal Sg
Hi, I use Tomcat 4.0.3 on win2k. I have the following code: - Transformer transformer = TransformerFactory.newInstance().newTemplates(new StreamSource(xslFileName)).newTransformer(); StreamResult strResult = new StreamResult(new FileOutputStream(outHtmlFileName));

RE: xalan's Transformer performance in Tomcat

2004-09-13 Thread Shapira, Yoav
Hi, Are you timing just the transform call or all four calls (the transformer creation, stream result creation, setSystemId, and transform)? Where did you put the Xalan 2.6.0 jar in Tomcat? If you're just timing the transform call, I'm not sure I buy your benchmark. BTW, you're using an

Tomcat 4 intergration into iis 5

2004-09-13 Thread M. Dziuba
Hello! I've installed the IIS v.5 and the Apache Tomcat 4.1.27. Now I want to redirect request coming from port 80 (iis) to port 8080 (tomcat). In the docu of tomcat 3 the integration of Tomcat in the IIS Web Server is described

RE: xalan's Transformer performance in Tomcat

2004-09-13 Thread Shapira, Yoav
Hi, Weird. Unless your transformation requires a lot of classloader trickery and/or privileged security actions (if you're running with a security manager), I don't know why you'd get a 5x difference between a command-line transformation and one in Tomcat. Can you post the code you use to

Re: xalan's Transformer performance in Tomcat

2004-09-13 Thread Peter Lin
out of curiousity, how many times did you run the test? doing transaform inside Tomcat will be slow the first couple of times. what I've done in the past is run it for a couple hundred times, then take the measurement for real. peter On Mon, 13 Sep 2004 07:02:06 -0700 (PDT), Michal Sg [EMAIL

Re: TC 5.5.1 and Cactus?

2004-09-13 Thread Michael Schuerig
On Monday 13 September 2004 15:11, Shapira, Yoav wrote: It's possible to use Cactus with Tomcat 4.x and 5.0.x. I haven't tried 5.5 with Cactus yet. If I were you, I'd try to make Cactus and Tomcat 5.5 work together first, without any aspects, and then add those later if you want. I do get

RELEASE-NOTES

2004-09-13 Thread Ben Souther
Thanks, You took the words right out of my mouth. revision 1.24 date: 2004/09/09 16:56:59; author: yoavs; state: Exp; lines: +1 -15 Took out stale and irrelevant section (for Tomcat 5.5, still relevant for 5.0 and prior releases) about javac leaking memory.

RE: RELEASE-NOTES

2004-09-13 Thread Shapira, Yoav
Hi, Given that I did that right after reading your mailing list message, that's not much of a coincidence ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Monday, September 13, 2004 10:43 AM To: Tomcat Users List

Help setting up a default web application

2004-09-13 Thread Pete
Hi All, I was hoping that someone would be able to explain that when I set a Context in the server.xml: Context path= docBase=mygui debug=0 reloadable=false crossContext=false/ that tomcat appears to load mygui two instances of mygui. Basically all I need is that when a user type in

Re: Help setting up a default web application

2004-09-13 Thread Ben Souther
If you're manually configuring server.xml, shut off autodeploy in the Host node. On Mon, 2004-09-13 at 10:50, Pete wrote: Hi All, I was hoping that someone would be able to explain that when I set a Context in the server.xml: Context path= docBase=mygui debug=0 reloadable=false

Problem with directory index listings

2004-09-13 Thread Diego, Emil
I am running Tomcat 4.1.27 with Apache 2.0.49 on Fedora Core 2. Here is what I have soo far. I setup a directory to run my JSP site. The directory is in /var/www/html/dev_new. I created a context called /dev_new to run this JSP site and I setup the connector between tomcat and apache and the

RE: Help setting up a default web application

2004-09-13 Thread Pete
Hi There, Tomcat now delays loading the second instance of the web application until type in the URL. Is there anything else I am missing ? The problem I have is that I create a server socket in my application, the second instance causes a problem because I get a Bind Exception. Thanks

Tomcat Problems

2004-09-13 Thread Thomas E. Dukes
Hello, I am running Fedora Core 2 with the stock version of tomcat, 4.1.27-13. I know this is not the latest version but I thought I'd start with what comes with this distribution. I have followed the howto at jakarta.apache.org. First, if I go to http://localhost/examples, I can see the

RE: Help setting up a default web application

2004-09-13 Thread Ben Souther
In your Host ... node, do you have autoDeploy set to false? In your Context.. node do you have path set to /? On Mon, 2004-09-13 at 11:04, Pete wrote: Hi There, Tomcat now delays loading the second instance of the web application until type in the URL. Is there anything else I

RE: Problem with directory index listings

2004-09-13 Thread Benjamin Armintor
Sounds like a problem with your Apache-Tomcat connector. Are you using mod_jk? Can you post the Tomcat-related parts of your Apache configuration? Benjamin J. Armintor Operations Systems Specialist ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL

RE: Help setting up a default web application

2004-09-13 Thread Shapira, Yoav
Hi, Context path=/ is a no-no. Use path= for the default web application, and path=/something for others, but not / by itself. The name(s) of the relevant Host attribute(s) you need to turn off in order to disable automatic web application deployment might be different depending on your Tomcat

Re: Tomcat Problems

2004-09-13 Thread RJ
One thing that I've noticed with some installs of Fedora is that out of the box the iptables firewall gets setup in a weird way that rejects a lot of connections (even if it's supposedly allowing the ports you want to go thru). Flushing the rules it creates, and putting the ones in that I want

RE: Help setting up a default web application

2004-09-13 Thread Pete
Hi Yoav, I have tried Context path= ... / and this still causes my web application to be deployed twice. I have checked the documentation for Tomcat 4.1 and it appears to be autoDeploy that is used which I have set to false. Is this a bug or am I just being a bit thick (which is most

RE: Help setting up a default web application

2004-09-13 Thread Shapira, Yoav
Hi, I doubt it's a bug in Tomcat. This worked well for me for a long time in Tomcat 4.1 and still works well in 5.x, although as I mentioned the Host attribute names changed between 4.1 and 5.x. Are you sure you're getting a clean startup and shutdown? I saw earlier in this thread you were

Problems with Tomcat Configuration

2004-09-13 Thread Diego, Emil
I am running Tomcat 4.1.27 with Apache 2.0.49 on Fedora Core 2. Here is what I have soo far. I setup a directory to run my JSP site. The directory is in /var/www/html/dev_new. I created a context called /dev_new to run this JSP site and I setup the connector between tomcat and apache and

RE: Tomcat Problems

2004-09-13 Thread Thomas E. Dukes
-Original Message- From: RJ [mailto:[EMAIL PROTECTED] Sent: Monday, September 13, 2004 12:07 PM To: Tomcat Users List Subject: Re: Tomcat Problems One thing that I've noticed with some installs of Fedora is that out of the box the iptables firewall gets setup in a weird way

Please help: Apache direct Servlet to Tomcat

2004-09-13 Thread Daxin Zuo
My Apache 2.0.49 Tomcat 5.0.19, windows 2000. I have a difficult in running servlet from Apache. For example I have a servlet TestServlet.class (package: myServlet) in C:\Program Files\Apache Group\Apache2\tomcat\webapps\ROOT\WEB-INF\classes\myServlet\ I register this servlet in

Re: Please help: Apache direct Servlet to Tomcat

2004-09-13 Thread Kelly Denehy
On Mon, 13 Sep 2004 11:21:55 -0700, Daxin Zuo [EMAIL PROTECTED] wrote: [snip] For example I have a servlet TestServlet.class (package: myServlet) in [snip] servlet servlet-nameTestServlet/servlet-name servlet-classTestServlet/servlet-class /servlet I might be wrong, but

RE: Tomcat-Apache and SSL- Re-Post

2004-09-13 Thread Wade Billings
The AJP port is 8009 (stock), but the issue lies where our application takes the port (80/8000) and determines whether or not the page is suppose to be secure (https). Since the load balancer does all of the SSL for us, everything is passed to the web/app server as http, and it appears that tomcat

Re: Please help: Apache direct Servlet to Tomcat

2004-09-13 Thread Kelly Denehy
On Mon, 13 Sep 2004 14:57:31 -0400, Kelly Denehy [EMAIL PROTECTED] wrote: On Mon, 13 Sep 2004 11:21:55 -0700, Daxin Zuo [EMAIL PROTECTED] wrote: [snip] For example I have a servlet TestServlet.class (package: myServlet) in [snip] servlet servlet-nameTestServlet/servlet-name

Re: Problems with Tomcat Configuration

2004-09-13 Thread Sjoerd van Leent
Diego, Emil wrote: I am running Tomcat 4.1.27 with Apache 2.0.49 on Fedora Core 2. Here is what I have soo far. I setup a directory to run my JSP site. The directory is in /var/www/html/dev_new. I created a context called /dev_new to run this JSP site and I setup the connector between tomcat

RE: Problems with Tomcat Configuration

2004-09-13 Thread Diego, Emil
Yes. I setup a content for everything in my /var/www/html/dev_new directory. But it seems that Tomcat is handling requests outside that context. I don't know why. Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -Original Message- From: Sjoerd

RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat ConnectionPooling Questions????

2004-09-13 Thread Caroline Jen
I saw your Tomcat connection pool class. Your class opens and gets a 'conn' object from the connection pool. Where in your code returns the 'conn' object for use? Should there be a statemenet like: return conn; somewhere? 1. Declaration of private global variables: code private

tomcat manager application problems

2004-09-13 Thread Noah Davis
I recently deployed the manager app for Tomcat/5.0.18 with the hope that I could use it to deploy apps without taking down all the other applications running on the server. However, I've had nothing but problems with the tomcat manager. I've been using mostly the HTML version. Some problems have

RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat ConnectionPooling Questions????

2004-09-13 Thread Dale, Matt
In a connection pooling implementation the close method of connection is overriddent to return it to the connection pool. So it would be conn.close(); -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: 13 September 2004 21:38 To: Tomcat Users List; [EMAIL

RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat ConnectionPooling Questions????

2004-09-13 Thread Luke (Terry) Vanderfluit
Hi, You are right! that statement should be there! kind regards, Luke On Tue, 2004-09-14 at 06:08, Caroline Jen wrote: I saw your Tomcat connection pool class. Your class opens and gets a 'conn' object from the connection pool. Where in your code returns the 'conn' object for use?

RE: [OFF-TOPIC]Yoav -- RE: Some pretty basic Tomcat ConnectionPooling Questions????

2004-09-13 Thread Luke (Terry) Vanderfluit
Hi, Caroline is referring to my 'openConnection()' method which is missing a 'return' statement. see below regards, Luke Your class opens and gets a 'conn' object from the connection pool. Where in your code returns the 'conn' object for use? Should there be a statemenet like:

RE: [OFF-TOPIC] Some pretty basic TomcatConnectionPooling Questions????

2004-09-13 Thread Caldarale, Charles R
From: Luke (Terry) Vanderfluit [mailto:[EMAIL PROTECTED] Subject: RE: [OFF-TOPIC] Some pretty basic TomcatConnectionPooling Questions Caroline is referring to my 'openConnection()' method which is missing a 'return' statement. Then you'll also need to change the return type on the

RE: [OFF-TOPIC]RE: Some pretty basic Tomcat ConnectionPooling Questions????

2004-09-13 Thread Luke (Terry) Vanderfluit
Hi, further to this thread I have now implemented the database connection as follows: ~~~ To get a database connection via an external class see below the code that does this: 1. the init() method that gets the DataSource from an external connection. 2. a method that

RE: [OFF-TOPIC] Some pretty basic TomcatConnectionPooling Questions????

2004-09-13 Thread Luke (Terry) Vanderfluit
Hi Chuck, you are right! however this is now too redundant to go in to. See my next post on this topic for a further evolution of this database connection subject matter. regards, Luke On Tue, 2004-09-14 at 11:44, Caldarale, Charles R wrote: From: Luke (Terry) Vanderfluit [mailto:[EMAIL

RE: [OFF-TOPIC] Some pretty basic Tomcat ConnectionPoolingQuestions????

2004-09-13 Thread Caldarale, Charles R
From: Luke (Terry) Vanderfluit [mailto:[EMAIL PROTECTED] Subject: RE: [OFF-TOPIC] Some pretty basic Tomcat ConnectionPoolingQuestions 1. We should rename the DBConnection class to DBConnectionFactory. I have often wondered what a factory is in this sense, could you elaborate?

can't start Apache when mod_jk2 is enabled on AIX

2004-09-13 Thread Arnold Wang
I'm running Apache 2.0.50 on AIX 5.2 machine. I just had mod_jk2 compiled and installed. However, when I have mod_jk2 enabled, the Apache won't start. It failed with ./apachectl [79]: 246008 Memory fault (coredump) error. The Tomcat is installed on a different machine. Please help and thanks in

RE: Problems with Tomcat Configuration

2004-09-13 Thread Milt Epstein
On Mon, 13 Sep 2004, Diego, Emil wrote: Yes. I setup a content for everything in my /var/www/html/dev_new directory. But it seems that Tomcat is handling requests outside that context. I don't know why. Someone asked you to post your apache/tomcat config (e.g., mod_jk/mod_jk2, whichever

porting to tomcat 5

2004-09-13 Thread Justin Kennedy
Hi, The following JSP/Tag snippet used to work on the 2.2 spec for Resin and I believe Tomcat as well. Note: the storeValue tag creates a new string variable for the id attribute from the sql result set specified in transactId and column: % if

HSBC BANK A.S.

2004-09-13 Thread Information
Degerli Musterimiz, Bu E-Posta adresine gonderilen mesajlar Bankamiz ilgili birimlerine ulasmamaktadir. Bu nedenle, tum memnuniyet, oneri ve sikayetlerinizi en kisa surede cevaplayabilmemiz icin asagdaki kanallardan birini tercih ederek iletmenizi rica ederiz. Saygilarimizla HSBC Bank A.S.

HSBC BANK A.S.

2004-09-13 Thread Information
Degerli Musterimiz, Bu E-Posta adresine gonderilen mesajlar Bankamiz ilgili birimlerine ulasmamaktadir. Bu nedenle, tum memnuniyet, oneri ve sikayetlerinizi en kisa surede cevaplayabilmemiz icin asagdaki kanallardan birini tercih ederek iletmenizi rica ederiz. Saygilarimizla HSBC Bank A.S.

CoyoteConnector Tomcat 5.5.1 Embedded

2004-09-13 Thread Ben Dischinger
I've been trying for the past couple days to embed Tomcat 5.5.1 into a java application and unfortunately I have been unable to successfully do so. I have read many emails and replies to this list and also read the few tutorials online that exist. It seems as though all of these resourses