Servlet.Service() NullPointer on Filter - Really need some help on this one...

2003-10-28 Thread Bradley Beddoes
Hi All, I am hoping that someone is able to assist with some problems I am currently having with a filter I have written. The filter is designed to deal with authentication for users to check they have a particular cookie set then place an object into the session for further use. I have researched

Allocated instances

2003-10-28 Thread Yonatan Goraly
I work for a company that provides an application that is shipped pre-configured with Tomcat as a server. Until this customer, we had no issues with Tomcat. At this particular installation, each time I shut down Tomcat, I get a message that is waiting for x instance(s) to be deallocated - can

session hijacking and tying session to IP address with filter

2003-10-28 Thread Adam Hardy
What does everyone think of the idea of noting the IP address in the session so that session hijackers identified if they try to steal a session that has a different IP address from their own? Are there any drawbacks to this method? Nobody can spoof an IP address and still get back the

How do I get off this list?

2003-10-28 Thread Adam Mantell
Hello, How do I get off this list? Thanks, Adam _ Concerned that messages may bounce because your Hotmail account has exceeded its 2MB storage limit? Get

using DBCP in other web containers.

2003-10-28 Thread Antony Paul
Hello all, Is it possible to use DBCP coneection pool mechanism in other web containers and application servers ?. I dont want to use a proprietary connection pooling code and I dont want to use the existing code for some problems. I am not sure in which application server the application will

RE: Tomcat in combination with SMP and Sun java 1.4.1-01 or IBM java 1.3.x?

2003-10-28 Thread Francois JEANMOUGIN
-Message d'origine- De : Daniel Gibby [mailto:[EMAIL PROTECTED] Envoyé : lundi 27 octobre 2003 17:19 À : Tomcat Users List Objet : Re: Tomcat in combination with SMP and Sun java 1.4.1-01 or IBM java 1.3.x? See thread tomcat jitters than hangs. Set environment variable for

RE: Tomcat in combination with SMP and Sun java 1.4.1-01 or IBM java 1.3.x?

2003-10-28 Thread Patrick Ale
No, we are talking about SIG11 (SIGSEGV) received by the JITC thread on an hyperthreaded machine. I don't think it is the same problem. What actually happens for me is that all java processes die but one. This one process keeps the HTTP port open but does not serve any requests made

RE: Centralized user management system

2003-10-28 Thread gwu
Thanks Cheong. That sounds like what I should. I don't understand why each of your new application should define their own user access control table. Should that be part of the centralized user management system? My following message will attach a prototype of my user management system

Re: Help with access to certificate on HTTPS

2003-10-28 Thread Bill Harrelson
Thank you very much. It's nice to find people that know this stuff. Unfortunately req.getAttribute(org.apache.coyote.request.X509Certificate); also returns null when CLIENT-AUTH is set to false. Do I have some configuration problem I don't know about? I have seen several mentions on

RE: Tomcat in combination with SMP and Sun java 1.4.1-01 or IBM java 1.3.x?

2003-10-28 Thread Francois JEANMOUGIN
What actually happens for me is that all java processes die but one. This one process keeps the HTTP port open but does not serve any requests made to the application. This is a known bug, as far as I know, there is a bugfix that will be included in 4.1.28 (hopefully released soon). The story

RE: Servlet.Service() NullPointer on Filter - Really need some he lp on this one...

