RE: how to suppor 30000 concurrent users

2003-08-05 Thread pete . storey
Oh OK cool so it is how I thought - presumably you dont use the session 
very much (in terms of sending stuff to it) or else there would be one 
serious amount of db work!
Pete

Problem installing tomcat

2003-08-05 Thread batristain
Greetings,
I'm trying to install tomcat 4.1 on a redhat linux 8.1 box.  I'm having trouble
b/c I need to install a couple of programs first like
xerces-j-1.3.0-1.noarch.rpm but I can't install that until I get the jdk 1.2 kit
on the machine.  I've found the tar ball of the kit but it doesn't work even
when I followed instructions on how to set the varibles from redhat.  I'm hoping
to find an rpm but I haven't been able to - any suggestions?

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Off topic : tools for testing mod_ssl/OpenSSL ???

2003-08-05 Thread achana
Hi All.
TCPDUMP-ing the login for NYTimes.com as a control group I can certainly
see USERID and PASSWORD (and other things) eg.  
...
Referer: http://www.nytimes.com/auth/login
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows 98)
Host: www.nytimes.com
Content-Length: 84
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: RMID; tpopunder_orbitz23a-nyt4; NYT-S; nyt-d;
tpopunder_orbitz23-nyt4; spopunder;
NYT_GR=3f3069f9-eD5iDGvcR1EwqdL/n8+qGA
is_continue=true&URI=&OQ=&USERID=niemand&PASSWORD=geheimnis&log=Log+In&SAVEOPTION=YES÷
1?&(r)
...
After enabling httpd with mod_ssl, the TCPDUMP from the following client
browsers are mostly NOT human-readable :
* Mozilla
* MSIE5
* Nescape 6.2
* Netspcae 7.1 (which is the bee in the bonnet)
They all present the login dialogue box and the "untrusted self-signed
certificate" screen.
Therefore it might be a bug with 7.1, which seemingly does not report an
embedded secure link from an unsecured page as such eg. from
http:/my.first.do which as a link to https://my.secure.dom
However,in 7.1, if I key in the URL https://my.secure.dom (ie without
going through http://my.first.dom), the lock closes and one can view the
certificate info by clicking on it.

I assume this is how it works :
Step 1: certificate presented, accepts and ecrypt input from client
browser
Step 2: transmit to mod_ssl enabled Apache2 server
Step 3: Off to Tomcat courtesy of following bits of code :
...

ServerName my.dom.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/king/public_html
ErrorLog /usr/local/apache2/logs/king_error.log
CustomLog /usr/local/apache2/logs/king_access.log common

   SSLEngine on
   SSLCipherSuite
ALL:!ADH:!EPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
   SSLCertificateFile /path/to/ssl/server.crt
   SSLCertificateKeyFile /path/to/server.key

