Count Number of Users Logged in

2003-10-21 Thread N.B.Bopanna
Hi All, I have a web application running. I want to find the number of users currently logged in. How do i do this? I have a session value(userid) for all the users. Is there a way to count them? Bopanna - To unsubscribe, e-mai

RE: tomcat jitters, then hangs - please help

2003-10-21 Thread Francois JEANMOUGIN
> I believe that I am having the same problem with IBMJava, Be careful that, according to IBM documentation, 1.4.0 and 1.4.1 do NOT handle the libpthread so-called optimizations the same way. Please give your version of the Jvm, thanks. François.

LDAP and org.apache.tomcat.request.SecurityCheck class (Professional JSP)

2003-10-21 Thread Michiel Bakker
Hi there, I'm trying some examples in the book Professional JSP from Wrox. In latter version of Tomcat (I'm using 4.1.12) several classes or packages are not available anymore. I downloaded version 3.3.1a and there the class org.apache.tomcat.request.SecurityCheck is missing. The whole "org.apache

Error Page Configuration

2003-10-21 Thread N.B.Bopanna
Hi all, Is there a way to configure an error page for the full application using the deployment descriptor? Thanks Bopanna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Multiple virtual hosts at root context

2003-10-21 Thread Andy Hutchinson
I am using Tomcat 4.1.27 under Linux for a project where the machine is embedded into a pumping machine, i.e. limited memory and resources. The 'services' are all identified by sub domains so that you would get a master domain of the pump site, a sub domain for each pump unit and a further subd

RE: tomcat jitters, then hangs - please help

2003-10-21 Thread Euan Guttridge
Excellent news Noam.. Our testing (LD_ASSUME_KERNEL=2.4.1) is in progress but too early to confirm anything. Another option is to stick with the NTPL, using an updated glibc. Check out RH errata ; "A bug in pthread_cond_wait() which could cause programs hangs in some cases" https://rhn.redhat.com

jk2 connector with apache 1.3 ?

2003-10-21 Thread Javier Sanchez Monzon
Hi there, i have only one question, do you know if the jk2 connector can also be connected with apache 1.3 ? regards, tino - This mail sent through IMP: http://horde.org/imp/ --

Re: tomcat jitters, then hangs - please help

2003-10-21 Thread Noam Camiel
Very interesting bug report I will currently stick with my current configuration, but if this confirms to solve the prolem, it could explain some oddities Remy wondered upon Cheers, Noam - Original Message - From: "Euan Guttridge" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EM

Bug: RequestDumperValve - Tomcat 4.0.4 - UTF-8

2003-10-21 Thread Andoni
Hello, I have recently started using the RequestDumperValve with my Tomcat 4.0.4 for windows. Now when I go to write applications that accept foreign character sets in UTF-8 I find that they come out as rubbish because they have been translated into ISO-8859-1. When I add a URLDecoder.decode();

Re: Where is org.apache.tomcat.util.log.* for Tomcat 4.1.27?

2003-10-21 Thread Tim Funk
jakarata-tomcat-connectors -Tim Ted Weatherly wrote: I get this compile-time error: /tmp/jakarta-tomcat/src/catalina/src/share/org/apache/catalina/core/ApplicationFilterConfig.java:79: package org.apache.tomcat.util.log does not exist import org.apache.tomcat.util.log.SystemLogHandler;

Re: JSP pages and interfaces

2003-10-21 Thread Tim Funk
A JSP page ultimately becomes a java file (then a class). The spec dictates the java file must somehow implement JspPage. The JSP engine has the job to create a class which implements JspPage. But you may also choose to have your JSP page inherit from another class for some reason as long as the

Re: Error Page Configuration

2003-10-21 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#error N.B.Bopanna wrote: Hi all, Is there a way to configure an error page for the full application using the deployment descriptor? Thanks Bopanna - To unsubscribe, e-mail: [EM

Fwd: Multiple virtual hosts at root context