2003-10-28 Thread Bodycombe, Andrew
Where are your req and res variables defined? They should be local to the doFilter() method or you could get concurrency issues. Andy -Original Message- From: Bradley Beddoes [mailto:[EMAIL PROTECTED] Sent: 28 October 2003 07:50 To: [EMAIL PROTECTED] Subject: Servlet.Service()

RE: Form Double Submit Detection

2003-10-28 Thread Walker Chris
Tom, You can also put JavaScript code in the form's onSubmit event code to disable all the elements in the form. To make sure this happens after submission (otherwise nothing gets submitted) use window.setTimeout() to run the disable script after a short delay. Another alternative is to put a

RE: Servlet.Service() NullPointer on Filter - Really need some he lp on this one...

2003-10-28 Thread Bradley Beddoes
Hi Andy, I was considering that also however the req and res objects are specified as private members of the overall class that has been created (extends filter obviously) and i would have assumed that each request would instatiate a new object. Certainly willing to try them as local variables if

Needed more support for catalina.base in Bootstrap

2003-10-28 Thread Rodrigo Ruiz
Hi all, Recently I have been trying to install and configure an OGSA server (www.globus.org) deployed over a Tomcat container. The problem I have is that it requires a lot of Tomcat customization: additional connectors in the server.conf, additional jars in the common/lib, common/endorsed and

RE: Servlet.Service() NullPointer on Filter - Really need some he lp on this one...

2003-10-28 Thread Bodycombe, Andrew
Many requests may share the same Filter instance, so having instance variables to store the state of a request is a bad idea. You should look at re-coding your Filter to remove any instance variables. Andy -Original Message- From: Bradley Beddoes [mailto:[EMAIL PROTECTED] Sent: 28

Use own taglib with old Tomcat versions?

2003-10-28 Thread Kai Grossjohann
I'm using Tomcat 4.1.27, but our customers will want to use older versions, too. I created a taglib by writing some classes which live in the WEB-INF/classes subdir of my application. I also created a file WEB-INF/tlds/frumple.tld which contains references to the classes. All works fine under

Re: Form Double Submit Detection

2003-10-28 Thread Adam Hardy
On 10/28/2003 10:42 AM Walker Chris wrote: Tom, You can also put JavaScript code in the form's onSubmit event code to disable all the elements in the form. To make sure this happens after submission (otherwise nothing gets submitted) use window.setTimeout() to run the disable script after a

Re: How do I get off this list?

2003-10-28 Thread Adam Hardy
Send an email to the address below (tomcat-user-unsubscribe) and make sure you reply to the confirm-request. Adam On 10/27/2003 09:06 PM Adam Mantell wrote: Hello, How do I get off this list? Thanks, Adam

Tomcat 5 JBoss

2003-10-28 Thread harm
Is there any way to run JBoss with Tomcat 5 instead of 4.1.27? I'm using JBoss 3.2.2. I would like to switch to 5 because of the hotswap debugging feature. Thanks, Harm de Laat Informatiefabriek The Netherlands - To

Re: Form Double Submit Detection

2003-10-28 Thread Christopher Schultz
Justin, Agreed. One word of caution... We actually synchronized on the session... You aren't guaranteed to have the same HttpSession object for every request -- HttpSession is an interface which is implemented internally and wrapped by a facade. Synchronizing on the actual object you get

Re: does tomcat work without apache? ... a real beginner asks some basic!?

2003-10-28 Thread [EMAIL PROTECTED]
dear yoav shapira, please don't take it personal! it's me who is sitting lots of hours and trying... thank your for your time spent to answer my emails. i have one last question and i hope i get a last answer: what you told me in your last email (with absolute and relative paths) - is this

Apache cannot load jk2 (bis)

2003-10-28 Thread Jean-Max Estay
Hello, I use the ${Apache2} in this mail for the path of my apache install directory. Using mod_jk2-1.3.27.dll to connect Apache2 (2.0.47 win 32) on Windows XP Pro and Tomcat 4.1.27 on the same host, The file mod_jk2-1.3.27.dll is in ${Apache2}/modules After creating the files stdout.log,

Re: JDBC Realm

2003-10-28 Thread Christopher Schultz
David, I also have the user passwords encrypted using MD5 and this works fine. However we have a need to have all clear text passwords encrypted in configuration files. I need this realm to work with the connectionPassword value foobar encrypted. Does anyone know if this has been done and is there

Re: Authenticated JavaMail Session - a better way?

2003-10-28 Thread Tim Funk
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html -Tim Brian Silberbauer wrote: Hi all I have just managed to work out how to create an authenticated JavaMail session with JNDI in Tomcat, but it is a slight hack - I was wondering whether anybody has a better idea of

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Christopher Schultz
Adam, What does everyone think of the idea of noting the IP address in the session so that session hijackers identified if they try to steal a session that has a different IP address from their own? Are there any drawbacks to this method? Nobody can spoof an IP address and still get back the

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Tim Funk
I think they can and you'll break AOL users. AOL and other large entities sometimes employ megaproxies where the user might appear to be coming from different ip addresses. The guaranteed way to prevent session hijacking is by using ssl. (And making sure your site is not victim to css attacks)

Re: using DBCP in other web containers.

2003-10-28 Thread Christopher Schultz
Antony, Is it possible to use DBCP coneection pool mechanism in other web containers and application servers? Of course! In fact, Jakarta Commons DBCP has pretty much nothing to do with Tomcat, except that it's another Jakarta project. I dont want to use a proprietary connection pooling code

Re: Authenticated JavaMail Session - a better way?

2003-10-28 Thread Brian Silberbauer
Thanks Tim, but that will not create an _authenticated_ SMTP connection. Please read the original post. Brian Tim Funk wrote: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html -Tim Brian Silberbauer wrote: Hi all I have just managed to work out how to create an

RE: Issues | Suggestion any?

2003-10-28 Thread Arnab Chakravarty
Hey, Thanks again, but I was wondering why were you so amused about the Checklist part??? I wanted to know the best practices or some good learned lessons if any for tomcat. Anyways...my situation hasn't improved and all the tomcats have reached the max heap size and they have started taking

Factory methods.

2003-10-28 Thread anunay ashish
Why are some methods called factory methods? e.g. prepareStatement() in java.sql.PreparedStatement - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Factory methods.

2003-10-28 Thread walkerce
To hide the implementation class. For example, this construct avoids having to do this OraclePreparedStatement p = new OraclePreparedStatement(conn); or PreparedStatement p = new MySQLPreparedStatement(conn); So, you can write portable database code by using vendor-neutral factory methods

Re: Needed more support for catalina.base in Bootstrap

2003-10-28 Thread srevilak
From: Rodrigo Ruiz [EMAIL PROTECTED] Recently I have been trying to install and configure an OGSA server (www.globus.org) deployed over a Tomcat container. The problem I have is that it requires a lot of Tomcat customization: additional connectors in the server.conf, additional jars in the

Re: Authenticated JavaMail Session - a better way?

2003-10-28 Thread Tim Funk
Doh, missed that sentence. AFAIK, there is no way unless the 1.3 mail api exposes more properties for transport. (1.2 has a mail.user property but no password property) -Tim Brian Silberbauer wrote: Thanks Tim, but that will not create an _authenticated_ SMTP connection. Please read the

encoding issues with HTML pages

2003-10-28 Thread Edson Alves Pereira
Hello folks, this a different kind of matter, i have some web pages under a web-server. My pages are displayed with strange characters, an encoding problem, this web-server is for public use and i don´t have administrator previlegies. Is there a way to make my HTML pages displays correctly

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Adam Hardy
On 10/28/2003 12:06 PM Tim Funk wrote: I think they can and you'll break AOL users. AOL and other large entities sometimes employ megaproxies where the user might appear to be coming from different ip addresses. OK I guess if I write a filter to reject requests where the IP address doesn't

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Adam Hardy
On 10/28/2003 12:06 PM Tim Funk wrote: I think they can and you'll break AOL users. AOL and other large entities sometimes employ megaproxies where the user might appear to be coming from different ip addresses. The guaranteed way to prevent session hijacking is by using ssl. (And making sure

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Frode E. Moe
On Tue, Oct 28, 2003 at 13:23:43 +0100, Adam Hardy wrote: On 10/28/2003 12:06 PM Tim Funk wrote: I think they can and you'll break AOL users. AOL and other large entities sometimes employ megaproxies where the user might appear to be coming from different ip addresses. The guaranteed way

Source of JSP returned to user

2003-10-28 Thread Jon O'Sullivan
Hi, I have accidentally discovered a way that Tomcat can serve the source code of a JSP file. Running Tomcat 4.1.27 standalone, JDK 1.4.2, Win XP Pro. and also Win 2K Server Mostly the default configuration, but using port 80 rather than 8080. pointing my browser to

mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Florian Ebeling
Hi, I am trying to integrate Tomcat with Apache2 via the mod_jk2 module and CoyoteConnector on the Java side. Nothing experimental here, so far. Problem is 1) the module needs to be compiled against exactly the same Apache version into which it is to be deployed later 2) the only binary

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Tim Funk
IIRC, AOL users can use any web browser. -Tim Adam Hardy wrote: OK I guess if I write a filter to reject requests where the IP address doesn't match the one in the session, then I can always make an exception for AOL browsers - assuming I can identify them from the browser user-agent or the

