RE: RMI and TC4.x (Really classloader stuff)

2002-08-19 Thread David Oxley
Samp loaded through RMIClassLoader is
> <%=localSampAnnotation%>
> 
> 
> <%
> URL codebaseURL=new URL(codebase);
>     URL loaderURLs[]=new URL[] {codebaseURL};
> URLClassLoader urlLoader=new URLClassLoader(loaderURLs);
> 
> Class
> urlCls=urlLoader.loadClass("ca.stratuscom.TestWebapp.SampleClass");
> Object urlSamp= urlCls.newInstance();
> String urlSampAnnotation=
>   RMIClassLoader.getClassAnnotation(urlSamp.getClass());
> %>
> 
> Annotation for localSamp loaded through URLClassLoader is
> <%=urlSampAnnotation%>
> 
> 
> <%
> MyLoader myLoader=new MyLoader(loaderURLs);
> 
> Class
> myCls=myLoader.loadClass("ca.stratuscom.TestWebapp.SampleClass");
> Object mySamp= myCls.newInstance();
> String mySampAnnotation=
>   RMIClassLoader.getClassAnnotation(mySamp.getClass());
> %>
> 
> Annotation for localSamp loaded through MyLoader is
> <%=mySampAnnotation%>
> 
> 
> mailto:trasukg@THINKPAD";>
> 
> 
> Last modified: Fri Aug 09 01:01:14 Eastern Daylight Time 2002
> 
>   
> 
> 
> -- In SampleClass.java
> package ca.stratuscom.TestWebapp;
> 
> public class SampleClass {}
> 
> 
> >-Original Message-
> >From: David Oxley [mailto:[EMAIL PROTECTED]]
> >Sent: July 23, 2002 05:36
> >To: 'Tomcat Users List'
> >Subject: RE: RMI and TC4.x
> >
> >
> >It does actually connect to the RMI server, but it can't
> >download classes
> >from the web server. It looks like java.rmi.codebase = TC
> >local path rather
> >than http://server/webapp which iks what the code sets it to.
> >
> >Dave
> >
> >> -Original Message-
> >> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
> >> Sent: 22 July 2002 18:25
> >> To: Tomcat Users List
> >> Subject: RE: RMI and TC4.x
> >>
> >> Howdy,
> >> We use RMI extensively on long-running tomcat servers (4.0.1
> >and 4.0.4).
> >> Never had any problems with it.  We even have a portion of the night
> >> when we do very frequent (more than 1/sec) serialization and
> >> deserialization of relatively large, complex (but
> >serializable) objects
> >> between a number of servers.
> >>
> >> We also use JDK 1.4.0 (also tested on 1.3.1), on Solaris.  I
> >looked at
> >> your bugzilla bug report, and it looked like a fairly simple
> >> MalformedURLException.  I wonder if this bug is related to a
> >difference
> >> between tc 3.x and 4.x in the way they handle spaces in
> >JNDI/RMI server
> >> URLs.  Did you try using tomcat 4.x to connect to an RMI server that
> >> doesn't have a space in its URL?
> >>
> >> Yoav Shapira
> >> Millennium ChemInformatics
> >>
> >>
> >> >-Original Message-
> >> >From: David Oxley [mailto:[EMAIL PROTECTED]]
> >> >Sent: Monday, July 22, 2002 12:59 PM
> >> >To: 'Tomcat Users List'
> >> >Subject: RMI and TC4.x
> >> >
> >> >Has anyone got RMI working from within TC4.x. I had no
> >problems under
> >> >TC3.x,
> >> >but just can't get it working under TC4.x.
> >> >
> >> >I have had a bug report outstanding for quite some time on
> >this, but I
> >> was
> >> >hoping that someone on the user list may have already got
> >this working.
> >> >
> >> >http://issues.apache.org/bugzilla/show_bug.cgi?id=7082
> >> ><http://issues.apache.org/bugzilla/show_bug.cgi?id=7082>
> >> >
> >> >
> >> >
> >> >Cheers.
> >> >
> >> >Dave.
> >>
> >>
> >> --
> >> To unsubscribe, e-mail:   <mailto:tomcat-user-
> >> [EMAIL PROTECTED]>
> >> For additional commands, e-mail: <mailto:tomcat-user-
> >> [EMAIL PROTECTED]>
> >
> >--
> >To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:tomcat-user-
> [EMAIL PROTECTED]>

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




RE: Hello

2002-08-16 Thread David Oxley

Here's a script to install tomcat with apache2. You'll need to modify it
quite a bit for your particular box.
http://www.daveoxley.co.uk/scripts/new-tomcat.sh

Dave.

> -Original Message-
> From: Brian Orledge [mailto:[EMAIL PROTECTED]]
> Sent: 16 August 2002 14:16
> To: [EMAIL PROTECTED]
> Subject: Hello
> 
> Hello,
> 
> Still having problems connecting Apache2 to Tomcat4 on Linux.   I have
> seen the help on Apache1.3 but the mod_jk.so file build is not
> compatible with Apache2.   Can anyone out there PLEASE post some links
> or docs on Apache2-Tomcat4.
> 
> Muchas Gracias
> 
> Brian Orledge
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Bandwidth calculations

2002-08-14 Thread David Oxley

I need to do some bandwidth calculations for our web app that take into
account the browsers cache. So, I think I need some sort of TCP/IP sniffer.
Does anyone know of a decent one I can use for this purpose?

 

Dave




Windows XP

2002-08-13 Thread David Oxley

I remember hearing that there was a bug with Windows XP that caused problems
with TC and Apache. Does anyone have any info on this?

 

Dave




WML or HTML detection

2002-07-25 Thread David Oxley

>From a servlet how can you detect what should be output from the type of
client that sent the request. i.e. If a WAP phone accesses a servlet then it
outputs WML or if a Web Browser accesses the same servlet then HTML is
output

 

Thanks.

Dave




RE: RMI and TC4.x

2002-07-23 Thread David Oxley

It does actually connect to the RMI server, but it can't download classes
from the web server. It looks like java.rmi.codebase = TC local path rather
than http://server/webapp which iks what the code sets it to.