2003-10-21 Thread Andy Hutchinson
Oops. In the panic of thinking it wasn't possible I somehow proved to myself that it wasn't possible |-( I inadvertently loaded all the contexts for all the hosts into all the hosts. I think the previous post is what used to be known as a structured walk through. So thanks for that all the same

WebDAV servlet configuration problem

2003-10-21 Thread Andreas F. Wehowsky
Hi there, I am using the WebDAV servlet in Tomcat 4.1.24 and have a problem with the configuration. I only want files and folders at a specified subfolder "workset" and all its subfolders of the web-app dir to be WebDAV-enabled. I have used the WebDAV configuration from tomcat-x/webapps/webdav/WEB

RE: Count Number of Users Logged in

2003-10-21 Thread Shapira, Yoav
Howdy, You could use the tomcat manager webapp (read its page). Or you could write your own session listener which will keep a count of sessions. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: N.B.Bopanna [mailto:[EMAIL PROTECTED] >Sent: Tuesday, October 21, 2003 2:

application eats up memory

2003-10-21 Thread Bill Tantzen
Hi All! I'm having a problem with a particular application that grows and grows in size until the jvm runs out of memory, and tomcat shuts down. I am on a box with 1GB of memory and 350MB+ of swap. I have tried various settings in my catalina.sh, which just seem to make the app crash even qu

RE: application eats up memory

2003-10-21 Thread Angus Mezick
Completely turn off all auto-reload features of tomcat. That helped me. > -Original Message- > From: Bill Tantzen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 21, 2003 9:01 AM > To: Tomcat Users List > Subject: application eats up memory > > > Hi All! > > I'm having a problem wi

RE: application eats up memory

2003-10-21 Thread Shapira, Yoav
Howdy, >I'm having a problem with a particular application that grows and grows >in size until the jvm runs out of memory, and tomcat shuts down. I am >on a box with 1GB of memory and 350MB+ of swap. I have tried various >settings in my catalina.sh, which just seem to make the app crash even >q

Re: application eats up memory

2003-10-21 Thread Bill Tantzen
On Tuesday, October 21, 2003, at 08:05 AM, Shapira, Yoav wrote: Howdy, I'm having a problem with a particular application that grows and grows in size until the jvm runs out of memory, and tomcat shuts down. I am on a box with 1GB of memory and 350MB+ of swap. I have tried various settings in

RE: application eats up memory

2003-10-21 Thread Shapira, Yoav
Howdy, >Any recommendations here? They are a little pricy, and I would want to >make sure I'm getting bang for my $$ I like OptimizeIt, found it WELL worth its price. I think every developer should have a profiler, be comfortable using it. >various combinations (and numbers) of the following

RES: application eats up memory

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Could you separate and send us the suspected code? Euclides. -Mensagem original- De: Bill Tantzen [mailto:[EMAIL PROTECTED] Enviada em: terca-feira, 21 de outubro de 2003 10:01 Para: Tomcat Users List Assunto: application eats up memory Hi All! I'm having a problem with a particular app

RE: application eats up memory

2003-10-21 Thread Wade Chandler
The Oracle Parsers can't handle certain schemas and things either. I've had them crash and die. I had to even setup an Oracle 9i Server to use Xerces because the 9i server could not handle some valid schemas I was parsing. Wade -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTE

RE: application eats up memory

2003-10-21 Thread Wade Chandler
I've also had strange results when using -server with the VM with different applications. Also, you say you have an application which eats up memory? Is the application loading when Tomcat starts? Is your application loading tomcat? How is your application loaded? Is it a JSP application using

RE: Count Number of Users Logged in

2003-10-21 Thread Sam Taylor
I've thought about doing a session listener for just this purpose... is there much of an overhead expense associated with this? I know that this is all going to be relative to the overall system load/number of users/etc... but generally speaking, is writing a session listener considered a "good" t

Profiler (was: RE: application eats up memory)

2003-10-21 Thread Cox, Charlie
Has anyone tried this new Eclipse plugin for profiling? http://eclipsecolorer.sourceforge.net/index_profiler.html I realize that it is still beta, but I was wondering how good it is. Charlie > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 21,

RE: application eats up memory

2003-10-21 Thread Bill Tantzen
--> I've also had strange results when using -server with the VM with I will avoid this one. --> different applications. Also, you say you have an application which --> eats up memory? Is the application loading when Tomcat --> starts? Is your It loads with tomcat. --> application loading t

RE: Profiler (was: RE: application eats up memory)

2003-10-21 Thread Prabhat Kumar (IT)
has anyone used this -- http://www.khelekore.org/jmp/ ? -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 9:53 AM To: 'Tomcat Users List' Subject: Profiler (was: RE: application eats up memory) Has anyone tried this new Eclipse plugin for pr

RE: Count Number of Users Logged in

2003-10-21 Thread Shapira, Yoav
Howdy, It's very low overhead unless you really go out of your way to do something dumb in your listener. As long as you make sure to properly dereference sessions when they're destroyed, i.e. don't just listen for their creation, you don't need to worry about performance impact. Yoav Shapira Mi

Re: Can i use the same code in linux---sat

2003-10-21 Thread Daniel Gibby
You may want to change some settings because of that, but mostly just the paths to directories will be different to where things are located. Linux paths instead of Windows paths. Daniel kgsat wrote: Hi Gibby, Thanks for your response.Does the configuration mean that there are changes in web.

Re: Multiple virtual hosts at root context

2003-10-21 Thread Daniel Gibby
You can have virtual hosts in tomcat. We are doing it, but I will need to look up the server.xml configuration: etc... etc... etc... etc... etc... It works fine for us. Daniel Gibby Andy Hutchinson wrote: I am using Tomcat 4.1.27 under Lin

Re: Bug: RequestDumperValve - Tomcat 4.0.4 - UTF-8

2003-10-21 Thread Daniel Gibby
It may also be that your environment is set with a LANG or LOCALE that is throwing java off. You may want to look into that. Daniel Gibby Andoni wrote: Hello, I have recently started using the RequestDumperValve with my Tomcat 4.0.4 for windows. Now when I go to write applications that accept

encrypting a form's action URL with HTTPS link

2003-10-21 Thread Adam Hardy
Hi All, I am trying to work out whether my form submission is sent encrypted in SSL or not. If I code my form like this: https://localhost:8443/sslform";> will it actually be encrypted? When I click submit, the browser pops up a certificate dialog box (since I'm not using verisign) and the

Windows service crashing

2003-10-21 Thread Ian Hunter
For some reason, a couple times a day, the "Apache Tomcat 4.1" service crashes under Windows 2000 with no message at all. We have [EMAIL PROTECTED] configured to restart after 1 minutes, but I'd still like to know why this happens. Seems to only happen on our production box, not our test server.

RE: Windows service crashing

2003-10-21 Thread Robert Priest
What is being written to the log file? -Original Message- From: Ian Hunter [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:49 AM To: [EMAIL PROTECTED] Subject: Windows service crashing For some reason, a couple times a day, the "Apache Tomcat 4.1" service crashes under Windo

Access Tomcat-declared Resource from outside Tomcat

2003-10-21 Thread Ian Hunter
I've got a database resource declared as part of Tomcat's resource pool (JNDI?) -- I need a standalone Java app to access it. How do I declare such a thing in a standalone app? I realize this is slightly off topic but I figured someone else out there might try to do the same thing. Literally, wh

Re: Windows service crashing

2003-10-21 Thread Ian Hunter
Absolutely nothing -- you only see the new instance starting. That's the odd thing about it. The only evidence whatsoever that it went down is in the Windows Event Viewer -- it says "The Apache Tomcat 4.1 service terminated unexpectedly. It has done this 1 time(so). The following corrective act

RE: Access Tomcat-declared Resource from outside Tomcat

2003-10-21 Thread Shapira, Yoav
Howdy, Currently tomcat doesn't have an external JNDI provider, so you can't really do what you're looking for. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Ian Hunter [mailto:[EMAIL PROTECTED] >Sent: Tuesday, October 21, 2003 10:50 AM >To: [EMAIL PROTECTED] >Subje

RE: application eats up memory

2003-10-21 Thread Nikolaos Giannopoulos
Bill, Java 1.4.0 has a known StringBuffer memory leak. Java 1.4.0 + XML parsing will "eat" memory because of heavy string manipulation done in XML parsing (in conjunction with this memory leak of course). I would recommend that you at least use 1.4.2 (as we have found other stability issues with

Restrict Coyote/JK2 AJP 1.3 connector to local loopback interface

2003-10-21 Thread Sascha Hess
Hi there! I couldn't figure out how to restrict Coyote/JK2 AJP 1.3 connector to the local loopback interface. Actually, I would expect the default settings in workers.properties (worker.ajp13.host=localhost) to only bind to the local loopback device, but a netstat -an indicates: Proto Recv-Q Send-

Re: Access Tomcat-declared Resource from outside Tomcat

2003-10-21 Thread Ian Hunter
I don't follow you -- shouldn't I be able to create an instance of a naming context and populate it from within my App, then refer back to it? For this app, I don't mind hard coding the parameters, it's just that I have a class called DataStore that contains all the access points to the persistenc

ResulSet Question

2003-10-21 Thread salvador . bravo
All, I have the following code rsSN = statement.executeQuery(Query); while (rsSN.next()){ if (Frame.equals("E")){ rsFrame = statement.executeQuery(QueryFrameE); if (rsFrame.next()){ js.append(""+ rsFrame.getString("ATTRIBUTE_VALUE") +""); } } else{

JSP question

2003-10-21 Thread epyonne
Hello All, I am pulling my hair on this problem, and since there are many Java experts on this mailing list, I hope someone can help me on this. I have a simple servlet that calls a JSP page where the user can enter a search value. When the user clicks on the submit button, the search value will

RE: Access Tomcat-declared Resource from outside Tomcat

2003-10-21 Thread Shapira, Yoav
Howdy, >I don't follow you -- shouldn't I be able to create an instance of a naming >context and populate it from within my App, then refer back to it? For No. You need a JNDI provider to do this. There is a lot going on in the background when you create naming context and bind into them. >

RE: JSP question

2003-10-21 Thread Matt Raible
A better solution for what you're doing is to leave the button as type="submit" and remove its onclick event. Instead, add an "onsubmit" handler to form that calls "return validateForm()" - return false in your function when validation fails. HTH, Matt -Original Message- From: epyonne [

Re: ResulSet Question

2003-10-21 Thread Manolo Ramirez T.
Hi, I think that rsSN is associated with statement, so we you do 'statement.executeQuery()' that invalidates the current ResultSet. Try using other statement object for the internal querys. Regards, ___ Manolo. [EMAIL PROTECTED] wrote: All, I have the following code rsSN = statement

RE: JSP question

2003-10-21 Thread Peter Guyatt
Hi There, Why dont you change the button back to a submit and then add a onSubmit='return validation();' to you form ? Thats what we do Eg. function valid () { if (document.form.val.value.length < 1) { alert("Please enter a value");

RE: JSP question

2003-10-21 Thread Walker Chris
Most likely "document.form1" is not visible in the browser object model. There are various ways to address the form, but the most portable in this case is probably "document.forms[0]". Chris -Original Message- From: epyonne [mailto:[EMAIL PROTECTED] Sent: 21 October 2003 16:35 To: Tomcat

Re: ResulSet Question

2003-10-21 Thread epyonne
Shouldn't the evaluation statement, i.e. Frame.equals("E"), be outside the main while loop? When inside a while loop of a ResultSet, you should be evaluating the value in the ResultSet. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 21, 2003

Problems with Apache-Tomcat SSL

2003-10-21 Thread Low, Claudia
Hi, I have a problem working on apache-tomcat SSL. My set up is using apache server to talk to tomcat using mod_jk. When I access my site using non SSL, it works and can load up the page. However, when i use SSL, it gives an 401 exception. The SSL works if I try https://localhost:443/ on m

java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-10-21 Thread vijaya prasad pala
Hi, >From one week i am trying to solve this problem. Please any one help me. if i am connection directly its ok. but if i am using connection pooling this exception is comming. my connection pooling syntax in server.xml is -

Unable to access shared network drives with Tomcat service

2003-10-21 Thread joeri
Hi, I am running Tomcat 4.1.27 as a Windows service in the Windows XP operating system. I have a problem accessing network shared drives from within my servlets and JSP-pages. For instance, if "S" is a mapped drive pointing to something like a shared network drive "\\shared_server\shared_driv

Re: JSP question

2003-10-21 Thread epyonne
Thanks for the reply. But this cannot be true. If I leave the textbox blank, I got the alert. That means it is "seeing" the document.form1 object. It just does not like the .submit() method which I can't understand why. Thanks. - Original Message - From: "Walker Chris" <[EMAIL PROTEC

Using tomcat with IIS

2003-10-21 Thread Langenfeld, Jens
Hello Mr Helpman, for an amount of time, I try to use IIS to serve my JBOSS/TOMCAT servlet -context. It is part of a commercial ERP, wich usually works with apache. Even, without any dedicated webserver, only tomcat/jboss it works ok. I did everything as described in your good and understandabl

Re: JSP question

2003-10-21 Thread epyonne
Thank you Matt and Peter for the suggestion. It works!!! - Original Message - From: "Peter Guyatt" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, October 21, 2003 10:42 AM Subject: RE: JSP question > Hi There, > > Why dont you change the button back to a

RE: Using tomcat with IIS

2003-10-21 Thread Dionne, Patrice
Your dll and worker seem well configured from what I can see in the log. Did you try to access a ressource into the /examples or /admin webapp? Is this working http://Tomcat-host:Tomcat-port/ROOT/login.html ? -Original Message- From: Langenfeld, Jens [mailto:[EMAIL PROTECTED] Sent: 21 oc

RE: Unable to access shared network drives with Tomcat service

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Joeri, I haven't had to do this with Tomcat yet but am using it in Apache 1.x and 2.x on Windows 2000. In Apache this works: # Local Drive (old way) #Alias /Documents e:/Documents # Network Share (new way) Alias /Documents //server/Documents Couldn't find any documentation on it, but somehow I

RE: Unable to access shared network drives with Tomcat service

2003-10-21 Thread John Corrigan
Tomcat needs to be logged in as a user with permission to use the S: drive. You might also need to use UNC paths instead of drive mappings. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 5:31 AM To: [EMAIL PROTECTED] Subject: Unable to

Re: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-10-21 Thread El Toro
Where are your jdbc for sql server jars? Put all three under /%TOMCAT_HOME%/common/lib. Also, your factoryClassName should be: factoryClassName=org.apache.naming.factory.ResourceFactory I'm currently using connection pooling with sql server and thats the only things i can see that might cause y

JDBC Connection question

2003-10-21 Thread Carlos Pereira
Hi list, my application currently uses ONE connection object to communicate with the database. The connection is set with an initializer servlet (load_on_stratup=0), and all users use that connection to retrieve data. Is this the best approach, or should i create a connection per user? Why? Whe

Re: JDBC Connection question

2003-10-21 Thread Caroline Jen
Please use a connection pool. For Instruction: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html and http://www.mysql.com/articles/connection_pooling_with_connectorj.html --- Carlos Pereira <[EMAIL PROTECTED]> wrote: > Hi list, > my application currently uses ONE

tomcat apache connection problem

2003-10-21 Thread kgsat
Hi folks, (B (BI am currently using apache2.0.40 and tomcat 4.1.27 with jk2 connector for (Binter communication of apache tomcat servers on linux9.0 (B (BI have a peculiar problem. (BWhen i use the host name to get to the head page of the application it takes (Bme to default page.But when i

RE: Restrict Coyote/JK2 AJP 1.3 connector to local loopbackinterface

2003-10-21 Thread Francois JEANMOUGIN
> I couldn't figure out how to restrict Coyote/JK2 AJP 1.3 connector to > the local loopback interface. > Actually, I would expect the default settings in workers.properties > (worker.ajp13.host=localhost) to only bind to the local loopback > device, You should try the address attribute under th

Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi all, there have been a nightmare since i ve decided to make TomCat 4.1.18 be a Windows NT 4.0's Service.First of all, i ve the stuped idea of looking for a program which could make it for me. So, i found the nightmare main actor --> tcservcfg and the second one --> windows!!! Thus, i made the f

RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose, I spent a long time trying to manually setup Tomcat to run as a service. Finally ended up re-installing and checking the little checkbox that makes it usable as a service. It is unchecked by default. Once it is installed, you can change the account it executes as in the services thingy

RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Where is this checkbox? How can i reach there? I am talking about TomCat 4.1.18... -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro de 2003 14:22 Para: Tomcat Users List Assunto: RE: Bugs and weakness when Tomcat

RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose, Uninstall Tomcat. Start the installer and one of the screens has a list of products (Tomcat, Source etc) if you scroll down, there is and unchecked item that says to install it as a service. You must check this one to get it installed. If you are re-installing you also need to make sure

Tomcat 5 error when starting

2003-10-21 Thread David Liles
I just downloaded and installed version 5 and am getting the following error when I attempt to start it for the first time: ERROR] Digester - -Begin event threw error java.lang.NoClassDefFoundError: javax/xml/transform/Source at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.exe

RE: Unable to access shared network drives with Tomcat service

2003-10-21 Thread Wade Chandler
Also remember that UNC in java should use forward slash(/) instead of backward(\). Use this or you'll get funny problems from UNC names and file access. Wade -Original Message- From: John Corrigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 12:17 PM To: Tomcat Users List S

RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Thank you, Chuck. I will do it! So, i should keep saved the existing server.xml and web.xml files before the new installation starts, i guess... Isnt it? Euclides -Mensagem original- De: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 21 de outubro d

RE: Tomcat 5 error when starting

2003-10-21 Thread Shapira, Yoav
Howdy, What JDK version are you using? What parsers? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: David Liles [mailto:[EMAIL PROTECTED] >Sent: Tuesday, October 21, 2003 2:11 PM >To: [EMAIL PROTECTED] >Subject: Tomcat 5 error when starting > >I just downloaded and

RE: JDBC Connection question

2003-10-21 Thread Wade Chandler
You can only run one transaction per connection. So if you depend on rollbacks or things of this nature this will become an issue. Also, your DBMS may support a limited number of threads per connection. You should find this out. Also, if you disconnect and reconnect from one thread and another

RE: JDBC Connection question

2003-10-21 Thread Wade Chandler
Best to use a connection pool. Look at the Data Sources in Tomcat. Wade -Original Message- From: Carlos Pereira [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 12:46 PM To: Tomcat Users List Subject: JDBC Connection question Hi list, my application currently uses ONE connect

RE: Tomcat 5 error when starting

2003-10-21 Thread David Liles
I have j2sdk1.4.2.. as for parsers uh... were would I look for this info? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tue 10/21/2003 12:44 PM To: Tomcat Users List Cc: Subject: RE: Tomcat 5 error when s

RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomc

Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Ian Hunter
Also note that you have to adjust the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters\JVM Library -- you have to make sure that's pointing to a real copy of jvm.dll -- the default is c:\program files\Java\j2rex.x.x\bin\client\jvm.dll and if that's not

RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
I got a mail loop error?? -Original Message- From: Goehring, Chuck Mr., RCI - San Diego Sent: Tuesday, October 21, 2003 10:49 AM To: 'Jose Euclides da Silva Junior - DATAPREVRJ'; 'Tomcat Users List' Subject: RE: Bugs and weakness when Tomcat works a NT Service (tcservcfg) Jose, Yes.

RE: Unable to access shared network drives with Tomcat service

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Joeri, I think, a mapped drive can't be used for running as a service. The mappings aren't seen by services because noone is "logged in" so no login script runs. Chuck -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tom

RE: Tomcat 5 error when starting

2003-10-21 Thread Shapira, Yoav
Howdy, Since you ask, you probably didn't change the default XML parsers. The NoClassDefFound error means the version of javax.xml.transform.Source found by the JVM at runtime is not the same as that found in compile time. Compile time in this case refers to the jakarta-commons-modeler component

Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread epyonne
Just a thought. You can reinstall Tomcat to a different port, with the NT Service checked. Or better yet, go ahead and install the Tomcat 4.1.2x to a different port. This is a great opportunity to upgrade. Put some of your apps there for test runs. If there is no issue, then move everything ov

embedded tomcat 5

2003-10-21 Thread Mark W. Webb
I want to used tomcat 5 in the embedded "format". Are there any docs/suggestions/hints to doing this? I especially want the source for this. Should I just use the standart tomcat 5 source tarball? thanks. - To unsubscribe, e

RE: embedded tomcat 5

2003-10-21 Thread Shapira, Yoav
Howdy, The docs are in the Embedded class' javadoc: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/ap ache/catalina/startup/Embedded.html It's largely the same for tomcat 5 as tomcat 4. There are several articles, references, etc online for using embedded tomcat 4: google.

deserialization

2003-10-21 Thread Alkesh Badshah
I have a question about deserialization in Tomcat 4.1. I've added the session replication code to server.xml from http://cvs.apache.org/~fhanik/index.html. When a session is replicated, when do the session attributes get deserialized on the second server? Immediately upon replication? Or when i

RE: jk2 connector with apache 1.3 ?

2003-10-21 Thread Greg_Cope
Yes it can! Greg > -Original Message- > From: Javier Sanchez Monzon [mailto:[EMAIL PROTECTED] > Sent: 21 October 2003 10:12 > To: Tomcat Users List > Subject: jk2 connector with apache 1.3 ? > > > Hi there, > > i have only one question, > do you know if the jk2 connector can also be

parameter null if an equal sign in the value of the jsp:param?

2003-10-21 Thread Vladimer Shioshvili
Hello all, I haven't had much luck locating any information regarding this. And I am not even sure if this is a right place for this question. I am using Tomcat 4.0.6 and when passing a parameter with if the value of the parameter contains an equal sign ("=") parameter is absent (or null?) fr

RE: cannot build jk on solaris

2003-10-21 Thread Greg_Cope
You need to autoconf tools etc.. to make a configure script (it is not there by default). I think one of the README's or other files explain this. Probably best to download a binary from the apache site. Greg > -Original Message- > From: Javier Sanchez Monzon [mailto:[EMAIL PROTECTED] >

Re: embedded tomcat 5

2003-10-21 Thread Mark W. Webb
looking at the directory: http://ftp.epix.net/apache/jakarta/tomcat-5/v5.0.12-beta/bin/ there is more than one binary distribution. You have deployer, embed and standard. thank you for the help Shapira, Yoav wrote: Howdy, The docs are in the Embedded class' javadoc: http://jakarta.apache.org

RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Jose Euclides da Silva Junior - DATAPREVRJ
I will tried it, but i am afraid of unknowed changes done by Tcservcfg on Windows register. Since Tomcat isnt running anyway, i will reinstall it to the same port. One question: Do you know how could i remove the remained Tomcat service? Euclides. -Mensagem original- De: epyonne [mailto:[EM

RE: embedded tomcat 5

2003-10-21 Thread Shapira, Yoav
Howdy, The standard distribution should be fine. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Mark W. Webb [mailto:[EMAIL PROTECTED] >Sent: Tuesday, October 21, 2003 2:50 PM >To: Tomcat Users List >Subject: Re: embedded tomcat 5 > >looking at the directory: > >http

RES: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread Goehring, Chuck Mr., RCI - San Diego
Jose, Yes. I'd rename the top level dir so you have your servlets, jsps and images saved. Otherwise, I'd zip it and copy it somewhere. Chuck -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 10:45 AM To: 'Tomc

UNIX+Apache+Tomcat Situtation

2003-10-21 Thread earle . flynn
Hello, I have a situation where if a developer owns Tomcat 3 and stops/starts server the apps on that server all j2ee web-apps run fine. If I as root or 'tomcat_user' or su to developer id stop/start Tomcat 3 then all j2ee web-apps run except modules that produce .jpegs dynamically. In the latter c

Re: embedded tomcat 5

2003-10-21 Thread Jean-Francois Arcand
Shapira, Yoav wrote: Howdy, The docs are in the Embedded class' javadoc: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/ap ache/catalina/startup/Embedded.html It's largely the same for tomcat 5 as tomcat 4. There are several articles, references, etc online for using embe

File writing performance

2003-10-21 Thread Carlos Pereira
I want to make a servlet which catches all accesses to *.swf files (with a mapping) and only retrieves them if the permissions for the user allow it. That can be done simply with: // check user permissions and redirect to error page if needed // else: response.setContentType("application/x-shock

Re: UNIX+Apache+Tomcat Situtation

2003-10-21 Thread Daniel Gibby
What do you mean the developer owns Tomcat 3? His permissions are the owner of the tomcat directory or what? Daniel Gibby [EMAIL PROTECTED] wrote: Hello, I have a situation where if a developer owns Tomcat 3 and stops/starts server the apps on that server all j2ee web-apps run fine. If I as roo

RE: File writing performance

2003-10-21 Thread Wade Chandler
The main problem with performance comes from your source code. You are reading 1 byte at a time then writing 1 byte at a time. Use a buffered input stream, and also use a buffered output stream. Then read and write a good number of bytes. Maybe use a static section so you can change the number

RE: UNIX+Apache+Tomcat Situtation

2003-10-21 Thread earle . flynn
Daniel, Yes, the developer_id is the owner of the Tomcat directory. Earle -Original Message- From: Daniel Gibby [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 3:10 PM To: Tomcat Users List Subject: Re: UNIX+Apache+Tomcat Situtation What do you mean the developer owns Tomcat 3

Re: Bugs and weakness when Tomcat works a NT Service (tcservcfg)

2003-10-21 Thread epyonne
The Tomcat download site has an executable file which is built with InstallShield. If you install Tomcat using that executable file, you should have an Uninstall Tomcat option on your Start|Programs menu. Or you can always go to the "Add/Remove Programs" to remove it. Hope this helps. - Or

Re: embedded tomcat 5

2003-10-21 Thread Mark W. Webb
could you please give more information on the "JMX way". thanks Jean-Francois Arcand wrote: Shapira, Yoav wrote: Howdy, The docs are in the Embedded class' javadoc: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/ap ache/catalina/startup/Embedded.html It's largely the s

RE: parameter null if an equal sign in the value of the jsp:param?

2003-10-21 Thread Wade Chandler
That's normal. The value was empty if you have a line http://server/servlet?param1=wade¶m2=&dog=dog param2 had no value, so does it matter if you find it or not? public String workingValue(String s) { if( s != null ) { //just return s later. } else

mod_jk (Apache-Tomcat) problem

2003-10-21 Thread Robert Hall
Hi, I'm new to this list and hoping someone can help with the following problem. We have a JBoss (3.2.1) install w/embedded Tomcat (4.1.24) fronted by Apache 1.3.27 running on Solaris. The problem: mod_jk is setting the "Content-Length" header value to 0 for "Content-Type" of text/html when an HT

Re: UNIX+Apache+Tomcat Situtation

2003-10-21 Thread Daniel Gibby
This really sounds like it is a unix permissions issue, but it could be a Security issue with java as well. I don't know as much about the java Security model, but I can tell you things to check for with unix permissions: So if 'developer' is the owner of the tomcat directory, and your webapps

  1   2   >