RE: Tomcat Cluster Deployer

2008-09-17 Thread Paul McGurn
OK, I successfully deployed this in our test environment. Could you point me toward the general guidelines for properly creating documentation in the acceptable format? I'll start by documenting the existing cluster example that includes the farm section and work from there. Paul McGurn ---

RE: Tomcat/apache - JDBC errors w/ jt400.jar?

2008-09-17 Thread Caldarale, Charles R
> From: pichels [mailto:[EMAIL PROTECTED] > Subject: Tomcat/apache - JDBC errors w/ jt400.jar? > > We have our jt400.jar in our classpath var within our webapps > dir and in common/lib. Never, ever, use a CLASSPATH environment variable with Tomcat. Your jt400.jar must not be in two places at once

RE: Deploying a Java Web Application on / folder

2008-09-17 Thread Caldarale, Charles R
> From: krisrks [mailto:[EMAIL PROTECTED] > Subject: Deploying a Java Web Application on / folder > > I am trying to deploy a java Web application on Tomcat Server. Should we guess which version of Tomcat you're using, or would you deign to tell us? > appBase="/home/anotherheadsets/public_html"

Re: apache and tomcat version

2008-09-17 Thread Hardik Shah
My one of the client has this tomcat 3.2.1 and apache 1.3.27 config. i have one project to convert into struts and ajax(dwr) from jsp-java beans with current config. so i was little bit confused when i was knew abt this config bcoz i know only tomcat 5.x but thanks , one another question,whi

RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread Caldarale, Charles R
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 5.5, JNDI Connection Pooling, Active > connections keep increasing > > sinoea, of course you can... that looks thread safe... but > what I'm trying to do, is just make it bullet proof... Your suggestion does nothing to improve

Re: Dual-Independent Tomcat servers, on Single Win32 host sharing IIS server.

2008-09-17 Thread dOE
The interface for this host has multiple IP's bound to it. The IP's I posted in this thread are the addresses to the sites in IIS. Doesn't the worker have to pointed to the site (via IP) its intended for? The ports (server.xml) for both Tomcat instances are unique 8009 and 8109. On Wed, Aug 20,

Re: Dual-Independent Tomcat servers, on Single Win32 host sharing IIS server.

2008-09-17 Thread dOE
I can not upgrade to 1.2.26, this is for an application and its "certified' for 1.2.8...so I am forced to work with this older version. On Wed, Aug 20, 2008 at 4:48 PM, Rainer Jung <[EMAIL PROTECTED]>wrote: > First before trying to find the right configuration, upgrade! Version 1.2.8 > is s o

Re: Dual-Independent Tomcat servers, on Single Win32 host sharing IIS server.

2008-09-17 Thread dOE
André , I tried your suggestion, and it still did not work. On Wed, Aug 20, 2008 at 12:10 PM, André Warnier <[EMAIL PROTECTED]> wrote: > dOE wrote: > >> >> I tried to do the following, and it did not work. >> >> worker.list=ajp13w >> worker.ajp13w.type=ajp13 >> worker.ajp13w.host=192.168.0.1 >> w

RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keepincreasing....

2008-09-17 Thread Caldarale, Charles R
> From: sinoea kaabi [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active > connections keepincreasing > > I could accept the fact that we should create new objects of Dao's, > but for getting a datasource or connection it should make sense > to have a utility cl

Re: Deploying a Java Web Application on / folder

2008-09-17 Thread Stephen Souness
You'll get better mileage as; ROOT.war - case sensitivity tends to matter for this sort of thing. -- Stephen Souness Martin Gainty wrote: deploy your application as root.war http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html Martin _

Tomcat/apache - JDBC errors w/ jt400.jar?

2008-09-17 Thread pichels
Hi, I am newbie - pardon any lack of details or etiquite on my first post! We are trying to get our website to run correctly on a RHEL5.2 Linux server and getting errors with the JDBC - IBM AS400 ODBC connection. SEVERE: Servlet /wsidr threw load() exception java.lan

RE: Deploying a Java Web Application on / folder

2008-09-17 Thread Martin Gainty
deploy your application as root.war http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This trans

Deploying a Java Web Application on / folder

2008-09-17 Thread krisrks
Hello, I am trying to deploy a java Web application on Tomcat Server. This is part of my server.xml file www.anotherheadsets.com When I am deploying my application as ProjectOne.war on tomcat, the application works fine when I use the url http://www.anothe

Re: Server Maintenance Across Timezones (global)

2008-09-17 Thread John5342
>I think it will be useful when we get to the point of redesigning the app >from scratch. It's a bit tough to replace the data access layer of a large >complex app that's been around for a long time though. It is indeed difficult to change a long standing app but in the long run its a better appr

Re: Server Maintenance Across Timezones (global)

2008-09-17 Thread Bill Davidson
John5342 wrote: I get around my the same kinds of problems by keeping all the layers of the web app seperate so that i can swap them out one at a time and create a near seemless upgrade. The layers in my web apps are: 1 The web interface. 2. The application logic. (this may itself be several lay

Re: apache and tomcat version

2008-09-17 Thread ayden
What I want to run on my webpage is AJAX push via icefaces.org opensource code (asynchronous, web-based push of presentation changes to the client browser based on server-side events) to do this I believe I need NIO (I think NIO is also referred to as APACHE MINA project or another name I have seen

RE: Server Maintenance Across Timezones (global)

2008-09-17 Thread Paul McGurn
Easy solution to that one: Make order ID's GUIDs (globally unique identifiers). Most platforms allow for this, so I presume that Java is one of them. This could also be achieved by adding another element to the order ID generation as well. For instance, if your order ID was comprised of a fe

Re: Server Maintenance Across Timezones (global)

2008-09-17 Thread Bill Davidson
Paul McGurn wrote: Segregate, geographically, your customer base's target infrastructure. The way they do this is by tying their customers to a specific "cluster" of their cloud, and then everything that customer does in the application is tied back to that "cluster". The layer of redundancy

Re: Balance and sync data

2008-09-17 Thread Hassan Schroeder
On Wed, Sep 17, 2008 at 2:57 PM, Christopher Schultz <[EMAIL PROTECTED]> wrote: >> Why not have your upload servlet invoke rsync when a new file has >> been stored? > > You're not seriously suggesting that as a viable production strategy, > are you? [ IM IN UR DURECTRY COPYNG UR IMAGES ] Sure

Re: Server Maintenance Across Timezones (global)

2008-09-17 Thread John5342
I get around my the same kinds of problems by keeping all the layers of the web app seperate so that i can swap them out one at a time and create a near seemless upgrade. The layers in my web apps are: 1 The web interface. 2. The application logic. (this may itself be several layers in itself if t

RE: Problem with JSP Compilation

2008-09-17 Thread Martin Gainty
is your struts-tag.tld in \WEB-INF\classes is your struts2-dojo-plugin-2.1.2.jar in \WEB-INF\lib ? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmiss

Re: Balance and sync data

2008-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hassan, Hassan Schroeder wrote: > On Tue, Sep 16, 2008 at 6:38 AM, Martin Spinassi > <[EMAIL PROTECTED]> wrote: > >> I don't know yet, I didn't try it yet, I was waiting to see if there is >> a better solution than rsync them every minute. > > Why n

Re: apache and tomcat version

2008-09-17 Thread André Warnier
[EMAIL PROTECTED] wrote: Does Tomcat do the same thing as Apache? ie http; as well as the bonus of java? I am using PhP, and would to like to also have Java/AJAX?J2EE on my web page, and I am not sure if I need both Apache and Tomcat, or can just use Tomcat? (I dont know if it will do everything

Re: disable caching of static files in tomcat 5.5

2008-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joerg, Joerg Endrullis wrote: > $ ln -s x.jpg a.jpg; > $ wget http://localhost:8180/a.jpg?time=0; > $ rm a.jpg; > $ ln -s y.jpg a.jpg; > $ wget http://localhost:8180/a.jpg?time=1 My brain hurts. How about: $ wget -O t0.jpg http://localhost:8180

Problem with JSP Compilation

2008-09-17 Thread DavidCAIT
I have a webapp which uses Struts 2's taglib and Tomcat 5.5.23 with Java 1.5. I am not using precompiled JSP pages. Whenever I try to access a JSP page containing a struts 2 tag, the following exception is thrown: org.apache.jasper.JasperException: /default/login.jsp(37,0) File "/struts-tags" not

RE: Server Maintenance Across Timezones (global)

2008-09-17 Thread Paul McGurn
I think the ideal approach here (potentially) is segregating your customer base. Here's an idea directly from how Salesforce.com does it. Segregate, geographically, your customer base's target infrastructure. The way they do this is by tying their customers to a specific "cluster" of their cl

Re: 回复: 回复: 回复: about Co nnector's attribute redirectPort

2008-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 李征, 李征 wrote: > thank u so much for explaining the quesion so clearly. i think i > understand how redirect works now. and in my case, i think apache > handles all the ssl process, and redirectPort is not necessary. redirectPort might still be necessa

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sinoea, Oh, and I always always /always/ set my connection pool size to a fixed size of 1 (yes, a single connection) in development. This can help find places where you are requesting two connections from the pool by a single thread, which exposes yo

Re: Server Maintenance Across Timezones (global)

2008-09-17 Thread Alan Chaney
Hi Bill Yes, we have the same problem and I've been working on ways to improve the situation. Unfortunately, I don't think there is an easy or simple solution - a lot will depend upon your application. As far as the database side of it goes it seems to me that much of it is a question of mak

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sinoea, sinoea kaabi wrote: > } finally { > results.close(); > } > > } finally { > statement.close(); > } > > } finally {

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread Johnny Kewl
- Original Message - From: "André Warnier" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, September 17, 2008 10:18 PM Subject: Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing Caldarale, Charles R wrote: That's completely erroneous.

Re: transparent junctino w/ Tomcat

2008-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, André Warnier wrote: > If those guys at CERN (which must be using multiple Tomcats) ever > need a name for a new particle discovered on their brand new Large > Hadron Collider.. Maybe "charmed junctino" or "strange junctino". - -chris -

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread Johnny Kewl
- Original Message - From: "sinoea kaabi" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, September 17, 2008 9:56 PM Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing Right, I have attached the source code. I have included the w

Server Maintenance Across Timezones (global)

2008-09-17 Thread Bill Davidson
My company's main webapp is used around the world (Europe, North America, Australia, etc.). We're using Tomcat as our app server and Oracle (10g) for our database. When we want to do an upgrade, that usually involves DDL changes to the database as well as corresponding changes to the webapp whic

Re: URLEncoding of "\" Character

2008-09-17 Thread Johnny Kewl
- Original Message - From: "Erik Onnen" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, September 17, 2008 10:27 PM Subject: Re: URLEncoding of "\" Character Thanks Mark, much appreciated. I had no idea the extra system props even existed. On Wed, Sep 17, 2008 at 12:07

Re: URLEncoding of "\" Character

2008-09-17 Thread Erik Onnen
Thanks Mark, much appreciated. I had no idea the extra system props even existed. On Wed, Sep 17, 2008 at 12:07 PM, Mark Thomas <[EMAIL PROTECTED]> wrote: > Erik Onnen wrote: > > Verified on 6.0.16 and 6.0.18, 2.6.24 Linux kernel, JVM 1.6.0_10-beta. > When > > I attempt to encode a "\" character

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread André Warnier
Caldarale, Charles R wrote: That's completely erroneous. Shame, Johnny's story was so nice.. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: URLEncoding of "\" Character

2008-09-17 Thread Johnny Kewl
- Original Message - From: "Mark Thomas" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, September 17, 2008 10:01 PM Subject: Re: URLEncoding of "\" Character Johnny Kewl wrote: Would help if I said something in the first post hey ;) Not sure what you up to exactly bu

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread André Warnier
Johnny Kewl wrote: >> So, what exactly does it mean when we say that Tomcat is thread safe >> for >> requests. >> Tomcat creates a new thread for each request, so somehow my static >> methods >> are then thread safe (incdirectly, since it is managed by Tomcat). I actually searched all over

Re: URLEncoding of "\" Character

2008-09-17 Thread Mark Thomas
Johnny Kewl wrote: > Would help if I said something in the first post hey ;) > > Not sure what you up to exactly but > %5C is right for \ > but \ > I thing is probably an illegal servlet or file name, so it cant work On what basis? The OPs request is completely legal. Mark ---

Re: URLEncoding of "\" Character

2008-09-17 Thread Mark Thomas
Martin Gainty wrote: > U+0244 > http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references That format won't work in a URL. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail

RE: apache and tomcat version

2008-09-17 Thread ayden
Does Tomcat do the same thing as Apache? ie http; as well as the bonus of java? I am using PhP, and would to like to also have Java/AJAX?J2EE on my web page, and I am not sure if I need both Apache and Tomcat, or can just use Tomcat? (I dont know if it will do everything that Apache does plus more

Re: URLEncoding of "\" Character

2008-09-17 Thread Johnny Kewl
- Original Message - From: Johnny Kewl To: Tomcat Users List Sent: Wednesday, September 17, 2008 9:26 PM Subject: Re: URLEncoding of "\" Character - Original Message - From: "Erik Onnen" <[EMAIL PROTECTED]> To: Sent: Wednesday, September 17, 2008 8:51 PM Subject: URLEncodi

Re: URLEncoding of "\" Character

2008-09-17 Thread Johnny Kewl
- Original Message - From: "Erik Onnen" <[EMAIL PROTECTED]> To: Sent: Wednesday, September 17, 2008 8:51 PM Subject: URLEncoding of "\" Character > Verified on 6.0.16 and 6.0.18, 2.6.24 Linux kernel, JVM 1.6.0_10-beta. When > I attempt to encode a "\" character into a url resulting in

RE: URLEncoding of "\" Character

2008-09-17 Thread Martin Gainty
U+0244 http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is

Problem running Tomcat 6.0.18 on Windows 2k and 2k3 Server

2008-09-17 Thread Bai Shen
I just upgraded the tomcat I'm using to host my application from 5.x to 6.0.18. Runs great on XP. However, when attempting to start tomcat on 2k or 2k3 server, it just dumps out to the command prompt with no error. Now as far as I can tell, the problem is with the error handling of the setclassp

Re: URLEncoding of "\" Character

2008-09-17 Thread Mark Thomas
Erik Onnen wrote: > Verified on 6.0.16 and 6.0.18, 2.6.24 Linux kernel, JVM 1.6.0_10-beta. When > I attempt to encode a "\" character into a url resulting in a %5C in the URL > on the wire, I'm seeing a 400 from the server and none of my code is hit. > I've tried URLEncoding="UTF-8" on the connecto

URLEncoding of "\" Character

2008-09-17 Thread Erik Onnen
Verified on 6.0.16 and 6.0.18, 2.6.24 Linux kernel, JVM 1.6.0_10-beta. When I attempt to encode a "\" character into a url resulting in a %5C in the URL on the wire, I'm seeing a 400 from the server and none of my code is hit. I've tried URLEncoding="UTF-8" on the connector with no luck. Same URL s

Re: Migration from Tomcat 4.x to 5.5

2008-09-17 Thread David Smith
Take a look at the server.xml that came with 5.5 and you'll see a similar connector in there. There won't be a className attribute -- instead it'll contain a protocol attribute with the value of "AJP/1.3". With regard to authentication, the old tomcatAuthentication="false" still exists in versio

Re: Migration from Tomcat 4.x to 5.5

2008-09-17 Thread Mark Thomas
Arun Raj Ramkumar wrote: > Hi all, > > I need to migrate my web application from tomcat 4.1.29 to tomcat 5.5. I > have installed tomcat 5.5 with JDK 1.6 and deployed my web application, its > working fine. > Tell me what are all the changes need to be done to connect apache 2.0 to > tomcat 5.5.

Re: [a little OT] Can I get Millisecond precision in Access Logs?

2008-09-17 Thread Mark Thomas
Jonathan Mast wrote: > Ok, so I see that will have to roll my own PreciseAccessLogValve. So how do > I integrate with Tomcat? Do i just write my code, jar it and place in the > Tomcat's common/lib, and simply reference the classname like I do the > built-in accesslogvalve? Yep. That's all you nee

Re: session replication / cluster groups

2008-09-17 Thread Filip Hanik - Dev Lists
you could use the BackupManager this only replicates data to one backup node http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-manager.html and you can fail over to any node, it will fetch the backup from the backup node Filip Kevin Phillips wrote: Hi, I have tomcat clustering working w

Re: Migration from Tomcat 4.x to 5.5

2008-09-17 Thread Gregor Schneider
http://tomcat.apache.org/connectors-doc/ rgds gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topi

Migration from Tomcat 4.x to 5.5

2008-09-17 Thread Arun Raj Ramkumar
Hi all, I need to migrate my web application from tomcat 4.1.29 to tomcat 5.5. I have installed tomcat 5.5 with JDK 1.6 and deployed my web application, its working fine. Tell me what are all the changes need to be done to connect apache 2.0 to tomcat 5.5. Earlier apache 2.0 server was connecte

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread Johnny Kewl
- Original Message - From: "sinoea kaabi" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, September 17, 2008 4:48 PM Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing This question about static variables seems a bit deeper than I

RE: session replication / cluster groups

2008-09-17 Thread Paul McGurn
I believe this segregation is typically done with instances of multiple load balancers. I'm not an expert on the mod_jk stuff, but you'd probably want to implement this with multiple load balancers regardless, when you're getting up to that many instances. Bear in mind that this piece of your

session replication / cluster groups

2008-09-17 Thread Kevin Phillips
Hi, I have tomcat clustering working well with an apache load balancer in front (sticky session). I have around 10 at the moment, and I soon need to add at least 20 to 30 more. The configuration for session replication is "all-to-all", using multicast. My aim is to reduce the session traffic bet

RE: [a little OT] Can I get Millisecond precision in Access Logs?

2008-09-17 Thread Martin Gainty
valves are configured for the container as seen here for RequestDumperValve just below top-level Catalina info available at http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html HTH Martin __ Disclaimer and confidentiality note Everything

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread Johnny Kewl
- Original Message - From: "sinoea kaabi" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, September 17, 2008 4:48 PM Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing This question about static variables seems a bit deeper than I

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread David Smith
To get this thread restarted in the right direction, I thought it'd be good to recap a little from your posts so far... > I have set the max active connections to 40. > My active connections keep increasing, they never seem to return back > to the pool, > eventhough when no-one is visiting the sit

Re: [a little OT] Can I get Millisecond precision in Access Logs?

2008-09-17 Thread Jonathan Mast
Ok, so I see that will have to roll my own PreciseAccessLogValve. So how do I integrate with Tomcat? Do i just write my code, jar it and place in the Tomcat's common/lib, and simply reference the classname like I do the built-in accesslogvalve? On Tue, Sep 16, 2008 at 4:40 PM, Mark Thomas <[EMAIL

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread David Smith
Let's not get testy here -- your post had a lot of errors in it, including your concept of static methods and how they are handled in a threaded environment. This whole discussion is getting very off topic. I'll drop this thread here and respond to the OP on a thread that's still on topic. --Dav

RE: Balance and sync data

2008-09-17 Thread Martin Spinassi
On Tue, 2008-09-16 at 17:59 -0400, Paul McGurn wrote: > If you're expecting the size of your image store to grow, or better yet, grow > rapidly, you'd be best served to consider a strategy either with > mod_proxy/mod_rewrite, or better yet, looking into a CDN (content delivery > network) to host

RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread sinoea kaabi
This question about static variables seems a bit deeper than I thought, the more I think about it the more confused I get. I could accept the fact that we should create new objects of Dao's, but for getting a datasource or connection it should make sense to have a utility class with static metho

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread Johnny Kewl
- Original Message - From: "David Smith" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, September 17, 2008 3:40 PM Subject: Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing Comments inline ... Johnny Kewl wrote: >> So, what exactly

RE: Tomcat 6 Manager

2008-09-17 Thread Susan G. Conger
When you go into the Tomcat Manager you get a list of running web applications. Then the next section lets you deploy a host directory or local WAR file. It asks for the following information: Context Path (optional): [I have found this is not optional] XML Configuration file URL: [This app

RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread Caldarale, Charles R
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 5.5, JNDI Connection Pooling, Active > connections keep increasing > > Sineoa, my feeling is dont use static, unless you really want > it in a multithreaded environment > It pumps all the threads thru one pipe... That's co

RE: Non-Heap Memory always increasing during deployment for TC 5.5.26/Solaris/JVM 1.5.0_16

2008-09-17 Thread Caldarale, Charles R
> From: emerson cargnin [mailto:[EMAIL PROTECTED] > Subject: Re: Non-Heap Memory always increasing during > deployment for TC 5.5.26/Solaris/JVM 1.5.0_16 > > Wouldn't it be a problem with the JVM or tomcat and the plataform? No, it's 99.99% likely to be a problem in your app (or 3rd-party libr

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread David Smith
Comments inline ... Johnny Kewl wrote: > >> >> So, what exactly does it mean when we say that Tomcat is thread >> safe >> for >> >> requests. >> >> Tomcat creates a new thread for each request, so somehow my static >> >> methods >> >> are then thread safe (incdirectly, since it is managed by Tomca

Re: Non-Heap Memory always increasing during deployment for TC 5.5.26/Solaris/JVM 1.5.0_16

2008-09-17 Thread emerson cargnin
Hi Charles We don't have any thing other than the default installation, so nothing on the common/lib. We also don't have any JSP on this app. I've made a small webapp with one class, and I see the number of threads, classes loaded and non-heap memory actually going up, in a very smaller amount, o

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread Johnny Kewl
>> So, what exactly does it mean when we say that Tomcat is thread safe >> for >> requests. >> Tomcat creates a new thread for each request, so somehow my static >> methods >> are then thread safe (incdirectly, since it is managed by Tomcat). I actually searched all over to try find somethi

Re: DBCP Question

2008-09-17 Thread Paul Selibas
On Wed, Sep 17, 2008 at 3:03 PM, David Smith <[EMAIL PROTECTED]> wrote: > I think you'll have to have your webapp manage it's own DBCP pool > locally. I doubt there's a good way to change pool parameters on tomcat > provide database pools on the fly. At minimum, any change to the > element conf

Re: Tomcat 6 Manager

2008-09-17 Thread Mark Thomas
Susan G. Conger wrote: > I am trying to use the deployment of a host directory under the tomcat > manager. No sure what you mean by deploy a host directory. The context path that I want to use is /webapp/bfc. However > whenever I try to deploy the directory it gives me an invalid context path

Re: DBCP Question

2008-09-17 Thread David Smith
I think you'll have to have your webapp manage it's own DBCP pool locally. I doubt there's a good way to change pool parameters on tomcat provide database pools on the fly. At minimum, any change to the element config would require your webapp be restarted. --David Paul Selibas wrote: > Greeti

Re: Browser Limited web application

2008-09-17 Thread Mark Thomas
karthikn wrote: > Hi > > Some experimentation was done for the same > > But some Browsers provide modification of "User-Agent" > > Is this fool proof ? No. Mark - To start a new topic, e-mail: users@tomcat.apache.org To uns

[OT] RE: Browser Limited web application

2008-09-17 Thread Peter Crowther
[Marked off-topic as this now has nothing to do with Tomcat] > From: karthikn [mailto:[EMAIL PROTECTED] > But some Browsers provide modification of "User-Agent" > > Is this fool proof ? No. You have no control over the client; you cannot determine what it really is, only what it says it is. AV

DBCP Question

2008-09-17 Thread Paul Selibas
Greetings, Firstly i am using Tomcat 5.5 and Java 1.5. I am writing a simple web app but now my problem is the "setup" for the dbcp. I have set up the app with the resource tag in the context.xml file in the META-INF folder and it all works fine. Now for my problem... I would like to be able to ch

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread David Smith
Johnny -- A properly written static method would be completely stateless and could be executed from any number of threads simultaneously without issue. Think old style function calls in C where stuff is created on the stack and then popped off when execution finishes. The only hazard is if that

RE: Browser Limited web application

2008-09-17 Thread karthikn
Hi Some experimentation was done for the same But some Browsers provide modification of "User-Agent" Is this fool proof ? With regards Karthik -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2008 5:09 PM To: users@tomcat.apache.org S

Tomcat 6 Manager

2008-09-17 Thread Susan G. Conger
I am trying to use the deployment of a host directory under the tomcat manager. The context path that I want to use is /webapp/bfc. However whenever I try to deploy the directory it gives me an invalid context path and it fails to deploy. What should I put in the context path to have it deploy t

RE: Browser Limited web application

2008-09-17 Thread karthikn
Hi >> For computers in the local network you could execute "ping ip", and then "arp -a", and parse the result. Or you could look for an Java ARP implementation, there are some of them on the internet, but are not very simple to use. Correct but HOW via a JSP at run time With regards Karthi

RE: add memory

2008-09-17 Thread Caldarale, Charles R
> From: Alex Mestiashvili > [mailto:[EMAIL PROTECTED] > Subject: Re: add memory > > Hi , this server has 16G ,do you think something wrong ? No, just impressed. Must be about a week between garbage collections :-) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIE

Re: Browser Limited web application

2008-09-17 Thread Ognjen Blagojevic
Peter Crowther wrote: From: karthikn [mailto:[EMAIL PROTECTED] Question 2: How to fetch the MAC address (Physical address) of the clients using web application ? You can not do this at the server. Some clients may not even have one - a computer with no network card using a

RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread sinoea kaabi
Thanks! > Date: Wed, 17 Sep 2008 08:01:01 -0400 > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep > increasing > > A static method can't have access to class instance variables. You > could make it static, bu

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread Johnny Kewl
- Original Message - From: "sinoea kaabi" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, September 17, 2008 12:48 PM Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing Just a question here, I am using a Data class to retrieve the

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread David Smith
A static method can't have access to class instance variables. You could make it static, but it shouldn't reference any variables it didn't locally declare: /** * Gets a [EMAIL PROTECTED] DataSource} for database connection usage. * @return The datasource for database connection.

Re: Browser Limited web application

2008-09-17 Thread bhooshanpandit
For # 1, try this in your filter: if(httpservletrequest.getHeader("User-Agent").indexOf("MSIE 6.0")!= -1) filterchain.doFilter(servletrequest, servletresponse); else httpservletresponse.getWriter().print("This browser version is not supporte

Re: Browser Limited web application

2008-09-17 Thread Jim Cox
On Wed, Sep 17, 2008 at 6:58 AM, karthikn <[EMAIL PROTECTED]>wrote: > > Question 1 : How to implement a Filter in the application for Browsers > limitation >The web application should be visible only in IE-6 or > Fire Fox 2.0 ? > You can write & deploy a Filter that ex

RE: apache and tomcat version

2008-09-17 Thread Peter Crowther
> From: Hardik Shah [mailto:[EMAIL PROTECTED] > is tomcat 3.2.1 and apache 1.3.27 are both server Tomcat 3.2.1 is a web server. You can use it to serve Web pages or web applications directly. You do not need to use any version of Apache httpd as well. If you want to use Apache httpd as well,

RE: Browser Limited web application

2008-09-17 Thread Peter Crowther
> From: karthikn [mailto:[EMAIL PROTECTED] > Question 2: How to fetch the MAC address (Physical address) of > the clients using web application ? You can not do this at the server. Some clients may not even have one - a computer with no network card using a dial-up modem to a

Re: apache and tomcat version

2008-09-17 Thread bhooshanpandit
I did not understand your question but here are some pointers: - Tomcat is a servlet container which can be used to host your servlet / JSPs etc. - Apache 1.3.27 is an HTTP server that can only host static files like html pages, images etc. However you can integrate Tomcat with Apache using m

Browser Limited web application

2008-09-17 Thread karthikn
Hi Spec : TOMCAT 6.0.18 O/s: HP UNIX 11i J2SDK : j2sdk1.6 or jre 1.6 An application deployed on the env as 'XYZ.war' Question 1 : How to implement a Filter in the application for Browsers limitation The web application should be visible only in IE-6 or Fire

Re: Interapp Communications

2008-09-17 Thread André Warnier
Darryl Pentz wrote: Hi Johnny, Thanks for your responses. I did read them on the day that you posted them but only got a chance now to respond. Needless to say I have gone with a simple HttpURLConnection solution, as my choice out of other suggestions given to me in other threads, of using nu

apache and tomcat version

2008-09-17 Thread Hardik Shah
hi i have used yet tomcat 5.0 and tomcat 5.5 i have one confusion , is tomcat 3.2.1 and apache 1.3.27 are both server or ,we have to use both for configure server or anything else please help me - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- Vi

RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread sinoea kaabi
Just a question here, I am using a Data class to retrieve the datasource public class Data { /** * Gets a [EMAIL PROTECTED] DataSource} for database connection usage. * @return The datasource for database connection. * @throws SQLException */ p

RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread sinoea kaabi
Sounds reasonable, I will give it a try with non-static methods instead, new Dao() basically. Thanks, Sinoea > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep > increasing > Date: Wed, 17 Sep 2008 12:25:17 +0

Re: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread Johnny Kewl
- Original Message - From: "sinoea kaabi" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, September 17, 2008 11:31 AM Subject: RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing Thanks, First I will try to close resources before returning.

Re: How do you have your dev environment setup?

2008-09-17 Thread Ognjen Blagojevic
Bai Shen wrote: I've been doing a lot of webapp development on tomcat, but currently my process is all manual. I write the code in Eclipse, and then copy the appropriate files over to tomcat. I'd like to automate and standardize my process. So would y'all mind explaining how your dev environme

RE: Tomcat 5.5, JNDI Connection Pooling, Active connections keep increasing....

2008-09-17 Thread sinoea kaabi
Thanks, First I will try to close resources before returning. Although I am sure that the finally blocks are reached, since I use logging in the last finally block and the log is outputted. try { } finally { connection.close(); Data.logConnection(connection); // this is logged } But I

Re: Question is answered. See Bill Barker-2 answer (update)

2008-09-17 Thread kazukin6
Hi Chris! They can upload them using javascript file manager Totally rejecting scripting seems to be more robust solution Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Kazukin, > > kazukin6 wrote: >> And yes, for us it' not possible to give users to ch

  1   2   >