JkExtractSSL on
JkHTTPSIndicator HTTPS
JkSESSIONIndicator SSL_SESSION_ID
JkCIPHERIndicator SSL_CIPHER
JkCERTSIndicator SSL_CLIENT_CERT
JkMount /dom ajp13
JkMount /dom/* ajp13

...
Step 4 : FIX ME - does Apache2 unecrypt content before passing on to
Tomcat ???
Step 5 : FIX ME - does Tomcat pass db data back to Apache2 and the data
get encrypted there ???


If anyone out there has similar or diff experience, please share it.


Ralph Einfeldt wrote:
> 
> One way to verify this, is to use a packet sniffer
> and watch the pakets that are exchanged bewenn server
> and browser.
> 
> Under linux you can use tcpdump.
>   http://www.tcpdump.org/
> 
> 
> tcpdump has also a windows brother (or sister):
>   http://windump.polito.it/
> 
> Under linux and windows you can use ethereal:
>   http://www.ethereal.com/
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, August 05, 2003 9:17 AM
> > To: [EMAIL PROTECTED]
> > Subject: Off topic : any tools for testing mod_ssl/OpenSSL ???
> >
> >
> > Hi All.
> > I have got my Apache mod_ssl/OpenSSL talking with Tomcat nicely using
> > MSIE5, Netscape 6.2 and Mozilla.
> > On Netscape 7.1, it says I am transmiting in clear text for all to see
> > AFTER logging in and accepting the certificate !?! SOmehow I
> > doubt that,
> > I think it is telling me fips.
> > Are there any tools to tes whether the transmission is in clear text ?
> > TIA :-)
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Stable tomcat + apache + mod_j2 + ssl

2003-08-05 Thread John Turner
The systems administrators will be the ones setting up stunnel and 
OpenSSL.  Thus, they will have access to the configuration files, 
certificates, keys and other resources used by OpenSSL.  Thus, they will 
most likely have the ability to decrypt whatever communications are sent 
over the network.

Sooner or later, at some point, you have to trust somebody.  Otherwise, 
it gets really lonely out there.

John

Ramanan Ramadoss wrote:

We have our webserver and app server on two separate physical machines but
on the same LAN sub-net. But the information has to be in encrypted form so
that the information is not in a readable form even to the system/network
administrators who are maintaining the machines.
 

-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:45 AM
To: Tomcat Users List
Subject: Re: Stable tomcat + apache + mod_j2 + ssl
Are you sure that you need to encrypt traffic between Apache and Tomcat?

That is an unusual requirement, because usually both tomcat and Apache are 
running on the same computer or at least running in the same LAN sub-net.

Ramanan Ramadoss wrote:

Thanks for your reply. 

We need to implement end to end encryption. I do not have an option with
respect to the OS. I have Windows 2000 as our OS for both the webserver
and

app server. Due to end to end encryption, we have to secure the
communication between the webserver and app server. 

I have heard about mod_ssl but have not used it. Would that be an option
to

secure the communication between apache and tomcat. Your opinion is highly
appreciated.
--Ramanan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Session Listener's Session Event session empty?

2003-08-05 Thread Shapira, Yoav

Howdy,
When the session is created it has no attributes, that's why it's empty.
You can't have put attributes there before it was created ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Anthony Cunningham [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, August 05, 2003 2:54 AM
>To: Tomcat Users List; this
>Subject: Session Listener's Session Event session empty?
>
>Greetings,
>
>I am trying to make a page showing all the logged in users and possibly
>all their details (stored in the session).
>While searching I came across information about the HttpSessionListener
>interface and tried implementing that.
>
>However in Tomcat 4.0.1 and also 4.0.4 when sessionCreated is called,
>the session retrieved from from the session event object doesn't appear
>to contain the attributes I put there.   Has anyone experienced this?
>
>Also if anyone has implemented this type of logged in user list in
>another way I'd be grateful for your advice.
>
>
>thanks in advance,
>
>Anthony
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Element "web-app" does not allow "servlet" here

2003-08-05 Thread Jiann-Ming Su
I'm getting a bunch of the errors included below.  I've attached my web.xml.
My web.xml seems to pass xml validators.  The last time I ran into this,
I think I just reinstalled tomcat, but I shouldn't have to do this on such
a regular basis.  I'm running tomcat-4.1.24-LE.  How do I fix this problem? 
Thanks for any tips.

Aug 5, 2003 11:58:55 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 40 column -1: Element "web-app" does not allow "servlet" he
re.
org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Validat
ingParser.java:349)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1317)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:282)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


-- 
Jiann-Ming Su  [EMAIL PROTECTED]  404-712-2603
Development Team Systems Administrator
General Libraries Systems Division


http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>



		 ConnectionServlet
		db.ConnectionServlet
		1
	

browse
search.ARCSearch
		2



ARCSearch
search.ARCSearch
		2



user
user.User
		2


loaduser
user.LoadUser
		2


annotation
annotation.Annotation
		2


bookbag
bag.bagServlet
		2


AttribSaver
search.AttribSaver
		2


search.AdvancedFormServlet
search.AdvancedFormServlet
		3


		OAI-DP
		arc20.dp.DPOAI


		OAI20
		arc20.dp.DPOAI

  	
		OAI-SP
		arc.sp.SPOAI
	  
	

  	BASIC
  	Example Basic Authentication Area


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Tomcat will not install

2003-08-05 Thread batristain
I'm trying to install xerces so I can install TOMCAT but I keep getting this
message although my path is set

bash-2.05b# rpm -ivh xerces-j-1.3.0-1.noarch.rpm
error: Failed dependencies:
jdk >= 1.2 is needed by xerces-j-1.3.0-1

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Persistent Sessions

2003-08-05 Thread Kal Govindu
Hi,

First, thanks to all of you.

Now, I have class which implements HttpSessionListener and
HttpSessionActivationListener. In the sessionCreated method I have the
following line to bind the current class to the session.

CODE:
event.getSession().setAttribute(getClass().getName(), this);

My sessionDidActivate method does not seem to be invoked, I have logging
message in both the methods and I can sessionCreated being called in the
Log but not sessionDidActivate.

Please, help
Thanks
Kal




-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 4:09 AM
To: Tomcat Users List
Subject: Re: Persistent Sessions


Your HttpSessionActivationListener must be an object bound to the
session.

So, in your HttpSessionListener's sessionCreated method add the 
HttpSessionActivationListener to the session as an attribute.

HTH,

Jon

Kal Govindu wrote:

> Hi Yoav,
> 
> Ok, now my listener class implements a HttpSessionActivationListener
and
> neither of the function;
> sessionDidActivate or sessionWillPassivate are being called. Do I need
> anything special to implement this and so that Did Activate and will
> Passivate events fire?
> 
> I am running on Tomcat4.1.12, if that matter.
> 
> Thanks
> Kal
> 
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 04, 2003 2:35 PM
> To: Tomcat Users List
> Subject: RE: Persistent Sessions
> 
> 
> 
> Howdy,
> I'm sorry, I meant use an activation listener instead of the context
> listener to invalidate them.  That should work.  contextDestroyed() is
> too late as all the session handling has already happened.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache 2.0.47, Tomcat 5.0.5, JK2 connector 2.0.2

2003-08-05 Thread Eric J. Pinnell
Hi,

I have gotten Tomcat 5.0.4/Apache 2.0.47/JK2 2.0.2 working on a Solaris 7
box.  I set it up just like you would set it up in the FAQs.

My comment echos John's advice.  Forget the jni and just stick to TCP
sockets.

-e

On Tue, 5 Aug 2003, Pat Pomatto wrote:

> Hi,
>
>
>
> I'm running on Linux Apache 2.0.47, Tomcat 5.0.5 and trying to use JK2
> connector 2.0.2 which I built successfully. I configured the connector
> with jni.  I cannot seem to get the connector to work. In my
> apache/logs/error_log the error generated is:
>
>
>
> [Tue Aug 05 10:31:53 2003] [error] vm.init(): no jvm_dll_path, will use
> LD_LIBRARY_PATH libjvm.so
>
> [Tue Aug 05 10:31:53 2003] [error] Can't load native library libjvm.so :
> libjvm.so: cannot open shared object file:
>
>  No such file or directory
>
> [Tue Aug 05 10:31:53 2003] [error] jni.loadJvm() Error - can't load jvm
> dll
>
> [Tue Aug 05 10:31:53 2003] [error] workerEnv.initChannel() init failed
> for channel.jni:jni
>
> [Tue Aug 05 10:31:53 2003] [error] workerEnv.initWorkers() init failed
> for worker.jni:onStartup
>
> [Tue Aug 05 10:31:53 2003] [error] workerEnv.initWorkers() init failed
> for worker.jni:onShutdown
>
> [Tue Aug 05 10:31:53 2003] [error] shm.init(): No file
>
> [Tue Aug 05 10:31:53 2003] [error] uriEnv.init() map to invalid worker
> /jsp-examples/* ajp13:localhost:8009
>
> [Tue Aug 05 10:32:05 2003] [error] mod_jk.handle() No worker for
> /jsp-examples/index.html
>
>
>
>
>
> Any ideas? Has anyone successfully gotten jk2 connector 2.0.2 working
> with Tomcat 5?
>
>
>
> Thanks in Advance,
>
> Pat
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE: Java and tomcat issues

2003-08-05 Thread bbonkosk
Sure, APPEND the PATH variable with JAVA_HOME,
don't overwrite it!
Path=$PATH;JAVA_HOME/bin


- Original Message -
From: [EMAIL PROTECTED]
Date: Tuesday, August 5, 2003 2:07 pm
Subject: RE: Java and tomcat issues

> Okay everytime I do it my commands don't work on the box like ls, 
> cd, ll - the
> only command that works is the exit command
> 
> Any ideas?
> 
> -Original Message-
> From: Shapira, Yoav [EMAIL PROTECTED] 
> Sent: Tuesday, August 05, 2003 2:06 PM
> To: Tomcat Users List
> Subject: RE: Java and tomcat issues
> 
> 
> 
> Howdy,
> 
> >I'm trying to set up JAVA for tomcat on a redhat 8.1 box and I keep
> getting
> >this message after I set the JAVA_HOME path
> >
> >-bash-2.05b# which java
> >/usr/bin/which: no java in 
> >(/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R
> 6/bi
> >n
> >)
> >-bash-2.05b#
> 
> That's pretty clear, isn't it? ;)  Add $JAVA_HOME/bin to your $PATH.
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential, 
> proprietaryand/or privileged.  This e-mail is intended only for 
> the individual(s) to whom
> it is addressed, and may not be saved, copied, printed, disclosed 
> or used by
> anyone else.  If you are not the(an) intended recipient, please 
> immediatelydelete this e-mail from your computer system and notify 
> the sender.  Thank you.
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Multiple Tomcat instances

2003-08-05 Thread Christian Hauser
Hello Tomcat cracks

I'm new to Tomcat administration and would like to switch from 
ServletExec to Tomcat 4.1.

However, I have some difficulty understanding how to set up different 
Tomcat instances. I'd like to have different Tomcat instances for each 
developer (to test web applications) and for each application.

Tomcat is installed into /usr/local/tomcat-4.1.24 (CATALINA_HOME). Every 
developer and web application should now have its own instance somewhere 
(CATALINA_BASE).

For example: /home/chauser/tomcat in my case (CATALINA_BASE). This 
directory contains some folders: logs, conf, work, webapps, bin.

Which port to change?
In the conf directory I'd like to put a tailored versions of web.xml and 
server.xml, but I don't know which Port I have to change.

How to deal with user/root problems?
When I have a start, stop or restart script in /bin, I 
cannot startup or shutdown tomcat, because the startup.sh and 
shutdown.sh (in /bin) belong to root.

Is there a good Tomcat 4.1 administration reference available online 
(apart from the Tomcat documentation)? In about 2-3 weeks I'll get the 
book "Tomcat: The Definitive Guide (O'Reilly)", however, I'd like to 
progress until then.

Thank you in advance for all your help.

  Christian



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat 5.0.2 and IIS

2003-08-05 Thread vikas jain
If someone knows tomcat 5.0.2 works with IIS??? I tried to search for it, I 
got to know tomcat 3.3 works withIIS but there are no docs for tomcat 5.0 
verison. If someone knows about this, please help me out.

Thanks,
Vikas
_
Going on a holiday? Want to study abroad? 
http://server1.msn.co.in/msnleads/citibankpersonalloan/citibankploanjuly03.asp?type=txt 
Need a personal loan?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


how to suppor 30000 concurrent users

2003-08-05 Thread Heart Prince
howmany concurrent users does tomcat support? if i want to design a web 
application for 30,000 concurrent users, what is the step?  clustering is 
related to this? how many servers i need if i am clustering

_
Latest movie trailers. On your mobile. 
http://server1.msn.co.in/sp03/gprs/howcani_movie.asp With GPRS.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Turning off session persistence

2003-08-05 Thread Aurele Venet
Hi Yoav,

thanks for the pointer.  I will look it up.  Indeed now that you mention 
the DefaultContext, that rings a bell.  I will experiment with that. 

Apologies for my RTFQ!

Vrata

--
V
. . . . . . . . . 
tel:+34.918.131.331



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Turning off session persistence

2003-08-05 Thread Aurele Venet
thanks, I did already!  But I don't think you understand my question!

I know you can reset the defaut, but that's only on a per context 
basis.  I want to reset the default for all contexts, ie if a new 
context is deployed and not  defined, then the default should 
not persist!  The manual doesn't wether or not this can be achieved.

RTFQ

Vrata

Shapira, Yoav wrote:

Howdy,

 

If no  is defined, then the default used by Tomcat is the one
that persists!  Is there a way to change the default that tomcat uses?
   

Yes.  RTFM.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



--
V
. . . . . . . . . 
tel:+34.918.131.331



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: how to suppor 30000 concurrent users

2003-08-05 Thread Ralph Einfeldt
build a model like

- each user is on the site for n Minutes
- each user makes n requests
- the mean time between to page requests is n seconds
- each page request creates n http requests
- specify the average size for an http request
- specify the average ratio of request/db access

.

With that you can compute memory usage, requests/per second,
concurrent databae connection etc.

With these number you have to test your application (not tomcat)
and see what your application can handle. There is no rule of 
thumb. (It can't be, it's like predicting the time to ride by
horse fom New York to Frisko, whithout knowing the rider,
the baggage and without having a map)

Depending on the structure of the site and the effort you want 
to invest you can improve the result by building groups of users, 
pages, requests and estimate these.

> -Original Message-
> From: Heart Prince [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 2:57 PM
> To: [EMAIL PROTECTED]
> Subject: how to suppor 3 concurrent users 
> 
> 
> howmany concurrent users does tomcat support? if i want to 
> design a web 
> application for 30,000 concurrent users, what is the step?  
> clustering is 
> related to this? how many servers i need if i am clustering
> 
> _
> Latest movie trailers. On your mobile. 
> http://server1.msn.co.in/sp03/gprs/howcani_movie.asp With GPRS.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Stable tomcat + apache + mod_j2 + ssl

2003-08-05 Thread Ramanan Ramadoss
Thanks for your reply. 

We need to implement end to end encryption. I do not have an option with
respect to the OS. I have Windows 2000 as our OS for both the webserver and
app server. Due to end to end encryption, we have to secure the
communication between the webserver and app server. 

I have heard about mod_ssl but have not used it. Would that be an option to
secure the communication between apache and tomcat. Your opinion is highly
appreciated.

--Ramanan

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 11:17 AM
To: Tomcat Users List
Subject: Re: Stable tomcat + apache + mod_j2 + ssl



Apache 2.0.47
Tomcat 4.1.24

There isn't an SSL version of either the mod_jk or jk2 connector.  Since 
JK and JK2 don't ever communicate with a client, there's really no need. 
   You might be able to setup a tunnel using stunnel or similar, but on 
Windows that will be problematic.

Apache binary: http://httpd.apache.org/download.cgi

Tomcat binary: http://jakarta.apache.org/site/binindex.cgi

Connectors: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/

Connector FAQ: http://jakarta.apache.org/tomcat/faq/connectors.html

John

Ramanan Ramadoss wrote:

> Dear friends,
>  I am a newbie and have to set up a secure enviroment between tomcat
and
> apache. 
> 
>  Can someone tell me which is the stable production ssl version of
> tomcat and apache? Is there a ssl version of mod_jk or mod_j2 connector?
If
> no which connector should we use? Where can I get a built version of the
> webserver, app server and the connectors that work with each other for a
> windows 2000 environment.
> Thanks
> Ramanan
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to suppor 30000 concurrent users

2003-08-05 Thread Raffi
I always wondered about how high-profile sites like Ebay and Amazon
updated their systems because they never seem to place messages at their
sites regarding system downtime for routine maintainance. In a clustered
app server environment, I'm assuming that each node is downed and
updated individually while the other nodes support user requests, or
perhaps it's done differently. Can you explain, thanks!

Raffi

-Original Message-
From: Angus Mezick [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 9:07 AM
To: Tomcat Users List
Subject: RE: how to suppor 3 concurrent users 


With that many users you are going to HAVE to cluster if for no other
reason than to provide backup for system maintanence.  As to how many,
the answer is it depends on the hardware you are going to use and the
types of load your webapp puts on the system.  When you say 30k
concurrent users do you mean 30k people clicking a link at the same time
or 30k active sessions at a time?  If you are going to have this many
people clicking on the same time you should have the cash to do proper
load testing to see how many people one of your servers can take, divide
30k by that number for the number of servers you have, multiply by 1.1
AT LEAST and round up to get 110% capacity so you should be able to swap
out one server.  This is BARE minimum.  Don't forget about the wonderful
world of DB backends and routers and all the fun stuff :) --Angus

> -Original Message-
> From: Heart Prince [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 8:57 AM
> To: [EMAIL PROTECTED]
> Subject: how to suppor 3 concurrent users 
> 
> 
> howmany concurrent users does tomcat support? if i want to
> design a web 
> application for 30,000 concurrent users, what is the step?  
> clustering is 
> related to this? how many servers i need if i am clustering
> 
> _
> Latest movie trailers. On your mobile.
> http://server1.msn.co.in/sp03/gprs/howcani_movie.asp With GPRS.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to suppor 30000 concurrent users

2003-08-05 Thread Prince
Hi Angus
how difficult it is for making tomcat to support clustering , do we need to
have additional tools?
thanks
Prince
- Original Message -
From: "Angus Mezick" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, August 05, 2003 7:41 PM
Subject: RE: how to suppor 3 concurrent users


Doesn't seem to have that much of an effect.  I guess I should profile
it though.  I don't want to use session persistence because then I would
need to use network session clustering.  Session clustering is a
requirement for my app.  I figure using a DB instead of memory to store
my sessions is better than sending 5 network connections to the other 5
of the 6 web servers with the session data that will only be valid to
ONE of those servers.  Before tomcat we were using Iplanet 4.1 and the
cisco load balance we have SAID it could handle session affinity but it
didn't seem to be able to.  So we went with a DB solution which, to me,
seems to be the more optimal solution.  The DB also means I can have a
MUCH larger number of active sessions using my servers because I don't
have to worry about the sessions using all my memory.  I just have to
worry about DB disk space but I had have 2 or 3 terabytes of disk while
only have 2 GB of memory.  Seems to be an easy trade.
--Angus

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 9:40 AM
> To: Tomcat Users List
> Subject: RE: how to suppor 3 concurrent users
>
>
> Angus,
> doesnt using a shared jdbc based session manager slow the
> whole thing down
> a lot?  Why dont you just use session persistence?
> Pete
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: performance question

2003-08-05 Thread Shapira, Yoav

Howdy,

>Tomcat 4.0.6

Use Tomcat 4.1.27.

>We have looked at the box, and it does not seem to be taxed.  We have
tried
>setting CATALINA_OPTS to maximize performance but tomcat does not seem
to
>be using the additional memory and the system's load average remains
low.

Java (this is not tomcat-specific) will use as much memory as it needs.
You can add -Xms to specify a minimum memory usage if you'd like, but
this won't gain you much performance.

>Is there any way we can have tomcat use more resources, as much as
>necessary to run the application faster?

No, see above.

>On a side note I can find no documentation that explains the difference
>between JAVA_OPTS and CATALINA_OPTS?

There's no difference.  I like JAVA_OPTS better as I think it's a
clearer name.

>Also, we tried upgrading to 4.1.24 yesterday on another test server.
The
>application will not run correctly on the newer version of tomcat, any
>ideas why?

How can you expect anyone to know without knowing your app?

>The results of the queries are not correct and the data is not
>returned correctly.  Is there any major change in tomcat 4.1.24 from
4.0.6
>that would cause such a disparity.

There are no changes from 4.0.x to 4.1.x that would cause your DB
queries to return different results.  It's much more likely a DB
connection configuration issue on your side.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mod_jk2 error when starting tomcat

2003-08-05 Thread Daniel Zhang
You are missing the commons-logging.jar file which has that 
org/apache/commons/logging/LogFactory.class.
Download this jar file and put it in your classpath.

Brian Menke wrote:

Hi everyone, I have been attempting to connect apache and tomcat. Apache 2,
tomcat 4.1.18. I think that I have most thing set up (it's very confusing)
but I'm getting this error when tomcat starts. It looks to me that I'm,
missing a class called LogFactory, but I never saw instructions anywhere
about this??
In my server.xml file, I basically copied most of what was in the
stand-alone section and created another service called nnmall2-Connector. It
looks like tomcat did start the service, but there were errors. That makes
me think I don't have this quite right. Any ideas??
TIA.

-Brian

Starting service nnmall2-Connector
Apache Tomcat/4.1.18
Aug 4, 2003 12:30:27 PM org.apache.jk.server.JkMain newHandler
SEVERE: Can't create apr
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
   at org.apache.jk.apr.AprImpl.(AprImpl.java:340)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:130)
   at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
   at org.apache.jk.server.JkMain.start(JkMain.java:341)
   at
org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
   at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:
1056)
   at
org.apache.catalina.core.StandardService.start(StandardService.java:5
06)
   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Aug 4, 2003 12:30:28 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8019
Aug 4, 2003 12:30:28 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=15/94  config=c:\tomcat\conf\jk2.properties
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: how to suppor 30000 concurrent users

2003-08-05 Thread Angus Mezick
I wish I knew.  Our current bottleneck is on the DB side.  We can down
half our webservers and keep the site up any time but during peak usage.
But you have the right procedure.  As for the java vs .net discussion, I
am not going there.  It is more a question of personal taste, budget,
willingness to use open source, and need for that expensive support
security blanket.  I will say that MS really doesn't like to get in the
middle of a sinking project.  They would prefer to achitect it up front
if they are going to be called in later to solve your problems.  

The answer to your question on maximums still depends on size of
sessions, load each request puts on the server, speed of the machine,
and what your network is like.  Tomcat can handle a good sized load.  I
think its biggest limiting factors are how much memory it will use and
how many requests it can accept at any one time.  The best suggestion I
have for you is make sure you can quickly load up a new server using as
much scripting as possible so if you have to add more HW you will not be
deep in the weeds trying to find your way out.
--Angus

> -Original Message-
> From: Prince [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 02, 2002 9:21 AM
> To: Tomcat Users List
> Subject: Re: how to suppor 3 concurrent users
> 
> 
> hi Angus,
> 
> from ur reply what i understand is, first I have to develop 
> the application
> (with maximum tuning possible from scripting side) and the 
> deploy it on a
> server and load test. then add the needed number of servers. 
> have  i got it
> right?
> what is an avarage no of maximum concurrent users (active 
> sessions) for
> tomcat (just to get a general idea about the possible investment)
> 
> does it depends on the scripting technology also? how is  Microsoft
> technology is such case (heavy load) compared to tomcat?
> thanks and regards
> Prince
> 
> - Original Message -
> From: "Angus Mezick" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, August 05, 2003 6:37 PM
> Subject: RE: how to suppor 3 concurrent users
> 
> 
> With that many users you are going to HAVE to cluster if for no other
> reason than to provide backup for system maintanence.  As to how many,
> the answer is it depends on the hardware you are going to use and the
> types of load your webapp puts on the system.  When you say 30k
> concurrent users do you mean 30k people clicking a link at 
> the same time
> or 30k active sessions at a time?  If you are going to have this many
> people clicking on the same time you should have the cash to do proper
> load testing to see how many people one of your servers can 
> take, divide
> 30k by that number for the number of servers you have, multiply by 1.1
> AT LEAST and round up to get 110% capacity so you should be 
> able to swap
> out one server.  This is BARE minimum.  Don't forget about 
> the wonderful
> world of DB backends and routers and all the fun stuff :)
> --Angus
> 
> > -Original Message-
> > From: Heart Prince [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, August 05, 2003 8:57 AM
> > To: [EMAIL PROTECTED]
> > Subject: how to suppor 3 concurrent users
> >
> >
> > howmany concurrent users does tomcat support? if i want to
> > design a web
> > application for 30,000 concurrent users, what is the step?
> > clustering is
> > related to this? how many servers i need if i am clustering
> >
> > _
> > Latest movie trailers. On your mobile.
> > http://server1.msn.co.in/sp03/gprs/howcani_movie.asp With GPRS.
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



? problem

2003-08-05 Thread Shanta B
Hi
 I need ur help ...In our application while creating a task we are
entering taskid,now we are getting some problem when we include EUR symbol
in taskid ..it will replace EUR symbol to €and it storing in database
also like this ,because of this when user enter 5 EUR symbols it will makes
database problem(taskid length is 16 in db,where as because of these EUR it
will place 5*7=35 characters in db).

I tried with following character sets ISO-8859-1,ISO-8859-15 and also UTF-8.

I have done the following things because of this i am able to display EUR in
gui(character set iso-8859-1) but still i am seeing € in database.


TaskDisp calls this method(HtsimpleDisp)
-

public Input makeTextInputField(String name, int size, int maxlen, String
value)
{
Input f =null;

if(value != null)
f =
makeInputType(Input.TEXT,name,Util.getEscapedString(value)/*escapeHTML(value
)*/);
else
f = makeInputType(Input.TEXT,name,value);

