Re: Database connections aren't being released...

2005-10-06 Thread Nikola Milutinovic
Richard Road Runner wrote: I am not sure that this is a Tomcat issue, but we are not sure what exactly is causing our problem. We are running Tomcat 5.0.27. We are using the most recent jconn2.jar driver to connect to a Sybase SQL Anywhere Studio 7 database via JDBC. Over a period of time,

Problem with tomcat configuration

2005-10-06 Thread vineesh kumar
Hi all, I manged to configure https on tomcat 5.5.9 with a passord different than changeit. It's working.But i tried to configure https on port 80 (i am running tomcat as root user). but when i point the browser to the system like https://localhost/ I am getting an error indicating that connection

Re: Problem with tomcat configuration

2005-10-06 Thread Mark Eggers
https is port 443. You need to to uncomment the HTTP 1.1 connector for 8443 and change the port to 443. Uncomment the following connector in server.xml: !-- Define a SSL HTTP/1.1 Connector on port 8443 -- !-- Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150

how to disable jk2 and enable jk1 on Tomcat5 with Apache 1.3

2005-10-06 Thread alebu
On Tomcat startup there is info message that indicates that tomcat starts using jk2. As I understand, that cames from that line in server.xml: Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / How to disable jk2 and prevent tomcat to use jk1.2 ?

Re: sharing session information across tomcats on different machines

2005-10-06 Thread Peter Rossbach
Use session replication with Tomcat Clustering and mod_jk loadbalancing http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cluster-howto.html Peter Mark schrieb: Is there any possibility for tomcats on separate machines to share session information. I am looking into load balancing a few

AW: custom session manager