Re: Source of JSP returned to user

2003-10-28 Thread Brian Silberbauer
I can't replicate this on my system: jakarta-tomcat-4.1.12-LE-jdk14 java version 1.4.2 kernel-source-2.6.0-test2 So, my sugested workaround would be to install Linux!! Brian Jon O'Sullivan wrote: Hi, I have accidentally discovered a way that Tomcat can serve the source code of a JSP file.

RE: Source of JSP returned to user

2003-10-28 Thread Patrick Ale
Linux is case sensetive for filenames, Windows appearantly still is not. :-) Patrick Ale System administrator Freeler B.V Email: [EMAIL PROTECTED] Tel.: +31 320 267678 Muda o mundo, começe com você mesmo -Oorspronkelijk bericht- Van: Brian Silberbauer [mailto:[EMAIL PROTECTED]

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Adam Hardy
On 10/28/2003 01:30 PM Frode E. Moe wrote: On Tue, Oct 28, 2003 at 13:23:43 +0100, Adam Hardy wrote: BTW, what are css attacks? Cross-site scripting attack. If an attacker can put text into your application which are echoed back verbatim within the HTML source for different users, the attacker

Hey man, long not see you

2003-10-28 Thread tomcat-user
Norton AntiVirus Deleted1.txt Description: plain/text - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: session hijacking and tying session to IP address with filter

2003-10-28 Thread Morgan Pyne
Hi Adam, Tying sessions to a particular IP address would be bad for more than just AOL users. It is very common in corporations and organisations to have multiple proxy servers/virus scanners through which client HTTP requests are 'round-robbined' or load-balanced. Each HTTP request will thus

Re: J2SDK 1.4.2_01 + Linux + file.encoding

2003-10-28 Thread Luiz Ricardo
Hi everyone, maybe this is off-topic but I read somewhere in Internet that the JVM System Properties should not be configured via -D parameter cause it is not guarranted to work. I always used this to configure the file.encoding in Linux machines to ISO-8859-1 but it didn´t work with J2SDK 1.4.2

RE: Source of JSP returned to user

2003-10-28 Thread Larry Isaacs
Since JDK 1.4.2 is being used, try the workaround specified for (you will need to register to see the bug): http://developer.java.sun.com/developer/bugParade/bugs/4895132.html which is: Specify -Dsun.io.useCanonCaches=false to the JVM. Or, try JDK 1.4.1 which doesn't have the cannon cache

Solution for mod_weppp Communitcation interrupted error message

2003-10-28 Thread wagner
Hi! I think I found the cause of the weird Communitcation interrupted error message. The description of the problem and the solution I implemented is found in the following page: http://www.nlink.com.br/~wagner/webapp_error.html The text would be somewhat long if I described it here in this

Re: Source of JSP returned to user

2003-10-28 Thread Christopher Schultz
Jon, Mostly the default configuration, but using port 80 rather than 8080. Are you sure you are not running, say, Apache on port 80, and that you have an Alias or DocumentRoot pointing into your webapp's root? I'm guessing that you don't have two HttpConnectors defined in server.xml: one

Re: Tomcat 5 JBoss

2003-10-28 Thread epyonne
JBoss and Tomcat run best when bundled together. At this point, they don't have a bundle with Tomcat 5 yet. Furthermore, Tomcat 5 is still in beta. Maybe that's the reason why the jboss folks want to wait until it is in production release. - Original Message - From: [EMAIL PROTECTED]

Re: Large Scale Deploymenet on Tomcat ?

2003-10-28 Thread epyonne
I am sure the fine folks at jboss.org are glad to help you out on this. - Original Message - From: ARUN PRASAD [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 27, 2003 09:13 PM Subject: Large Scale Deploymenet on Tomcat ? Hi ! Are there any success stories of

Re: encoding issues with HTML pages

2003-10-28 Thread Christopher Schultz
Edson, Hello folks, this a different kind of matter, i have some web pages under a web-server. My pages are displayed with strange characters, an encoding problem, this web-server is for public use and i don´t have administrator previlegies. Is there a way to make my HTML pages displays

Re: encoding issues with HTML pages

2003-10-28 Thread Graham Reeds
Hello folks, this a different kind of matter, i have some web pages under a web-server. My pages are displayed with strange characters, an encoding problem, this web-server is for public use and i don´t have administrator previlegies. Is there a way to make my HTML pages displays correctly

JWSDP-JAXRPC with Tomcat?

2003-10-28 Thread Søren Neigaard
Anybody know of a good tutorial on getting my JWSDP/JAXRPC to handle SOAP requests in Tomcat, or anyboudy have any pointers where to start? I found this tuturial, but it seems to be quite useless unless you just want their examples up and running:

RE: Allocated instances

2003-10-28 Thread Shapira, Yoav
Howdy, At this particular installation, each time I shut down Tomcat, I get a message that is waiting for x instance(s) to be deallocated - can get to It'd be useful to know instances of what class ;) Can the customer, or you, reproduce this problem easily? If so, you can run the app inside a

RE: does tomcat work without apache? ... a real beginner asks some basic!?

2003-10-28 Thread Shapira, Yoav
Howdy, dear yoav shapira, please don't take it personal! it's me who is sitting lots of hours and trying... Don't worry about me ;) I get enough amusement out of this mailing list to make up for the annoyance ;) what you told me in your last email (with absolute and relative paths) - is this

RE: JWSDP-JAXRPC with Tomcat?

2003-10-28 Thread Shapira, Yoav
Howdy, Chapter 12 of the URL you gave is useful. You can also google ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Søren Neigaard [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 8:58 AM To: '[EMAIL PROTECTED]' Subject: JWSDP-JAXRPC with Tomcat? Anybody

RE: Needed more support for catalina.base in Bootstrap

2003-10-28 Thread Shapira, Yoav
Howdy, What Steve said is right on target. Your patch is not likely to make it into the tomcat code base ;) A couple of other pointers, however: - Patches are always welcome -- so thanks for contributing ;) - Don't attach them to messages: open a bugzilla enhancement request and attach your

Re: JDBC Realm

2003-10-28 Thread Andoni
Can you please explain this a little better. You have in your database a list of all your user's passwords encrypted using MD5. Do you also have a clear text copy of them? Then you want to encrypt this clear text copy for use in your configuration files? If you don't already have a cleartext

TeraData DataSource

2003-10-28 Thread Ken . Martinson
Has anyone been able to connect to a TeraData datasource using thier JDBC driver? I'm getting the following error. java.sql.SQLException: Cannot create JDBC driver of class 'com.ncr.teradata.TeraConnectionPoolDataSource' for connect URL 'jdbc:teradata://sw72sqldv3:7060' at

Re: Needed more support for catalina.base in Bootstrap

2003-10-28 Thread Rodrigo Ruiz
Thanks for your responses, I will follow your suggestions :-) - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 3:16 PM Subject: RE: Needed more support for catalina.base in Bootstrap Howdy, What Steve

