Re: Tomcat suddenly dies without a whisper

2008-05-16 Thread Yuval Perlov
Did you check the Java heap? What is the max heap defined. It would be good to add gc logging. Yuval Perlov www.r-u-on.com On May 16, 2008, at 6:38 AM, [EMAIL PROTECTED] wrote: Hi, We are running Tomcat 5.5 on a powerful VM Server. MS Sql Server is also on the VM. It is fronted by an

Re: URLClassLoader and Reflection fail on Windows.

2008-05-16 Thread Andrea Del Linz
Dear Johnny and all, thanks for the hint, that's was the problem (File to URL conversion, I mean). In fact I built URL object from string and so I had a mix between slash and backslash style, (something like file://C:\Program Files\...)... now I build a File and then I get the URL from it

RE: Tomcat suddenly dies without a whisper

2008-05-16 Thread Peter Crowther
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] When under load (heavy but not excessive) we suddenly find tomcat dies, without any error messages we can find. I assume you've done the really obvious thing of checking the code for constructs of the form: if (some involved condition the

Re: Tomcat running out of threads.

2008-05-16 Thread Bernardo Cabezas
Hi Philip Philip Wigg-2 wrote: jk-8300 - Max threads: 200 Current thread count: 200 Current thread busy: 199 Max processing time: 1667835 ms Processing time: 20958.227 s Request count: 131357 Error count: 586 Bytes received: 0.00 MB Bytes sent: 11208.42 MB Stage Time B Sent B Recv

Reload the Embedded Tomcat relam

2008-05-16 Thread Satyanarayana Bobba
Hi All, I am using the embedded tomcat in my application and I want to change the tomcat-users.xml file dynamically. Initially, I am setting that Realm to embedded tomcat by using the setRealm() method. Later on, I add the new users and changed the roles of the existing users and again

Re: Current thread count monitoring

2008-05-16 Thread DaveyS
Hi, You could use a J2EE monitoring solution such as FusionReactor: http://www.fusion-reactor.com/ http://www.fusion-reactor.com/ We have a Demo on our site and you can get lots of feedback including JDBC monitoring. Not to mention the overhead per request is sub millisecond. Regards, D

Request reply management in webservers

2008-05-16 Thread Sandeep setty
All, Please let me know how a web server manages Request and Reply? How the Web servers maintain the Request queue? How would the Web servers make sure reply are sent to intendended or appropriate requests? Thanks in advance. Regards, Sandeep

How to make Tomcat 6.0.x load system classes from .class files?

2008-05-16 Thread Markus Schönhaber
Hi, I just fiddled around with the source of org.apache.jasper.compiler.Validator I dimly remember that in Tomcat 5.x, after editing and rebuilding some of Tomcat's classes, I just needed to drop the resulting .class file at some special location and it was loaded instead of the .class file in

User-JDBC-Realm: User case-sensitiv?

2008-05-16 Thread Gregor Schneider
Hi guys, I'm just a bit puzzled, maybe one of you can shed some light: We're running Tomcat 5.5 here having created a JDBC-realm holding our users their credentials: RealmclassName=org.apache.catalina.realm.JDBCRealm connectionPassword=somePassword

Re: User-JDBC-Realm: User case-sensitiv?

2008-05-16 Thread paul womack
Gregor Schneider wrote: Hi guys, I'm just a bit puzzled, maybe one of you can shed some light: We're running Tomcat 5.5 here having created a JDBC-realm holding our users their credentials: The DDL of the MySQL-Tables shows like However, we've just discovered that Tomcat doesn't care at all

Re: wrapperClass usage

2008-05-16 Thread goober_nut
| Yes, I'm sorry, I did put my package name in there so it does look like | wrapperClass=my.class.MyWrapper. | It does read though my.class.MyWrapper.java, does that make a difference? Yes, the class name does not include .java -- you should remove it. | Can anyone tell me what I'm doing wrong?

Re: User-JDBC-Realm: User case-sensitiv?

2008-05-16 Thread Gregor Schneider
Hi Paul. thanks a lot, that's the reason why. I'm wondering what those guys from MySQL thought when introducing this feature... Anyways, thanks again! Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @

RE: User-JDBC-Realm: User case-sensitiv?

2008-05-16 Thread Boyd, Todd M.
When you think about how many people would be asking how to make them case-insensitive versus how many need to perform case-sensitive searching, it makes sense to me. Todd Boyd Web Programmer -Original Message- From: Gregor Schneider [mailto:[EMAIL PROTECTED] 8 snip! I'm wondering

Re: Current thread count monitoring

2008-05-16 Thread Amit Bhargava
Hi Dave, Thanks for the link. Will try it out. Regards, Amit DaveyS wrote: Hi, You could use a J2EE monitoring solution such as FusionReactor: http://www.fusion-reactor.com/ http://www.fusion-reactor.com/ We have a Demo on our site and you can get lots of feedback including JDBC

Re: Trying to understand the concept of embedded Tomcat

2008-05-16 Thread Filip Hanik - Dev Lists
there are many ways of doing it, one is 100% embedded, where you create all the components programmatically, another one is to distribute a regular tomcat, and you can use a hybrid model Filip Frank Neslon wrote: Hello, So I had the idea that I would like to deploy my application with Tomcat

Re: log4j and two webapps

2008-05-16 Thread Filip Hanik - Dev Lists
what is it that doesn't work? Filip bizio wrote: Hi guys. This is my first post here. I have a problem with log4j in one of two mine webapps: the first log4j.properties looks like # Conventions used in code # + Only few logging statements are at level INFO, just to log user activity # + RPC

Re: changing server.xml attribs on the fly

2008-05-16 Thread Filip Hanik - Dev Lists
tomcat uses the common-digester code to parse server.xml, you can see several classes called XXXRuleSet.java, and those are the rules for how server.xml turns into java objects Filip Ramesh Narayanan (ramesnar) wrote: Hi folks Has anyone ventured into modifying the

Re: [Fwd: Tomcat manager]

2008-05-16 Thread Filip Hanik - Dev Lists
you have specified some_user multiple times, it should only have 1 entry per username. ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=manager/ role rolename=admin/ user username=some_user password=some_user123

understanding some tomcat code

2008-05-16 Thread Leon Rosenberg
Hi, was just browsing through tomcat code, and the following is just a mystery to me -StandardSession.fireSessionsEvent(type,data): public void fireSessionEvent(String type, Object data) { if (listeners.size() 1) return; SessionEvent event = new

Re: tomcat 6 build from source-code

2008-05-16 Thread Vishwa Chary
Thanks Filip for the intructions. Chary On Thu, May 15, 2008 at 6:46 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: ant download ant ant -f extras.xml ant -f dist.xml release Filip Vishwa Chary wrote: Thanks John, This one from SVN works correctly. The one I downloaded as

Re: How to make Tomcat 6.0.x load system classes from .class files?

2008-05-16 Thread Filip Hanik - Dev Lists
just put them in the lib directory, you can see the class loader definitions in conf/catalina.properties Filip Markus Schönhaber wrote: Hi, I just fiddled around with the source of org.apache.jasper.compiler.Validator I dimly remember that in Tomcat 5.x, after editing and rebuilding some of

Re: Reload the Embedded Tomcat relam

2008-05-16 Thread Filip Hanik - Dev Lists
realms have a lifecycle, so you would need to start it Filip Satyanarayana Bobba wrote: Hi All, I am using the embedded tomcat in my application and I want to change the tomcat-users.xml file dynamically. Initially, I am setting that Realm to embedded tomcat by using the setRealm()

Re: understanding some tomcat code

2008-05-16 Thread Filip Hanik - Dev Lists
Leon Rosenberg wrote: Hi, was just browsing through tomcat code, and the following is just a mystery to me -StandardSession.fireSessionsEvent(type,data): public void fireSessionEvent(String type, Object data) { if (listeners.size() 1) return; SessionEvent event

Re: wrapperClass usage

2008-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, goober_nut wrote: | Is it possible to package up your own wrapper inside a war file which | you can deploy to other Tomcat servers without putting it in Tomcat 5.5 - | shared/lib or server/lib or Tomcat 6 lib/? That depends on exactly which

Re: [OT] Request reply management in webservers

2008-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sandeep, Sandeep setty wrote: | Please let me know how a web server manages Request and Reply? How | the Web servers maintain the Request queue? How would the Web servers make | sure reply are sent to intendended or appropriate requests? This is

JMX MBean

2008-05-16 Thread Liang Xiao Zhu
Hi, I am searching how to implement a MBean for a class that I implemented, which add some new funcionality to Tomcat. But I dont know deploy this MBean from the source of tomcat. I know how work MBean, but not how to within of Tomcat! Even I try to do something like change a

Re: User-JDBC-Realm: User case-sensitiv?

2008-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, Gregor Schneider wrote: | thanks a lot, that's the reason why. | | I'm wondering what those guys from MySQL thought when introducing this | feature... Try this: ALTER TABLE users ~ MODIFY COLUMN user_name VARCHAR(40) BINARY ; No need to

CGI/HTML

2008-05-16 Thread Shabu Khan
Folks, For some reason, the cgi perl script that I run via IE/Firefox does not render the output immediately, but waits until it has big chunk of the HTML. Does this have anything to do with the tomcat/cgi setup or header or something, or perl mod defaults? It works fine on a Apache/CGI/Perl

RE: JMX MBean

2008-05-16 Thread Caldarale, Charles R
-Original Message- From: Liang Xiao Zhu [mailto:[EMAIL PROTECTED] Subject: JMX MBean I am searching how to implement a MBean for a class that I implemented, which add some new funcionality to Tomcat. Don't suppose you'd care to tell us what version of Tomcat you're using? If

Re: CGI/HTML

2008-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shabu, Shabu Khan wrote: | For some reason, the cgi perl script that I run via IE/Firefox does not | render the output immediately, but waits until it has big chunk of the | HTML. Does this have anything to do with the tomcat/cgi setup or header

Re: CGI/HTML

2008-05-16 Thread Shabu Khan
Thanks Chris. I don't see any 'buffer setting tweaks' in the code, from the command line there is no delay it works just like a regular perl/shell script. This is a code written by someone back in 2000, I ported it to Perl 5.8.5 from Perl 5.005 and to the new Kernel (Linux 2.6), the output

Re: Newbie

2008-05-16 Thread David kerber
Evan Siegel wrote: Hi. Just joined your list. I would like to have a bibliography of sites and books and whatever other resources there are for people interested in using Tomcat for server-side website programming. I don't know; I've only ever used the online resources at

Re: Newbie

2008-05-16 Thread David kerber
Evan Siegel wrote: ... Please be gentle. BTW, nobody will jump on you for asking for resources where you can start educating yourself!! We just get frustrated with people who don't try to find information on their own, and then ask here for working code... D

Re: CGI/HTML

2008-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shabu, Shabu Khan wrote: | Earlier with Apache, I was able to see the output as it ran, just like from | the command line on the browser ... Well, using Apache out in front of both your web application /and/ CGI scripts certainly is an option, if

Re: Newbie

2008-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Evan, (For future posts, please start a new thread instead of hitting REPLY to an existing post). Evan Siegel wrote: | I would like to have a bibliography of sites and books and whatever | other resources there are for people interested in using

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

2008-05-16 Thread Lyman
Sorry to take so long getting back to you and thanks for the post.. others pointed out this is probably an axis problem so I have been searching the archives of the axis mailing list for clues. Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- You should upgrade this if possible.

Re: wrapperClass usage

2008-05-16 Thread Juha Laiho
goober_nut wrote: Is it possible to package up your own wrapper inside a war file which you can deploy to other Tomcat servers without putting it in Tomcat 5.5 - shared/lib or server/lib or Tomcat 6 lib/? Not for deployment as a war file; I'm pretty certain that the class is not being

RE: CGI/HTML

2008-05-16 Thread Propes, Barry L
would the Perl module itself have a new buffer rate that you could determine? -Original Message- From: Shabu Khan [mailto:[EMAIL PROTECTED] Sent: Friday, May 16, 2008 1:25 PM To: Tomcat Users List Subject: Re: CGI/HTML Thanks Chris. I don't see any 'buffer setting tweaks' in the code,

Re: Newbie

2008-05-16 Thread Ken Bowen
Just to add to what David and Chris have already written: TC also works fine on Mac OS X (being a flavor of Unix). If you want a development environment, Eclipse is a great bargain (free!), and there is a free plugin for TC. The MyEclipse addon is low-cost and useful (at least to me). Once

Re: Newbie

2008-05-16 Thread Brian Martin
Hi there (just joined too), my two cents would be to check out the Netbeans IDE and website. The tutorials are great for one. And the software bundles w/ IDE/glassfish/tomcat/soa etc are a great way to get started. And everything is all set to go (integration wise) through a decent installer.

Re: JMX MBean

2008-05-16 Thread ubekhet
Hi Caldarale, Yes, I use the current version of Tomcat. Thanks for your link, but I want to know how to implement MBean, because according the web you gave, I have to add my MBean to the mbeans-descriptor.xml and also the folder where is contained. For example, if I want to implement the

Refuse connections in the selector

2008-05-16 Thread ubekhet
Hi, I would like to know, how I can refuse the connections when they are in the selector pool, just for waiting thread to manage connections. I use Tomcat 6 and also using NIO paradigm! and I dont know how to do that. Thanks in advance!!!

Re: log4j and two webapps

2008-05-16 Thread bizio
Now I'm ok. I've re-deployed the second webapps and now log4j logs everything. Thanks. Fab Filip Hanik - Dev Lists wrote: what is it that doesn't work? Filip bizio wrote: Hi guys. This is my first post here. I have a problem with log4j in one of two mine webapps: the first

Re: Refuse connections in the selector

2008-05-16 Thread Filip Hanik - Dev Lists
is this related to tomcat, or just generic java/nio? Filip ubekhet wrote: Hi, I would like to know, how I can refuse the connections when they are in the selector pool, just for waiting thread to manage connections. I use Tomcat 6 and also using NIO paradigm! and I dont know how to do that.

RE: User-JDBC-Realm: User case-sensitiv?

2008-05-16 Thread Boyd, Todd M.
Gregor, You can use WHERE x LIKE condition to perform a case-sensitive search without modifying the structure of the table(s) involved by using the BINARY keyword. SELECT * FROM `foo` WHERE `bar` LIKE BINARY 'tesT' will not pull the record test or Test, but only matches the record tesT. Todd

Re: Refuse connections in the selector

2008-05-16 Thread ubekhet
Hi Filip, Is related java nio, and in this case as I use Tomcat with NIO paradigm, is the same. Thanks Filip Hanik - Dev Lists wrote: is this related to tomcat, or just generic java/nio? Filip ubekhet wrote: Hi, I would like to know, how I can refuse the connections when they are in

Re: How to make Tomcat 6.0.x load system classes from .class files?

2008-05-16 Thread Markus Schönhaber
Filip Hanik - Dev Lists wrote: just put them in the lib directory, Yes, thanks for confirming it. I have obviously made (more than once) some stupid mistake. I have no idea what I did wrong. But since it works as it should now, after starting from scratch, I'll blame my aluminum foil deflector

Re: Refuse connections in the selector

2008-05-16 Thread Filip Hanik - Dev Lists
I'm still not sure what you're asking, but if you are writing your own NIO code, then you can cancel/close a connection that is in the selector pool at any point in time. Just get it out of the selector pool, and close it. Filip ubekhet wrote: Hi Filip, Is related java nio, and in this

InvalidClassException between Tomcat and Eclipse

2008-05-16 Thread Dola Woolfe
Hi, I get java.io.InvalidClassException when I send a serialized class from an application launched by Eclipse to a JSP page, compiled by the server. I thought that serialVersionUID was strictly a function of members, signatures, etc - but that doesn't appear to be the case. A workaround is

Re: InvalidClassException between Tomcat and Eclipse

2008-05-16 Thread Yuval Perlov
It is also affected by the compiler version. It is most advisable to add serialVersionUID Yuval Perlov www.r-u-on.com On May 17, 2008, at 7:16 AM, Dola Woolfe wrote: Hi, I get java.io.InvalidClassException when I send a serialized class from an application launched by Eclipse to a JSP