Re: what are ways to improve the performance of server?

2008-05-14 Thread sur_1805
Hi chris,, Actually i have another server that is running with tomcat 4 and jdk1.4. it hang always after some time i dont want that problem will be occur in this new server that we talk about earlier message. Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 >

RE: Current thread count monitoring

2008-05-14 Thread Caldarale, Charles R
> From: Amit Bhargava [mailto:[EMAIL PROTECTED] > Subject: Re: Current thread count monitoring > > My understanding is that 'maxThreads' determines how many > threads will be created by the Connector to deal with > requests. That's the maximum number of threads for the ; if there are fewer act

Re: Current thread count monitoring

2008-05-14 Thread Amit Bhargava
Hi John, Thank you very much for your prompt reply. I am able to connect to the MBean using JConsole and see values for CurrentThreadCount etc. My understanding is that 'maxThreads' determines how many threads will be created by the Connector to deal with requests. After this, 'acceptCount'

Re: Developing Tomcat using Eclipse

2008-05-14 Thread Filip Hanik - Dev Lists
it's pretty easy, if you check out tomcat from svn svn co http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk the trunk folder contains a .project and .classpath do a cd trunk ant download then you will need to setup two variables ANT_HOME TOMCAT_LIBS_BASE - this one points to the location

Re: Save POJO Application Server Definition

2008-05-14 Thread Stephen Souness
I'm with you David, I don't visit these groups to see spam thinly disguised as Tomcat-related messages. -- Stephen Souness David Fisher wrote: We know you think your stuff is so kewl, but would you please stop leading all your email with an evangelical tag line. That would be so cool of y

Re: Shared Javascript, CSS, and Image Files

2008-05-14 Thread Stephen Souness
The symbolic link solution should be fine as long as you configure Tomcat to follow symbolic links (see Steve O's response in this thread). Having a "shared webapp" as suggested by Johnny could lead to problems with cross site scripting restrictions for the Javascript code if any cookies were

Developing Tomcat using Eclipse

2008-05-14 Thread ubekhet
Hi, I want developing tomcat from Tomcat source using Eclipse, Is there someone know how I have to setup in Eclipse for to do that? Thank in advance!!! Regards - To start a new topic, e-mail: users@tomcat.apache.org To unsub

Developing Tomcat using Eclipse

2008-05-14 Thread ubekhet
Hi, I want developing tomcat from Tomcat source using Eclipse, Is there someone know how I have to setup in Eclipse for to do that? Thank in advance!!! Regards - To start a new topic, e-mail: users@tomcat.apache.org To unsub

Re: Multiple Hits to same JSP

2008-05-14 Thread Sameer Naik
The hits are for exact same URL and not for the resources (images/css/js) in it. We have the user id and all the information about user, but its a sensitive matter to contact end user; it would require many levels of approval :-) Enabling RequestDumperValve may not be an option in prod as we get l

Re: Redirect request to another Tomcat server

2008-05-14 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. --- - Origi

Re: Redirect request to another Tomcat server

2008-05-14 Thread Hassan Schroeder
On Wed, May 14, 2008 at 4:35 PM, ubekhet <[EMAIL PROTECTED]> wrote: > I am wondering, if there is some posibility to redirect the request from one > Tomcat Server to another one. is probably the easiest :-) -- Hassan Schroeder [EMAIL

Re: URLClassLoader and Reflection fail on Windows.

2008-05-14 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. --- - Origi

Redirect request to another Tomcat server

2008-05-14 Thread ubekhet
Hi everyone, I am wondering, if there is some posibility to redirect the request from one Tomcat Server to another one. I would like to know where is the point to change that. Basically, in one Tomcat Server I recieve the request I will check the headers and then depending of some parameters I

Re: configuration issue

2008-05-14 Thread Mark Thomas
John Pedersen wrote: factory="org.apache.commons.dbcp.BasicDataSourceFactory" This means you must supply commons-dbcp (and probably commons-pool) rather than use the packaged renamed versions in Tomcat. Is this what you intended? Mark

Testing performance and scalability

2008-05-14 Thread dhay
We are developing a website that will likely be hit by up to half a million users. Our first concern is obviously performance and scalability, but am wondering how best to test this? Most stress tools I've see only simulate in the order of a thousand users. Would be grateful for suggestions..

Re: Unstable connexion from remote computers

2008-05-14 Thread max980
No, during the first 2-3 minutes everything works fine. Then request don't come back from remote computers. Here is the result of the full thread dump after these first 2-3 minutes Full thread dump Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing): "http-8080-10" daemon prio=10

Re: Current thread count monitoring

2008-05-14 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. --- - Origi

Re: Unstable connexion from remote computers

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Max980, max980 wrote: | Thanks for your quick answer ! | No I don't use connection pooling, I instanciate a new connection for each | JDBC request and then close it. During the 2-3 minute pause, generate a thread dump on the server to find out what

Re: Unstable connexion from remote computers

2008-05-14 Thread max980
Thanks for your quick answer ! No I don't use connection pooling, I instanciate a new connection for each JDBC request and then close it. -- View this message in context: http://www.nabble.com/Unstable-connexion-from-remote-computers-tp17238990p17239307.html Sent from the Tomcat - User mailing

Re: Tomcat LDAP Authentication

2008-05-14 Thread John Russell
Thank you, we solved it for connecting to Apple Open Directory as follows ldap://192.168.16.179"; userPattern="uid={0},cn=users,dc=mail,dc=owd,dc=net" roleBase="cn=groups,dc=mail,dc=owd,dc=net" roleName="cn" roleSearch="(memberUid={1})"

Re: Unstable connexion from remote computers

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Max980, max980 wrote: | I have installed a Tomcat server to host web applications. | | When using locally these applications (ie with address //localhost:8080) | everything works perfectly. | | But when I connect to the server with remote computers,

Unstable connexion from remote computers

2008-05-14 Thread max980
Hi everybody, I have installed a Tomcat server to host web applications. When using locally these applications (ie with address //localhost:8080) everything works perfectly. But when I connect to the server with remote computers, the connexion is lost quite fast (2-3 minutes). Then it seems tha

RE: Tomcat & Apache webserver authentication

2008-05-14 Thread Bart Devos
Ok Rainer, due to your information i think i see a way out. Thank you very much! Bart. -Oorspronkelijk bericht- Van: Rainer Jung [mailto:[EMAIL PROTECTED] Verzonden: woensdag 14 mei 2008 16:35 Aan: Tomcat Users List Onderwerp: Re: Tomcat & Apache webserver authentication bartd schrieb:

Re: internal tomcat server.xml parsing

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ramesh, Ramesh Narayanan (ramesnar) wrote: | Thanks for your reply. I was thinking the Tomcat would parse | the XML and store it in its internal datastructures/beans but how | terribly wrong I am! No, Tomcat does do that. But it uses the commons-dig

Re: configuration issue

2008-05-14 Thread John Pedersen
2008/5/14 Christopher Schultz <[EMAIL PROTECTED]>: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > John, > > John Pedersen wrote: > | Cannot create JDBC driver of class '' for connect URL 'null' > > This comes up quite often. Unfortunately, any number of bad > configuration options can resul

RE: internal tomcat server.xml parsing

2008-05-14 Thread Ramesh Narayanan (ramesnar)
Chris Thanks for your reply. I was thinking the Tomcat would parse the XML and store it in its internal datastructures/beans but how terribly wrong I am! I also thought about using JMX to load/reload these properties once parsed from server.xml file. I was scourging the tomcat API document

Re: configuration issue

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Pedersen wrote: | Cannot create JDBC driver of class '' for connect URL 'null' This comes up quite often. Unfortunately, any number of bad configuration options can result in this message. |http://enigmail.mozdev.org iEYEARECAAYFAkg

Re: internal tomcat server.xml parsing

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ramesh, Ramesh Narayanan (ramesnar) wrote: | Has anyone ventured into modifying the conf/server.xml file using the | default internal XML parser of tomcat? IIRC, Tomcat uses commons-digester to load its XML configuration. The digester does not have

Re: Preventing tomcat from creating sessions

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Youssef, Youssef Mohammed wrote: | I am writing a set of RESTful services. client do not send cookies and we | don't want to user URL rewriting for most | of the services (they are just stateless). | The issue is when the client calls http://localhos

internal tomcat server.xml parsing

2008-05-14 Thread Ramesh Narayanan (ramesnar)
Hi folks Has anyone ventured into modifying the conf/server.xml file using the default internal XML parser of tomcat? I am currently in a midst of a project where I am securing all in bound and out bound communications and to that effect I have generated a SSL certificate using our C

Re: Help Requested: Sending file attachments greater than 4mb causes OOM errors

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lyman, Lyman wrote: | mod_jk/1.2.5 You should upgrade this if possible. That version is 5 years old and the latest version should be completely compatible with the old one. I'm sure it's not the problem, but I wouldn't want to miss an opportunity to

configuration issue

2008-05-14 Thread John Pedersen
Hi, I have spent days and days chasing this error: Cannot create JDBC driver of class '' for connect URL 'null' I have now resolved the issue. This was my configuration: META-INF/context.xml: in web.xml: compatMYSQL javax.sql.DataSource

Re: Help Requested: Sending file attachments greater than 4mb causes OOM errors

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lyman, Lyman wrote: | Thank you Peter, I forgot to add that I had set the parameters as follows: | "-Djava.awt.headless=true -Xmx1500m -Xms1500m" On a 1gb machine? I'm not sure Java will even start up with those parameters. Are you sure your memory

Re: JNDI Issue with Tomcat

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hanmay, Hanmay Udgiri wrote: | I have implemented datasource using JNDI look up. | | The code work fine If I call the code during any User action. | But If try to call the same code during the tomcat server start up I get an | exception | | javax.nam

Re: link to Tomcat6 bug list

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zemian, Zemian Deng wrote: | The bug report interface here: | https://issues.apache.org/bugzilla/query.cgi?product=Tomcat%206 | will only display a specific word search. You want 'Advanced Search' which is somewhat non-obviously available to the rig

Re: Tomcat LDAP Authentication

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Russell wrote: | [Resubmitted. I did not see this appear in the digest, if you have | seen this before and replied, please accept my apologies] It came through before. You might have missed the cutoff for the digest - -- or maybe just mi

Re: Delima Load Balancing Question

2008-05-14 Thread Filip Hanik - Dev Lists
see corrections inline karthikn wrote: Hi Can some body suggest me any thin missing in here... I have 2 independent Tomcats clustered The Apache Configurations is as given httpd.conf - LoadModule jk_module modules/mod_jk.so JkWorkersFile con

Preventing tomcat from creating sessions

2008-05-14 Thread Youssef Mohammed
Hi; I am writing a set of RESTful services. client do not send cookies and we don't want to user URL rewriting for most of the services (they are just stateless). The issue is when the client calls http://localhost/services/resource say n times, the application server/servlet container creates

Tomcat LDAP Authentication

2008-05-14 Thread John Russell
Hi, [Resubmitted. I did not see this appear in the digest, if you have seen this before and replied, please accept my apologies] Is there a command line method to test an LDAP configuration? I could not find any log messages after basic authentication was denied. Perhaps the authentication log

RE: Delima Load Balancing Question

2008-05-14 Thread Peter Crowther
> From: karthikn [mailto:[EMAIL PROTECTED] > Can some body suggest me any thin missing in here... [lots of text missing] Please describe the problem you have, that leads you to think something might be missing. Without that, we're guessing. - Peter

Delima Load Balancing Question

2008-05-14 Thread karthikn
Hi Can some body suggest me any thin missing in here... I have 2 independent Tomcats clustered The Apache Configurations is as given httpd.conf - LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkLogFile lo

Re: Shared Javascript, CSS, and Image Files

2008-05-14 Thread Steve Ochani
Date sent: Tue, 13 May 2008 16:21:22 -0700 (PDT) From: John Buchholz <[EMAIL PROTECTED]> Subject:Shared Javascript, CSS, and Image Files To: users@tomcat.apache.org Send reply to: Tomcat Users List > Hi, > > I am looking for the recommended solution for when multiple webapps

Re: Help Requested: Sending file attachments greater than 4mb causes OOM errors

2008-05-14 Thread Lyman
Peter Crowther wrote: What does "top" tell you about your used/free memory - total, and that used by Java? Here is a snap shot of top sorted by %memory used: top - 11:02:53 up 12 days, 2:56, 1 user, load average: 0.02, 0.01, 0.00 Tasks: 76 total, 1 running, 75 sleeping, 0 stopped,

RE: Help Requested: Sending file attachments greater than 4mb causes OOM errors

2008-05-14 Thread Peter Crowther
> From: Lyman [mailto:[EMAIL PROTECTED] > Thank you Peter, I forgot to add that I had set the > parameters as follows: > "-Djava.awt.headless=true -Xmx1500m -Xms1500m" On a machine with 1 Gbyte of physical memory, that is almost certainly a mistake - depending on how much swap you've allocated.

Re: Help Requested: Sending file attachments greater than 4mb causes OOM errors

2008-05-14 Thread Lyman
Thank you Peter, I forgot to add that I had set the parameters as follows: "-Djava.awt.headless=true -Xmx1500m -Xms1500m" The -D parameter was there before so I did not mess with it.. I had tried with and without the -Xms parameter and did not see any difference in behavior. Lyman Peter Crow

Re: Tomcat & Apache webserver authentication

2008-05-14 Thread Rainer Jung
bartd schrieb: Thanks Rainer for your quick answer. Does "sharing the same database" means that if you are authenticated for 1 application, you're automatically authenticated for the other application? No. It means you only need one user administration. What you are now asking for, is sharing

RE: Taking Backup of tomcat server

2008-05-14 Thread Peter Crowther
> From: Raghavan_sat [mailto:[EMAIL PROTECTED] > Hi >I want to take a backup of my tomcat server regularly so > that if the > server crashes i can use the backup in another system. How > can i accomplish this.. 1) Back up the Tomcat files - you may want to use an open file copier on Windows i

Taking Backup of tomcat server

2008-05-14 Thread Raghavan_sat
Hi I want to take a backup of my tomcat server regularly so that if the server crashes i can use the backup in another system. How can i accomplish this.. -- View this message in context: http://www.nabble.com/Taking-Backup-of-tomcat-server-tp17232367p17232367.html Sent from the Tomcat - User

RE: Help Requested: Sending file attachments greater than 4mb causes OOM errors

2008-05-14 Thread Peter Crowther
> From: Lyman [mailto:[EMAIL PROTECTED] > I increased the machine specs > from 64mb ram 500 mhz pII to a P4 1.3ghz 1gb ram. Java will only use the amount of RAM you tell it to, not the entire machine RAM. It defaults to a low value - probably 64Mbytes in your environment. You'll need to add ap

Re: what are ways to improve the performance of server?

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sur, sur_1805 wrote: | I am using tomcat 6 on linux machine with 4 cpu 64 bit machine, What are the | ways to perform load balancingand improve the performance of server when | multiple requests are processed? | i am new to this and just installe

Re: Multiple Authentication Methods?

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, Robinson, Eric wrote: | I'm too lazy for all that. :) Laziness and authentication are never a good combination. | I was hoping it would amount a few extra lines in some configuration | file. Now I'm thinking I'll figure out a way to lock it

Re: RES: Once again, clear text passwords in context.xml files

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus, Milanez, Marcus wrote: | Filip Hanik wrote: |> if someone gets onto your machine as an super user, you have bigger |> problem than the password being in clear text | | That is the answer everyone gives in tomcat forums all over the | internet

Re: Load Balnce and failover for Tomcat

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stront, Stront wrote: | So can anyone answer my initial question: How can I determine | | 1. That the server is not in the a startup, shutdown stage in it lifecycle; | has acheived the after_start state Didn't you say you could already do this? | 2

Help Requested: Sending file attachments greater than 4mb causes OOM errors

2008-05-14 Thread Lyman
I appreciate any help or guidance you may provide. I am trying to determine if I am trying to solve a solvable problem or should I pursue other methods to overcome the problem. Particulars: Apache/1.3.27 Ben-SSL/1.48 (Unix) Debian GNU/Linux mod_jk/1.2.5 mod_perl/1.27 tomcat4_4.1.28-1 Axis 1.1

JNDI Issue with Tomcat

2008-05-14 Thread Hanmay Udgiri
Hi I have implemented datasource using JNDI look up. The code work fine If I call the code during any User action. But If try to call the same code during the tomcat server start up I get an exception javax.naming.NameNotFoundException: Name comp is not bound in this Context I am using Tomcat 5.5

Re: Tomcat startup problem

2008-05-14 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. --- - Origi

Re: Tomcat & Apache webserver authentication

2008-05-14 Thread bartd
Thanks Rainer for your quick answer. Does "sharing the same database" means that if you are authenticated for 1 application, you're automatically authenticated for the other application? -- Initial header --- >From : "Rainer Jung" [EMAIL PROTECTED] To : "Tomcat User

RE: Optimal number of Tomcat instances versus Number of cores

2008-05-14 Thread HLL
Very well explained Peter. Thanks a lot. I take a note about the translation. ;) Peter Crowther wrote: > >> From: HLL [mailto:[EMAIL PROTECTED] >> I have a doubt. How can I determine the optimal number of >> Tomcat servers in >> the same machine to achive the best throughput depending on >> the

Re: Tomcat startup problem

2008-05-14 Thread Neil B. Cohen
Johnny Kewl wrote: Thanks Johnny - I'll save this for the next time - as I indicated, it seems to be working again but I have no idea why... I was not running it inside of Netbeans - I was actually copying the war file to a separate tomcat installation and running it there - but your suggestio

RE: Optimal number of Tomcat instances versus Number of cores

2008-05-14 Thread Peter Crowther
> From: HLL [mailto:[EMAIL PROTECTED] > I have a doubt. How can I determine the optimal number of > Tomcat servers in > the same machine to achive the best throughput depending on > the number of > cores of the machine? That is, which is the optimal relation > between number of tomcats and number o

Re: Tomcat startup problem

2008-05-14 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. --- - Origi

Tomcat startup problem

2008-05-14 Thread Neil B. Cohen
Regarding my 'missing class com.sun.el.ExpressionFactoryImpl' - Ok - I'm totally confused now - my Tomcat startup is working again. But this is what I did to make it work. And I'm not sure I believe it 1) Changed Tomcat link from v6.0.16 back to 6.0.14 - failed to start 2) Changed Netbeans

Current thread count monitoring

2008-05-14 Thread Amit Bhargava
Hi, I'm new to Tomcat monitoring. I have an installation of Tomcat 5.5 on Windows 2003 server. I am trying to monitor Tomcat using JConsole (part of JDK 6). Could someone please tell me how I can get the current thread queue length in Tomcat? Regards, Amit -

Re: Tomcat & Apache webserver authentication

2008-05-14 Thread Rainer Jung
bartd schrieb: Hi, I connected Tomcat 5.5 and Apache Webserver together with mod_jk. My servlet calls are correctly transferred to Tomcat by Apache and if i address a servlet in a "secured" zone i'm prompted for a password (Form authentication in a Jdbcrealm in Tomcat). So far, so good. But i wo

Optimal number of Tomcat instances versus Number of cores

2008-05-14 Thread HLL
I have a doubt. How can I determine the optimal number of Tomcat servers in the same machine to achive the best throughput depending on the number of cores of the machine? That is, which is the optimal relation between number of tomcats and number of cores. -- View this message in context: http:

Tomcat & Apache webserver authentication

2008-05-14 Thread bartd
Hi, I connected Tomcat 5.5 and Apache Webserver together with mod_jk. My servlet calls are correctly transferred to Tomcat by Apache and if i address a servlet in a "secured" zone i'm prompted for a password (Form authentication in a Jdbcrealm in Tomcat). So far, so good. But i wonder if it is pos

Tomcat startup problem

2008-05-14 Thread Neil B. Cohen
I have written a small web app (using NetBeans) which has been running fine for a couple of weeks. Yesterday afternoon, I added a new page to the program, rebuilt it, created a new .war file and installed it in my tomcat webapps directory. And tomcat won't start it. The log file (catalina.out)

RE: Once again, clear text passwords in context.xml files

2008-05-14 Thread Peter Crowther
> From: Milanez, Marcus [mailto:[EMAIL PROTECTED] > On the other hand, is it right to stay behind a > possible security fault (malicious super user performing > login) in order to say I'll not correct known security issues > in my application? There's a lovely discussion on exactly this topic in H

Re: Load Balnce and failover for Tomcat

2008-05-14 Thread Stront
So can anyone answer my initial question: How can I determine 1. That the server is not in the a startup, shutdown stage in it lifecycle; has acheived the after_start state 2. That all of the webapps are started ? Thanks. David Fisher wrote: > > I think what the experts are saying is that e