2005-10-06 Thread Tobias Meyer
-Ursprüngliche Nachricht- Von: Leon Rosenberg [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 6. Oktober 2005 07:43 An: Tomcat Users List; Mark Betreff: Re: custom session manager On 10/6/05, Mark [EMAIL PROTECTED] wrote: basically, I want to prevent users from logging in and

Wish: add a header in mail subject

2005-10-06 Thread Seak, Teng-Fong
It would be nice if this mailing-list could add a header to mails, something like [TC-user]. The announcement has the [ANN] header, so I think it won't be a problem for this to have a header. Regards, Seak - To

Why is 5.5.12 alpha?

2005-10-06 Thread Ronald Klop
Hello, I searched the mail archives for the voting of 5.5.12 alpha to see the reason why it is marked as alpha but I couldn't find the mails. Can somebody tell me why it is alpha? It contains some bugfixes which might help me in my clustered application, but I'm afraid of other known bugs,

Re: Why is 5.5.12 alpha?

2005-10-06 Thread Markus Schönhaber
Am Donnerstag, 6. Oktober 2005 11:00 schrieb Ronald Klop: I searched the mail archives for the voting of 5.5.12 alpha to see the reason why it is marked as alpha but I couldn't find the mails. Can somebody tell me why it is alpha? It contains some bugfixes which might help me in my clustered

Re: Wish: add a header in mail subject

2005-10-06 Thread Jon Wingfield
If what you are after is a way to filter messages then use a good email client and filter on the message header List-Id. For this list it is set to: List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Seak, Teng-Fong wrote: It would be nice if this mailing-list could add a header

cannot setup JNDI with MySQL

2005-10-06 Thread John Cherouvim
Hello I've been trying to setup a mysql connection pool using JNDI as shown in http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html But no luck. I never get to see the datasource registered Tomcat Administration Tool. I've included in server.xml the following

Re: custom session manager

2005-10-06 Thread Leon Rosenberg
On 10/6/05, Tobias Meyer [EMAIL PROTECTED] wrote: Or, cou could add a static hashmap to your Servlet (or a bean if using JSPs) where you simply add the sessions with every request. You would have to put an attribute implementing javax.servlet.http.HttpSessionActivationListener in each session

Re: cannot setup JNDI with MySQL

2005-10-06 Thread andy gordon
John, Possibly the following will help as it is listed in the 5.5 JDBC DataSource html page in the User guide: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html Please note that JNDI resource configuration has changed somewhat between Tomcat 5.0.x and

Re: cannot setup JNDI with MySQL

2005-10-06 Thread andy gordon
One more thing and i may have missed it in your note: Did you say you placed mysql's jar file in the common\lib directory ? John Cherouvim [EMAIL PROTECTED] wrote:Hello I've been trying to setup a mysql connection pool using JNDI as shown in

Re: Problem with tomcat configuration

2005-10-06 Thread Marcus Franke
On Thu, Oct 06, 2005 at 12:14:58AM -0700, Mark Eggers wrote: https is port 443. You need to to uncomment the HTTP 1.1 connector for 8443 and change the port to 443. Uncomment the following connector in server.xml: !-- Define a SSL HTTP/1.1 Connector on port 8443 -- !-- Connector

mysql connection with JSP

2005-10-06 Thread Cengiz Yazgan
Hi everybody I want to connect a mysql database with jsp code. Can anybody help me to write a connection string. Thx. Cengiz YAZGAN Sistem Mühendisi/System Engineer DorukNet Tel / Phone : +90 212 326 92 00 / 447 Fax : +90 212 227 28 11 E-mail : [EMAIL PROTECTED] http://www.doruk.net.tr

Re: cannot setup JNDI with MySQL

2005-10-06 Thread Hassan Schroeder
John Cherouvim wrote: I've been trying to setup a mysql connection pool using JNDI as shown in http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html But no luck. *What I get in tomcat\logs\stdout.log is: NotifyUtil::java.net.ConnectException: Connection

Re: cannot setup JNDI with MySQL

2005-10-06 Thread Andrés Glez .
The problem is not JDNI. The problem is you can't connect to MySQL. Probably it's you have to check your MySQL access permissions... Can you connect to MySQL using the same parameters with another tool like MySQL Control Center? - Original Message - From: John Cherouvim [EMAIL

Re: Modjk and Tomcat 5.5.4 problem

2005-10-06 Thread Marcus Franke
On Wed, Oct 05, 2005 at 04:24:08PM -0700, Rick wrote: We had an issue where it seemed like it would crash using mod_jk, the trouble was the connections were not letting go. By default, I think the timeout is infinite, so after setting the property: connectionTimeout, in the server.xml's

Re: cannot setup JNDI with MySQL

2005-10-06 Thread John Cherouvim
Thanks for your answers. I can connect to MySQL using any mysql tool and even with telnet localhost 3306 from the command line. I even tried connecting to another mysql server running on another pc in my LAN but nothing. @andy: yes I have placed mysql-connector-java-3.1.10-bin.jar in

AW: custom session manager

2005-10-06 Thread Tobias Meyer
-Ursprüngliche Nachricht- Von: Leon Rosenberg [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 6. Oktober 2005 11:20 An: Tomcat Users List Betreff: Re: custom session manager On 10/6/05, Tobias Meyer [EMAIL PROTECTED] wrote: Or, cou could add a static hashmap to your Servlet

Why Tomcat return me a OLD version of my doc.jar ?

2005-10-06 Thread Amadeo Alonso
Hi all, ¿Can anyone explain it , please? I use Tomcat 5.5 as server pages html with an 'Applet' that uses a 'doc.jar' I have placed two connector tags in 'server.xml' file to use ports :80 y :8080 in the same way I Have fixed bugs from mi 'doc.jar' (v1) to a new version with the

Re: cannot setup JNDI with MySQL

2005-10-06 Thread David Smith
Hmmm... I haven't read that tutorial in a while but if that's what it says, it's wrong. The Resource and ResourceParams elements should be placed between Context and /Context tags of your context xml file. That would make the resource only available to that one application as opposed to being

Re: [ANN] Tomcat sources moved to Subversion

2005-10-06 Thread Jim Jagielski
Just a quick reminder: if you want to track HEAD, then you would checkout trunk. For example: svn co https://svn.apache.org/repos/asf/tomcat/connectors/trunk/ tomcat-connectors would create a tomcat-connectors directory that stores the development HEAD. If you skip appending the '/trunk/'

Re: Context path changes in context.xml not working

2005-10-06 Thread David Kerber
I did a bunch of googling before posting my question, but never came across that post; thanks for listing it; it appears to be exactly what I need. Dave Caldarale, Charles R wrote: From: David Kerber [EMAIL PROTECTED] Subject: Re: Context path changes in context.xml not working Nobody

Re: precompiling JSPs -- how to resolve references normally resolved by apache?

2005-10-06 Thread Jon Wingfield
Unless you have a directory ${TOP}/web/html/jsp/jsp your uribase/uriroot probably aren't right. [EMAIL PROTECTED] wrote: Hi, I am trying to get our JSPs to be precompiled as part of our ant build process to catch all syntax errors at compile time. The problem I have run into is that we are

Re: SQL Server 2000: JDBC

2005-10-06 Thread Roberto Rios
Hi, Generally this error occurs when the connection between tomcat and the database is down, or the connection object is using a connection that is poor. For instance, if your tomcat is running, and for some reason, the database goes down and then restart, you will receive this error. So,

RE: mysql connection with JSP

2005-10-06 Thread Mark Benussi
jdbc:mysql://hostname:3306/database?user=usernamepassword=password However on a design front I would never personally look up a database connection in a JSP. Others may disagree. -Original Message- From: Cengiz Yazgan [mailto:[EMAIL PROTECTED] Sent: 06 October 2005 11:46 To: 'Tomcat

can one app check another is available?

2005-10-06 Thread Paul Singleton
I've split an app into two: one contains many GB of static images (rarely changes), the other all the session stuff (this one is updated frequently). No matter where it is deployed, the real app can refer to images e.g. src=/maps/. but I want the real app to check that the data app is

exception in session handling

2005-10-06 Thread Ronald Klop
Hello, Is it normal that the session is invalidated before the valueUnbound handlers are called? Ronald. java.lang.IllegalStateException: getId: Session already invalidated at org.apache.catalina.cluster.session.DeltaSession.getId(DeltaSession.java:335) at

Production Settings

2005-10-06 Thread Pitre, Russell
Does anyone know where I can find documentation on recommended production setting for Windows environment? I tried googling for some information but I did not come back with much. Thanks in advance Russ - To unsubscribe,

RE: Modjk and Tomcat 5.5.4 problem

2005-10-06 Thread Rick
Hi Marcus, idle connections running for hours and hours That was our problem as well, with those idle connections just sitting there, as I said, I wasn't sure if my solution was the correct one.. Just telling you, it seemed to work for us. I would say give it a try, the only issue we have, is

Re: Apache Tomcat Virtual Host question

2005-10-06 Thread Aria Bamdad
Hi, I asked this question yesterday and got no hints from anyone. Since then, I have been able to accomplish what I want using multiple instances of Tomcat. However, I would much rather use one instance and serve requests on different Apache port. Does anyone have ANY comments regarding my

RE: Production Settings

2005-10-06 Thread Arup Vidyerthy
This is vague!! Recommended production settings for what exactly...? I would think it varies from application to application. -Original Message- From: Pitre, Russell [mailto:[EMAIL PROTECTED] Sent: 06 October 2005 14:21 To: tomcat-user@jakarta.apache.org Subject: Production Settings

Re: exception in session handling (extra info)

2005-10-06 Thread Ronald Klop
I'm testing 5.5.12 here on java 1.5 on linux 2.6. My SessionList is a list of session id's which I keep to count the sessions. Ronald. On Thu Oct 06 15:19:00 CEST 2005 Tomcat Users List tomcat-user@jakarta.apache.org wrote: Hello, Is it normal that the session is invalidated before the

Re: Apache Tomcat Virtual Host question

2005-10-06 Thread Nikola Milutinovic
Aria Bamdad wrote: Hi, I asked this question yesterday and got no hints from anyone. Since then, I have been able to accomplish what I want using multiple instances of Tomcat. However, I would much rather use one instance and serve requests on different Apache port. Does anyone have ANY

RE: [5.5.9] Excessive jk INFO log msgs connection timeout reached

2005-10-06 Thread Jean-Marc Marchand
I got rid of this message when I realized that my AJP connector's configuration (in server.xml) had a connectionTimeout set. Try setting it bigger or simply removing it, which will default to 'no timeout'. Cheers, Jean-Marc -Original Message- From: Rick [mailto:[EMAIL PROTECTED]

Tomcat 5.5.12 and user-agent header

2005-10-06 Thread Richard Mixon
I tested out my application on 5.5.12 yesterday and noticed one small anomally. I had a JSP in my sitemesh decorator default.jsp that ends up wrapping the login page for container managed authentication. This page had a statement String _userAgent =

Re: Apache Tomcat Virtual Host question

2005-10-06 Thread Aria Bamdad
Nikola, Thank you very much for you good comments. I agree that port based servers are not common. The reason we use them is for separating for example internal web sites and external public web sites. Using host name based virtual hosting, you have to give a different host name to each port.

RE: Production Settings

2005-10-06 Thread Caldarale, Charles R
From: Pitre, Russell [mailto:[EMAIL PROTECTED] Subject: Production Settings Does anyone know where I can find documentation on recommended production setting for Windows environment? If you follow the Resources link from the Tomcat home page, you'll see a section named Articles. The one

RE: [5.5.9] Excessive jk INFO log msgs connection timeout reached

2005-10-06 Thread Rick
Jean-Marc, Actually, without the connectionTimeout set, jk seems to hold on to its connections indefinitely and after a while, the apache to tomcat connection hangs (pages quit serving). Could you tell me which combo of versions you use for apache, jk, and tomcat. I'm trying to figure out

RE: Production Settings

2005-10-06 Thread Pitre, Russell
Yup!! That was vague, sorry about that. I am particularly interested in recommended production settings for server.xml and TOMCAT_HOME/conf/web.xml such as the fork setting for jsp compilation. Russ -Original Message- From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Sent: Thursday,

Re: Non-servlet class cannot access jar file in ./WEB-INF/lib when a Servlet does

2005-10-06 Thread David Delbecq
Hi, all classes of a webapp which do not come from tomcat server itself do share a common classloader which is an aggregation of the various classes in all WEB-INF/lib/*.jar and in WEB-INF/classes/**/*.class If you get a NoClassDefFoundException, that probably mean you asked some class in server

Re: custom session manager

2005-10-06 Thread Leon Rosenberg
Sorry, aber how exactly does it solves the problem of having one session per user? :-) On 10/6/05, Tobias Meyer [EMAIL PROTECTED] wrote: -Ursprüngliche Nachricht- Von: Leon Rosenberg [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 6. Oktober 2005 11:20 An: Tomcat Users List

Issuing HTTP requests from inside JSP under Tomcat

2005-10-06 Thread Bandak, Mark
Folks: I'm relatively new to the world of Tomcat, but ... Have locally 'made' (make) Apache 2.0.54. Binary Tomcat 4.1.29. Locally built mod_jk (1.2.14). Platform is Solaris 9. Have a vendor supplied JSP application. Runs beautifully under Tomcat 'standalone'. Need to add to an existing

RE: Non-servlet class cannot access jar file in ./WEB-INF/lib when a Servlet does

2005-10-06 Thread Sabitha
Jose, I have a similar servlet which initializes a singleton class to load the Tomcat resources for AXIS web service. The servlet is loaded at startup. This singleton class uses classes from a jar file located in WEB-INF/lib. MY servlet and singleton and other classes are in WEB-INF/classes.

Re: Non-servlet class cannot access jar file in ./WEB-INF/lib whena Servlet does

2005-10-06 Thread Jose Maria Ramirez Martinez
Hi David, thank you very much for the time you took to answer this do you (or anybody in the mail-list) think there's a way to solve this problem? a solution is the one I've mentioned before: unpacking the jar classes and add them to the /WEB-INF/classes directory, and there is no problem when

AW: custom session manager

2005-10-06 Thread Tobias Meyer
The problem is AFAIK, that you cannot access the list of all sessions through the servlet-api. That feature was in the servlet-api at some time, but was removed, IIRC due to security issues. If you have a list of all sessions, you can easily iterate over them at login and manually expire all old

RE: Database connections aren't being released...

2005-10-06 Thread George Sexton
As many people have pointed out, your app is probably not closing resources. A tool that can help find these is: http://findbugs.sourceforge.net/ George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Richard Road Runner

RE: Non-servlet class cannot access jar file in ./WEB-INF/lib when a Servlet does

2005-10-06 Thread Jose Maria Ramirez Martinez
Hi, thanks a lot for your comments about the files with the same name... they are not classes ok, let me explain... I'm using the javax.mail package, which is in a jar, called mailapi.jar, and in order to use this package we also need the JavaBeans activation framework, packed in a jar, called

Re: Modjk and Tomcat 5.5.4 problem

2005-10-06 Thread John Martyniak
Rick, Thanks for the info. I will try it out. It is interesting when I look at the config for all of the other Connectors, they all have a connectionTimeout value. -John On Oct 5, 2005, at 7:24 PM, Rick wrote: We had an issue where it seemed like it would crash using mod_jk, the trouble

Re: custom session manager

2005-10-06 Thread Leon Rosenberg
On 10/6/05, Tobias Meyer [EMAIL PROTECTED] wrote: The problem is AFAIK, that you cannot access the list of all sessions through the servlet-api. That feature was in the servlet-api at some time, but was removed, IIRC due to security issues. If you have a list of all sessions, you can easily

[OT] How much RAM can java use

2005-10-06 Thread Leon Rosenberg
Sorry for off-topic, but there are so many experts here! :-) Does anyone know for sure how much RAM I can use with JAVA 1.4 or 1.5? It seems to me, that the VM don't use more than 1.2 GB RAM even I gave it more (with mx/ms settings). We are planning to go to 16GB RAM machines to have a better

error-page 503 in web.xml not working in tomcat 5.5.9

2005-10-06 Thread Archana Mathur
Hi,I am using tomcat 5.5.9. I have set up global error pages for 404 and 503 in web.xml file under tomcat home dir/conf folder. Example - error-page error-code404/error-code location/systemDown.html/location /error-page error-page error-code503/error-code location/systemDown.html/location

RE: [OT] How much RAM can java use

2005-10-06 Thread Dale, Matt
Hi, This will depend on which architecture of machine you are using. You will need both a 64 bit machine and a 64bit JVM to use that much memory. We use 12GB here with no problems on 64 bit solaris. Ta Matt -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: 06

RE: Modjk and Tomcat 5.5.4 problem

2005-10-06 Thread Rick
Hey John, I have been looking into this on my end as well, since I'm not fully satisfied that it's the proper solution. As a question, what does your Apache workers.properties file look like. Do you have any of the properties such as recycle_timeout, socket_timeout, cachesize, or cache_timeout

RE: [OT] How much RAM can java use

2005-10-06 Thread Caldarale, Charles R
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: [OT] How much RAM can java use Does anyone know for sure how much RAM I can use with JAVA 1.4 or 1.5? The answer is very platform specific. For example, on a normal 32-bit Windows system, each process has a maximum of 2 GB to play

Re: Modjk and Tomcat 5.5.4 problem

2005-10-06 Thread John Martyniak
Rick, I have made the changes and was able to replicate the problem pretty quickly. And again no message in the mod_jk or catalina.out files. It turns out that my workers file has all of those properties. I am including it below. # Define worker using ajp13 worker.list=worker1, worker2

RE: [5.5.9] Excessive jk INFO log msgs connection timeout reached

2005-10-06 Thread Jean-Marc Marchand
I`m using Tomcat 5.0.30 / Apache 2.0.54 / JK 1.2.14.1 I looked a bit in the source of the Tomcat JK connector, and the 'connectionTimeout' parameter of the Connector is relayed to 'soTimeout' of the listening JK sockets ChannelSocket.java. ...which takes us to the java.net.Socket api and

Re: [OT] How much RAM can java use

2005-10-06 Thread Leon Rosenberg
On 10/6/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: [OT] How much RAM can java use Does anyone know for sure how much RAM I can use with JAVA 1.4 or 1.5? The answer is very platform specific. For example, on a normal 32-bit

RE: [OT] How much RAM can java use

2005-10-06 Thread Dale, Matt
On the 32 bit system you definitely won't get more the 2G without some kernel hacking and you may well see even less than that. On the 64 with a 64 bit JVM you should be able to use however much you like obviously leaving some space for the OS to run in. -Original Message- From: Leon

RE: [OT] How much RAM can java use

2005-10-06 Thread Caldarale, Charles R
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: [OT] How much RAM can java use I've seen 64-bit Sparc systems with Java heaps sized at hundreds of megabytes... Oops, I meant hundreds of _gigabytes_ (just a slight miscalculation :-). With the 32-bit Sun JVM, you're not going

RE: [5.5.9] Excessive jk INFO log msgs connection timeout reached

2005-10-06 Thread Rick
Thanks Jean-Marc, After checking over my workers.properties, orginally configured by someone else, it appears to be missing some of the connection timeout handling properties you have listed in yours. I'm guessing this is the root of my issue. I'll give them a try. Thanks again, Rick

Re: custom session manager

2005-10-06 Thread Mark
There is one problem with this approach. Load balancing/clustering. If you have a HashMap in one tomcat JVM, how does that information get propogated to other JVM's possibly on other machines? Thank you by the way for all the inputs so far On 10/6/05, Leon Rosenberg [EMAIL PROTECTED]

Q:how to remove charset from HTTP responce to allow browser use a browser selected charset?

2005-10-06 Thread Mark
Hello, In my application users enter data using different languages. The problem I'm facing is the browser sets the page encoding always to ISO-8859-1. (I guess this is default based on server OS) User can change encoding on the page (Browser settings) and everything looks OK but only for one

Turning on debugging in Tomcat 5.5

2005-10-06 Thread James Rome
Most of the installed Tomcat classes have something like container.isDebugEnabled() {...} How do I enable these debug statements in Tomcat 5.5? Thanks, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

How to use JkAutoAlias with a URL Path

2005-10-06 Thread Bhavin Modi
Is it possible to define a URL path under which the JKAutoAlias is configured ? What I am trying to say is, can we have something like JkAutoAlias /java-apps /usr/local/tomcat/webapps that would effectively make all my tomcat webapps accessible under http://localhost/java-apps/ Is there any

Re: [OT] How much RAM can java use

2005-10-06 Thread J. Ryan Earl
Leon Rosenberg wrote: Debian 3.1, kernel 2.6.x-smp (32 bit) or Debian 3.1, kernel 2.6.x-smp-emt64 (64 bit) Hardware: AMD Opteron and Xeon64 (both 64 bit) SUN jdk1.5 and/or jdk1.4.2 4 GB total RAM for 32-bit linux, with 3/1 memory partitioning 16GB total RAM for 64-bit linux. I've tested

Embedded Tomcat and SSL?

2005-10-06 Thread lmuxer-mailinglists
Hi, I am using an embedded tomcat instance within my application. I am trying to set up a connector using SSL. When I start the server, it creates the connector and bind to the port successfully. When I request a page from the web browser, I get the following error in my browser: The connection

Mark certain contexts inactive?

2005-10-06 Thread Scott Purcell
Hello, On my development machine, I have created quite a few contexts or webapp instances, and due to that fact, the startup time is increasing. I do not want to remove any of the contexts as they all mean something to me, but I would like to be able to mark them so they do not start up. And

Re: isapi_redirector2.dll question

2005-10-06 Thread Mark Thomas
John, JK2 is deprecated. Are you sure you want to use it? See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html for a list of connectors and current statuses for TC4. Mark John MccLain wrote: I have installed the IIS to Tomcat redirector on my windows XP pro machine

Re: how to disable jk2 and enable jk1 on Tomcat5 with Apache 1.3

2005-10-06 Thread Mark Thomas
alebu wrote: On Tomcat startup there is info message that indicates that tomcat starts using jk2. As I understand, that cames from that line in server.xml: Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / How to disable jk2 and prevent tomcat to use jk1.2 ?

Re: mysql connection with JSP

2005-10-06 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old

Re: Why Tomcat return me a OLD version of my doc.jar ?

2005-10-06 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old

Re: exception in session handling

2005-10-06 Thread Mark Thomas
Ronald Klop wrote: Hello, Is it normal that the session is invalidated before the valueUnbound handlers are called? The spec is your friend. spec-quote section=SRV.15.1.7 ...For sessions that are invalidated or expire, notifications are sent after the session has been invalidated or

Re: Q:how to remove charset from HTTP responce to allow browser use a browser selected charset?

2005-10-06 Thread Mark Thomas
Mark wrote: Hello, In my application users enter data using different languages. The problem I'm facing is the browser sets the page encoding always to ISO-8859-1. (I guess this is default based on server OS) User can change encoding on the page (Browser settings) and everything looks OK but

Re: Q:how to remove charset from HTTP responce to allow browser use a browser selected charset?

2005-10-06 Thread Mark
Hi Mark, In my case servlet generates an output, so no JSP for now... Can I do it using filters? Or define and store user's prefs with encoding outside of tomcat and in the session and use if it's exists in the session? Thanks a lot! Mark. --- Mark Thomas [EMAIL PROTECTED] wrote: Mark wrote:

help on a publication

2005-10-06 Thread Hugo Osorio
here the is what i have done, what could be the reason because this app is not showing up thank you in advance for your help -- by oxygene27 on 2005/10/04 16:39 Hi everybody again, please help, Is it necessary to have the database up, for having the webapp visible in tomcat?

Re: [OT] How much RAM can java use

2005-10-06 Thread Leon Rosenberg
Chuck, Ryan, thanx, you were extremely helpful! regards Leon On 10/6/05, J. Ryan Earl [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: Debian 3.1, kernel 2.6.x-smp (32 bit) or Debian 3.1, kernel 2.6.x-smp-emt64 (64 bit) Hardware: AMD Opteron and Xeon64 (both 64 bit) SUN jdk1.5 and/or

Tracking Datasource Connection Usage?

2005-10-06 Thread JWM
I started getting exceptions saying no connections were available on my JDBC datasource (org.gjt.mm.mysql.Driver). The pool was definitely large enough to handle the load. So it appears that I'm not freeing the all the connections as I should. I noticed that I did not have the

RE: Tracking Datasource Connection Usage?

2005-10-06 Thread George Sexton
http://findbugs.sourceforge.net/ Will tell you where in your code you are not freeing resources. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: JWM [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 2:09 PM To:

Mod_jk + Apache on RHEL3 gives 503 for jsp only

2005-10-06 Thread [EMAIL PROTECTED]
Hello, I have a website that I am migrating to a new server. Server is Redhat ES3 2.4.21-20.0.1.ELsmp. Server version: Apache/2.0.46 I have jakarta-tomcat-5.5.9 installed and working properly on the new server. It is perfectly accessible from the legacy web server. On the Website on the new

RE: Q:how to remove charset from HTTP responce to allow browser use a browser selected charset?

2005-10-06 Thread Rick
Hi Mark, Can you talk a little about what the data is.. Just form data from different locales? I store all my data in UTF-8 and just instruct the page encoding to be the same (UTF-8) and I'm able to handle input and display of whatever people enter. Had a few odd things to overcome to get it

RE: [OT] How much RAM can java use

2005-10-06 Thread Mark Benussi
This was probably one of the best threads I have 'listened' to in ages. I am researching setting up my own Tomcat hosting. This is going to be of use. -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: 06 October 2005 20:48 To: Tomcat Users List Subject: Re: [OT] How

Converting webdav servlet to be accessed by webservice using axis

2005-10-06 Thread Bhavin Modi
How can I convert/use the WebdavServlet class that is included in tomcat to be used a webservice using axis ? Thanks, Bhavin.

Re: help on a publication

2005-10-06 Thread Hugo Osorio
I have this failure inside the log, when i am trying to see the context in the navigator.. i can solve this only fixing up the X Window ? I thought X Window had nothing to do with this could be another thing? thank you 2005-10-06 19:32:32 StandardContext[/alovmap]Context initialized 58

RE: help on a publication

2005-10-06 Thread GB Developer
The reference in your stacktrace might be an indicator that you are not running tomcat in 'headless' mode. And now I understand from where the by so-and-so on such-and-such came from in your original email. Check out http://alov.org/topic.do?t_id=369 by artem on

Re: Embedded Tomcat and SSL?

2005-10-06 Thread Mark
are you using Apace with Tomcat? I have done embedded Tomcat and SSL, but it was Apache sitting in front of Tomcat. On 10/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I am using an embedded tomcat instance within my application. I am trying to set up a connector using SSL. When I

Re: Mark certain contexts inactive?

2005-10-06 Thread Rob Hills
Hi Scott, On 6 Oct 2005 at 13:43, Scott Purcell wrote: On my development machine, I have created quite a few contexts or webapp instances, and due to that fact, the startup time is increasing. I do not want to remove any of the contexts as they all mean something to me, but I would like

Re: Tracking Datasource Connection Usage?

2005-10-06 Thread Rob Hills
Hi, On 6 Oct 2005 at 15:09, JWM wrote: I started getting exceptions saying no connections were available on my JDBC datasource (org.gjt.mm.mysql.Driver). The pool was definitely large enough to handle the load. So it appears that I'm not freeing the all the connections as I should. I

Re: RE: Database connections aren't being released...

2005-10-06 Thread Richard Road Runner
I've confirmed that we added the parameter removeAbandoned=true to the Database resource in the server.xml about a year ago and it had no effect. None of us think that we are not closing connecitons properlly.

Re: Tracking Datasource Connection Usage?

2005-10-06 Thread Darryl L. Miles
Rob Hills wrote: I started getting exceptions saying no connections were available on my JDBC datasource (org.gjt.mm.mysql.Driver). The pool was definitely large enough to handle the load. So it appears that I'm not freeing the all the connections as I should. I noticed that I did not

Re: cannot setup JNDI with MySQL

2005-10-06 Thread Darryl L. Miles
localhost has special meaning to the MySQL command line tool, this uses the Unix Domain socket for transport, like /tmp/mysql.sock this does not work with Java I don't believe there is any API to access Unix Domain sockets. Confirm: mysql -h localhost -u username -ppassword database AND

Re: Database connections aren't being released...

2005-10-06 Thread Darryl L. Miles
Richard Road Runner wrote: I am not sure that this is a Tomcat issue, but we are not sure what exactly is causing our problem. We are running Tomcat 5.0.27. We are using the most recent jconn2.jar driver to connect to a Sybase SQL Anywhere Studio 7 database via JDBC. Over a period of time,

Re: Mod_jk + Apache on RHEL3 gives 503 for jsp only

2005-10-06 Thread Mark Eggers
--- [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have jakarta-tomcat-5.5.9 installed and working properly on the new server. It is perfectly accessible from the legacy web server. By perfectly accessible you mean . . . ? The main page, home.jsp, loads fine in the servlet if no page is

Re: precompiling JSPs -- how to resolve references normally resolved by apache?

2005-10-06 Thread ut9h-3pye
Jon, Thanks for your help. The uribase and uriroot were not set correctly. Here is the final version that I got working. I had one additional twist that I needed to copy the JSP files to another location first using the ant copy task. I set uriroot to the webapps root {dir}/html, and then