Number of processes and relationship to mod_jk, Apache, tomcat

2003-10-28 Thread Andrew Panagos
I am trying to understand the relationship between applications in Tomcat, the number of Tomcat processes, Apache mod_jk and the number of threads. For instance on a system I have the following Apache 1.3.28, Tomcat 4.1.27, Java 1.4.2_02 I use the follow commands to see what is listening to

RE: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Asif Chowdhary
Hi, Apache 2.0.47 will work with mod_jk2 connector. I have it working on my machine. In apache httpd.conf LoadModule jk2_module modules/mod_jk2.dll (I named it mod_jk2.dll) workers2.properties file in your apache2/conf/ directory #For the first tomcat listening on port 8009 First instance of

Configuring tomcat to serve request from specific IP addresses

2003-10-28 Thread Hari Krishna \( Associate \)
Hi, Is there any way to configure tomcat to enable its services (HTTP request/responses ) to specific IP address(s) only ? If yes, Can these configurations be made dynamically so that without restarting the tomcat changes should be active? I am using Tomcat 4.0.1 and is a standalone. I checked

Replicating Application variables

2003-10-28 Thread Karthik Duddala
We have a web application with multiple sub-systems . viz. , Order Processing, Inventory Management etc., I need a way to isolate each of these sub-systems. One approach I have thought of is setting an Application variables which then will be picked up the system and deny access to that