f.setSize(size);
f.setMaxlength(maxlen);
return f;
}

this calls siefleet.util.Util package


public static String getEscapedString(String source)
{
  System.err.println("In getEscapedString "+source);
  StringBuffer result = new StringBuffer();
  for(int i=0; i"); break;
case '<':   sb.append("<"); break;
case '>':   sb.append(">"); break;
case '&':   sb.append("&"); break;
case '"':   sb.append("""); break;
case 'ä':   sb.append("ä"); break;
case 'ö':   sb.append("ö"); break;
case 'ü':   sb.append("ü"); break;
case 'ß':   sb.append("ß"); break;
case 'Ä':   sb.append("Ä"); break;
case 'Ö':   sb.append("Ö"); break;
case 'Ü':   sb.append("Ü"); break;
case '§':   sb.append("§"); break;
case 'EUR':   sb.append("€"); break; //this is euro
entity value 

default:
if (c < 32 || 129 < c)
sb.append("&#" + (int)c + ";");
else
sb.append(c);
}
}
return sb.toString();
}


Where as in EditTask we are calling Map taskAttrs =
dumTask.makeTableFromHttpRequest(s,req); this will call
common/store/JavaConverter.java

public static String toStringClass(Object o)
{
 if (o == null)
return null;
 if (o instanceof String)
 {

   System.err.println("In Javaconverter o is string
"+System.getProperty("file.encoding"));
   String  myval=(String)o;
   myval=Util.getEscapedString(myval);
   System.err.println("In Javaconverter o is string "+myval);
   return myval;

/*System.setProperty("file.encoding","ISO-8859-1");
System.err.println("In Javaconverter o is string
"+System.getProperty("file.encoding"));
//return (String)o;

String  myval=(String)o;
System.err.println("In Javaconverter o is string "+myval);
myval=myval.replaceAll("€","EUR");
myval=Util.escapeHTML(myval);
System.err.println("In Javaconverter o is string after parsing
"+myval);
return myval;*/
//return (String)o;
 }
 return o.toString();
}

My quetion why database storing € in place of EUR

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Persistent Sessions

2003-08-05 Thread Jon Wingfield
Your HttpSessionActivationListener must be an object bound to the session.

So, in your HttpSessionListener's sessionCreated method add the 
HttpSessionActivationListener to the session as an attribute.

HTH,

Jon

Kal Govindu wrote:

Hi Yoav,

Ok, now my listener class implements a HttpSessionActivationListener and
neither of the function;
sessionDidActivate or sessionWillPassivate are being called. Do I need
anything special to implement this and so that Did Activate and will
Passivate events fire?
I am running on Tomcat4.1.12, if that matter.

Thanks
Kal
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 2:35 PM
To: Tomcat Users List
Subject: RE: Persistent Sessions


Howdy,
I'm sorry, I meant use an activation listener instead of the context
listener to invalidate them.  That should work.  contextDestroyed() is
too late as all the session handling has already happened.
Yoav Shapira
Millennium ChemInformatics





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat authentication against unixware/linux

2003-08-05 Thread Kristian A. Leth
I looking for a realm implementation, designpattern or api that makes Tomcat able to 
authentificate
against a unix/linux operating system.

This will be the best solution for my little problem of maintaining two user lists - 
The users for
Tomcat and the users for my operating system.
Alternately I would like to know if there is an api for java that can 
access/authenticate the users
on unix/linux.

Thanks!

Regards

Kleth

--
Kristian A. Leth
Maersk Data Transport/Architects & Specialists.
--




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]