Dave

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
> Sent: 22 July 2002 18:25
> To: Tomcat Users List
> Subject: RE: RMI and TC4.x
> 
> Howdy,
> We use RMI extensively on long-running tomcat servers (4.0.1 and 4.0.4).
> Never had any problems with it.  We even have a portion of the night
> when we do very frequent (more than 1/sec) serialization and
> deserialization of relatively large, complex (but serializable) objects
> between a number of servers.
> 
> We also use JDK 1.4.0 (also tested on 1.3.1), on Solaris.  I looked at
> your bugzilla bug report, and it looked like a fairly simple
> MalformedURLException.  I wonder if this bug is related to a difference
> between tc 3.x and 4.x in the way they handle spaces in JNDI/RMI server
> URLs.  Did you try using tomcat 4.x to connect to an RMI server that
> doesn't have a space in its URL?
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: David Oxley [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, July 22, 2002 12:59 PM
> >To: 'Tomcat Users List'
> >Subject: RMI and TC4.x
> >
> >Has anyone got RMI working from within TC4.x. I had no problems under
> >TC3.x,
> >but just can't get it working under TC4.x.
> >
> >I have had a bug report outstanding for quite some time on this, but I
> was
> >hoping that someone on the user list may have already got this working.
> >
> >http://issues.apache.org/bugzilla/show_bug.cgi?id=7082
> ><http://issues.apache.org/bugzilla/show_bug.cgi?id=7082>
> >
> >
> >
> >Cheers.
> >
> >Dave.
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:tomcat-user-
> [EMAIL PROTECTED]>

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




RMI and TC4.x

2002-07-22 Thread David Oxley

Has anyone got RMI working from within TC4.x. I had no problems under TC3.x,
but just can't get it working under TC4.x.

I have had a bug report outstanding for quite some time on this, but I was
hoping that someone on the user list may have already got this working.

http://issues.apache.org/bugzilla/show_bug.cgi?id=7082
 

 

Cheers.

Dave.




RE: Apache->Tomcat Howto?

2002-07-16 Thread David Oxley

As far as I know mod_jk should still be used for 4.1.x, not mod_jk2. When
people talk of Coyote JK2, they mean the Java side which is enabled by
default when you download TC4.1.x.

Dave

> -Original Message-
> From: Paul landolt [mailto:[EMAIL PROTECTED]]
> Sent: 16 July 2002 15:13
> To: Tomcat Users List
> Subject: Re: Apache->Tomcat Howto?
> 
> Problem with most of the information out there is that it deals with
> connecting
> 4.0.x with Apache, not 4.1.x. The Coyote JK2 connector is the preferred
> method
> with 4.1.x (jk has be deprecated in favour of jk2).
> 
> Aside from Andrew Conrad's comments, there seems to be little
> documentation to be
> found regarding the topic
> 
> ...Paul
> 
> 
> "Turner, John" wrote:
> 
> > There are really only 2 ways: AJP and WARP.  If you want apache to serve
> > static content, than there is only 1 way at this time, as far as I know:
> > AJP.
> >
> > You will want mod_jk as your connector.  You could try mod_jk2, but
> mod_jk
> > seems to be the most stable right now.
> >
> > Depending on your choice of versions (you will want apache 2.0.39 if you
> are
> > going with apache 2), this link might help:
> > http://www.galatea.com/flashguides/index
> >
> > John Turner
> > [EMAIL PROTECTED]
> > http://www.aas.com
> >
> > -Original Message-
> > From: Chris Ruegger [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 16, 2002 9:07 AM
> > To: Tomcat Users List
> > Subject: Apache->Tomcat Howto?
> >
> > I want to set up an Apache web server on Red Hat Linux 7.2
> > to handle static content and SSL, and forward servlet and JSP
> > requests to Tomcat 4.0.
> >
> > It seems there are about 3 ways to do this:
> > Http 1.1
> > Warp
> > AJP
> >
> > Which approach do most sites use? Can someoneone
> > point me to the Howto's that describe how I need to configure
> > Apache and Tomcat to make the Warp approach and
> > the AJP approaches work?
> >
> > Thanks in advance
> >
> > --
> > 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:   
For additional commands, e-mail: 




Port based virtual hosting

2002-06-12 Thread David Oxley

In Tomcat 4 a  node allows name based virtual hosting. How should this
be set up to handle port based virtual hosting.

i.e. should this work:

  

 

  

  

 

  

 

Dave.




RE: Toncat as service on Win2K

2001-10-03 Thread David Oxley

This is a bug with jdk1.3. Upgrade to jdk1.3.1

Dave

-Original Message-
From: Marciu Liviu [mailto:[EMAIL PROTECTED]]
Sent: 02 October 2001 23:23
To: [EMAIL PROTECTED]
Subject: Toncat as service on Win2K

Hello tomcat-users,
   I have registred Tomcat3.2.3 as a service on Win2K, under
   LocalSystem and under ./Administrator. I set it up to start
   automaticly.
   All works fine, I start the computer and the service is working, I
   log on and the service is working Ok, but when I log off (not
   shutdown)  the service stops.

   Why isn't the service running after I log off ?
  
   Thank you.

 

--
Best regards,
 Liviu  mailto:[EMAIL PROTECTED]



RE: JDBC Connection Pool Theory ??

2001-09-25 Thread David Oxley

Are there any pools that are for JDK1.1?



RE: SV: How to start/stop tomcat from a remote machine???

2001-09-25 Thread David Oxley

The new jk_nt_service.exe (TC3.3) already has this facility build in. You
might need to get it from CVS because I can't remember if it is in beta2.
Also if you look in bugzilla there is a Service Manager (like the SQLServer
one) that I have contributed. Just download and build (You'll need to patch
jk_nt_service as well).

Dave
[EMAIL PROTECTED]

-Original Message-
From: Siomara Pantarotto [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2001 07:36
To: [EMAIL PROTECTED]
Subject: Re: SV: How to start/stop tomcat from a remote machine???

Thanks for the tip I will certainly need that once unix will be one of our
platforms. If someone in the list can still help on trying to start/stop
tomcat remotly under NT I will appreciate very much.

Hans, You gave me a good idea. I guess I can use perl to write a cgi script
to do that.

Thanks

Siomara


>From: "Hans-Erik Skyttberg" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: SV: How to start/stop tomcat from a remote machine???
>Date: Tue, 25 Sep 2001 08:25:38 +0200
>
>Hi!
>
>I do not know how to do it in NTm but this is how you could do it on a
>unix box.
>Let's say you have a users called tomcat that should start and stop
>tomcat.
>
>Then you can create a small shell script to call start stop tomcat like
>this:
>Call this script tomcat_stop.cgi:
>#!/bin/sh
>/opt/app/tomcat/bin/tomcat stop
>
>Call this script tomcat_start.cgi:
>#!/bin/sh
>/opt/app/tomcat/bin/tomcat start
>
>Do the following on thoose two scripts:
>chmod 750 tomcat_st*
>chgrp apache tomcat_st* # or whatever group id your apache is running
>as
>chown tomcat tomcat_st* # or whatever user you start stop tomcat as,
>should not be root though.
>chmod u+s tomcat_st*
>
>Now put them in a ScriptAliased dir on your webserver and protect them
>either by deby allow directives or maybe a .htpasswd or something
>equivalent, now you can start and stop your tomcat with a browser.
>
>Regards
>Hans - Erik Skyttberg
>Boxer TV Access AB
>Tegluddsv. 64
>115 28 Stockholm
>+46 (0)8 587 899 64
>+46 (0)733 35 70 64
>
>
>-Ursprungligt meddelande-
>Frn: Siomara Pantarotto [mailto:[EMAIL PROTECTED]]
>Skickat: den 25 september 2001 08:14
>Till: [EMAIL PROTECTED]
>mne: Re: How to start/stop tomcat from a remote machine???
>
>
>I am currently using windows NT. Could you provide more details on how
>exactly you do even for Linux or Solaris (and NT if possible)
>
>Thanks
>
>Sio
>
>
> >From: Charles Baker <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Re: How can I start/stop tomcat web server from a remote
> >machine???
> >Date: Mon, 24 Sep 2001 18:00:17 -0700 (PDT)
> >
> >Are you using *nix or NT? On my Linux or Solaris boxes
> >I just ssh in and start/stop whatever I want to.
> >
> >--- Siomara Pantarotto <[EMAIL PROTECTED]> wrote:
> > > Hi all,
> > >
> > > How can I start/stop tomcat web server from a remote
> > > machine???
> > >
> > > In other words, how can I run the start/shutdown
> > > batch files that tomcat has
> > > to start/stop its services from a remote machine
> > > that is not the server that
> > > Tomcat is installed in?
> > >
> > > Thanks
> > >
> > > Siomara
> > >
> > >
> > >
> > >
> >_
> > > Get your FREE download of MSN Explorer at
> > > http://explorer.msn.com/intl.asp
> > >
> >
> >
> >=
> >-
> >[EMAIL PROTECTED]
> >Hacking is a "Good Thing!"
> >See http://www.tuxedo.org/~esr/faqs/hacker-howto.html
> >
> >__
> >Do You Yahoo!?
> >Get email alerts & NEW webcam video instant messaging with Yahoo!
> >Messenger. http://im.yahoo.com
>
>
>_
>Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



TC3.3 Auto Config

2001-09-20 Thread David Oxley

Hi all,

This isn't an urgent problem as I can manually change mod_jk.conf.

I am trying to get TC3.3 to auto configure itself (startup.bat -jkconf), but
it configures mod_jk.conf for serving static content from TC3.3. I read that
it was supposed to pick this up from web.xml. So:
1. Either my web.xml is wrong. How is it wrong?


StaffplannerController


StaffPlannerControllerServlet





StaffplannerController


/servlet/StaffPlannerControllerServlet



2. Tomcat 3.3 is supposed to do this.
3. There is a bug.

Dave
[EMAIL PROTECTED]




RE: IIS Virtual hosting

2001-09-19 Thread David Oxley

It's in CVS. Or wait until RC1 gets built (Don't know when that is happening
though).

Dave
[EMAIL PROTECTED]

-Original Message-
From: Kar YEOW [mailto:[EMAIL PROTECTED]]
Sent: 19 September 2001 04:27
To: [EMAIL PROTECTED]
Subject: Re: IIS Virtual hosting

where can I get a copy of the patched isapi_redirect.dll?  TIA.  kar
- Original Message -
From: "Larry Isaacs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 13, 2001 3:42 AM
Subject: RE: IIS Virtual hosting


Hi David,

Multiple virtual hosts on IIS is something I have not found time
to try to do, yet.  However, it is something I hope to support
in Tomcat 3.3.

Tim Whittington has submitted a patch to the isapi_redirect.dll
that should be included soon.  It adds a feature where
the "isapi_redirect" dll queries its actual file name and
uses that name to read a ".properties" file from
the same directory.  If that file exists, those properties are
used.  If not, it reverts to the old behavior of getting the
"properties" file location from the registry.  This "properties"
file would specify where to get the "uriworkermap" file.

This implies that you get multiple isapi_redirector instances,
each using different settings, by having multiple copies of the
"isapi_redirector" with different names.  Each virtual host
would use the appropriately named copy.  Not elegant, but
I'm not sure there is a better way.

Cheers,
Larry

> -Original Message-
> From: David Oxley [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 12, 2001 9:40 AM
> To: [EMAIL PROTECTED]
> Subject: IIS Virtual hosting
>
>
> Hi all,
>
> I need to set up IIS with each virtual host routing to a
> different worker in
> Tomcat. Each virtual host has the same web application under it and
> therefore must all be the same context.
>
> i.e. Under Apache I set up the following:
> NameVirtualHost 128.100.2.23
>
> 
> ServerName cisweb2k
> JkMount /spweb/servlet/* ajp13_1
> 
>
> 
> ServerName cisweb2k2
> JkMount /spweb/servlet/* ajp13_2
> 
>
> How is the best way to achieve the same configuration with IIS?
> I think what I need is to be able to specify the host name in
> uriworkermap.properties:
> cisweb2k/spweb/servlet/*=ajp13_1
> cisweb2k2/spweb/servlet/*=ajp13_2
>
> Thanks.
> Dave.
>



IIS Virtual hosting

2001-09-12 Thread David Oxley

Hi all,

I need to set up IIS with each virtual host routing to a different worker in
Tomcat. Each virtual host has the same web application under it and
therefore must all be the same context.

i.e. Under Apache I set up the following:
NameVirtualHost 128.100.2.23


ServerName cisweb2k
JkMount /spweb/servlet/* ajp13_1



ServerName cisweb2k2
JkMount /spweb/servlet/* ajp13_2


How is the best way to achieve the same configuration with IIS?
I think what I need is to be able to specify the host name in
uriworkermap.properties:
cisweb2k/spweb/servlet/*=ajp13_1
cisweb2k2/spweb/servlet/*=ajp13_2

Thanks.
Dave.



RE: Win2K isapi_redirect.dll+ 404, jk_ajp12_worker.c never called

2001-09-10 Thread David Oxley

|[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
|"extension_uri"="/jakarta/isapi_redirect.dll "
You should probably remove the space after the .dll in your registry. That's
what would cause the +.

-Original Message-
From: Christopher Biow [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2001 16:59
To: [EMAIL PROTECTED]
Subject: Win2K isapi_redirect.dll+ 404, jk_ajp12_worker.c never called

I've followed
 to
the letter, triple-checked each step, rebooted twice, and still get 404s on
localhost:80. Here are the symptoms:

-  works, as do the servlets
- green arrow on the jakarta filter, which I've added to Default Web Site
- jakarta virtual directory is present with execute permission for scripts
  and executables
- request for  is 404
- IIS log shows a rather curious "+" sign after the DLL name and 404
  result. The only instances that I can find on the Web of the plus sign
  in IIS logs relate to others who have had this problem, none of whom
  report a solution.
- tomcat-isapi.log indicates that jk_isapi_plugin.c HttpFilterProc is
  parsing the path "should redirect to ajp12"
- jk_ajp12_worker.c is never called in isapi_redirect.dll (so Tomcat never
  gets the task).

TIA for any suggestions.

IIS log:
|#Software: Microsoft Internet Information Services 5.0
|#Version: 1.0
|#Date: 2001-09-10 15:17:55
|#Fields: time c-ip cs-method cs-uri-stem sc-status
|15:17:55 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404


jakarta.reg:
|Windows Registry Editor Version 5.00
|
|[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation]
|
|[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector]
|
|[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
|"extension_uri"="/jakarta/isapi_redirect.dll "
|"log_file"="e:\\temp\\tomcat-isapi.log"
|"log_level"="debug"
|"worker_file"="E:\\jdk1.3\\jakarta-tomcat-3.2.3\\conf\\workers.properties"
|"worker_mount_file"="E:\\jdk1.3\\jakarta-tomcat-3.2.3\\conf\\uriworkermap.p
roperties"
|

tomcat-isapi.log:
|[jk_uri_worker_map.c (156)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
|[jk_uri_worker_map.c (196)]: Into jk_uri_worker_map_t::uri_worker_map_open
|[jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open, rule
map size is 2
|[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /servlet/=ajp12 was added
|[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /examples/=ajp12 was added
|[jk_uri_worker_map.c (296)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 2 rules
|[jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open, done
|[jk_worker.c (82)]: Into wc_open
|[jk_worker.c (207)]: Into build_worker_map, creating 2 workers
|[jk_worker.c (213)]: build_worker_map, creating worker ajp12
|[jk_worker.c (138)]: Into wc_create_worker
|[jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of
ajp12
|[jk_ajp12_worker.c (264)]: Into ajp12_worker_factory
|[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12
|[jk_ajp12_worker.c (182)]: Into jk_worker_t::validate
|[jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12
contact is localhost:8007
|[jk_worker.c (177)]: wc_create_worker, done
|[jk_worker.c (223)]: build_worker_map, removing old ajp12 worker
|[jk_worker.c (213)]: build_worker_map, creating worker ajp13
|[jk_worker.c (138)]: Into wc_create_worker
|[jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of
ajp13
|[jk_ajp13_worker.c (711)]: Into ajp23_worker_factory
|[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
|[jk_ajp13_worker.c (386)]: Into jk_worker_t::validate
|[jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13
contact is localhost:8009
|[jk_ajp13_worker.c (425)]: Into jk_worker_t::init
|[jk_worker.c (177)]: wc_create_worker, done
|[jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
|[jk_worker.c (235)]: build_worker_map, done
|[jk_worker.c (102)]: wc_open, done
|[jk_isapi_plugin.c (408)]: HttpFilterProc started
|[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
|[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
|[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found
a match ajp12
|[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a
servlet url - should redirect to ajp12
|[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is points to the web-inf directory

workers.properties (comments stripped):

|workers.tomcat_home=E:\jdk1.3\jakarta-tomcat-3.2.3
|workers.java_home=E:\jdk1.3
|ps=\
|
|worker.list=ajp12, ajp13
|
|worker.ajp12.port=8007
|worker.ajp12.host=localhost
|worker.aj

RE: nt service + nt service

2001-09-10 Thread David Oxley

Try changing the user that the Tomcat service is running under.

Dave
[EMAIL PROTECTED] 

-Original Message-
From: Michelle Buckley [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2001 13:08
To: [EMAIL PROTECTED]
Subject: nt service + nt service


hi guys and gals

I have a slight problem and need some help, I have trawled the lists and
havent found my answer yet...

I have set up tomcat to run as an nt service using jk_nt_service, which
works well, as in it starts the service for me. But I am still getting a
problem, when i try to run serlvets, it keeps coming back with a db error,
saying that that it couldnt get a connection..

If I stop the service and start tomcat using 'startup' instead, my serlvets
run perfectlycan anyone point me to the answer to my problem?

Cheers and TIA,
MB




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



RE: mod_webapp --> NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1

2001-08-17 Thread David Oxley

Isn't the .so file only for unix. You need mod_webapp.dll

Dave

-Original Message-
From: Shawn Evans [mailto:[EMAIL PROTECTED]]
Sent: 17 August 2001 15:12
To: [EMAIL PROTECTED]
Subject: mod_webapp --> NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1

   I read "Installing mod_webapp and using it with Apache 1.3" written in
mod_webapp, and I have been unsuccessful in getting it to work.  Here is my
configuration:

Win NT4.0 sp6
Apache 1.3.20 d:\webserver\Apache
Tomcat 4.0.7b d:\webserver\Tomcat-4.0.7

   First, I copied 'mod_webapp.so' and 'libapr.dll' to my apache\modules,
then I added this to my httpd.conf

[...]
#AddModule mod_actions.c mod_setenvif.c mod_isapi.c
AddModule mod_webapp.c
[...]
#LoadModule usertrack_module modules/mod_usertrack.so
LoadModule webapp_module modules/mod_webapp.so
[...]
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn  /examples
WebAppInfo /webapp-info
[...]

   I kick Apache off as a service (Tomcat is already running as a service)
and here is the error that I get "Error 2140:An internal Windows NT error
occurred"... I am able to run Tomcat 4.0.7 as a service without Apache...
and Apache runs fine when I comment out the 5 lines I added above, but I
need to get them working in sequence with one another.

   Plus, there are no error messages in the log files.

Shawn



Cookies and IE5.5

2001-08-17 Thread David Oxley

I am trying to set a cookie that can be picked up from a different server to
the one setting it. They both belong to the same domain (daves.domain.com
and daves2.domain.com). 
The first server sets the cookie and redirects to the second server where
the cookie is read.
On IE5.5 and above the cookie does not get set, but it works fine for IE5
and Mozilla.
Is this a bug with later versions of IE or am I doing something wrong.
This is the code:
Cookie c = new Cookie("User", "DAVE");
c.setDomain("domain.com");
c.setPath("/servlet/LogonServlet");
c.setMaxAge(60);
c.setVersion(1);
resp.addCookie(c);
resp.sendRedirect (redirect_url) ;  

Dave.
[EMAIL PROTECTED]



RE: Multiple requests

2001-05-23 Thread David Oxley

I am not doing the flushBuffer(). But apart from that, that is what I am
doing. Will the flushBuffer() prevent the browser from doing its subsequent
request. We are using IE5.

Dave
[EMAIL PROTECTED]

-Original Message-
From: Alex Fernández [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2001 16:34
To: [EMAIL PROTECTED]
Subject: Re: Multiple requests

So, just to clarify:

The request arrives, Tomcat processes it and sends it to your servlet.
You do:
response.setContentType("text/html");
// commits the response
response.flushBuffer();
and, while your servlet thinks what it must send next, the browser
resends the response.

Is this the case? What browser is it? Mine (Netscape Communicator 4.7)
does not.

Un saludo,

Alex.


David Oxley wrote:
>
> This isn't the problem. Tomcat is calling my servlet, but because the
> machine is so busy it is taking a long time to construct the response, and
> hence the request is resubmitted before it has sent back the response. I
> need a way to tell the browser that the server has received the request
and
> that a response will be along shortly. Is this what the SC_CONTINUE header
> does, or is there another header I can send.
>
> Thanks.
> Dave
> [EMAIL PROTECTED]
>
> -Original Message-
> From: Alex Fernndez [mailto:[EMAIL PROTECTED]]
> Sent: 23 May 2001 14:50
> To: [EMAIL PROTECTED]
> Subject: Re: Multiple requests
>
> Hi David!
>
> You can commit the response, and then the request will not be
> resubmitted. But it's difficult, since the problem was that Tomcat is
> not honoring the requests, to begin with.
>
> In iPlanet, you can tell how many requests can be queued; it would be
> interesting to know whether you can do the same in Tomcat. I know how to
> configure a thread pool, but not queue size!
>
> Un saludo,
>
> Alex.
>
> David Oxley wrote:
> >
> > I have been load testing our servlet and under high load requests start
to
> > take a long time (30secs ish). When a request takes this long a browser
> > resubmits the request automatically. Is there a status I can send to the
> > browser to say that the server is actually doing something and therefore
> > stop duplicate requests coming through, or do I need to do some
> synchronise
> > code on the session (which seems a little dodgy to me).
> >
> > Thanks.
> > Dave.
> > [EMAIL PROTECTED]



RE: Multiple requests

2001-05-23 Thread David Oxley

This isn't the problem. Tomcat is calling my servlet, but because the
machine is so busy it is taking a long time to construct the response, and
hence the request is resubmitted before it has sent back the response. I
need a way to tell the browser that the server has received the request and
that a response will be along shortly. Is this what the SC_CONTINUE header
does, or is there another header I can send.

Thanks.
Dave
[EMAIL PROTECTED]

-Original Message-
From: Alex Fernández [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2001 14:50
To: [EMAIL PROTECTED]
Subject: Re: Multiple requests

Hi David!

You can commit the response, and then the request will not be
resubmitted. But it's difficult, since the problem was that Tomcat is
not honoring the requests, to begin with.

In iPlanet, you can tell how many requests can be queued; it would be
interesting to know whether you can do the same in Tomcat. I know how to
configure a thread pool, but not queue size!

Un saludo,

Alex.

David Oxley wrote:
>
> I have been load testing our servlet and under high load requests start to
> take a long time (30secs ish). When a request takes this long a browser
> resubmits the request automatically. Is there a status I can send to the
> browser to say that the server is actually doing something and therefore
> stop duplicate requests coming through, or do I need to do some
synchronise
> code on the session (which seems a little dodgy to me).
>
> Thanks.
> Dave.
> [EMAIL PROTECTED]



Multiple requests

2001-05-23 Thread David Oxley

I have been load testing our servlet and under high load requests start to
take a long time (30secs ish). When a request takes this long a browser
resubmits the request automatically. Is there a status I can send to the
browser to say that the server is actually doing something and therefore
stop duplicate requests coming through, or do I need to do some synchronise
code on the session (which seems a little dodgy to me).

Thanks.
Dave.
[EMAIL PROTECTED]



RE: JDBC + Tomcat NT Service

2001-03-26 Thread David Oxley

You aren't using the Microsoft VM are you?

-Original Message-
From: Paul Kofon [mailto:[EMAIL PROTECTED]]
Sent: 26 March 2001 15:37
To: [EMAIL PROTECTED]
Subject: RE: JDBC + Tomcat NT Service


Hi Randy,
Thanks! I'm sorry I failed to mention that I had put the jar files in the 
lib directory as well. I don't have a problem loading the drivers when I run

Tomcat normally but I do when I run it as a service - the drivers just 
refuse to load. The JDBC drivers are not the only jars in the lib directory.

I've got some other jars that I have no problems using even while running 
Tomcat as a Win2K service.
I guess someone has got to check this out. It's strange, but who knows I 
just might be doing something wrong.

Regards,

Paul

>From: Randy Layman <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: RE: JDBC + Tomcat NT Service
>Date: Mon, 26 Mar 2001 08:20:16 -0500
>
>
>   I always put the drivers into the web app's lib folder and don't
>have any problem - Tomcat loads them automatically (if they are .jar files)
>and this way you can replace the drivers for one webapp at a time without
>affecting the other webapps (this is useful when you are converting several
>webapps on a machine - you can rollout the changes one webapp at a time)
>
>   Things to check -
>   1.  Path to drivers is actually correct and doesn't contain any
>spaces
>   2.  Permissions on the JAR file and directory's above (this only
>applies if you have changed NT's defaults.  By default Everyone can do
>anything with any file or directory).
>
>   Randy
>
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



RE: Load Balancing and JkMount

2001-03-20 Thread David Oxley

You need to set JkMount to point at your load balanced worker (i.e. JkMount
/*.jsp lb) and in your workers.properties use the following as an example:

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

worker.Xajp13.port=8013
worker.Xajp13.host=localhost
worker.Xajp13.type=ajp13
worker.Xajp13.lbfactor=1

worker.Yajp13.port=8009
worker.Yajp13.host=host2
worker.Yajp13.type=ajp13
worker.Yajp13.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13, Xajp13, Yajp13

Dave
[EMAIL PROTECTED]

-Original Message-
From: Amir Nuri [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 07:23
To: Tomcat-User
Subject: Load Balancing and JkMount



All the examples and archive messages that I have seen so far talk about
load balancing
using either multiple JVM's or Multiple  Directives with
different port numbers
and corrosponding workers in the workers.properties file.

But they all use different Mount Points for each worker !

However my need is to Load Balance a *SINGLE MOUNT POINT*
( A single Virtual Apache Host corrosponding to a  (context) in
server.xml )

i.e I want http://ww.mysite.com/*.jsp to be load balanced by 4 worker
threads.

I am currently using 4 JkMount Directives, and the server is up and running.
i.e
JkMount /*.jsp ajp13
JkMount /*.jsp Xajp13
JkMount /*.jsp Yajp13
JkMount /*.jsp Zajp13

Also if I name the workers ajp13a , ajp13b and ajp13c, apache does not start
and gives me an error
saying that it cannot find the workers file !!!

Anyway, my question are :-

1. Is this the right way to have a single mount point load balanced ?
2. If so, is it a good idea to run the tomcat instances in the same JVM ? Or
should I run multiple tomcat/JVM
instances on the same / different servers ?





Stress Testing

2001-03-19 Thread David Oxley

What are the available products that can help me stress test my application
and which is the best. It needs to be able to run requests either serially
or in parallel (i.e. Acurrately simulating multiple users using a multiple
HTML frame servlet application).

Dave
[EMAIL PROTECTED]



RE: Cache problem with IE

2001-03-13 Thread David Oxley

Is there a proxy in between the server and browser. I have a vague memory
your supposed to use "no-store" instead of "no-cache". Someone please
correct me if this is false.

Dave.
[EMAIL PROTECTED]

-Original Message-
From: Roby Gamboa [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2001 16:47
To: [EMAIL PROTECTED]
Subject: Re: Cache problem with IE


You could try having the JSP set its modified time to 'now', using a
java.util.Calendar object. That should cause the cache on the browser to
retrieve an updated copy of the page. I don't recall how to do this in
JSP land, but servlets do it by implementing getLastModified(), derived
from HttpServlet. The idea is to set a header in the response object to
indicate the modification time as being a few milliseconds ago, but
I don't recall the exact name of the header that needs to be set.

Sorry I couldn't be more helpful.

- Roby

Zsolt Koppany wrote:

> Hi,
>
> with the code below I can get netscape not to cache a jsp page but it
> does not work with Internet-Explorer.
> Does anybody know why?
>
> response.setHeader("Cache-Control", "no-cache");
> response.setHeader("Pragma", "no-cache");\
>
> Zsolt
>
> --
> Zsolt Koppany
> Intland GmbH www.intland.com
> Schulze-Delitzsch-Strasse 16
> D-70565 Stuttgart
> Tel: +49-711-7871080 Fax: +49-711-7871017
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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

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




RE: Upcoming Tomcat book...

2001-03-05 Thread David Oxley

A couple of things I would like to see in a book (and seems to have never
been covered before):

1. How to structure large servlet applications (Data model).
2. Scalable/fail safe servlet applications.

i.e. Our application is accessing a database of up to 100Gb and we cache all
of our data in the memory of the VM rather than reading the DB for every
request. The VM can only handle 2Gb, but in reality should hold 500Mb or
less. The data model is very complex and is very sophisticated. We have
features such as lazy writing where it updates the record in memory, but
doesn't send the changes to the database immediately; early reading where we
do a big SQL select in replacement of lots of small SQL selects and cache
the result set until ready to build our internal data model.

We are less concerned with performance in our application because the real
limit is the amount of memory the VM is currently using (50 users are likely
to be using 250Mb), therefore concurrent users aren't going to cause a large
amount of performance issues, but could potentially cause memory problems.

As the data is loaded in several separate VM's fail safety became a problem,
but has been sufficiently resolved for our app. Also data that needs to be
shared between instances of the VM is very difficult. We have had to
broadcast to the other VM's that a particaular record is now invalid and the
next time it is used it goes back to the DB.

We have had consultancy from IBM on these issues and we wanted to find
another company and books to help us as well, but we have failed so far. By
the way if anyone knows of a consultancy company that has had experience of
projects like this please forward their details to me.

If you want to discuss the issues we have resolved and how we have done it;
or discuss the issues that still remain EMail me.

Dave.
[EMAIL PROTECTED]

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




Linux and Tomcat

2001-02-28 Thread David Oxley

I am about to install our software onto a RedHat 7.0 box. I have tried
before to install Sun's JRE onto RedHat and failed. I have a couple of
questions:

1. What is the best JVM to use? (Stability more important than performance)
2. Are there detailed instructions on doing the install anywhere?
3. What is the difference between green and native threads?
4. For Suns JRE 1.3, what does the classpath and path have to point at?
5. As I'm new to Linux, where do I set the classpath and path so they are
set for every boot?
6. Difference between -server and -client and do they both run hotspot as
default?

Thanks.
Dave.
[EMAIL PROTECTED]

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




SSL response

2001-02-12 Thread David Oxley

I tried posting this question on Sunday, but got no response so here it is
again:

I am using Flash to make a https request to a servlet. Flash seems to send
the request and it gets to the servlet, but it hangs when reading/getting
the response. It works fine when getting a text file containing the same
info over https. Therefore two questions:

1. This is how I create the response:
resp.setContentType("text/plain");
resp.setHeader("Cache-Control", "no-cache");
out = resp.getWriter();
Is this correct? Am I missing something? Should the mime type be different?
Do I need to set the response size? etc.

2. Is there a program to snoop on the http response so I can tell the
difference between the reponse from the servet and from the text file?

This is really urgent, so if people aren't responding cause I've done
something so stupid they can't be bothered, please repond anyway!?!?
Thanks.
Dave.
[EMAIL PROTECTED]



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




RE: HttpSession across virtual hosts

2001-02-08 Thread David Oxley

https and http are on different ports and therefore count as different
hosts. I wouldn't mind knowing how you got that working, but I think I can
code round it by not storing the basket within the HttpSession.

Dave
[EMAIL PROTECTED]

-Original Message-
From: Alistair Hopkins [mailto:[EMAIL PROTECTED]]
Sent: 08 February 2001 14:31
To: [EMAIL PROTECTED]
Subject: RE: HttpSession across virtual hosts


The http // https comparison doesn't work as cookies are sent or not
depending on the host, not on the protocol.

So if I have a valid session_id in a cookie in http, that will still be sent
when I switch to https.

So I can either have a common pool of current cookies if my https server is
seperate from my http server (seems a hard way to do it) or I just access
the software (eg Tomcat) via a webserver (eg apache) through either protocol
and the session continues without complaint.

Unless I did something complicated without noticing, of course...

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 1:13 PM
To: [EMAIL PROTECTED]
Subject: RE: HttpSession across virtual hosts



What I've seen done, which doesn't necessarily make it secure, it to
send some form of CartID.  This ID identifies the Cart in some shared back
end data store.  Usually these are large numbers that contain enough
information to determine if its a possible real value, or a number someone
made up.  If its something that someone made up, usually their IP is locked
out for a certain amount of time or a session field is set that doesn't
allow them in as long as that same session is valid.

Randy

-Original Message-
From: David Oxley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 8:08 AM
To: '[EMAIL PROTECTED]'
Subject: RE: HttpSession across virtual hosts


>I sort-of understand what you're doing, but I'm not clear on a couple of
details.
>What do you mean when you say you've "coded a request"? How exactly is
>the session ID passed from the original host to the new host, is this by a
>form field embedded into the HTML, or is it all on the server side?

Like URL-Encoded session management. The host passes our session id back to
the server when changing hosts so that it can be connected to the new
HttpSession.

Doesn't normal session management have exactly the same problem. When
writing an E-Commerce system the basket is normally chosen on an unsecure
host and then the user is put on to a secure host to checkout their
products. You need to be able to id the user between the two hosts. There
has to be a 'secure' way of doing this?!?!

Dave
[EMAIL PROTECTED]

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

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



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

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




RE: HttpSession across virtual hosts

2001-02-08 Thread David Oxley

>I sort-of understand what you're doing, but I'm not clear on a couple of
details.
>What do you mean when you say you've "coded a request"? How exactly is
>the session ID passed from the original host to the new host, is this by a
>form field embedded into the HTML, or is it all on the server side?

Like URL-Encoded session management. The host passes our session id back to
the server when changing hosts so that it can be connected to the new
HttpSession.

Doesn't normal session management have exactly the same problem. When
writing an E-Commerce system the basket is normally chosen on an unsecure
host and then the user is put on to a secure host to checkout their
products. You need to be able to id the user between the two hosts. There
has to be a 'secure' way of doing this?!?!

Dave
[EMAIL PROTECTED]

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




HttpSession across virtual hosts

2001-02-08 Thread David Oxley

Hi all,

I know that the HttpSession is only valid on the virtual host it was created
on. This is more of a security question. We currently have our own session
class that gets stored in an HttpSession 1:1 ratio. So we've coded a request
that allows us to GetSessionID on the original host and then AttachSession
on the new host. Which basically does a lookup of the session id in a static
hashtable to find one of our sessions and then attaches it to the new
HttpSession. This is used when switching from a non-secure to and from
secure host. My question is while the user name and password goes to the
secure host the session id will be sent on the unsecure host in the
AttachSession request:

1. Can this be intercepted by a hacker and used as if they had logged on?
2. If I save the remote ip address and check it during the AttachSession, is
that secure enough or can some hacker pretend to be the same ip address?
3. I am right in assuming there is no way of making an HttpSession valid
across virtual hosts (Make my life a lot easier)?
4. How can I keep the HttpSession on the original host valid? Or is it
easier to do an AttachSession every time the host is switched?

Thanks.

Dave.
[EMAIL PROTECTED]

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




RE: performance

2001-02-06 Thread David Oxley

And what makes you think nt is production quality?

:)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 02 February 2001 22:34
To: [EMAIL PROTECTED]
Subject: RE: performance


Steve,

I was using the jdk1.3 and hotspot server, os=nt4. 

As much as I would like it to be the case, tomcat just does not appear to be
production quality. With an initial userbase of 3000-5000 and an expected
user base of over 100,000 I just can't see any level of tweaking that will
bring performance in line with what it needs to be. 

Don't misunderstand though, I would love to be wrong on this :)

-Bob

-Original Message-
From: Steve Ruby [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 5:15 PM
To: [EMAIL PROTECTED]
Subject: Re: performance




With tomcat 3.2.1 and IBM JDK1.3 on linux

running a PII 400Mhz with 192Megs (physical) I was able toget

650 requests/sec

running apache ab like this
 -n 1 -c 100 
against the RequestInfo example servlet. with no un-returned requests.

Which JVM/OS where you running in the tests below?

Todd Carmichael wrote:
> 
> My tests, using Microsofts Web Application Stress (WAS) Tool, had the
> following results for a simple servlet that all it did was display a
single
> html table:
> 
> Weblogic: 490 requests/sec
> Tomcat: 540 requests/sec
> Resin: 850 requests/sec  - produced numerous socket errors (Connection
reset
> by peer).  The other servlet engines did not do this.
> 
> This was on a Pentium III 600 Mhz with a heap of 128mb.  I had 4 WAS
(HTTP)
> clients engaged in the tests. Each client had 50 threads hitting the Web
> server
> 
> The real question being asked is Tomcat suitable for production
> environments.  This is something I really would like to get a feel for
from
> other developers experiences.  I am very interested in using Tomcat for
> production and the performance seems reasonable enough for me.  I am
curious
> about monitoring tools and security issues with open source; that is what
> our IT department will hammer us on.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 7:56 AM
> To: [EMAIL PROTECTED]
> Subject: RE: performance
> 
> Tomcat does indeed "catch up" if I stop the jmeter client, accessing the
> application through a browser is much more responsive, but still a little
> slower than I would hope. The same test with resin does not show any
> noticeable degradation in performance. In fact I upped the ante with
resin.
> I started 2 more jmeter clients (configured the same), and still noticed
no
> significant drop in performance when accessing the site through a browser.
A
> few connections were refused, but that is to be expected, with the current
> configuration.
> 
> You may ask, why not just use resin and stop whining :) ... in short while
> resin does perform it has some problems in how it implements the servlet
> spec that make me leery of deploying a production app on it.
> 
> Once again, any insight would be appreciated.
> 
> p.s. Randy,
> 
> Thanks for the info, I will check into the things that you mentioned. With
> regards to the fingers, they are hard to come by, but I heard amazon.com
is
> opening a new branch and offering extremely discounted server fingers ..
you
> may want to check there :)
> 
> Thanks,
> Bob
> 
> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 9:30 AM
> To: [EMAIL PROTECTED]
> Subject: RE: performance
> 
> I thought about what the delay probably meant after I sent the
> message, but the message was already sent by then.
> 
> Back to the orginal problem or the performance  Other people
> have reported similar problems under "high" load.  No one have ever really
> given a definition of what high is since it depends upon your application,
> however I would think that 20 concurent users should be completely
supported
> by Tomcat (our application does it).
> 
> Two things to note:
> 1.  People who have reported these issuses usually say that if the
> requests stop, Tomcat will eventually catch up
> 2.  You might want to check whether or not its your application.
> Try the same test, but request a small static file.  This will show you
what
> the best performance you could hope to get.  There were a few messages
about
> a week or two ago about tuning Tomcat, you might want to look at that,
> although there wasn't much there.  Another thing is you might look
throught
> the source and see where they initalize the thread pool (probably in
> PoolTcpConnectors).  Uping this size should give you more concurrent
users,
> however it will add more overhead when the server is idle.  While you're
> running your test, keep an eye on your network bandwidth usage and cpu
> utilization.  Its possible that you might be saturating the network (are
the
> responses very large?) or that you are only using one of your 4 processors
> (

RE: Which JVM for Tomcat?

2001-01-24 Thread David Oxley

Right.

1. First of all You can write a java applet that uses java1.1 i.e. the VM
included with netscape and IE so the user doesn't have to download anything.
And you can still use 1.3 on the server. You don't need to install another
vm on the server.

2. Can you please stop flaming each other. There are people of varying
degrees of knowledge that use this list. If you flame in a discussion the
experts won't read on and you won't get any help. Rather than call people
thick answer the question in a quick way that will allow them to understand
or don't!! If someone does call you thick, this just does not dignify a
response.

3. I wouldn't mind knowing which JVM is fastest on Linux. What is Blackdown
(I think that's what its called) like. Is it faster than Suns?

Dave.
[EMAIL PROTECTED]

-Original Message-
From: forsythe [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2001 02:21
To: [EMAIL PROTECTED]
Subject: Re: Which JVM for Tomcat?


> Also I will also have APPLETS running in addition to servlets & JSPson
this
> server... So if I create a JAVA2 APPLET that WILL require a user download,
> right? Right.

Fine.  What has that got to do with Tomcat or the JVM you are installing
on your server?  Nothing.  Right?  Right.

> If you read carefully I asked "Which jvm works BEST" The Best. BEST. Ok
one
> more time " THE BEST" I Tomcat supports ALL JVMs, I'm asking if people
have
> preferences based off experience.

Best for what.  FOR WHAT?  Ever hear of requirements?  Right?  Right.

> Hey 'Charles' I think you should try to learn how not to be a prick while
> answering people questions.  Ass.

OK.  Tomorrow I will be nicer.  I doubt that you will be any smarter.

-- Charles

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

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




RE: Redirect question

2001-01-22 Thread David Oxley

Ok. I knew that I could do it with a cookie. Thanks anyway. But is there
anyway of putting onto the request and doing an HTTP POST much like a form
submit?

Dave.
[EMAIL PROTECTED]

-Original Message-
From: Andy Nuss [mailto:[EMAIL PROTECTED]]
Sent: 21 January 2001 22:43
To: '[EMAIL PROTECTED]'
Subject: RE: Redirect question



1)original jsp

HttpSession session = req.getSession(false);
MyParams params = new MyParams("a", "b", "c");
String retrieveid = "QUICK_RETRIEVE" + "/myredirect.jsp" + new
Object().hashCode();
session.setAttribute(retrieveid, params);
Cookie ck = new Cookie("QUICK_RETRIEVE", retrieveid);
ck.setPath("/myredirect.jsp");
resp.addCookie(ck);
resp.sendRedirect("/myredirect.jsp");

2)  redirected jsp

HttpSession session = req.getSession(false);
Cookie[] cks = req.getCookies();
Cookie ck = findCookieByNamePath(cks, "QUICK_RETRIEVE",
"/myredirect.jsp");
    MyParams params = (MyParams)session.getAttribute(ck.getValue());


-Original Message-
From: David Oxley [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 21, 2001 6:02 AM
To: [EMAIL PROTECTED]
Subject: Redirect question


When sending a HttpServletResponse resp.sendRedirect how can I specify
parameters without having them appear on the URL in the browser address bar?

Thanks.
Dave.
[EMAIL PROTECTED]

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



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

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




Redirect question

2001-01-21 Thread David Oxley

When sending a HttpServletResponse resp.sendRedirect how can I specify
parameters without having them appear on the URL in the browser address bar?

Thanks.
Dave.
[EMAIL PROTECTED]

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




NT Service

2001-01-17 Thread David Oxley

I know this isn't a Tomcat question, but any help would be appreciated.

I remember seeing a post back in the days of Tomcat 3.1 about starting java
apps as an nt service, but I haven't been able to locate the posting. I have
a small java app that I need to run as a service. I would rather use a
solution that has already been written that writing one myself. Does anyone
know of anything available.

Thanks.
Dave.
[EMAIL PROTECTED]

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




RE: where can I find tomcat 3.2.2

2001-01-15 Thread David Oxley

Ok. But could you do a quick document saying what the rpm's install and
where. I'm one of these people that prefer to copy stuff manually rather
than let a setup script do it, especially on my live server!!
No offence meant, but with 3.1.1 I installed the rpms on a different machine
and copied it manually.

Dave.

-Original Message-
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2001 14:32
To: [EMAIL PROTECTED]
Subject: RE: where can I find tomcat 3.2.2


You'll get that in a RPM and also a .so file.

I'll release mod_jk.so for a Apache using mod_ssl and
sus using EAPI.

"Pour la plupart des hommes, se corriger consiste à changer de défauts."
-- Voltaire 

>-Original Message-
>From: David Oxley [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 15, 2001 2:51 PM
>To: '[EMAIL PROTECTED]'
>Subject: RE: where can I find tomcat 3.2.2
>
>
>When a 3.2.2 release is built, could someone please put on the 
>site a linux
>build of mod_jk.so. (Please?)
>
>Dave.
>
>-Original Message-
>From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]]
>Sent: 15 January 2001 12:04
>To: '[EMAIL PROTECTED]'
>Subject: RE: where can I find tomcat 3.2.2
>
>
>Hola Simon:
>
>get "tomcat_32" tag from cvs to get it, 
>
>which was your report bug #? 
>
>It seems that a 3.2.2 pelease will be off apache in few days.. 
>
>Saludos ,
>Ignacio J. Ortega
>
>
>> -Mensaje original-
>> De: Kitching Simon [mailto:[EMAIL PROTECTED]]
>> Enviado el: lunes 15 de enero de 2001 12:53
>> Para: '[EMAIL PROTECTED]'
>> Asunto: where can I find tomcat 3.2.2
>> 
>> 
>> Hi,
>> 
>> I recently filed a bug report in BugRat, and 
>> see that there is now a comment
>> "fixed in tomcat 3.2.2". 
>> 
>> However, I can't find  any release called 3.2.2 
>> on the apache site, nor any such tag in the 
>> cvs repository.
>> 
>> Can anyone tell me 
>> (a) how to get the fixed code?
>> (b) when a binary 3.2.2 is likely to be available?
>> 
>> Thanks,
>> 
>> Simon
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, email: [EMAIL PROTECTED]
>> 
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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

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




RE: where can I find tomcat 3.2.2

2001-01-15 Thread David Oxley

When a 3.2.2 release is built, could someone please put on the site a linux
build of mod_jk.so. (Please?)

Dave.

-Original Message-
From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2001 12:04
To: '[EMAIL PROTECTED]'
Subject: RE: where can I find tomcat 3.2.2


Hola Simon:

get "tomcat_32" tag from cvs to get it, 

which was your report bug #? 

It seems that a 3.2.2 pelease will be off apache in few days.. 

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Kitching Simon [mailto:[EMAIL PROTECTED]]
> Enviado el: lunes 15 de enero de 2001 12:53
> Para: '[EMAIL PROTECTED]'
> Asunto: where can I find tomcat 3.2.2
> 
> 
> Hi,
> 
> I recently filed a bug report in BugRat, and 
> see that there is now a comment
> "fixed in tomcat 3.2.2". 
> 
> However, I can't find  any release called 3.2.2 
> on the apache site, nor any such tag in the 
> cvs repository.
> 
> Can anyone tell me 
> (a) how to get the fixed code?
> (b) when a binary 3.2.2 is likely to be available?
> 
> Thanks,
> 
> Simon
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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

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




Cannot connect to X11 Server (RS6000)

2001-01-15 Thread David Oxley

I'm trying to use java.awt.* on RS6000 without a gui running. I've read
about Xvfb in the archives but there is no info on this with the RS6000 as I
can only find info for Digital Unix and Solaris?

Dave.
[EMAIL PROTECTED]

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




RE: Problem installing under Win2000

2001-01-12 Thread David Oxley

In your command prompt. cd into %TOMCAT_HOME%\bin and type 'tomcat run'.
This will tell you the error because it starts it in the same window. But
the error is probably that java 1.1 doesn't have a tools.jar, it has a
classes.zip. Add that to your classpath.

Dave.
[EMAIL PROTECTED]

-Original Message-
From: Marino Vittorio [mailto:[EMAIL PROTECTED]]
Sent: 12 January 2001 10:18
To: 'Tomcat-User (E-mail)
Subject: Problem installing under Win2000


This is the message I get when I try to execute the startup script:

Using CLASSPATH: ..\bin\bootstrap.jar;C:\jdk1.1.8\lib\tools.jar

I did set JAVA_HOME, TOMCAT_HOME. I don't have tools.jar with my jdk1.1.8
distribution. The server does not start at all, I see a flashing dos shell
and that's it! Can someone help me? Thanks, Vittorio.

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

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




RE: How to create .war files??

2001-01-05 Thread David Oxley

Ant1.2 has a War file tool from your ant build script that is really useful.
Also the war file is only a jar so once you've created the directory
structure jar it and rename it to .war and that works fine.

Dave
[EMAIL PROTECTED]

-Original Message-
From: Algarve, Leila [mailto:[EMAIL PROTECTED]]
Sent: 05 January 2001 14:49
To: '[EMAIL PROTECTED]'
Subject: AW: How to create .war files??


The site http://www.jguru.com/ has many faqs, you can look there. Here are
two questions that migth be useful for you:

http://www.jguru.com/jguru/faq/view.jsp?EID=129333

http://www.jguru.com/jguru/faq/view.jsp?EID=123229


Bye,

Leila

> -Ursprüngliche Nachricht-
> Von: Deepak C S [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 5. Januar 2001 13:09
> An: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Betreff: How to create .war files??
> 
> 
> 
> hi all,
> 
>   can anybody tell "how to create web application archives(WAR)
> ...that is .war files??"eg. like examples.war in Tomcat.
> 
> Im using tomcat3.2.1 on linux.
> 
> thanx,
> deeps
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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

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




Can you remove me as well please!

2000-12-01 Thread David Oxley

I'm going to Australia for a month so I would appreciate being removed from
the list and I'll resubscribe when I get back.

Dave.
[EMAIL PROTECTED]



RE: Antwort: RE: tomcat vs orion vs weblogic testing results (Load Runner)

2000-11-20 Thread David Oxley

Oops. Tomcat twice the speed of WebSphere.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 20 November 2000 15:42
To: [EMAIL PROTECTED]
Subject: Antwort: RE: tomcat vs orion vs weblogic testing results (Load
Runner)



Hi,
which one is faster, Tomcat or Websphere?

Thomas





David Oxley <[EMAIL PROTECTED]> am 20.11.2000 15:15:02

Bitte antworten an [EMAIL PROTECTED]

An:"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Kopie:
Thema: RE: tomcat vs orion vs weblogic testing results (Load Runner)


Are there any benchmarks between Tomcat and WebSphere because at our site
we
are seeing Tomcat is twice the speed of Tomcat and I'm sure this can't be
right!!
Dave
[EMAIL PROTECTED]

-Original Message-
From: Amrhein, Thomas [mailto:[EMAIL PROTECTED]]
Sent: 20 November 2000 11:38
To: [EMAIL PROTECTED]
Subject: AW: tomcat vs orion vs weblogic testing results (Load Runner)


Which JVM did you use?


-Ursprüngliche Nachricht-
Von: Manne Anliot [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 20. November 2000 11:15
An: '[EMAIL PROTECTED]'
Betreff: tomcat vs orion vs weblogic testing results (Load Runner)

Hi all..

I'm doing work load testing on a webapplication built on javascript, .JSP:s
and EJB:s. We've load tested on many different setups and are getting some
interesting results:

Simulated number of users: 25
Computer setup: NT4 sp6, 1 GB RAM, Pentium III ~600 MHz
Tomcat setup: 1 ajp12-worker.. (We need out-of-process workers for
scalability)


setup1: webserver - apache 1.3.x, jsp - tomcat 3.2b6 (mod_jk.dll)
setup2: webserver - weblogic, jsp - weblogic (latest versions as of this
date)
setup3: webserver - orion, jsp - orion (latest versions as of this date)


setup2 and setup3 are 8 (eight) times faster in our tests (Load Runner).
Even if we suspected tomcat to be a bit slower, this is truly remarkable..
We've tried optimizing Tomcat by:
1. using ajp13 protocol - failed, we're just getting exceptions from tomcat
2. reloadable=false - of course
3. fiddling with JVM memory settings - minor improvements

Any ideas on what's wrong here? This must be a configuration problem. Have
anyone else found the same results?

Regards,
Manne Anliot.








Servlet context

2000-11-20 Thread David Oxley

We have written a servlet that is being used in a virtual host setup. I need
to retrieve the virtual host that the servlet has been setup up to work
against. I can retrieve the server name but not the virtual host name. Also
I would like to retrieve the context.
We are using Apache 1.3.14 mod_jk'ed with Tomcat 3.2b7 using ajp13.

Dave
[EMAIL PROTECTED]



RE: tomcat vs orion vs weblogic testing results (Load Runner)

2000-11-20 Thread David Oxley

Are there any benchmarks between Tomcat and WebSphere because at our site we
are seeing Tomcat is twice the speed of Tomcat and I'm sure this can't be
right!!
Dave
[EMAIL PROTECTED]

-Original Message-
From: Amrhein, Thomas [mailto:[EMAIL PROTECTED]]
Sent: 20 November 2000 11:38
To: [EMAIL PROTECTED]
Subject: AW: tomcat vs orion vs weblogic testing results (Load Runner)


Which JVM did you use?


-Ursprüngliche Nachricht-
Von: Manne Anliot [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 20. November 2000 11:15
An: '[EMAIL PROTECTED]'
Betreff: tomcat vs orion vs weblogic testing results (Load Runner)

Hi all..

I'm doing work load testing on a webapplication built on javascript, .JSP:s
and EJB:s. We've load tested on many different setups and are getting some
interesting results:

Simulated number of users: 25
Computer setup: NT4 sp6, 1 GB RAM, Pentium III ~600 MHz
Tomcat setup: 1 ajp12-worker.. (We need out-of-process workers for
scalability)


setup1: webserver - apache 1.3.x, jsp - tomcat 3.2b6 (mod_jk.dll)
setup2: webserver - weblogic, jsp - weblogic (latest versions as of this
date)
setup3: webserver - orion, jsp - orion (latest versions as of this date)


setup2 and setup3 are 8 (eight) times faster in our tests (Load Runner).
Even if we suspected tomcat to be a bit slower, this is truly remarkable..
We've tried optimizing Tomcat by:
1. using ajp13 protocol - failed, we're just getting exceptions from tomcat
2. reloadable=false - of course
3. fiddling with JVM memory settings - minor improvements

Any ideas on what's wrong here? This must be a configuration problem. Have
anyone else found the same results?

Regards,
Manne Anliot.



Running batch files when using as a NT service

2000-11-14 Thread David Oxley

Are there any issues with running batch files that call external programs
when Tomcat is set up as an NT service. 
I have a problem that when using the startup.bat my COBOL routine gets
kicked off fine, but when Tomcat is a service the COBOL returns an error
code and never executes. I have a feeling its to do with environment
variables and I am still investigating, but I thought I would just ask if
there were any issues with doing this.

Thanks.
Dave
[EMAIL PROTECTED]



RE: design for a database pool and applets

2000-11-13 Thread David Oxley

An idea is to set up you servlet as an RMI server and make requests to your
servlet from your applet. Bear in mind that you should design your app in a
multi-tier way. i.e. Your database access, business logic and UI code should
all be seperate. Applets are normally classed as UI and should therefore not
access the DB themselves!

Dave
[EMAIL PROTECTED]

-Original Message-
From: Harding, David [mailto:[EMAIL PROTECTED]]
Sent: 10 November 2000 20:45
To: [EMAIL PROTECTED]
Subject: design for a database pool and applets


i have many ways i can think of to do a pooled database connection thing
with servlets and jspbut how can i get applets using the pool too?

any ideas?



RE: workers - loadbalancing

2000-11-13 Thread David Oxley

I haven't yet got round to trying this but

I believe the worker.ajp13.lbfactor parameter is only the priority of this
worker (not the number of processes). You must start your own processes
seperatley as in virtual hosting and set up your
worker.loadbalancer.balanced_workers to point at the various workers you
have set up. You must then swap your config in mod_jk.conf from using ajp13
or ajp12 to use lb.

i.e. Something like this:

worker.ajp13_1.port=8009
worker.ajp13_1.host=localhost
worker.ajp13_1.type=ajp13
worker.ajp13_1.lbfactor=3

worker.ajp13_2.port=8009
worker.ajp13_2.host=otherserver
worker.ajp13_2.type=ajp13
worker.ajp13_2.lbfactor=12

worker.ajp13_3.port=8011
worker.ajp13_3.host=localhost
worker.ajp13_3.type=ajp13
worker.ajp13_3.lbfactor=3

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13_1, ajp13_2, ajp13_3

The better the machine (or less busy) set the lbfactor for each worker
higher.

Dave
[EMAIL PROTECTED]

-Original Message-
From: Christopher Blasnik [mailto:[EMAIL PROTECTED]]
Sent: 13 November 2000 13:11
To: [EMAIL PROTECTED]
Subject: workers - loadbalancing


Hi,

I am currently working on a virtual hosting solution for JSPs / Java
Servlets for my company
fyi: i am using redhat 6.2, tomcat 3.2 beta6 (eagerly awaiting the final
3.2) and the SUN JDK 1.2.2 as the platform for all of this

i am doing all fine configuring virtual hosts and i think i have
(almost) all security issues covered;

the one thing that confuses me about tomcat and / or the JDK i use is
the following:

isn't tomcat supposed to spawn more than one process when configuring
the 
worker.ajp13.lbfactor=10 for example ? or did i misunderstand the
(rather scarce :-) documentation ?
somehow i think that this depends on the JDK that is used:
in the beginning, when i was still experimenting with (apache)jserv and
different java servlets, i used blackdown's jdk 1.2.2, and every time i
restarted apache and therefore the servlet engine / container, at least
4 or more java processes were spawned
but using the same configuration and instead of JDK from blackdown using
SUN's java development kit, only one! process was spawned from the
start! - the same now with tomcat (although i havent tried it with any
other JDK than SUN's yet, i must admit)

Or did i misunderstand the whole issue, and the loadbalancing is done in
some other way ?

I hope someone can shed some light on this!

signing confused-and-hopefully-not-sounding-too-newbieish,

christopher blasnik
mailto:[EMAIL PROTECTED]



RE: How many sessions are open?

2000-11-09 Thread David Oxley

...But that requires a code change so won't help you much!!

-Original Message-
From: Samuel Yuen [mailto:[EMAIL PROTECTED]]
Sent: 09 November 2000 14:21
To: [EMAIL PROTECTED]
Subject: Re: How many sessions are open?



Hi,

as you must seen, there was some discussion about how to detect the closing
of
a session lately. You can follow the same idea and create a static object
that
implements HttpSessionBindingListener and add this same object to all the
sessions that are created. It can have a internal variable which stores the
number of sessions open.

Samuel


Till Gartner wrote:

> Hi List,
>
> we're heavily using Tomcat for our new service (check out
> http://www.cardxchange.net for a nice webapp).
>
> As we went live monday morning (at 1:30 am - uff), we still have some
bugs.
> We
> analyzed them & fixed them in the code. Now we'd like to "roll them out"
in
> our live system. Unfortunately we don't know wether we can shut it down
for
> this one minute task of copying the fixes JSPs and classes and restarting
> the tomcat engine.
>
> Is there a way to find out how many sessions are open?
>
> Thanx for the help,
> -- Till.



RE: init being called twice

2000-11-07 Thread David Oxley

I've tried it with 0 and with 5, but I still have the same problem.

-Original Message-
From: Byung Jin Chun [mailto:[EMAIL PROTECTED]]
Sent: 07 November 2000 15:52
To: '[EMAIL PROTECTED]'
Subject: RE: init being called twice


David,
   try using a positive integer value for your load on startup element.
Here is the snippet from the dtd:






Jin

-Original Message-----
From: David Oxley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 07, 2000 10:30 AM
To: '[EMAIL PROTECTED]'
Subject: RE: init being called twice


If your talking about the %TOMCAT_HOME%\conf\web.xml, then no it is not
defined in there. It is also not defined in %TOMCAT_HOME%\conf\server.xml.
All I have is the context\WEB-INF\web.xml which I have attached.
I have done some further tests and I actually have a new object of my
servlet class. So it is calling init in one instance of the class and then
creating a new instance of the class and calling init again when the first
request is made. It makes no further calls to init after this.
Also the init method is completing succesfully with no exceptions.

On a side point what does the number in the  tag in web.xml
mean.

-Original Message-
From: William Brogden [mailto:[EMAIL PROTECTED]]
Sent: 07 November 2000 14:49
To: [EMAIL PROTECTED]
Subject: Re: init being called twice




David Oxley wrote:
> 
> Does anyone know why the init method is being called twice. I'm using
> tomcat3.2b6 with IIS5 on W2K linked with isapi_redirect.dll. I have also
> seen this with 3.1 with apache 1.3.12 on Solaris 7 linked with
mod_jserv.so.
> 
> I can code around this so that the second time through it doesn't call my
> init stuff again, but surely this is a bug?!
> 
> Any comments?
> Dave
> [EMAIL PROTECTED]

Seems to me I recall that being traced to having a servlet entry in
both the base web.xml and application context web.xml.

-- 
WBB



RE: init being called twice

2000-11-07 Thread David Oxley

I have just tried this and it causes my app to stop working.
Does this now mean that I need to put the context into
%TOMCAT_HOME%\conf\web.xml, because this is a bit of a pain.
Dave.

-Original Message-
From: Alistair Hopkins [mailto:[EMAIL PROTECTED]]
Sent: 07 November 2000 15:37
To: [EMAIL PROTECTED]
Subject: RE: init being called twice


I had this.

In my case, it was caused by setting my context to be the root context.

I solved it by removing the

 

line from server.xml, so that only contexts explicitly defined in web.xml 
were loaded.


At 03:29 PM 11/7/00 +, you wrote:
>If your talking about the %TOMCAT_HOME%\conf\web.xml, then no it is not
>defined in there. It is also not defined in %TOMCAT_HOME%\conf\server.xml.
>All I have is the context\WEB-INF\web.xml which I have attached.
>I have done some further tests and I actually have a new object of my
>servlet class. So it is calling init in one instance of the class and then
>creating a new instance of the class and calling init again when the first
>request is made. It makes no further calls to init after this.
>Also the init method is completing succesfully with no exceptions.
>
>On a side point what does the number in the  tag in
web.xml
>mean.
>
>-Original Message-
>From: William Brogden [mailto:[EMAIL PROTECTED]]
>Sent: 07 November 2000 14:49
>To: [EMAIL PROTECTED]
>Subject: Re: init being called twice
>
>
>
>
>David Oxley wrote:
> >
> > Does anyone know why the init method is being called twice. I'm using
> > tomcat3.2b6 with IIS5 on W2K linked with isapi_redirect.dll. I have also
> > seen this with 3.1 with apache 1.3.12 on Solaris 7 linked with
>mod_jserv.so.
> >
> > I can code around this so that the second time through it doesn't call
my
> > init stuff again, but surely this is a bug?!
> >
> > Any comments?
> > Dave
> > [EMAIL PROTECTED]
>
>Seems to me I recall that being traced to having a servlet entry in
>both the base web.xml and application context web.xml.
>
>--
>WBB
>



RE: Locating property files

2000-11-07 Thread David Oxley

What we do (and we would prefer a better solution) is copy it under
WEB-INF\classes directory. It would need to be in the .jar file if you were
to put it in the WEB-INF\lib directory.
Dave
[EMAIL PROTECTED]

-Original Message-
From: Gary Raley [mailto:[EMAIL PROTECTED]]
Sent: 07 November 2000 15:46
To: tomcat user
Subject: Locating property files


My servlet requires access to a properties file and I'm trying to
determine the best implementation.   I tried copying the properties file
to the Webapps\"ContextRoot"\Web-Inf\lib directory, but Tomcat could not
locate the file.  I had to add the properties file to the classpath
within TOMCAT.BAT to enable Tomcat to locate the properties file.  Is
this my only solution?

Thanks in advance for your help,
Gary

[EMAIL PROTECTED]



RE: init being called twice

2000-11-07 Thread David Oxley

If your talking about the %TOMCAT_HOME%\conf\web.xml, then no it is not
defined in there. It is also not defined in %TOMCAT_HOME%\conf\server.xml.
All I have is the context\WEB-INF\web.xml which I have attached.
I have done some further tests and I actually have a new object of my
servlet class. So it is calling init in one instance of the class and then
creating a new instance of the class and calling init again when the first
request is made. It makes no further calls to init after this.
Also the init method is completing succesfully with no exceptions.

On a side point what does the number in the  tag in web.xml
mean.

-Original Message-
From: William Brogden [mailto:[EMAIL PROTECTED]]
Sent: 07 November 2000 14:49
To: [EMAIL PROTECTED]
Subject: Re: init being called twice




David Oxley wrote:
> 
> Does anyone know why the init method is being called twice. I'm using
> tomcat3.2b6 with IIS5 on W2K linked with isapi_redirect.dll. I have also
> seen this with 3.1 with apache 1.3.12 on Solaris 7 linked with
mod_jserv.so.
> 
> I can code around this so that the second time through it doesn't call my
> init stuff again, but surely this is a bug?!
> 
> Any comments?
> Dave
> [EMAIL PROTECTED]

Seems to me I recall that being traced to having a servlet entry in
both the base web.xml and application context web.xml.

-- 
WBB


 web.xml


init being called twice

2000-11-07 Thread David Oxley

Does anyone know why the init method is being called twice. I'm using
tomcat3.2b6 with IIS5 on W2K linked with isapi_redirect.dll. I have also
seen this with 3.1 with apache 1.3.12 on Solaris 7 linked with mod_jserv.so.

I can code around this so that the second time through it doesn't call my
init stuff again, but surely this is a bug?!

Any comments?
Dave
[EMAIL PROTECTED]



RE: Mod_jk and MacOSX

2000-10-25 Thread David Oxley

Try the tomcat-dev mailing list. Someone will probably take it off your
hands.

-Original Message-
From: Jean-Rene Rouet [mailto:[EMAIL PROTECTED]]
Sent: 25 October 2000 08:28
To: [EMAIL PROTECTED]
Subject: Mod_jk and MacOSX


Hi

I made modifications on 2 files of the distribution "jk_util.c" and
"jk_jni_worker.c" to make mod_jk working on Mac OS X.
How can I submit theses modifications to the team developpers.

JR

-- 
  -
    
  // Jean-Rene Rouet \\
||   [EMAIL PROTECTED]||
    
  -



RE: SSL help..

2000-10-24 Thread David Oxley

On this question:
Am I right in thinking that you only need to do special SSL config in tomcat
when not connected to a webserver (i.e. port 8080).

-Original Message-
From: Trevor Little [mailto:[EMAIL PROTECTED]]
Sent: 24 October 2000 14:11
To: [EMAIL PROTECTED]
Subject: Re: SSL help..


Read server.xml in the conf/ directory.  It explains how to do it.



[EMAIL PROTECTED] wrote:
> 
> Hi all,
>Just I downloaded Tomcat3.2. Could any one help me, how to configure
SSL and where can I get jsse.jar. Is any other jar files are required to add
in classpath.
> Any help would be gratly appreciated.
> 
> Thanks,
> nell
> 
> ___
> CoolEmail -- Now you're talking.
> Get Free Email-By-Phone Today.
> http://www.CoolEmail.com