RE: Configuring tomcat to serve request from specific IP addresses

2003-10-28 Thread Shapira, Yoav
Howdy, RemoteAddressFilter, RTFM. Yoav Shapira Millennium ChemInformatics -Original Message- From: Hari Krishna ( Associate ) [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 9:59 AM To: Tomcat Users List Subject: Configuring tomcat to serve request from specific IP addresses

RE: Replicating Application variables

2003-10-28 Thread Shapira, Yoav
Howdy, We have a web application with multiple sub-systems . viz. , Order Processing, Inventory Management etc., I need a way to isolate each of these sub-systems. Why don't you make them separate webapps? Yoav Shapira This e-mail, including any attachments, is a confidential business

Re: Configuring tomcat to serve request from specific IP addresses

2003-10-28 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/security.html#restrict In 4.1.X, I think this can be configured on the fly via the admin webapp. But 4.0.X will need a restart. -Tim Hari Krishna ( Associate ) wrote: Hi, Is there any way to configure tomcat to enable its services (HTTP request/responses

Re: Hey man, long not see you

2003-10-28 Thread Joao Medeiros
Do we have an anti-virus software running on this list server? This message was infected... --JM [EMAIL PROTECTED] wrote: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Florian Ebeling
Hi Jean-Max, this won't work, Apache accepts only modules with exactly matching version numbers. I tried the mod_jk module, because this one is in sync with the Apache2 release. You can get it here: http://www.apache.de/dist/jakarta/tomcat-connectors/jk/binaries/win32/ mod_jk is deprecated,

Re: TeraData DataSource

2003-10-28 Thread Christopher Schultz
Ken, Has anyone been able to connect to a TeraData datasource using thier JDBC driver? I'm getting the following error. java.sql.SQLException: Cannot create JDBC driver of class 'com.ncr.teradata.TeraConnectionPoolDataSource' for connect URL 'jdbc:teradata://sw72sqldv3:7060' Did this

RE: Replicating Application variables

2003-10-28 Thread Karthik Duddala
Howdy, We have a web application with multiple sub-systems . viz. , Order Processing, Inventory Management etc., I need a way to isolate each of these sub-systems. Why don't you make them separate webapps? Yoav Shapira What are the advantages of having separate webapps? We have a

Re: TeraData DataSource

2003-10-28 Thread Ken . Martinson
No suitable driver. The TeraData .jar file is in the common/lib folder. Thanks, Ken Martinson ext. 3048 Christopher Schultz [EMAIL PROTECTED] 10/28/2003 10:26 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: TeraData

Re: Number of processes and relationship to mod_jk, Apache, tomcat

2003-10-28 Thread Christopher Schultz
Andrew, I am trying to understand the relationship between applications in Tomcat, the number of Tomcat processes, Apache mod_jk and the number of threads. Apache: lsof -i tcp:80 | wc -l This gives me 12 processes listening to port 80 (I checked these are related to the number of Apache

RE: How do I get off this list?

2003-10-28 Thread Vengurlekar, Mandar
Im trying to do that myself. I tried the unsubscribe option, but the reply to email id doesnt work. Thanks and Regards, Mandar -Original Message- From: Adam Mantell [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: How do I get off this

Re: Configuring tomcat to serve request from specific IP addresses

2003-10-28 Thread Christopher Schultz
Is there any way to configure tomcat to enable its services (HTTP request/responses ) to specific IP address(s) only? I'm sure you can do something like Apache's: Deny From All Allow From ip address ... but that would require a restart. Programmatically, you can do this by poking the allowed ip

Re: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Florian Ebeling
Hi Asif, thanks for your answere. I didn't try the module with the non-matching number. In fact, it does load. I read it several times, so I didn't question this. However, are you sure you do not have a jk2.properties file in your Tomcat /conf? The mod_jk2 documentation suggests there should

Re: session hijacking and tying session to IP address with filter

2003-10-28 Thread Adam Hardy
On 10/28/2003 01:49 PM Morgan Pyne wrote: And I actually find it a bit disturbing that in this day and age of somebody would be called anal about security for simply implementing their website via SSL :-) - I would consider this to be a minimum requirement and only the first step for any

Re: TeraData DataSource

2003-10-28 Thread Christopher Schultz
Ken, Has anyone been able to connect to a TeraData datasource using thier driver? I'm getting the following error. Did this exception have a caused by stack trace along with it? No suitable driver. The TeraData .jar file is in the common/lib folder. Sorry for my ignorance, but this is a

RE: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Asif Chowdhary
No I dont have that file in the conf directory. The documentation is very confusing. It works fine -Original Message- From: Florian Ebeling [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 10:56 AM To: Tomcat Users List Subject: Re: mod_jk2 binary for Apache 2.0.47/Win Hi

Why not to create threads?

2003-10-28 Thread Walker Chris
Why should I be avoiding creating my own threads in a web application? I have a couple of scheduled components, and I'm not sure how else I would implement them. Chris -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: 28 October 2003 15:53 To: Tomcat Users

RE: Why not to create threads?

2003-10-28 Thread Shapira, Yoav
Howdy, Why should I be avoiding creating my own threads in a web application? I have a couple of scheduled components, and I'm not sure how else I would implement them. It's OK to create and use threads as long as you're careful for synchronization issues. Threads are a powerful construct when

Re: Apache cannot load jk2 (bis)

2003-10-28 Thread jmorace
Looks like you are trying to use the module built for Apache 1.3.27 with an Apache 2 web server. Try using the mod_jk2-2.0.43.dll binary instead. Jonathan On Tue, 28 Oct 2003, Jean-Max Estay wrote: Hello, I use the ${Apache2} in this mail for the path of my apache install directory. Using

RE: Replicating Application variables

2003-10-28 Thread Shapira, Yoav
Howdy, We have a web application with multiple sub-systems . viz. , Order Processing, Inventory Management etc., I need a way to isolate each of these sub-systems. Why don't you make them separate webapps? What are the advantages of having separate webapps? We have a clustered environment and

Re: Why not to create threads?

2003-10-28 Thread harm
Because the appliction server does this for you. If you interfere by using your own threads you could break stuff... (it's a spec violation too). Also you should use an application server for scheduling components. (We use JBoss MXBeans for this purpose). Regards, Harm de Laat

Re: Why not to create threads?

2003-10-28 Thread Christopher Schultz
Chris, Why should I be avoiding creating my own threads in a web application? I have a couple of scheduled components, and I'm not sure how else I would implement them. I realize ther sometimes it's just necessary, so I'm not trying to tell you that you're wrong for creating threads. That being

RE: Form Double Submit Detection

2003-10-28 Thread Ralph Einfeldt
Yes you can, but the only safe way is to synchronize on an object inside the session, not the session itself. Or to synchronize on a more global object (but this is not recommended as this might not scale well for sites with many users) -Original Message- From: Christopher Schultz

RE: Hey man, long not see you

2003-10-28 Thread Gustavo Cebrian
*** Gustavo Cebrian Quality Manager Want to improve the ROI on your EAI project? Download RV Tester and reduce your development and testing timescales by as much as 50%. http://www.greenhatconsulting.com/rvtester Green Hat Consulting Ltd. 107

Session exclusivity (was Form Double Submit Detection)

2003-10-28 Thread Christopher Schultz
Ralph, Does that mean that you can never have exclusive access to your own session? Yes you can, but the only safe way is to synchronize on an object inside the session, not the session itself. Well, not always. Because of threading and memory issues with the JVM, one thread might put

RE: Why not to create threads?

2003-10-28 Thread Shapira, Yoav
Howdy, The rest of the message aside, I had an only partially related question: (flamebaitand a poor one at that :)/flamebait). But the fact that many servlet-based applications end up going the way of the EJB, you might want to play by their rules if you can. Can you quote research that shows

Re: Why not to create threads?

2003-10-28 Thread Tim Funk
You are allowed to create your own threads. But there are restrictions and limitations for user created threads such as ... - They should not touch Request and Response objects - The should be able to know when the servlet container stops if non-daemon so the jvm may gracefully terminate - If

Re: Why not to create threads? (OT)

2003-10-28 Thread Christopher Schultz
Yoav, The rest of the message aside, I had an only partially related question: (flamebaitand a poor one at that :)/flamebait). But the fact that many servlet-based applications end up going the way of the EJB, you might want to play by their rules if you can. Can you quote research that shows a

Scheduling Session clean up in a clustered environment

2003-10-28 Thread Karthik Duddala
Howdy, I want to schedule a session clean up in a tomcat 5.1 clustered environment. How can i go about doing so? My main concern is, will there be a conflict in the clean up as all the nodes in the cluster could start doing the clean up. Is there a concept of primary node in clustering

Re: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Florian Ebeling
Hi Asif, I get it up and running, finally. Many thanks for your help. I wonder: you don't know of a resource on configuring this strange animal, workers2.properties, by any chance? I found my current configuration by rather poking in the fog, tweaking your file here and there. This is not the

RE: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Asif Chowdhary
There is tomcat book from Oreilly which is very helpful. I am using that Tomcat the Definite guide. Asif -Original Message- From: Florian Ebeling [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 11:59 AM To: Tomcat Users List Subject: Re: mod_jk2 binary for Apache 2.0.47/Win

RE: Session exclusivity (was Form Double Submit Detection)

2003-10-28 Thread Ralph Einfeldt
To be honest, I'm not shure. As I'm currently not really using tomcat (or another servlet conainer that works with session facades) I have not thought or tried enough to be shure. For those who want to be very shure, there is still the option to synchronize on something outside of the

JSP generated HTML code squashed in one line

2003-10-28 Thread Baer Peter Christoph Alexander
Hi, we have a problem here that looks pretty strange to us. We have extensively searched the mail archive and we googled a lot, but found no suitable information. Should we nevertheless ask something obvious, please forgive us. Here is the problem: Tomcat 4.0.6 LE generates HTML pages with a lot

Re: mod_jk2 binary for Apache 2.0.47/Win

2003-10-28 Thread Florian Ebeling
Jean-Max, I was wrong assuming that one needs a mod_jk2 needs to bear the exactly same version number as the Apache2. I didn't even give it a try, because I read it at several places in the apache docs. I got mod_jk2 running now, with kind assistance of Asif Chowdhary, as you probably hab been

Re: Tomcat 5 JBoss

2003-10-28 Thread Remy Maucherat
[EMAIL PROTECTED] wrote: Is there any way to run JBoss with Tomcat 5 instead of 4.1.27? I'm using JBoss 3.2.2. I would like to switch to 5 because of the hotswap debugging feature. You have to get the source, and build. There will be a TC 5 SAR in the output dir for the Tomcat module. Using it

Re: Source of JSP returned to user

2003-10-28 Thread Jean-Francois Arcand
Or download JDK 1.4.2_02 (the bug has been fixed in _02) -- Jeanfrancois Larry Isaacs wrote: Since JDK 1.4.2 is being used, try the workaround specified for (you will need to register to see the bug): http://developer.java.sun.com/developer/bugParade/bugs/4895132.html which is: Specify

  1   2   >