Re: Tomcat4 performance issue when manually removing compiled jsps in work folder

2004-03-30 Thread Peter Johnson
Duncan,

I believe (and could be wrong) that this is intended behaviour. The work
directory is like Tomcat's cache of all the webapps it is currently
serving. When a request comes in for a page it tries to serve from this
directory, if the class file does not exist it generates the .java files
from /webapp and then compiles them so that it can serve them. 

So, the 3s delay and 100% utilisation is expected because Tomcat is
recompiling the files so that it can serve them.

PJ

On Fri, 2004-03-26 at 18:39, Duncan Krebs wrote:
 Hi, 
 I have had this snag for some time now and its starting to get the best of me. I'm 
 running tomcat 4.1 and when I manually remove the .java and .class files in the 
 /work/standalone folder even after the initial request of recompiling the jsp's 
 tomcat hits 100% on my CPU and the overall response time is delayed by about 3 
 seconds on each request.
 
 As I deleted different sub folders in the work folder (all within the same web 
 application) the degraded performance was consistent with the different sub folders 
 that I was deleting even after the pages were recompiled. Has anyone experienced 
 this before? 
 
 All of my requests are going through a Servlet controller and I have a lot of 
 classes in my WEB-INF folder that are part of the framework but I don't think that 
 would have anything to do with this. I've also tried rebuilding my entire project 
 from scratch and I'm still having the same issue of a slowed response time of about 
 3 seconds and tomcat taking all my CPU.
 
 Regards, 
 dkrebs
 


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



RE: JK Connector versus mod_proxy

2004-03-30 Thread SH Solutions
Hi

The primary benefit is, that using mod_jk, the request is not pushed to a
proxy.
Having a proxy in between gives serveral problems:

- Authentication issues (as David mentioned)
- Logging issues
- Security issues

All the last two come from the point, that each and every request is done by
the same client [out of tomcats view], namely the apache server. Using
proxy, the apache-server itself acts as HTTP Client and connects to tomcat.

Using mod_jk, all request parameters are forwarded to tomcat, not using http
at all. Tomcat can therefor see the clients IP and other things, that get
hidden, if a proxy is in between.

However, remember to diable access to tomcats AJP-port from the internet,
since any attacker could also use the AJP protocol to give tomcat facked
information. He could do a lot of attacks, giving a faked ip address and
tomcat would log the wrong information.

Regards,
  Steffen


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



Re: Tomcat4 performance issue when manually removing compiled jspsin work folder

2004-03-30 Thread Peter Johnson
Duncan,

Restarting is like wiping the slate clean in terms of Tomcat's caching
in the work directory. So, it is expected that it would take a little
while, even just to load the classes in to memory to serve. If you are
using JSP I believe that these are always recompiled at start with the
class files from the your webapp/WEB-INF/classes and lib directories
being loaded in to memory.

PJ

On Fri, 2004-03-26 at 19:11, Duncan Krebs wrote:
 Peter,
 Thanks for the reply. It would make sense that on the request immediately
 after I delete the .java and .class files in the work folder it would take
 longer because tomcat has to recompile the jsp's. However even after they
 are recompiled (not deleted again)and  tomcat is restarted subsequent
 requests continue to take longer and the CPU continues to hit 100%. I wonder
 if there is a way to analyze the request and see what code is taking so long
 to execute.
 - Duncan
 
 - Original Message -
 From: Peter Johnson [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, March 30, 2004 2:00 AM
 Subject: Re: Tomcat4 performance issue when manually removing compiled
 jspsin work folder
 
 
  Duncan,
 
  I believe (and could be wrong) that this is intended behaviour. The work
  directory is like Tomcat's cache of all the webapps it is currently
  serving. When a request comes in for a page it tries to serve from this
  directory, if the class file does not exist it generates the .java files
  from /webapp and then compiles them so that it can serve them.
 
  So, the 3s delay and 100% utilisation is expected because Tomcat is
  recompiling the files so that it can serve them.
 
  PJ
 
  On Fri, 2004-03-26 at 18:39, Duncan Krebs wrote:
   Hi,
   I have had this snag for some time now and its starting to get the best
 of me. I'm running tomcat 4.1 and when I manually remove the .java and
 .class files in the /work/standalone folder even after the initial request
 of recompiling the jsp's tomcat hits 100% on my CPU and the overall response
 time is delayed by about 3 seconds on each request.
  
   As I deleted different sub folders in the work folder (all within the
 same web application) the degraded performance was consistent with the
 different sub folders that I was deleting even after the pages were
 recompiled. Has anyone experienced this before?
  
   All of my requests are going through a Servlet controller and I have a
 lot of classes in my WEB-INF folder that are part of the framework but I
 don't think that would have anything to do with this. I've also tried
 rebuilding my entire project from scratch and I'm still having the same
 issue of a slowed response time of about 3 seconds and tomcat taking all my
 CPU.
  
   Regards,
   dkrebs
  
 
 
  -
  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: Tomcat4 performance issue when manually removing compiled jspsin work folder

2004-03-30 Thread Duncan Krebs
Peter,
Thanks for the reply. It would make sense that on the request immediately
after I delete the .java and .class files in the work folder it would take
longer because tomcat has to recompile the jsp's. However even after they
are recompiled (not deleted again)and  tomcat is restarted subsequent
requests continue to take longer and the CPU continues to hit 100%. I wonder
if there is a way to analyze the request and see what code is taking so long
to execute.
- Duncan

- Original Message -
From: Peter Johnson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 2:00 AM
Subject: Re: Tomcat4 performance issue when manually removing compiled
jspsin work folder


 Duncan,

 I believe (and could be wrong) that this is intended behaviour. The work
 directory is like Tomcat's cache of all the webapps it is currently
 serving. When a request comes in for a page it tries to serve from this
 directory, if the class file does not exist it generates the .java files
 from /webapp and then compiles them so that it can serve them.

 So, the 3s delay and 100% utilisation is expected because Tomcat is
 recompiling the files so that it can serve them.

 PJ

 On Fri, 2004-03-26 at 18:39, Duncan Krebs wrote:
  Hi,
  I have had this snag for some time now and its starting to get the best
of me. I'm running tomcat 4.1 and when I manually remove the .java and
.class files in the /work/standalone folder even after the initial request
of recompiling the jsp's tomcat hits 100% on my CPU and the overall response
time is delayed by about 3 seconds on each request.
 
  As I deleted different sub folders in the work folder (all within the
same web application) the degraded performance was consistent with the
different sub folders that I was deleting even after the pages were
recompiled. Has anyone experienced this before?
 
  All of my requests are going through a Servlet controller and I have a
lot of classes in my WEB-INF folder that are part of the framework but I
don't think that would have anything to do with this. I've also tried
rebuilding my entire project from scratch and I'm still having the same
issue of a slowed response time of about 3 seconds and tomcat taking all my
CPU.
 
  Regards,
  dkrebs
 


 -
 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]



How to pass the options -server -xms64m -Xmx384m to the ajp13 connector

2004-03-30 Thread Salvador Santander Gutierrez
Hello, I want to pass the next jvm parameters to the ajp13 connector to
improve the performance.

-server -xms64m -Xmx384m

How can get this? With worker.inprocess.sysprops=server?

I'm using apache 1.3.29, tomcat 4.1.27 and jk connector 1.2

Thanks in advance.






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



How can I improve the performance of ajp13 connector?

2004-03-30 Thread Salvador Santander Gutierrez
I've noticed that the performance through tomcat directly ( by port 8080,
coyote connector) is much better than request the same page to the apache
with ajp13 connector. Is there any way to improve the performance of the
ajp13 connector?
I'm using apache 1.3.26, tomcat 4.1.27, and jk connector 1.2.
Thanks in advance.



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



Re: Tomcat4 performance issue when manually removing compiledjsps in work folder

2004-03-30 Thread Duncan Krebs
Peter,
I'm getting closer. I installed the latest stable version of Tomcat, copied
my web application folder into the tomcat5 webapps folder and this what I
have noticed.

Any jsp page from the existing web app seems to be getting recompiled and
not cached in tomcat. This is what I can't figure out:

If I create a new jsp page in the web app and copy the exact source from an
existing jsp into the new file (named differently than the existing one),
the new jsp is getting cached just fine. When I refresh that page a bunch of
times, the response time is instant and my cpu activity stays very low.

But when I continue to load any jsp pages from the existing web app, my cpu
hits 60%, the response time is slower and they seem to be getting recompiled
on every request. Makes no sense, both the new and old jsp page have the
same content but the old one seems to keep getting recompiled on every
request. Do you have any ideas why Tomcat would be doing this?

Thanks again for your help,
- Duncan



- Original Message -
From: Peter Johnson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 2:35 AM
Subject: Re: Tomcat4 performance issue when manually removing compiledjspsin
work folder


 Duncan,

 Restarting is like wiping the slate clean in terms of Tomcat's caching
 in the work directory. So, it is expected that it would take a little
 while, even just to load the classes in to memory to serve. If you are
 using JSP I believe that these are always recompiled at start with the
 class files from the your webapp/WEB-INF/classes and lib directories
 being loaded in to memory.

 PJ

 On Fri, 2004-03-26 at 19:11, Duncan Krebs wrote:
  Peter,
  Thanks for the reply. It would make sense that on the request
immediately
  after I delete the .java and .class files in the work folder it would
take
  longer because tomcat has to recompile the jsp's. However even after
they
  are recompiled (not deleted again)and  tomcat is restarted subsequent
  requests continue to take longer and the CPU continues to hit 100%. I
wonder
  if there is a way to analyze the request and see what code is taking so
long
  to execute.
  - Duncan
 
  - Original Message -
  From: Peter Johnson [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, March 30, 2004 2:00 AM
  Subject: Re: Tomcat4 performance issue when manually removing compiled
  jspsin work folder
 
 
   Duncan,
  
   I believe (and could be wrong) that this is intended behaviour. The
work
   directory is like Tomcat's cache of all the webapps it is currently
   serving. When a request comes in for a page it tries to serve from
this
   directory, if the class file does not exist it generates the .java
files
   from /webapp and then compiles them so that it can serve them.
  
   So, the 3s delay and 100% utilisation is expected because Tomcat is
   recompiling the files so that it can serve them.
  
   PJ
  
   On Fri, 2004-03-26 at 18:39, Duncan Krebs wrote:
Hi,
I have had this snag for some time now and its starting to get the
best
  of me. I'm running tomcat 4.1 and when I manually remove the .java and
  .class files in the /work/standalone folder even after the initial
request
  of recompiling the jsp's tomcat hits 100% on my CPU and the overall
response
  time is delayed by about 3 seconds on each request.
   
As I deleted different sub folders in the work folder (all within
the
  same web application) the degraded performance was consistent with the
  different sub folders that I was deleting even after the pages were
  recompiled. Has anyone experienced this before?
   
All of my requests are going through a Servlet controller and I have
a
  lot of classes in my WEB-INF folder that are part of the framework but I
  don't think that would have anything to do with this. I've also tried
  rebuilding my entire project from scratch and I'm still having the same
  issue of a slowed response time of about 3 seconds and tomcat taking all
my
  CPU.
   
Regards,
dkrebs
   
  
  
   -
   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]



tomcat 5 send emails

2004-03-30 Thread zhicheng wang
dear all

i am trying to upgrade form tomcat4 to 5. but the send
mail does not work.

can any one please let me know how to config tomcat5
to be able to send emails. i have my own code such as
SendMailServlet, the problem lies in the resources for
javax.mail.Session, the way this is configured in
tomcat4 does not work for t5

regards

cheng




=
Best wishes
Z C Wang





___
WIN FREE WORLDWIDE FLIGHTS - nominate a cafe in the Yahoo! Mail Internet Cafe Awards  
www.yahoo.co.uk/internetcafes 

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



Re: Configuring Tomcat on different IP's

2004-03-30 Thread Parsons Technical Services
Uma,

This has moved beyond my experiance. Other than experimenting or diving into
the source what I suggest now is to reply to this post and edit the subject
line to read:

Two service on one Tomcat instance.[Was Re: Configuring Tomcat on different
IP's]

In the hope that someone with more information will respond.

You may try google with a search based on tomcat and two or multiple
service.

Sorry I ran out of ideas.

Doug


- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 11:50 PM
Subject: Re: Configuring Tomcat on different IP's






 Doug,
 I fogot to tell you that the first context has only one .jsp file. Here is
 the content of that index.jsp file

 %
 response.sendRedirect(https://172.27.2.246/IBS/Login.jsp;);
 %

 Thanks
 Uma


 -
 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: Deaktivate Session-Creation/Handling

2004-03-30 Thread Shapira, Yoav

Hi,
Session handling is mandated by the Servlet Specification: tomcat must
implement it.  You can't deactivate it.  What you can do includes:
- Writing an HttpServletRequestWrapper whose getSession methods always
return null (or a new empty session, or whatever you need)
- Writing any of the available session/attribute/binding listeners to
override webapp actions with respect to session behavior.
- Telling tomcat not to persist sessions, or otherwise treat them in a
custom way by writing your own Manager and plugging it into server.xml.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Alexander Lazic [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 4:47 PM
To: [EMAIL PROTECTED]
Subject: Deaktivate Session-Creation/Handling

Hi,

i haven't found any way to deaktivate the session generation in tomcat
4.1.2x.

As i see it is possible to deaktivate the SessionCookie but not the
Session entry in the Url.

Unfortunately we have an application which don't _like_ these Session
;-/

Have i overseen somthing or need i a seperate class with an dummy
response for the $GETNEWSESSION request in jakarta-tomcat?

Can anybody help me please ;-)

Thanx

al ;-)

-
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]



getRequestURL with Apache/ajp13 and SSL certs

2004-03-30 Thread jean-philippe . belanger
Ok I need some info here.

I've been trying to use the HttpServletRequest.getRequestURL in tomcat 5 
to return the user's original URL. I need to extract the scheme, port, 
servername that the client used on his side.
From the specs, that method should do it. I first tried getServerName 
and getServerScheme but later found out that those values are taken from 
the HTTP attribute SERVER_NAME that is probably overriden by apache to 
set his own.

My problem is. I call a server with his IP adress: let's say 
192.168.2.1. That server has a valid certificate install with the common 
name mysite.cgi.com
So I type the url: https://192.168.2.1/myServlet

The servlet does some validation and then send a URL redirect to 
request.getRequestURL() + /myPage;

The client ends up on https://mysite.cgi.com/myPage

How come??? The client never entered mysite.cgi.com anywhere... I'm 
confused...

Apache 1.3.26
Tomcat 5.0.16
mod_jk with ajp13
Jean-Philippe Bélanger
CGI
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat4 performance issue when manually removing compiledjsps in work folder

2004-03-30 Thread Bodycombe, Andrew
Could your jsp source files have been modified In the future? 

-Original Message-
From: Duncan Krebs
To: Tomcat Users List
Sent: 26/03/2004 09:39
Subject: Re: Tomcat4 performance issue when manually removing compiledjsps
in work folder

Peter,
I'm getting closer. I installed the latest stable version of Tomcat,
copied
my web application folder into the tomcat5 webapps folder and this what
I
have noticed.

Any jsp page from the existing web app seems to be getting recompiled
and
not cached in tomcat. This is what I can't figure out:

If I create a new jsp page in the web app and copy the exact source from
an
existing jsp into the new file (named differently than the existing
one),
the new jsp is getting cached just fine. When I refresh that page a
bunch of
times, the response time is instant and my cpu activity stays very low.

But when I continue to load any jsp pages from the existing web app, my
cpu
hits 60%, the response time is slower and they seem to be getting
recompiled
on every request. Makes no sense, both the new and old jsp page have the
same content but the old one seems to keep getting recompiled on every
request. Do you have any ideas why Tomcat would be doing this?

Thanks again for your help,
- Duncan



- Original Message -
From: Peter Johnson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 2:35 AM
Subject: Re: Tomcat4 performance issue when manually removing
compiledjspsin
work folder


 Duncan,

 Restarting is like wiping the slate clean in terms of Tomcat's caching
 in the work directory. So, it is expected that it would take a little
 while, even just to load the classes in to memory to serve. If you are
 using JSP I believe that these are always recompiled at start with the
 class files from the your webapp/WEB-INF/classes and lib directories
 being loaded in to memory.

 PJ

 On Fri, 2004-03-26 at 19:11, Duncan Krebs wrote:
  Peter,
  Thanks for the reply. It would make sense that on the request
immediately
  after I delete the .java and .class files in the work folder it
would
take
  longer because tomcat has to recompile the jsp's. However even after
they
  are recompiled (not deleted again)and  tomcat is restarted
subsequent
  requests continue to take longer and the CPU continues to hit 100%.
I
wonder
  if there is a way to analyze the request and see what code is taking
so
long
  to execute.
  - Duncan
 
  - Original Message -
  From: Peter Johnson [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, March 30, 2004 2:00 AM
  Subject: Re: Tomcat4 performance issue when manually removing
compiled
  jspsin work folder
 
 
   Duncan,
  
   I believe (and could be wrong) that this is intended behaviour.
The
work
   directory is like Tomcat's cache of all the webapps it is
currently
   serving. When a request comes in for a page it tries to serve from
this
   directory, if the class file does not exist it generates the .java
files
   from /webapp and then compiles them so that it can serve them.
  
   So, the 3s delay and 100% utilisation is expected because Tomcat
is
   recompiling the files so that it can serve them.
  
   PJ
  
   On Fri, 2004-03-26 at 18:39, Duncan Krebs wrote:
Hi,
I have had this snag for some time now and its starting to get
the
best
  of me. I'm running tomcat 4.1 and when I manually remove the .java
and
  .class files in the /work/standalone folder even after the initial
request
  of recompiling the jsp's tomcat hits 100% on my CPU and the overall
response
  time is delayed by about 3 seconds on each request.
   
As I deleted different sub folders in the work folder (all
within
the
  same web application) the degraded performance was consistent with
the
  different sub folders that I was deleting even after the pages were
  recompiled. Has anyone experienced this before?
   
All of my requests are going through a Servlet controller and I
have
a
  lot of classes in my WEB-INF folder that are part of the framework
but I
  don't think that would have anything to do with this. I've also
tried
  rebuilding my entire project from scratch and I'm still having the
same
  issue of a slowed response time of about 3 seconds and tomcat taking
all
my
  CPU.
   
Regards,
dkrebs
   
  
  
  
-
   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]


Re: Tomcat4 performance issue when manually removing compiledjsps in work folder

2004-03-30 Thread QM
On Fri, Mar 26, 2004 at 03:39:13AM -0600, Duncan Krebs wrote:
: But when I continue to load any jsp pages from the existing web app, my cpu
: hits 60%, the response time is slower and they seem to be getting recompiled
: on every request. Makes no sense, both the new and old jsp page have the
: same content but the old one seems to keep getting recompiled on every
: request. Do you have any ideas why Tomcat would be doing this?

That the files have the same content is irrelevant -- Tomcat sees each
JSP as a separate entity.

The question is, exactly what happens between page refreshes?  Are you
redeploying your webapp (i.e., overwriting a JSP with the same content,
like when you pull the files out of source code control)?

Is something else on your machine adjusting the files' timestamps,
causing Tomcat to think the file has changed and must thus be rebuilt?


fwiw, it's my experience that restarting Tomcat has no effect on the
compiled files in the /work dir -- Tomcat will still compare the
compiled version to the original.

-QM

-- 
software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



JNDI ResourceEnvFactory

2004-03-30 Thread Holger de Wall
Hi, 

How must CATALINA_OPTS be set, that the ctx.lookup(java:comp/env...) is 
successfull ?

when I tried to get a database connection via a JNDI DataSource described in 
the Tomcat documentation (ctx.lookup(java:comp/env/...)), I get
schnipp
javax.naming.NamingException: Cannot create resource instance
at 
org.apache.naming.factory.ResourceEnvFactory.getObjectInstance(ResourceEnvFactory.java:146)
---schnapp---

The problem is, that we have to start tomcat with 
CATALINA_OPTS=
 -Djava.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
-Djava.naming.provider.url=file:/somepath/poolfile


Holger de Wall


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



tomcat performance with 100 webapps

2004-03-30 Thread Niki Ivanchev
Have some one tested Tomcat with more than 100 webapps. For example 
e-commrece solution, without many bells and whistles - jsut shopbuilder 
and  sopiing cart
Each webapp is based on trubine/velocity/torque. Each webapp using it's 
own firebird database.
Can I expect smooth performance on dual xeon with raid controler and lot 
of RAM (16G) on RedHat EAS?
Niki
Icygen Co.

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


Re: tomcat 5 send emails

2004-03-30 Thread QM
On Tue, Mar 30, 2004 at 11:35:44AM +0100, zhicheng wang wrote:
: i am trying to upgrade form tomcat4 to 5. but the send
: mail does not work.

Tomcat5 no longer ships with the JavaMail and Activation jars.
Simply grab those from Sun (or, if you're not feeling adventurous, from
your old Tomcat4 install) and put them in {tomcat5}/common/lib.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: tomcat performance with 100 webapps

2004-03-30 Thread Shapira, Yoav

Hi,
We have tomcat instances that run ~20 webapps without a problem.  Beyond
that, we haven't tried, but then again that's why we have tools like
JMeter, no? ;)

In large part this will depend on the soundness of the application.
Especially if it's 100 of the same app, because then each memory leak
would be multiplied by 100.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Niki Ivanchev [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 9:43 AM
To: Tomcat User
Subject: tomcat performance with 100 webapps

Have some one tested Tomcat with more than 100 webapps. For example
e-commrece solution, without many bells and whistles - jsut shopbuilder
and  sopiing cart
Each webapp is based on trubine/velocity/torque. Each webapp using it's
own firebird database.
Can I expect smooth performance on dual xeon with raid controler and
lot
of RAM (16G) on RedHat EAS?
Niki
Icygen Co.

-
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]



FW:

2004-03-30 Thread Williams, Daniel S
 
 
-Original Message-
From: Williams, Daniel S 
Sent: 30 March 2004 15:39
To: Tomcat Users List
Subject: 
 
Problem with deploying servlets on tomcat.
 
 
 
The versions of tomcat I have is 5.0 with the j2sdk1.4.2_03.
 
My project allows for a user to enter a url in a form, which is then
processed by a java servlet, and links within the url are validated. The
problem I'm having is that when the form is submitted, tomcat returns
the status report: 404 requested resource unavailable.
The url entered is http://localhost:8080/sitevalidation/INDEX.HTM  -
this works fine and the home page appears.
When the form is submitted, the url changes to
http://localhost:8080/sitevalidation/SiteValidation - which I assume is
then looking for the servlet declared in the web.xml file, this is when
the problems start.
I have noticed that on starting up tomcat, the application is loading
o.k, but then the script reads: info: missing application web.xml, using
defaults only
StandardEngine[Catalina].StandardHost[localhost].standardcontext[/siteva
lidation]
 
 
I think I have the correct file structure as I have included the
application dir sitevalidation in the webapps directory of tomcat. 
sitevalidation
INDEX.HTM
WEB-INF
 web.xml
 classes
  SiteValidation.java
  SiteValidation.class
SiteValidation.class compiles correctly and when javap -classpath is
used it returns the correct signigtures
 
My web.xml file reads:
 
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC
   -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
 
web-app
  display-nameSite Validation/display-name
description
This is the Site Validation Program Written in Java
/description
   servlet
servlet-nameSiteValidation/servlet-name
servlet-classSiteValidation/servlet-class
/servlet
servlet-mapping
servlet-nameSiteValidation/servlet-name
url-pattern/SiteValidation/url-pattern
/servlet-mapping
/web-app
 
Any suggestions to where I might be going wrong would be most
appreciated.
 
Many thanks,
 
Dan Williams
 


Re: tomcat performance with 100 webapps

2004-03-30 Thread Niki Ivanchev
God save our apps from any memory leaks.
Of course we will test them for this issue. And perform stress testing
20 sounds fair enought. Frankly I don't expect too much traffic per e-shop.
Niki
Shapira, Yoav wrote:

Hi,
We have tomcat instances that run ~20 webapps without a problem.  Beyond
that, we haven't tried, but then again that's why we have tools like
JMeter, no? ;)
In large part this will depend on the soundness of the application.
Especially if it's 100 of the same app, because then each memory leak
would be multiplied by 100.
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Niki Ivanchev [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 9:43 AM
To: Tomcat User
Subject: tomcat performance with 100 webapps
Have some one tested Tomcat with more than 100 webapps. For example
e-commrece solution, without many bells and whistles - jsut shopbuilder
and  sopiing cart
Each webapp is based on trubine/velocity/torque. Each webapp using it's
own firebird database.
Can I expect smooth performance on dual xeon with raid controler and
   

lot
 

of RAM (16G) on RedHat EAS?
Niki
Icygen Co.
-
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]


 




Re: tomcat performance with 100 webapps

2004-03-30 Thread Remy Maucherat
Niki Ivanchev wrote:
Have some one tested Tomcat with more than 100 webapps. For example 
e-commrece solution, without many bells and whistles - jsut shopbuilder 
and  sopiing cart
Each webapp is based on trubine/velocity/torque. Each webapp using it's 
own firebird database.
Can I expect smooth performance on dual xeon with raid controler and lot 
of RAM (16G) on RedHat EAS?
I recommend using Tomcat 5, since it will save a significant amount of 
per context resources.

You should also use a global datasource, which would give you a global 
limit on concurrent DB requests. If all webapps use a separate DB, then 
it could lead to resources problems because of too many connections (but 
of course, I haven't tested anything).

--
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Unable to read Certificate with TOMCAT and APACHE

2004-03-30 Thread ccunin
Hello,

I'm experiencing problems when we try to retrieve our CN in the client
certificate. We retrieve the cipher suite and ssl_session with the
javax.servlet.request method, and it produces result. But when we retrieve
the certificate with javax.servlet.request.X509Certificate, the error
message ([ERROR] JkCoyoteHandler - -Certificate convertion failed
java.security.cert.CertificateParsingException) appears. Il seems to be in
relation with the intruction ExportCertData in ssl.conf of apache.
With Apache, we have no problem. It succed in reading the CN for example
into the client certificate.

Has anyone some ideas about it.

Thanks by advance
Best regards,


Charles Henri CUNIN

Charles CUNIN
ASSU2000 Company

Dcouvrez notre site sur le http://www.assu2000.fr
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: tomcat performance with 100 webapps

2004-03-30 Thread Peter Lin
 
the only way you will know is to stress test it. I would recommend doing a small test 
with 10 webapps and a fair amount of load. I can tell you right now if you're not 
using  SSL/TSL hardware acceleration, that's going to be your bottleneck. 20-25 
concurrent https requests will max out a 2ghz AMD athlon. Once that happens everything 
else slows down and performance degrades rapidly.
 
look at the performance numbers in my article. Maybe Remmy can post his old SSL 
numbers from the benchmarks we ran on tomcat 4.  If your shopping cart is efficient, 
100 webapps won't matter. Ultimately, the concurrent requests across all webapps will 
be your bottleneck. After the SSL, the database will be the next major bottleneck. If 
you're using database sessions to keep track of the shopping cart, use JMeter to 
figure out the maximum concurrent queries for firebird first. hope that helps.
 
peter lin
 


Niki Ivanchev [EMAIL PROTECTED] wrote:
Have some one tested Tomcat with more than 100 webapps. For example 
e-commrece solution, without many bells and whistles - jsut shopbuilder 
and sopiing cart
Each webapp is based on trubine/velocity/torque. Each webapp using it's 
own firebird database.
Can I expect smooth performance on dual xeon with raid controler and lot 
of RAM (16G) on RedHat EAS?
Niki
Icygen Co.

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


-
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Re: tomcat 5 send emails

2004-03-30 Thread zhicheng wang
thanks for the messages
any security implications?


 --- QM [EMAIL PROTECTED] wrote:  On Tue, Mar 30,
2004 at 11:35:44AM +0100, zhicheng
 wang wrote:
 : i am trying to upgrade form tomcat4 to 5. but the
 send
 : mail does not work.
 
 Tomcat5 no longer ships with the JavaMail and
 Activation jars.
 Simply grab those from Sun (or, if you're not
 feeling adventurous, from
 your old Tomcat4 install) and put them in
 {tomcat5}/common/lib.
 
 -QM
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
  

=
Best wishes
Z C Wang





___
WIN FREE WORLDWIDE FLIGHTS - nominate a cafe in the Yahoo! Mail Internet Cafe Awards  
www.yahoo.co.uk/internetcafes 

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



RE:

2004-03-30 Thread Shapira, Yoav

Hi,

I have noticed that on starting up tomcat, the application is loading
o.k, but then the script reads: info: missing application web.xml,
using
defaults only

Then the application is not loading OK.  Tomcat can't find your web.xml
for some reason, and your servlet definitions won't be loaded.  Only
static content and JSPs will work (because those are handled by the
servlets in $CATALINA_HOME/conf/web.xml).

Any suggestions to where I might be going wrong would be most
appreciated.

Your web.xml itself looks fine.  Make sure the permissions on the
directory are OK.  Have you changed anything else in server.xml.?

Also please use a subject in your mailing list posts.  I didn't add one
now because I wanted to keep this as a thread.

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: tomcat performance with 100 webapps

2004-03-30 Thread Reynir Þór Hübner
Hi,

I just wanted to post my info on the subject, even though I dont have 
100 hosts on a single machine.

We run near 60 hosts on one machine, in 10 instances of tomcat. memory 
usage has been the biggest problem as our application use cache:ing alot 
to increase performance. all of those hosts are running fairly complex 
CMS systems. the computer has 2 Xeon CPUs and 4gigs ram  RedHat EAS.

The greatest improvement on our memory problem got fixed when we changed 
the setup of tomcat so that it would not reload contexts and jsp pages. 
The memory leaks that we had been seeing (ever increasing memory usage 
of tomcat) stopped.

But, in my opinion you should not be seeing some memory problems with 
100 hosts (if you have 16g ram). I recomend the usage of several 
instances of tomcat, but that will be on the cost of memory (one 
instance seems to use around 30mb (rather basic setup) of ram, even 
though the profiled usage is alot less), but by doing this you will get 
way better manageability. I dont think I have to point out the obvious 
benefits of having several hosts, but one is restarting services will be 
alot easyer and dealing with all sorts of problems will be easyer.

100 hosts require alot of memory, but everything dependes of course on 
your application and traffic. This machine is taking on something around 
20req/sec average, and the load is (cp from top) load average: 1,08, 
1,22, 1,24

But of course cpu power or IO is usually not the bottleneck in 
java-server-applications.

-reynir

Niki Ivanchev wrote:

God save our apps from any memory leaks.
Of course we will test them for this issue. And perform stress testing
20 sounds fair enought. Frankly I don't expect too much traffic per 
e-shop.
Niki

Shapira, Yoav wrote:

Hi,
We have tomcat instances that run ~20 webapps without a problem.  Beyond
that, we haven't tried, but then again that's why we have tools like
JMeter, no? ;)
In large part this will depend on the soundness of the application.
Especially if it's 100 of the same app, because then each memory leak
would be multiplied by 100.
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Niki Ivanchev [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 9:43 AM
To: Tomcat User
Subject: tomcat performance with 100 webapps
Have some one tested Tomcat with more than 100 webapps. For example
e-commrece solution, without many bells and whistles - jsut shopbuilder
and  sopiing cart
Each webapp is based on trubine/velocity/torque. Each webapp using it's
own firebird database.
Can I expect smooth performance on dual xeon with raid controler and
  
lot
 

of RAM (16G) on RedHat EAS?
Niki
Icygen Co.
-
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]


 





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


deploying servlets, missing application web.xml

2004-03-30 Thread Williams, Daniel S
Hi,

The permissions are o.k as they appear to be accessible to all users
(win xp pro), and I have not altered anything in the server.xml file

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 30 March 2004 16:09
To: Tomcat Users List
Subject: RE: 


Hi,

I have noticed that on starting up tomcat, the application is loading
o.k, but then the script reads: info: missing application web.xml,
using
defaults only

Then the application is not loading OK.  Tomcat can't find your web.xml
for some reason, and your servlet definitions won't be loaded.  Only
static content and JSPs will work (because those are handled by the
servlets in $CATALINA_HOME/conf/web.xml).

Any suggestions to where I might be going wrong would be most
appreciated.

Your web.xml itself looks fine.  Make sure the permissions on the
directory are OK.  Have you changed anything else in server.xml.?

Also please use a subject in your mailing list posts.  I didn't add one
now because I wanted to keep this as a thread.

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]


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



Servlet on Tomcat + Oracle +ISU 8859-8 (Hebrew CharSet) - encodin g problem

2004-03-30 Thread yair . fine
Hi all ,
i have a problem with encoding and decoding, from a servlet , running on
Tomcat , to Oracle DB.
I hope it is the right forum for that , and i appologize if ti is not ..
 
The problem:
I am using Oracle 8.1.7 DB , in a Charest ISU 8859-9-8 ( Hebrew ), I use a
thin client as the JDBC driver .
I have a servlet that all it does is getting and updating one of the table
 
The character set in the servlet is too , ISO 8859-8 . This is done this
way:
 
public void doGet(HttpServletRequest request, HttpServletResponse response)
  throws ServletException, IOException {
  
  request.setCharacterEncoding(ISO-8859-8);
  response.setContentType(Text/html; ISO-8859-8);
  .
} 

I  use the doGet method of a servlet to get parameters to retrieve from
Oracle. this is done through the URL, for example :
I send the parameters like this :
http://localhost:8080/myapp/myapp?name=yair
http://localhost:8080/myapp/myapp?name=yairfamily=fine family=fine
for name= yair, family = fine
 
There is no problem in getting and inserting English characters.
There is a problem when i try to get or to insert Hebrew characters.
i get  in DB , for both if i write yair in the url in Hebrew , or i
write yair in %E9%E9%E9%F8 which is the decimal representation 
 
For example , if i insert a string in Hebrew , it looks like this ? (
in SQL +)

 
this is how i get the requests from the url
Enumeration paramEnum = request.getParameterNames(); // get request
parameters from the url , in param/value pairs
String myParam = (String) paramEnum.nextElement(); //get parameter
String myValue = request.getParameter(myParam);  //get value
 
String myStatment = insert into mytable values('19', '+myValue+') insert
to table 19 , myvalue
ResultSet rs = stmt.executeQuery(myStatment);
 
does any one have a solution for that ?
 


RE: deploying servlets, missing application web.xml

2004-03-30 Thread Shapira, Yoav

Hi,
Ah, a subject line ;)

The permissions are o.k as they appear to be accessible to all users
(win xp pro), and I have not altered anything in the server.xml file

OK.  So all you did was create the directory for your webapp and the
ones under it, put web.xml there, and start tomcat?  I don't know what
tomcat would say it can't find your web.xml in that case.  Do all the
tomcat examples run fine?

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: deploying servlets, missing application web.xml

2004-03-30 Thread Williams, Daniel S
Yep, all I done was create the webapp folder sitevalidation which
contains my html page and WEB-INF folder in which I have placed the
web.xml file and a classes dir, which contains the class
SiteValidation.class.
I placed my webapp folder in the webapps dir of tomcat
All the examples run fine - which is very confusing.

Dan W

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 30 March 2004 16:40
To: Tomcat Users List
Subject: RE: deploying servlets, missing application web.xml


Hi,
Ah, a subject line ;)

The permissions are o.k as they appear to be accessible to all users
(win xp pro), and I have not altered anything in the server.xml file

OK.  So all you did was create the directory for your webapp and the
ones under it, put web.xml there, and start tomcat?  I don't know what
tomcat would say it can't find your web.xml in that case.  Do all the
tomcat examples run fine?

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]


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



tomcat sends every email 3 times

2004-03-30 Thread zhicheng wang
Hi
if i config tomcat (both 4 AND 5) to send email for
error code 404, it always send THREE emails. this is
true regardless if i use a servlet of perl cgi

any ideas? please let me know

if i call the servlet or cgi directly, things are
fine.

thanks
cheng

=
Best wishes
Z C Wang





___
WIN FREE WORLDWIDE FLIGHTS - nominate a cafe in the Yahoo! Mail Internet Cafe Awards  
www.yahoo.co.uk/internetcafes 

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



RE: deploying servlets, missing application web.xml

2004-03-30 Thread Andy Eastham
I had this problem once when I deployed onto a live server and it drove me
mad.  I not absolutely sure what caused it, but it was something like I'd
called the webapp's WEB-INF directory web-inf, ie a case sensitivity
problem in the path.

Andy

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 30 March 2004 16:40
To: Tomcat Users List
Subject: RE: deploying servlets, missing application web.xml


Hi,
Ah, a subject line ;)

The permissions are o.k as they appear to be accessible to all users
(win xp pro), and I have not altered anything in the server.xml file

OK.  So all you did was create the directory for your webapp and the
ones under it, put web.xml there, and start tomcat?  I don't know what
tomcat would say it can't find your web.xml in that case.  Do all the
tomcat examples run fine?

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]




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



Re: tomcat sends every email 3 times

2004-03-30 Thread Chong Yu Meng
Hi Cheng,

How are you testing this? Do you have a servlet that sends emails 
whenever you get a 404 ? Or when you get a 404, Tomcat directs the 
request to a JSP or servlet that sends an email ? I'm pretty sure Tomcat 
does not have a built-in facility that sends email.

Regards.

zhicheng wang wrote:

Hi
if i config tomcat (both 4 AND 5) to send email for
error code 404, it always send THREE emails. this is
true regardless if i use a servlet of perl cgi
any ideas? please let me know

if i call the servlet or cgi directly, things are
fine.
thanks
cheng
=
Best wishes
Z C Wang
 

--
There is nothing so absurd but some philosopher has said it. 
		-- Marcus Tullius Cicero
++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++



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


load balancing with jk2

2004-03-30 Thread pablo
Hello ,
I am currently running tomcat 5.0.19 , apache 2.0.49 on a redhat 9 
box. I have been succesful in geting mod_jk to work for a single 
instance of tomcat but as soon as I add a second instance in my 
workers2.properties I get a very interesting problem.  I can get to both 
tomcat instance but I am unable to maintain a session .  The way I know 
this is because I go to the jsp-examples and I test out the Carts app. 
Everytime I add a video to the shopping cart only one item appears 
instead of a second item added.  I have tried to keep my config as 
vanilla a possible to keep it simple.  The only thing that I have done 
to my server.xml is what is described in the session replication how 
to from the tomcat website:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html

If you check out that web page you will see a link for load balancing . 
Once you click on it you see that if you want to do
load balancing with mod_jk2 then it refers you to the JK Documentation 
instead of providing a link. I have been unable to find any load 
balancing documentation in here :

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html

maybe I am just missing something.  I noticed that in my server.xml 
there is a portion that is commented out and is specific to JK2 load 
balancing .

!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
   Engine name=Standalone defaultHost=localhost:8009 debug=0 
jvmRoute=jvm1
   --

Everytime I make an attempt to uncomment this tomcat will not start.
Regardless this is what my workers2.properties looks like.  

#INSTANCE 1
#Socket Channel, explicity set port and host
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
lb_factor=1
#define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

#INSTANCE 2
#Socket Channel, explicity set port and host
[channel.socket:localhost:8019]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8019
lb_factor=1
#define the worker
[ajp13:localhost:8019]
channel=channel.socket:tomcat2:8019

[logger]
level=DEBUG
[config:]
file=/usr/local/apache2.0.49/conf/workers2.properties
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
# Alternate file logger
[logger.file:0]
level=DEBUG
file=/usr/local/apache2.0.49/logs/jk2.log
#Share memory handling. Needs To be set.
[shm:]
info=Scoreboard. Required for reconfiguration and status with 
multiprocess servers
file=/usr/local/apache2.0.49/logs/jk2.shm
size=1048576
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
[status:status]
info=Status worker, displays runtime informations
##
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes
group=status:
worker=status:status
##
[uri:/jsp-examples]
info=Example webapp in the default context.
context=/examples
debug=0
[uri:/jsp-examples/servlet/*]
info=Prefix mapping
[uri:/jsp-examples/*.jsp]
info=Extension mapping
[uri:/jsp-examples/*]
info=Map the whole webapp
##


any help would be greatly appreciated.

-Pablo



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


load balancing with jk2

2004-03-30 Thread pablo
Hello ,
I am currently running tomcat 5.0.19 , apache 2.0.49 on a redhat 9 
box. I have been succesful in geting mod_jk to work for a single 
instance of tomcat but as soon as I add a second instance in my 
workers2.properties I get a very interesting problem.  I can get to both 
tomcat instance but I am unable to maintain a session .  The way I know 
this is because I go to the jsp-examples and I test out the Carts app. 
Everytime I add a video to the shopping cart only one item appears 
instead of a second item added.  I have tried to keep my config as 
vanilla a possible to keep it simple.  The only thing that I have done 
to my server.xml is what is described in the session replication how 
to from the tomcat website:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html

If you check out that web page you will see a link for load balancing . 
Once you click on it you see that if you want to do
load balancing with mod_jk2 then it refers you to the JK Documentation 
instead of providing a link. I have been unable to find any load 
balancing documentation in here :

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html

maybe I am just missing something.  I noticed that in my server.xml 
there is a portion that is commented out and is specific to JK2 load 
balancing .

!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
   Engine name=Standalone defaultHost=localhost:8009 debug=0 
jvmRoute=jvm1
   --

Everytime I make an attempt to uncomment this tomcat will not start.
Regardless this is what my workers2.properties looks like.  

#INSTANCE 1
#Socket Channel, explicity set port and host
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
lb_factor=1
#define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

#INSTANCE 2
#Socket Channel, explicity set port and host
[channel.socket:localhost:8019]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8019
lb_factor=1
#define the worker
[ajp13:localhost:8019]
channel=channel.socket:tomcat2:8019

[logger]
level=DEBUG
[config:]
file=/usr/local/apache2.0.49/conf/workers2.properties
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
# Alternate file logger
[logger.file:0]
level=DEBUG
file=/usr/local/apache2.0.49/logs/jk2.log
#Share memory handling. Needs To be set.
[shm:]
info=Scoreboard. Required for reconfiguration and status with 
multiprocess servers
file=/usr/local/apache2.0.49/logs/jk2.shm
size=1048576
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
[status:status]
info=Status worker, displays runtime informations
##
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes
group=status:
worker=status:status
##
[uri:/jsp-examples]
info=Example webapp in the default context.
context=/examples
debug=0
[uri:/jsp-examples/servlet/*]
info=Prefix mapping
[uri:/jsp-examples/*.jsp]
info=Extension mapping
[uri:/jsp-examples/*]
info=Map the whole webapp
##


any help would be greatly appreciated.

-Pablo



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


Connecting Apache and Tomcat

2004-03-30 Thread karl1coleman
Someone on this planet surely has gotten this to work. I have found 4 sites with 
instructions, all 4 have vastly different instructions, and none of them work, at 
least on my system.

I am running Fedora Core 1, Apache 2.0.47 and Tomcat 5.0.19. I've tried a pre-compiled 
connector. I've tried compiling it myself. Nothing works.

The last setup I tried was the instruction found at 
www.greenfieldresearch.ca/technical/jk2_config.html.

Those also seemed to be the simplest instructions. I have gotten different errors, but 
this setup from the site above gives me an error about a possible misconfiguration. 
Other setups have given me a 503 Service Unavailable error.

My files are exactly as suggested on the site above. Any suggestions or ideas are 
welcome.

Thanks,
Karl



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



RE: Connecting Apache and Tomcat

2004-03-30 Thread Shapira, Yoav

Hi,

I am running Fedora Core 1, Apache 2.0.47 and Tomcat 5.0.19. I've tried
a
pre-compiled connector. I've tried compiling it myself. Nothing works.

The last setup I tried was the instruction found at
www.greenfieldresearch.ca/technical/jk2_config.html.

That page clearly says at the top the instructions were tested with
tomcat 4.1, not 5.x.  There are significant differences between the
tomcat branches.  See
http://wiki.apache.org/jakarta-tomcat/Tomcat_2fLinks for a list of
references, including a great one specific to your environment at
http://wiki.apache.org/jakarta-tomcat/Tomcat_2fLinks.

FYI, you'll need to do better than Nothing works in order to get
specific help.

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: Connecting Apache and Tomcat

2004-03-30 Thread Dale, Matt
Try this one

http://www.connecties.com/cymulacrum/tomcat5/book1.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 30 March 2004 17:26
To: [EMAIL PROTECTED]
Subject: Connecting Apache and Tomcat


Someone on this planet surely has gotten this to work. I have found 4 sites with 
instructions, all 4 have vastly different instructions, and none of them work, at 
least on my system.

I am running Fedora Core 1, Apache 2.0.47 and Tomcat 5.0.19. I've tried a pre-compiled 
connector. I've tried compiling it myself. Nothing works.

The last setup I tried was the instruction found at 
www.greenfieldresearch.ca/technical/jk2_config.html.

Those also seemed to be the simplest instructions. I have gotten different errors, but 
this setup from the site above gives me an error about a possible misconfiguration. 
Other setups have given me a 503 Service Unavailable error.

My files are exactly as suggested on the site above. Any suggestions or ideas are 
welcome.

Thanks,
Karl



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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

RE: Connecting Apache and Tomcat

2004-03-30 Thread Shapira, Yoav

Hi,
That's the one I meant to paste in my second link ;)  Sometimes ctrl-c
doesn't happen ;)  Thanks,

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 11:31 AM
To: Tomcat Users List
Subject: RE: Connecting Apache and Tomcat

Try this one

http://www.connecties.com/cymulacrum/tomcat5/book1.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 30 March 2004 17:26
To: [EMAIL PROTECTED]
Subject: Connecting Apache and Tomcat


Someone on this planet surely has gotten this to work. I have found 4
sites
with instructions, all 4 have vastly different instructions, and none
of
them work, at least on my system.

I am running Fedora Core 1, Apache 2.0.47 and Tomcat 5.0.19. I've tried
a
pre-compiled connector. I've tried compiling it myself. Nothing works.

The last setup I tried was the instruction found at
www.greenfieldresearch.ca/technical/jk2_config.html.

Those also seemed to be the simplest instructions. I have gotten
different
errors, but this setup from the site above gives me an error about a
possible misconfiguration. Other setups have given me a 503 Service
Unavailable error.

My files are exactly as suggested on the site above. Any suggestions or
ideas are welcome.

Thanks,
Karl



-
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]



Re: RE: Connecting Apache and Tomcat

2004-03-30 Thread karl1coleman
Thanks guys for the links. I will check them out. Sorry for the nothing works blast, 
but I am just very frustrated with this.

Karl

 
 From: Shapira, Yoav [EMAIL PROTECTED]
 Date: 2004/03/30 Tue AM 10:36:26 CST
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: Connecting Apache and Tomcat
 
 
 Hi,
 That's the one I meant to paste in my second link ;)  Sometimes ctrl-c
 doesn't happen ;)  Thanks,
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Dale, Matt [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 30, 2004 11:31 AM
 To: Tomcat Users List
 Subject: RE: Connecting Apache and Tomcat
 
 Try this one
 
 http://www.connecties.com/cymulacrum/tomcat5/book1.html
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 30 March 2004 17:26
 To: [EMAIL PROTECTED]
 Subject: Connecting Apache and Tomcat
 
 
 Someone on this planet surely has gotten this to work. I have found 4
 sites
 with instructions, all 4 have vastly different instructions, and none
 of
 them work, at least on my system.
 
 I am running Fedora Core 1, Apache 2.0.47 and Tomcat 5.0.19. I've tried
 a
 pre-compiled connector. I've tried compiling it myself. Nothing works.
 
 The last setup I tried was the instruction found at
 www.greenfieldresearch.ca/technical/jk2_config.html.
 
 Those also seemed to be the simplest instructions. I have gotten
 different
 errors, but this setup from the site above gives me an error about a
 possible misconfiguration. Other setups have given me a 503 Service
 Unavailable error.
 
 My files are exactly as suggested on the site above. Any suggestions or
 ideas are welcome.
 
 Thanks,
 Karl
 
 
 
 -
 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]
 
 


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



RE:

2004-03-30 Thread Williams, Daniel S
And so it was, my web.xml was named web.XML. I feel relatively silly

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 30 March 2004 16:09
To: Tomcat Users List
Subject: RE: 


Hi,

I have noticed that on starting up tomcat, the application is loading
o.k, but then the script reads: info: missing application web.xml,
using
defaults only

Then the application is not loading OK.  Tomcat can't find your web.xml
for some reason, and your servlet definitions won't be loaded.  Only
static content and JSPs will work (because those are handled by the
servlets in $CATALINA_HOME/conf/web.xml).

Any suggestions to where I might be going wrong would be most
appreciated.

Your web.xml itself looks fine.  Make sure the permissions on the
directory are OK.  Have you changed anything else in server.xml.?

Also please use a subject in your mailing list posts.  I didn't add one
now because I wanted to keep this as a thread.

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]


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



Re: RE: Connecting Apache and Tomcat

2004-03-30 Thread karl1coleman
That's one I tried already. That setup is the one that gave me the 503 Service Not 
Available error.

I will post the logs from Apache and Tomcat when I get a chance. Maybe that will help.

Karl

 
 From: Dale, Matt [EMAIL PROTECTED]
 Date: 2004/03/30 Tue AM 10:30:34 CST
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: Connecting Apache and Tomcat
 
 Try this one
 
 http://www.connecties.com/cymulacrum/tomcat5/book1.html
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 30 March 2004 17:26
 To: [EMAIL PROTECTED]
 Subject: Connecting Apache and Tomcat
 
 
 Someone on this planet surely has gotten this to work. I have found 4 sites with 
 instructions, all 4 have vastly different instructions, and none of them work, at 
 least on my system.
 
 I am running Fedora Core 1, Apache 2.0.47 and Tomcat 5.0.19. I've tried a 
 pre-compiled connector. I've tried compiling it myself. Nothing works.
 
 The last setup I tried was the instruction found at 
 www.greenfieldresearch.ca/technical/jk2_config.html.
 
 Those also seemed to be the simplest instructions. I have gotten different errors, 
 but this setup from the site above gives me an error about a possible 
 misconfiguration. Other setups have given me a 503 Service Unavailable error.
 
 My files are exactly as suggested on the site above. Any suggestions or ideas are 
 welcome.
 
 Thanks,
 Karl
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.



-
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: Connecting Apache and Tomcat

2004-03-30 Thread David Smith
I have this working (Apache 2.0.47, Tomcat 5.0.19, mod_jk) under 
Mandrake 9.2.  Post relevant configuations (httpd.conf, mod_jk worker 
files, etc., ...) and most definitely the exact log file messages.  
Also, the output of 'netstat -tlnp' (execute as root) would help show 
what ports are open and what processes are listening.

--David

[EMAIL PROTECTED] wrote:

Someone on this planet surely has gotten this to work. I have found 4 sites with instructions, all 4 have vastly different instructions, and none of them work, at least on my system.

I am running Fedora Core 1, Apache 2.0.47 and Tomcat 5.0.19. I've tried a pre-compiled connector. I've tried compiling it myself. Nothing works.

The last setup I tried was the instruction found at www.greenfieldresearch.ca/technical/jk2_config.html.

Those also seemed to be the simplest instructions. I have gotten different errors, but this setup from the site above gives me an error about a possible misconfiguration. Other setups have given me a 503 Service Unavailable error.

My files are exactly as suggested on the site above. Any suggestions or ideas are welcome.

Thanks,
Karl


-
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: RE: Connecting Apache and Tomcat

2004-03-30 Thread David Short
I've got Apache 2.0.49, Tomcat 5.0.19 and mod_jk 2.0.4 working out of
process on W2K server.  I can send config files if your interested.
Contact me offline.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 8:45 AM
To: Tomcat Users List
Subject: Re: RE: Connecting Apache and Tomcat


Thanks guys for the links. I will check them out. Sorry for the nothing
works blast, but I am just very frustrated with this.

Karl


 From: Shapira, Yoav [EMAIL PROTECTED]
 Date: 2004/03/30 Tue AM 10:36:26 CST
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: Connecting Apache and Tomcat


 Hi,
 That's the one I meant to paste in my second link ;)  Sometimes ctrl-c
 doesn't happen ;)  Thanks,

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Dale, Matt [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 30, 2004 11:31 AM
 To: Tomcat Users List
 Subject: RE: Connecting Apache and Tomcat
 
 Try this one
 
 http://www.connecties.com/cymulacrum/tomcat5/book1.html
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 30 March 2004 17:26
 To: [EMAIL PROTECTED]
 Subject: Connecting Apache and Tomcat
 
 
 Someone on this planet surely has gotten this to work. I have found 4
 sites
 with instructions, all 4 have vastly different instructions, and none
 of
 them work, at least on my system.
 
 I am running Fedora Core 1, Apache 2.0.47 and Tomcat 5.0.19. I've tried
 a
 pre-compiled connector. I've tried compiling it myself. Nothing works.
 
 The last setup I tried was the instruction found at
 www.greenfieldresearch.ca/technical/jk2_config.html.
 
 Those also seemed to be the simplest instructions. I have gotten
 different
 errors, but this setup from the site above gives me an error about a
 possible misconfiguration. Other setups have given me a 503 Service
 Unavailable error.
 
 My files are exactly as suggested on the site above. Any suggestions or
 ideas are welcome.
 
 Thanks,
 Karl
 
 
 
 -
 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]




-
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: Connecting Apache and Tomcat

2004-03-30 Thread Dale, Matt
Please also state whether the individual componenents work, ie can you see static 
pages in apache, can you access tomcat directly on port 8080 and obviously all the 
logs and config files.

Ta
Matt

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 30 March 2004 17:52
To: Tomcat Users List
Subject: Re: Connecting Apache and Tomcat


That's one I tried already. That setup is the one that gave me the 503 Service Not 
Available error.

I will post the logs from Apache and Tomcat when I get a chance. Maybe that will help.

Karl

 
 From: Dale, Matt [EMAIL PROTECTED]
 Date: 2004/03/30 Tue AM 10:30:34 CST
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: Connecting Apache and Tomcat
 
 Try this one
 
 http://www.connecties.com/cymulacrum/tomcat5/book1.html
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 30 March 2004 17:26
 To: [EMAIL PROTECTED]
 Subject: Connecting Apache and Tomcat
 
 
 Someone on this planet surely has gotten this to work. I have found 4 sites with 
 instructions, all 4 have vastly different instructions, and none of them work, at 
 least on my system.
 
 I am running Fedora Core 1, Apache 2.0.47 and Tomcat 5.0.19. I've tried a 
 pre-compiled connector. I've tried compiling it myself. Nothing works.
 
 The last setup I tried was the instruction found at 
 www.greenfieldresearch.ca/technical/jk2_config.html.
 
 Those also seemed to be the simplest instructions. I have gotten different errors, 
 but this setup from the site above gives me an error about a possible 
 misconfiguration. Other setups have given me a 503 Service Unavailable error.
 
 My files are exactly as suggested on the site above. Any suggestions or ideas are 
 welcome.
 
 Thanks,
 Karl
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

Re: Configuring Tomcat on different IP's

2004-03-30 Thread Emerson Cargnin
When i tested a configurations like this (although the two intances 
listended to the same port without ssl), i had to put the address at the 
Server element too.

Server port=8005  address=10.9.6.85



Parsons Technical Services wrote:
Uma,

I removed several of the elements that were commented out and made the
changes I thought it would need.
Unless someone can answer my question about which service picks up which
app, you will have to put the context in the server.xml . You can experiment
with it after you get it running by trying an external context and see which
service picks it up.
Give it a try.

Doug

!-- Example Server Configuration File --

Server port=8005 shutdown=SHUTDOWN debug=0
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  !-- Global JNDI resources --
  GlobalNamingResources
!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina
!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
 during installation  --
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75 enableLookups=false redirectPort=443
acceptCount=100 debug=0 connectionTimeout=2
disableUploadTimeout=true address=192.68.xxx.xx2 /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to 0 --
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
!-- An Engine represents the entry point (within Catalina) that
processes
 every request.  The Engine implementation for Tomcat stand alone
 analyzes the HTTP headers included with the request, and passes
them
 on to the appropriate Host (virtual host). --
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost debug=0
  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/
  !-- Because this Realm is here, an instance will be shared globally
--
  !-- This Realm uses the UserDatabase configured in the global JNDI
   resources under the key UserDatabase.  Any edits
   that are performed against this UserDatabase are immediately
   available for use by the Realm.  --
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
  !-- Comment out the old realm but leave here for now in case we
   need to go back quickly --
  !--
  Realm className=org.apache.catalina.realm.MemoryRealm /
  --
  !-- Define the default virtual host
   Note: XML Schema validation will not work with Xerces 2.2.
   --
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false


!-- Logger shared by all Contexts related to this virtual host.
By
 default (when using FileLogger), log files are created in the
logs
 directory relative to $CATALINA_HOME.  If you wish, you can
specify
 a different directory with the directory attribute.  Specify
either a
 relative (to $CATALINA_HOME) or absolute path to the desired
 directory.--
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/
DefaultContext reloadable=true /

  /Host

/Engine

  /Service

  Service name=CatalinaHTTPS

!-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --

Connector port=443
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=false sslProtocol=TLS
   keystoreFile=C:\Documents and
Settings\kworker\server.keystore
   keystorePass=changeit
   address=192.68.xxx.xx1 /
!-- Define a 

RE: Configuring Tomcat on different IP's

2004-03-30 Thread Shapira, Yoav

Hi,

From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
When i tested a configurations like this (although the two intances
listended to the same port without ssl), i had to put the address at
the
Server element too.

Server port=8005  address=10.9.6.85

What are you talking about?  The Server element interface and standard
implementation don't support an address attribute.  The address
attribute would be ignored and has no impact on anything.

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]



tomcat5/tomcat4 comparison

2004-03-30 Thread Neil MacMillan
Hi all, I'm trying to gather all the information I can about pros/cons of migrating  
10-15 servers from tomcat4 to tomcat5.  I have been unsuccessful in finding some good 
performance comparisons, and major feature differences between the two 
(major)versions.  Can anyone provide some links/docs for this?

also, is it possible to use JSP 2.0 in tomcat4.x?

thanks
neilm




Garbage Collection

2004-03-30 Thread Rob Wichterman
Can anybody tell me if these look like healthy garbage collections.  

 

[GC [ParNew: 3968K-0K(4032K), 0.0132890 secs] 25349K-22156K(56072K),
0.0134572 secs]

[GC [ParNew: 3952K-0K(4032K), 0.0086222 secs] 26109K-22649K(56072K),
0.0087891 secs]

[GC [ParNew: 3953K-0K(4032K), 0.0092634 secs] 26602K-23133K(56072K),
0.0094345 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0094125 secs] 27101K-23289K(56072K),
0.0095833 secs]

[GC [ParNew: 3961K-0K(4032K), 0.0474236 secs] 27250K-23491K(56072K),
0.0476528 secs]

[GC [ParNew: 3966K-0K(4032K), 0.0101857 secs] 27458K-23644K(56072K),
0.0103671 secs]

[GC [ParNew: 3968K-0K(4032K), 0.0088548 secs] 27612K-23776K(56072K),
0.0090263 secs]

[GC [ParNew: 3968K-0K(4032K), 0.0075491 secs] 27744K-23842K(56072K),
0.0077127 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0107583 secs] 27810K-24144K(56072K),
0.0109381 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0588864 secs] 28112K-24470K(56072K),
0.0591110 secs]

[GC [ParNew: 3964K-0K(4032K), 0.0076312 secs] 28435K-24576K(56072K),
0.0077934 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0076016 secs] 28544K-24659K(56072K),
0.0077809 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0094214 secs] 28627K-24907K(56072K),
0.0095959 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0081766 secs] 28875K-25413K(56072K),
0.0083235 secs]

[GC [ParNew: 3964K-0K(4032K), 0.0476766 secs] 29378K-25736K(56072K),
0.0478634 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0131406 secs] 29704K-26056K(56072K),
0.0133119 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0127321 secs] 30024K-26486K(56072K),
0.0128994 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0170908 secs] 30453K-27044K(56072K),
0.0172648 secs]

[GC [ParNew: 3946K-0K(4032K), 0.0258431 secs] 30991K-28401K(56072K),
0.0260299 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0097711 secs] 32368K-29151K(56072K),
0.0099655 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0277493 secs] 33119K-30963K(56072K),
0.0279320 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0148470 secs] 34931K-31791K(56072K),
0.0150112 secs]

[GC [ParNew: 3961K-0K(4032K), 0.0252186 secs] 35753K-33458K(56072K),
0.0253967 secs]

[GC [ParNew: 3956K-0K(4032K), 0.0094682 secs] 37414K-34072K(56072K),
0.0096453 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0086307 secs] 38040K-34737K(56072K),
0.0088139 secs]

[GC [ParNew: 3961K-0K(4032K), 0.0085751 secs] 38699K-35289K(56072K),
0.0087476 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0092369 secs] 39257K-35818K(56072K),
0.0095723 secs]

[GC [1 CMS-initial-mark: 35818K(52040K)] 35818K(56072K), 0.0051687 secs]

[CMS-concurrent-mark: 0.414/0.414 secs]

[CMS-concurrent-preclean: 0.004/0.004 secs]

[GC[Rescan (parallel) , 0.0071662 secs][weak refs processing, 0.0076101
secs] [1 CMS-remark: 35818K(52040K)] 3

5879K(56072K), 0.0157375 secs]

[CMS-concurrent-sweep: 0.131/0.131 secs]

[CMS-concurrent-reset: 0.124/0.124 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0108625 secs] 20393K-16549K(56072K),
0.0110341 secs]



RE: JSP preloading taking a lot of time

2004-03-30 Thread Yansheng Lin
Hey, did you compile those JSP pages first?  If you didn't, it would take a long
time for javac to compile those JSP pages, which is expected.  Tomcat is not to
blame here:).  Well, it's slower in 3.3 for sure, but that's minor bottleneck in
this case.

-Yan

-Original Message-
From: Abhinandan Karmakar [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 29, 2004 4:38 AM
To: 'Tomcat Users List'
Subject: RE: JSP preloading taking a lot of time



No. The stuff is running inside one of our released products. Upgrading
tomcat is not possible.

Abhinandan.

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 29, 2004 4:01 PM
To: Tomcat Users List
Subject: Re: JSP preloading taking a lot of time


Tomcat 3.3? Are you not able to upgrade?

On 03/29/2004 01:10 PM Abhinandan Karmakar wrote:
 Hi,
 
 My web site has a lot of JSP pages ~60. Some JSPs are big ~400 lines.
I
 have given load-on-startup for all my JSP pages.
 
 I notice that tomcat takes up about 200 secs to preload all my JSPs
and
 during the entire startup time the CPU util does not go above 5-10%.
Can
 anyone throw some light on this ?
 
 Abhinandan.
 
 Tomcat 3.3 on linux.
 
 PS: My JSPs contain a lot of custom tags.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


-
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: Garbage Collection

2004-03-30 Thread Peter Lin
your heap size remains stable according to the verbose GC. That in itself doesn't tell 
you if there is a problem or not. Is there some slowness in your jsp?
 
you might want to d/l borland optimizeIt trial version and get a better picture of 
what is happening.
 
peter


Rob Wichterman [EMAIL PROTECTED] wrote:
Can anybody tell me if these look like healthy garbage collections. 



[GC [ParNew: 3968K-0K(4032K), 0.0132890 secs] 25349K-22156K(56072K),
0.0134572 secs]

[GC [ParNew: 3952K-0K(4032K), 0.0086222 secs] 26109K-22649K(56072K),
0.0087891 secs]

[GC [ParNew: 3953K-0K(4032K), 0.0092634 secs] 26602K-23133K(56072K),
0.0094345 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0094125 secs] 27101K-23289K(56072K),
0.0095833 secs]

[GC [ParNew: 3961K-0K(4032K), 0.0474236 secs] 27250K-23491K(56072K),
0.0476528 secs]

[GC [ParNew: 3966K-0K(4032K), 0.0101857 secs] 27458K-23644K(56072K),
0.0103671 secs]

[GC [ParNew: 3968K-0K(4032K), 0.0088548 secs] 27612K-23776K(56072K),
0.0090263 secs]

[GC [ParNew: 3968K-0K(4032K), 0.0075491 secs] 27744K-23842K(56072K),
0.0077127 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0107583 secs] 27810K-24144K(56072K),
0.0109381 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0588864 secs] 28112K-24470K(56072K),
0.0591110 secs]

[GC [ParNew: 3964K-0K(4032K), 0.0076312 secs] 28435K-24576K(56072K),
0.0077934 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0076016 secs] 28544K-24659K(56072K),
0.0077809 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0094214 secs] 28627K-24907K(56072K),
0.0095959 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0081766 secs] 28875K-25413K(56072K),
0.0083235 secs]

[GC [ParNew: 3964K-0K(4032K), 0.0476766 secs] 29378K-25736K(56072K),
0.0478634 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0131406 secs] 29704K-26056K(56072K),
0.0133119 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0127321 secs] 30024K-26486K(56072K),
0.0128994 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0170908 secs] 30453K-27044K(56072K),
0.0172648 secs]

[GC [ParNew: 3946K-0K(4032K), 0.0258431 secs] 30991K-28401K(56072K),
0.0260299 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0097711 secs] 32368K-29151K(56072K),
0.0099655 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0277493 secs] 33119K-30963K(56072K),
0.0279320 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0148470 secs] 34931K-31791K(56072K),
0.0150112 secs]

[GC [ParNew: 3961K-0K(4032K), 0.0252186 secs] 35753K-33458K(56072K),
0.0253967 secs]

[GC [ParNew: 3956K-0K(4032K), 0.0094682 secs] 37414K-34072K(56072K),
0.0096453 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0086307 secs] 38040K-34737K(56072K),
0.0088139 secs]

[GC [ParNew: 3961K-0K(4032K), 0.0085751 secs] 38699K-35289K(56072K),
0.0087476 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0092369 secs] 39257K-35818K(56072K),
0.0095723 secs]

[GC [1 CMS-initial-mark: 35818K(52040K)] 35818K(56072K), 0.0051687 secs]

[CMS-concurrent-mark: 0.414/0.414 secs]

[CMS-concurrent-preclean: 0.004/0.004 secs]

[GC[Rescan (parallel) , 0.0071662 secs][weak refs processing, 0.0076101
secs] [1 CMS-remark: 35818K(52040K)] 3

5879K(56072K), 0.0157375 secs]

[CMS-concurrent-sweep: 0.131/0.131 secs]

[CMS-concurrent-reset: 0.124/0.124 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0108625 secs] 20393K-16549K(56072K),
0.0110341 secs]



-
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Accents

2004-03-30 Thread Nicholas Anderson
Hi list,

i was using the 3.x version of Tomcat, and then i updated it to 4.1.30.
After this update, i found out that some words that uses accents ( like  
coleção in pt_BR ) are showing some ?? in accents place (like  
cole??o ) when they r queried from my DBs (oracle and mysql).
It seems to me that this is happening when the string come from the DB 
and its stored in a variable. When u try to read this variable, it shows 
those ?? in accents place.
If u query them from DB and show  its output without storing in a 
variable, it shows ok.
Unfortunately   i dont know anything about JAVA.

Any idea ?



--

Nicholas Anderson
Administrador Linux/Unix
Rede Fiocruz
http://www.redefiocruz.fiocruz.br
e-mail: [EMAIL PROTECTED]
Tel:(21)2598-4499


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


Error running startup-using-launcher.bat.

2004-03-30 Thread Marko Milicevic
I get the following stacktrace when I try to start Tomcat using
bin/startup-using-launcher.bat on Windows XP.  This is from a fresh install
of Tomcat v5.0.19?

Thanks for your help.

Marko.
.


C:\temp\jakarta-tomcat-5.0.19\binstartup-using-launcher
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program

C:\temp\jakarta-tomcat-5.0.19\binset
JAVA_HOME=C:\projects\tools\jdk-sun-1.4.2

C:\temp\jakarta-tomcat-5.0.19\binstartup-using-launcher
java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at org.apache.commons.launcher.Launcher.start(Launcher.java:385)
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 LauncherBootstrap.main(LauncherBootstrap.java:185)
C:\temp\jakarta-tomcat-5.0.19\bin

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



RE: tomcat5/tomcat4 comparison

2004-03-30 Thread Mladen Turk

Just a quick compare using 'ab -n 1 -c 25'


4.1.30 

Total transferred:  553 bytes
HTML transferred:   405 bytes
Requests per second:447.18 [#/sec] (mean)
Time per request:   55.905 [ms] (mean)
Time per request:   2.236 [ms] (mean, across all concurrent requests)
Transfer rate:  241.48 [Kbytes/sec] received

5.0.20

Total transferred:  553 bytes
HTML transferred:   405 bytes
Requests per second:502.55 [#/sec] (mean)
Time per request:   49.747 [ms] (mean)
Time per request:   1.990 [ms] (mean, across all concurrent requests)
Transfer rate:  271.38 [Kbytes/sec] received

OS WINXP
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)


Test run with empty log after sturtup using 4x1000 requests to 'worm-up'
on HelloWorld servlet, thus testing pure non-app performance (just servlet
container and http connector).

MT.


 -Original Message-
 From: Neil MacMillan [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 30, 2004 7:44 PM
 To: [EMAIL PROTECTED]
 Subject: tomcat5/tomcat4 comparison
 
 Hi all, I'm trying to gather all the information I can about 
 pros/cons of migrating  10-15 servers from tomcat4 to 
 tomcat5.  I have been unsuccessful in finding some good 
 performance comparisons, and major feature differences 
 between the two (major)versions.  Can anyone provide some 
 links/docs for this?
 
 also, is it possible to use JSP 2.0 in tomcat4.x?
 
 thanks
 neilm
 
 
 


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



What's happening to my beans?

2004-03-30 Thread Charles Daniel
My installation is Apache2+Tomcat4+mod_ssl.  I am running a http main server along 
with a https virtual host on an aliased ip address.  To track users I created a 
session bean which holds user info ( e-mail, login status ).  Naturally this bean 
holds vital information as it allows links to the users transactions such as shopping 
cart transactions.

The bean is accessible by both servers (same machine and application directory tree). 
The SSL enabled virtual host now serves my Login, Registration and Shopping Cart JSP's 
while the main server serves the non-secure pages.

Before I implemented SSL the strategy of using a bean to track users was sound, but 
now it seems that the bean is not persistant between the main server and virtual host. 
My guess is that main server and the virtual host have their own version of the bean.  
Therefore, the bean in my virtual host is out of scope once I navigate back to page 
controlled by the main server.  The result is that the main server is left unaware if 
the user has logged in or whether or not the user has a shopping cart containing items.

Is there a better strategy for communicating information like this between the main 
server and the virtual host. I am reluctant to try using cookies.

I've tried the java.sun.com JSP forum with no success.  Maybe you guys can help even 
if this post is a little off subject for this forum.

RE: What's happening to my beans?

2004-03-30 Thread Shapira, Yoav

Hi,
I think you can't have the same session for both SSL and non-SSL
activity.  You get different sessions, each with its own bean, hence the
behavior you describe.  Can you use a database?  A share singleton?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Charles Daniel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 1:37 PM
To: [EMAIL PROTECTED]
Subject: What's happening to my beans?

My installation is Apache2+Tomcat4+mod_ssl.  I am running a http main
server along with a https virtual host on an aliased ip address.  To
track
users I created a session bean which holds user info ( e-mail, login
status
).  Naturally this bean holds vital information as it allows links to
the
users transactions such as shopping cart transactions.

The bean is accessible by both servers (same machine and application
directory tree). The SSL enabled virtual host now serves my Login,
Registration and Shopping Cart JSP's while the main server serves the
non-
secure pages.

Before I implemented SSL the strategy of using a bean to track users
was
sound, but now it seems that the bean is not persistant between the
main
server and virtual host. My guess is that main server and the virtual
host
have their own version of the bean.  Therefore, the bean in my virtual
host
is out of scope once I navigate back to page controlled by the main
server.
The result is that the main server is left unaware if the user has
logged
in or whether or not the user has a shopping cart containing items.

Is there a better strategy for communicating information like this
between
the main server and the virtual host. I am reluctant to try using
cookies.

I've tried the java.sun.com JSP forum with no success.  Maybe you guys
can
help even if this post is a little off subject for this forum.



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: load balancing with jk2

2004-03-30 Thread Chris Egolf


pablo wrote:
maybe I am just missing something.  I noticed that in my server.xml 
there is a portion that is commented out and is specific to JK2 load 
balancing .

!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
   Engine name=Standalone defaultHost=localhost:8009 debug=0 
jvmRoute=jvm1
   --

Make sure that for each instance of Tomcat, there is a unique jvmRoute attribute 
in the Engine element of each instance's server.xml.  The jvmRoute corresponds 
to the tomcatId setting in your workers2.properties file (see below).  The 
jvmRoute needs to be unique for each instance.  Also, if you're just 
uncommenting the above in your server.xml, you'll need to comment out the other 
Engine section that doesn't have the jvmRoute attribute.  Maybe that's why 
Tomcat won't start.

Everytime I make an attempt to uncomment this tomcat will not start.
Regardless this is what my workers2.properties looks like. 

#INSTANCE 1
#Socket Channel, explicity set port and host
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
   ^^
This should be the jvmRoute setting you specified in this instance's server.xml. 
 The other instance below should have a unique tomcatId as well.

In other words, you've got at least two separate server.xml files, one for each 
instance of Tomcat on localhost.  For instance 1, edit the Engine section and 
add jvmRoute=jvm1.  For instance 2, edit the Engine section and add 
jvmRoutejvm2.  Then, in your workers2.properties file, change the 
tomcatId=jvm1 and tomcatId=jvm2 in each instance's section.

Hope that's clear.

--

   Chris Egolf
 http://www.ugholf.net [EMAIL PROTECTED]

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


RE:

2004-03-30 Thread Yansheng Lin
Hahaha.  relatively:).  But it's got some truth into it, I guess:).

Sorry, couldn't help it.  Just thought it's funny.  No harm intended.


-Original Message-
From: Williams, Daniel S [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 30, 2004 9:26 AM
To: Tomcat Users List
Subject: RE: 


And so it was, my web.xml was named web.XML. I feel relatively silly

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 30 March 2004 16:09
To: Tomcat Users List
Subject: RE: 


Hi,

I have noticed that on starting up tomcat, the application is loading
o.k, but then the script reads: info: missing application web.xml,
using
defaults only

Then the application is not loading OK.  Tomcat can't find your web.xml
for some reason, and your servlet definitions won't be loaded.  Only
static content and JSPs will work (because those are handled by the
servlets in $CATALINA_HOME/conf/web.xml).

Any suggestions to where I might be going wrong would be most
appreciated.

Your web.xml itself looks fine.  Make sure the permissions on the
directory are OK.  Have you changed anything else in server.xml.?

Also please use a subject in your mailing list posts.  I didn't add one
now because I wanted to keep this as a thread.

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]


-
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: tomcat5/tomcat4 comparison

2004-03-30 Thread Mladen Turk
 
Forgot the following:

Apache 2.0.49 (405 bytes html file)

Total transferred:  687 bytes
HTML transferred:   405 bytes
Requests per second:630.80 [#/sec] (mean)
Time per request:   15.853 [ms] (mean)
Time per request:   1.585 [ms] (mean, across all concurrent requests)
Transfer rate:  423.14 [Kbytes/sec] received



Apache2.0.49/mod_jk2.04/Tomcat5.0.20 (same html file, but served through TC
and JK2)

Total transferred:  666 bytes
HTML transferred:   405 bytes
Requests per second:401.84 [#/sec] (mean)
Time per request:   24.886 [ms] (mean)
Time per request:   2.489 [ms] (mean, across all concurrent requests)
Transfer rate:  261.31 [Kbytes/sec] received


Apache2.0.49/mod_jk2.04/Tomcat5.0.20 (HelloWorldExamle servlet)

Total transferred:  591 bytes
HTML transferred:   405 bytes
Requests per second:330.10 [#/sec] (mean)
Time per request:   75.734 [ms] (mean)
Time per request:   3.029 [ms] (mean, across all concurrent requests)
Transfer rate:  190.50 [Kbytes/sec] received


So here are my results (would like to see some other platform results).

TC41 100%
JK2   78%
TC50 112%


 
 
 Just a quick compare using 'ab -n 1 -c 25'
 
 
 4.1.30 
 
 Total transferred:  553 bytes
 HTML transferred:   405 bytes
 Requests per second:447.18 [#/sec] (mean)
 Time per request:   55.905 [ms] (mean)
 Time per request:   2.236 [ms] (mean, across all 
 concurrent requests)
 Transfer rate:  241.48 [Kbytes/sec] received
 
 5.0.20
 
 Total transferred:  553 bytes
 HTML transferred:   405 bytes
 Requests per second:502.55 [#/sec] (mean)
 Time per request:   49.747 [ms] (mean)
 Time per request:   1.990 [ms] (mean, across all 
 concurrent requests)
 Transfer rate:  271.38 [Kbytes/sec] received
 
 OS WINXP
 java version 1.4.2_03
 Java(TM) 2 Runtime Environment, Standard Edition (build 
 1.4.2_03-b02) Java HotSpot(TM) Client VM (build 1.4.2_03-b02, 
 mixed mode)
 
 
 Test run with empty log after sturtup using 4x1000 requests 
 to 'worm-up'
 on HelloWorld servlet, thus testing pure non-app performance 
 (just servlet container and http connector).
 
 MT.
 
 
  -Original Message-
  From: Neil MacMillan [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 30, 2004 7:44 PM
  To: [EMAIL PROTECTED]
  Subject: tomcat5/tomcat4 comparison
  
  Hi all, I'm trying to gather all the information I can 
 about pros/cons 
  of migrating  10-15 servers from tomcat4 to tomcat5.  I have been 
  unsuccessful in finding some good performance comparisons, 
 and major 
  feature differences between the two (major)versions.  Can anyone 
  provide some links/docs for this?
  
  also, is it possible to use JSP 2.0 in tomcat4.x?
  
  thanks
  neilm
  
  
  
 
 
 -
 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: What's happening to my beans?

2004-03-30 Thread Charles Daniel
Thanks Yoav, I've figured as much.  From my old C programming days I am well aware of 
scoping rules.  Yet I am still at a loss of how to solve this particular problem.  I'm 
not certain how to using a database would solve the problem and I'm not familiar with 
singleton. What is it and how can I use it.

Thanks

Charles
  - Original Message - 
  From: Shapira, Yoavmailto:[EMAIL PROTECTED] 
  To: Tomcat Users Listmailto:[EMAIL PROTECTED] 
  Sent: Tuesday, March 30, 2004 12:41 PM
  Subject: RE: What's happening to my beans?



  Hi,
  I think you can't have the same session for both SSL and non-SSL
  activity.  You get different sessions, each with its own bean, hence the
  behavior you describe.  Can you use a database?  A share singleton?

  Yoav Shapira
  Millennium Research Informatics


  -Original Message-
  From: Charles Daniel [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 30, 2004 1:37 PM
  To: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
  Subject: What's happening to my beans?
  
  My installation is Apache2+Tomcat4+mod_ssl.  I am running a http main
  server along with a https virtual host on an aliased ip address.  To
  track
  users I created a session bean which holds user info ( e-mail, login
  status
  ).  Naturally this bean holds vital information as it allows links to
  the
  users transactions such as shopping cart transactions.
  
  The bean is accessible by both servers (same machine and application
  directory tree). The SSL enabled virtual host now serves my Login,
  Registration and Shopping Cart JSP's while the main server serves the
  non-
  secure pages.
  
  Before I implemented SSL the strategy of using a bean to track users
  was
  sound, but now it seems that the bean is not persistant between the
  main
  server and virtual host. My guess is that main server and the virtual
  host
  have their own version of the bean.  Therefore, the bean in my virtual
  host
  is out of scope once I navigate back to page controlled by the main
  server.
  The result is that the main server is left unaware if the user has
  logged
  in or whether or not the user has a shopping cart containing items.
  
  Is there a better strategy for communicating information like this
  between
  the main server and the virtual host. I am reluctant to try using
  cookies.
  
  I've tried the java.sun.com JSP forum with no success.  Maybe you guys
  can
  help even if this post is a little off subject for this forum.



  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]mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]



RE: Garbage Collection

2004-03-30 Thread Rob Wichterman
The weird thing is everything will be running fine for a few hours (or days,
very inconsistent) then it seems like the garbage collector cannot keep up
with the used space and the heap gets bigger and bigger while nearly nothing
gets cleared, when this happens I have noticed the CPU stuck around 60%
used, eventually it will crash with (Out of Memory not enough Swap Space).
I have used JProfiler to try and find memory issues but the odd thing is we
have never been able to duplicate this problem in our testing environment
only in production.

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 30, 2004 1:08 PM
To: Tomcat Users List
Subject: Re: Garbage Collection

your heap size remains stable according to the verbose GC. That in itself
doesn't tell you if there is a problem or not. Is there some slowness in
your jsp?
 
you might want to d/l borland optimizeIt trial version and get a better
picture of what is happening.
 
peter


Rob Wichterman [EMAIL PROTECTED] wrote:
Can anybody tell me if these look like healthy garbage collections. 



[GC [ParNew: 3968K-0K(4032K), 0.0132890 secs] 25349K-22156K(56072K),
0.0134572 secs]

[GC [ParNew: 3952K-0K(4032K), 0.0086222 secs] 26109K-22649K(56072K),
0.0087891 secs]

[GC [ParNew: 3953K-0K(4032K), 0.0092634 secs] 26602K-23133K(56072K),
0.0094345 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0094125 secs] 27101K-23289K(56072K),
0.0095833 secs]

[GC [ParNew: 3961K-0K(4032K), 0.0474236 secs] 27250K-23491K(56072K),
0.0476528 secs]

[GC [ParNew: 3966K-0K(4032K), 0.0101857 secs] 27458K-23644K(56072K),
0.0103671 secs]

[GC [ParNew: 3968K-0K(4032K), 0.0088548 secs] 27612K-23776K(56072K),
0.0090263 secs]

[GC [ParNew: 3968K-0K(4032K), 0.0075491 secs] 27744K-23842K(56072K),
0.0077127 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0107583 secs] 27810K-24144K(56072K),
0.0109381 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0588864 secs] 28112K-24470K(56072K),
0.0591110 secs]

[GC [ParNew: 3964K-0K(4032K), 0.0076312 secs] 28435K-24576K(56072K),
0.0077934 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0076016 secs] 28544K-24659K(56072K),
0.0077809 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0094214 secs] 28627K-24907K(56072K),
0.0095959 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0081766 secs] 28875K-25413K(56072K),
0.0083235 secs]

[GC [ParNew: 3964K-0K(4032K), 0.0476766 secs] 29378K-25736K(56072K),
0.0478634 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0131406 secs] 29704K-26056K(56072K),
0.0133119 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0127321 secs] 30024K-26486K(56072K),
0.0128994 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0170908 secs] 30453K-27044K(56072K),
0.0172648 secs]

[GC [ParNew: 3946K-0K(4032K), 0.0258431 secs] 30991K-28401K(56072K),
0.0260299 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0097711 secs] 32368K-29151K(56072K),
0.0099655 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0277493 secs] 33119K-30963K(56072K),
0.0279320 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0148470 secs] 34931K-31791K(56072K),
0.0150112 secs]

[GC [ParNew: 3961K-0K(4032K), 0.0252186 secs] 35753K-33458K(56072K),
0.0253967 secs]

[GC [ParNew: 3956K-0K(4032K), 0.0094682 secs] 37414K-34072K(56072K),
0.0096453 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0086307 secs] 38040K-34737K(56072K),
0.0088139 secs]

[GC [ParNew: 3961K-0K(4032K), 0.0085751 secs] 38699K-35289K(56072K),
0.0087476 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0092369 secs] 39257K-35818K(56072K),
0.0095723 secs]

[GC [1 CMS-initial-mark: 35818K(52040K)] 35818K(56072K), 0.0051687 secs]

[CMS-concurrent-mark: 0.414/0.414 secs]

[CMS-concurrent-preclean: 0.004/0.004 secs]

[GC[Rescan (parallel) , 0.0071662 secs][weak refs processing, 0.0076101
secs] [1 CMS-remark: 35818K(52040K)] 3

5879K(56072K), 0.0157375 secs]

[CMS-concurrent-sweep: 0.131/0.131 secs]

[CMS-concurrent-reset: 0.124/0.124 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0108625 secs] 20393K-16549K(56072K),
0.0110341 secs]



-
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.


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



RE: What's happening to my beans?

2004-03-30 Thread Shapira, Yoav

Hi,
You can google for the exact definition of the singleton design pattern.
In this case, you would write a singleton to hold all the beans, one per
user, instead of putting them in the session object.  Because there will
be only one instance of this singleton in the JVM, it will be shared by
the non-SSL and SSL hosts.  Your JSP pages and servlets would get the
user bean from this singleton instead of from the session.

If you need specific code we'll be glad to help.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Charles Daniel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 1:53 PM
To: Tomcat Users List
Subject: Re: What's happening to my beans?

Thanks Yoav, I've figured as much.  From my old C programming days I am
well aware of scoping rules.  Yet I am still at a loss of how to solve
this
particular problem.  I'm not certain how to using a database would
solve
the problem and I'm not familiar with singleton. What is it and how can
I
use it.

Thanks

Charles
  - Original Message -
  From: Shapira, Yoavmailto:[EMAIL PROTECTED]
  To: Tomcat Users Listmailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 30, 2004 12:41 PM
  Subject: RE: What's happening to my beans?



  Hi,
  I think you can't have the same session for both SSL and non-SSL
  activity.  You get different sessions, each with its own bean, hence
the
  behavior you describe.  Can you use a database?  A share singleton?

  Yoav Shapira
  Millennium Research Informatics


  -Original Message-
  From: Charles Daniel [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 30, 2004 1:37 PM
  To: [EMAIL PROTECTED]mailto:tomcat-
[EMAIL PROTECTED]
  Subject: What's happening to my beans?
  
  My installation is Apache2+Tomcat4+mod_ssl.  I am running a http
main
  server along with a https virtual host on an aliased ip address.  To
  track
  users I created a session bean which holds user info ( e-mail, login
  status
  ).  Naturally this bean holds vital information as it allows links
to
  the
  users transactions such as shopping cart transactions.
  
  The bean is accessible by both servers (same machine and application
  directory tree). The SSL enabled virtual host now serves my Login,
  Registration and Shopping Cart JSP's while the main server serves
the
  non-
  secure pages.
  
  Before I implemented SSL the strategy of using a bean to track users
  was
  sound, but now it seems that the bean is not persistant between the
  main
  server and virtual host. My guess is that main server and the
virtual
  host
  have their own version of the bean.  Therefore, the bean in my
virtual
  host
  is out of scope once I navigate back to page controlled by the main
  server.
  The result is that the main server is left unaware if the user has
  logged
  in or whether or not the user has a shopping cart containing items.
  
  Is there a better strategy for communicating information like this
  between
  the main server and the virtual host. I am reluctant to try using
  cookies.
  
  I've tried the java.sun.com JSP forum with no success.  Maybe you
guys
  can
  help even if this post is a little off subject for this forum.



  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: tomcat-user-
[EMAIL PROTECTED]mailto:tomcat-user-
[EMAIL PROTECTED]
  For additional commands, e-mail: tomcat-user-
[EMAIL PROTECTED]mailto:[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]



Re: load balancing with jk2

2004-03-30 Thread pablo
Thank you .  It was exactly what I needed to get over the hump.  I just  
did as you said and tested it.  Thanx a million .

On Mar 30, 2004, at 1:45 PM, Chris Egolf wrote:



pablo wrote:
maybe I am just missing something.  I noticed that in my server.xml  
there is a portion that is commented out and is specific to JK2 load  
balancing .
!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
   Engine name=Standalone defaultHost=localhost:8009 debug=0  
jvmRoute=jvm1
   --
Make sure that for each instance of Tomcat, there is a unique jvmRoute  
attribute in the Engine element of each instance's server.xml.  The  
jvmRoute corresponds to the tomcatId setting in your  
workers2.properties file (see below).  The jvmRoute needs to be unique  
for each instance.  Also, if you're just uncommenting the above in  
your server.xml, you'll need to comment out the other Engine section  
that doesn't have the jvmRoute attribute.  Maybe that's why Tomcat  
won't start.

Everytime I make an attempt to uncomment this tomcat will not start.
Regardless this is what my workers2.properties looks like. #INSTANCE 1
#Socket Channel, explicity set port and host
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
   ^^
This should be the jvmRoute setting you specified in this instance's  
server.xml.  The other instance below should have a unique tomcatId as  
well.

In other words, you've got at least two separate server.xml files, one  
for each instance of Tomcat on localhost.  For instance 1, edit the  
Engine section and add jvmRoute=jvm1.  For instance 2, edit the  
Engine section and add jvmRoutejvm2.  Then, in your  
workers2.properties file, change the tomcatId=jvm1 and tomcatId=jvm2  
in each instance's section.

Hope that's clear.

--  
=== 
=
   Chris Egolf
 http://www.ugholf.net [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: Garbage Collection

2004-03-30 Thread Peter Lin
 
one trick I've used in the past might help.
 
what I do is start tomcat with OptimizeIt. Then I throw varying loads at tomcat and 
see what happens. Warning though, make sure you have atleast 1gb of RAM. I don't 
recommend trying this with less than 768mb.
 
In some cases, I will use the production logs to simulate the load in JMeter. JMeter 
now has a access log sampler, which will read common log format to generate requests.
 
if the bug is the result of a sequence of requests, running a simulation might be the 
trick to expose it. My original reason for writing the access log sampler for JMeter 
was to simulate strange unpredictable behavior that seems difficult or impossible to 
reproduce consistently.
 
peter lin
 


Rob Wichterman [EMAIL PROTECTED] wrote:
The weird thing is everything will be running fine for a few hours (or days,
very inconsistent) then it seems like the garbage collector cannot keep up
with the used space and the heap gets bigger and bigger while nearly nothing
gets cleared, when this happens I have noticed the CPU stuck around 60%
used, eventually it will crash with (Out of Memory not enough Swap Space).
I have used JProfiler to try and find memory issues but the odd thing is we
have never been able to duplicate this problem in our testing environment
only in production.

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 30, 2004 1:08 PM
To: Tomcat Users List
Subject: Re: Garbage Collection

your heap size remains stable according to the verbose GC. That in itself
doesn't tell you if there is a problem or not. Is there some slowness in
your jsp?

you might want to d/l borland optimizeIt trial version and get a better
picture of what is happening.

peter


Rob Wichterman wrote:
Can anybody tell me if these look like healthy garbage collections. 



[GC [ParNew: 3968K-0K(4032K), 0.0132890 secs] 25349K-22156K(56072K),
0.0134572 secs]

[GC [ParNew: 3952K-0K(4032K), 0.0086222 secs] 26109K-22649K(56072K),
0.0087891 secs]

[GC [ParNew: 3953K-0K(4032K), 0.0092634 secs] 26602K-23133K(56072K),
0.0094345 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0094125 secs] 27101K-23289K(56072K),
0.0095833 secs]

[GC [ParNew: 3961K-0K(4032K), 0.0474236 secs] 27250K-23491K(56072K),
0.0476528 secs]

[GC [ParNew: 3966K-0K(4032K), 0.0101857 secs] 27458K-23644K(56072K),
0.0103671 secs]

[GC [ParNew: 3968K-0K(4032K), 0.0088548 secs] 27612K-23776K(56072K),
0.0090263 secs]

[GC [ParNew: 3968K-0K(4032K), 0.0075491 secs] 27744K-23842K(56072K),
0.0077127 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0107583 secs] 27810K-24144K(56072K),
0.0109381 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0588864 secs] 28112K-24470K(56072K),
0.0591110 secs]

[GC [ParNew: 3964K-0K(4032K), 0.0076312 secs] 28435K-24576K(56072K),
0.0077934 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0076016 secs] 28544K-24659K(56072K),
0.0077809 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0094214 secs] 28627K-24907K(56072K),
0.0095959 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0081766 secs] 28875K-25413K(56072K),
0.0083235 secs]

[GC [ParNew: 3964K-0K(4032K), 0.0476766 secs] 29378K-25736K(56072K),
0.0478634 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0131406 secs] 29704K-26056K(56072K),
0.0133119 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0127321 secs] 30024K-26486K(56072K),
0.0128994 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0170908 secs] 30453K-27044K(56072K),
0.0172648 secs]

[GC [ParNew: 3946K-0K(4032K), 0.0258431 secs] 30991K-28401K(56072K),
0.0260299 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0097711 secs] 32368K-29151K(56072K),
0.0099655 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0277493 secs] 33119K-30963K(56072K),
0.0279320 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0148470 secs] 34931K-31791K(56072K),
0.0150112 secs]

[GC [ParNew: 3961K-0K(4032K), 0.0252186 secs] 35753K-33458K(56072K),
0.0253967 secs]

[GC [ParNew: 3956K-0K(4032K), 0.0094682 secs] 37414K-34072K(56072K),
0.0096453 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0086307 secs] 38040K-34737K(56072K),
0.0088139 secs]

[GC [ParNew: 3961K-0K(4032K), 0.0085751 secs] 38699K-35289K(56072K),
0.0087476 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0092369 secs] 39257K-35818K(56072K),
0.0095723 secs]

[GC [1 CMS-initial-mark: 35818K(52040K)] 35818K(56072K), 0.0051687 secs]

[CMS-concurrent-mark: 0.414/0.414 secs]

[CMS-concurrent-preclean: 0.004/0.004 secs]

[GC[Rescan (parallel) , 0.0071662 secs][weak refs processing, 0.0076101
secs] [1 CMS-remark: 35818K(52040K)] 3

5879K(56072K), 0.0157375 secs]

[CMS-concurrent-sweep: 0.131/0.131 secs]

[CMS-concurrent-reset: 0.124/0.124 secs]

[GC [ParNew: 3967K-0K(4032K), 0.0108625 secs] 20393K-16549K(56072K),
0.0110341 secs]



-
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.


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


-
Do you Yahoo!?
Yahoo! Finance Tax Center - File 

Re: What's happening to my beans?

2004-03-30 Thread Charles Daniel
Thanks, I'll try google first to see what it's all about.

Thanks Again,

Charles
  - Original Message - 
  From: Shapira, Yoavmailto:[EMAIL PROTECTED] 
  To: Tomcat Users Listmailto:[EMAIL PROTECTED] 
  Sent: Tuesday, March 30, 2004 12:56 PM
  Subject: RE: What's happening to my beans?



  Hi,
  You can google for the exact definition of the singleton design pattern.
  In this case, you would write a singleton to hold all the beans, one per
  user, instead of putting them in the session object.  Because there will
  be only one instance of this singleton in the JVM, it will be shared by
  the non-SSL and SSL hosts.  Your JSP pages and servlets would get the
  user bean from this singleton instead of from the session.

  If you need specific code we'll be glad to help.

  Yoav Shapira
  Millennium Research Informatics


  -Original Message-
  From: Charles Daniel [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 30, 2004 1:53 PM
  To: Tomcat Users List
  Subject: Re: What's happening to my beans?
  
  Thanks Yoav, I've figured as much.  From my old C programming days I am
  well aware of scoping rules.  Yet I am still at a loss of how to solve
  this
  particular problem.  I'm not certain how to using a database would
  solve
  the problem and I'm not familiar with singleton. What is it and how can
  I
  use it.
  
  Thanks
  
  Charles
- Original Message -
From: Shapira, Yoavmailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
To: Tomcat Users Listmailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 12:41 PM
Subject: RE: What's happening to my beans?
  
  
  
Hi,
I think you can't have the same session for both SSL and non-SSL
activity.  You get different sessions, each with its own bean, hence
  the
behavior you describe.  Can you use a database?  A share singleton?
  
Yoav Shapira
Millennium Research Informatics
  
  
-Original Message-
From: Charles Daniel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 1:37 PM
To: [EMAIL PROTECTED]mailto:tomcatmailto:[EMAIL PROTECTED]mailto:tomcat-
  [EMAIL PROTECTED]
Subject: What's happening to my beans?

My installation is Apache2+Tomcat4+mod_ssl.  I am running a http
  main
server along with a https virtual host on an aliased ip address.  To
track
users I created a session bean which holds user info ( e-mail, login
status
).  Naturally this bean holds vital information as it allows links
  to
the
users transactions such as shopping cart transactions.

The bean is accessible by both servers (same machine and application
directory tree). The SSL enabled virtual host now serves my Login,
Registration and Shopping Cart JSP's while the main server serves
  the
non-
secure pages.

Before I implemented SSL the strategy of using a bean to track users
was
sound, but now it seems that the bean is not persistant between the
main
server and virtual host. My guess is that main server and the
  virtual
host
have their own version of the bean.  Therefore, the bean in my
  virtual
host
is out of scope once I navigate back to page controlled by the main
server.
The result is that the main server is left unaware if the user has
logged
in or whether or not the user has a shopping cart containing items.

Is there a better strategy for communicating information like this
between
the main server and the virtual host. I am reluctant to try using
cookies.

I've tried the java.sun.com JSP forum with no success.  Maybe you
  guys
can
help even if this post is a little off subject for this forum.
  
  
  
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: tomcat-user-
  [EMAIL PROTECTED]mailto:tomcat-usermailto:tomcat-user-
  [EMAIL PROTECTED]
For additional commands, e-mail: tomcat-user-
  [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]mailto:[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 

Does my webapp directory have to live under the webapps folder?

2004-03-30 Thread Chad Woolley
Hi,

I'm using Tomcat 4.  I'm wondering if it's possible to configure tomcat 
to run a webapp that is installed somewhere ELSE than under the webapps 
folder.  This is windows, so (as far as I know) symlinks or a similar 
approach won't work.

Thanks,
Chad


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


RE: Does my webapp directory have to live under the webapps folde r?

2004-03-30 Thread Hamilton, Andrew
Yep,

Context path=/context
docBase=/path/to/doc/base
debug=0
reloadable=true
/Context

Try that.

Regards,

Drew

-Original Message-
From: Chad Woolley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 2:40 PM
To: [EMAIL PROTECTED]
Subject: Does my webapp directory have to live under the webapps folder?


Hi,

I'm using Tomcat 4.  I'm wondering if it's possible to configure tomcat 
to run a webapp that is installed somewhere ELSE than under the webapps 
folder.  This is windows, so (as far as I know) symlinks or a similar 
approach won't work.

Thanks,
Chad



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


Error configuring application listener of class com.sun.faces.config.ConfigListener

2004-03-30 Thread pkhadra24
 I can't start my application because of this error.
Please help me how to resolve it:

2004-03-30 21:37:47 StandardContext[/projet]Error configuring application listener of 
class com.sun.faces.config.ConfigListener
java.lang.SecurityException: class com.sun.faces.config.ConfigListener's signer 
information does not match signer information of other classes in the same package
 at java.lang.ClassLoader.checkCerts(ClassLoader.java:599)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:532)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
 at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1677)
 at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:900)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1350)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3721)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4270)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
 at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
 at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:657)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
 at org.apache.catalina.core.StandardService.start(StandardService.java:519)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
 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.start(Bootstrap.java:297)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)


Re: tomcat5/tomcat4 comparison

2004-03-30 Thread QM
On Tue, Mar 30, 2004 at 09:44:23AM -0800, Neil MacMillan wrote:
: Hi all, I'm trying to gather all the information I can about pros/cons of
: migrating  10-15 servers from tomcat4 to tomcat5.  I have been unsuccessful in
: finding some good performance comparisons, and major feature differences
: between the two (major)versions.  Can anyone provide some links/docs for
: this?

Jokes aside, have you checked the release docs?  I don't have
the exact URL but they're on the website.

just a few TC5 new features/improvements that come to mind:
- support for servlet spec 2.4 and JSP spec 2.0
- clustering
- improved manager app (IIRC)

Unless you see some total whiz-bang feature that you've been
craving, then it's a matter of deciding whether you want to 
upgrade just for the heck of it, or to be running the latest
version. (-and that's not necessarily a bad thing.)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Error configuring application listener of class com.sun.faces.config.ConfigListener

2004-03-30 Thread Shapira, Yoav

Howdy,
Ask whoever supplied your JSF jar.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: pkhadra24 [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 2:51 PM
To: [EMAIL PROTECTED]
Subject: Error configuring application listener of class
com.sun.faces.config.ConfigListener

 I can't start my application because of this error.
Please help me how to resolve it:

2004-03-30 21:37:47 StandardContext[/projet]Error configuring
application
listener of class com.sun.faces.config.ConfigListener
java.lang.SecurityException: class
com.sun.faces.config.ConfigListener's
signer information does not match signer information of other classes
in
the same package
 at java.lang.ClassLoader.checkCerts(ClassLoader.java:599)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:532)
 at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
 at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCl
assL
oader.java:1677)
 at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoade
r.ja
va:900)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade
r.ja
va:1350)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade
r.ja
va:1230)
 at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.
java
:3721)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:427
0)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
ava:
866)
 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
yer.
java:320)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
 at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:657)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
94)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
uppo
rt.java:166)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:519
)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
9)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
l.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)



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: Does my webapp directory have to live under the webapps folder?

2004-03-30 Thread LILES, DAVID (CONTRACTOR)
In your server.xml file you can define where your baseDoc location is I'm using 
Tomcat 5 in IIS and am doing just that I even put together a document outlining 
the steps I took to configure the two

www.dynamichostings.com/TomCat5IIS5.do

Hope it helps.

-Original Message-
From: Chad Woolley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 1:40 PM
To: [EMAIL PROTECTED]
Subject: Does my webapp directory have to live under the webapps folder?


Hi,

I'm using Tomcat 4.  I'm wondering if it's possible to configure tomcat 
to run a webapp that is installed somewhere ELSE than under the webapps 
folder.  This is windows, so (as far as I know) symlinks or a similar 
approach won't work.

Thanks,
Chad



-
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]



Compile jk2 2.0.4 connector on Tru64

2004-03-30 Thread Eulogio Robles
I'm trying to compile a JK2 connector on Tru64 :

I cd to /usr/local/src/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2
./configure --with-apxs2=/usr/local/apache2/bin/apxs
make
I get this :

/bin/ksh /usr/local/apache2/build/libtool --silent  --mode=compile cc  
-g -pthread-DOSF1   -I../../include -I/usr/local/apache2/include 
-I/usr/local/src/httpd-2.0.44/srclib/apr-util/include 
-I/usr/local/src/httpd-2.0.44/srclib/apr/include   -DCHUNK_SIZE=4096 
-DUSE_APACHE_MD5   -c ../../common/jk_logger_file.c -o 
../../../build/jk2/apache2/jk_logger_file.lo
cc: Error: ../../common/jk_logger_file.c, line 196: In this statement, 
args has a struct type, which is not scalar. (needscalar)
   if (!file || !args)
-^
make[1]: *** [../../../build/jk2/apache2/jk_logger_file.lo] Error 1
make[1]: Leaving directory 
`/usr/local/src/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/apache2'
make: *** [jk2-build] Error 1

What I'm missing?

Best regards,

E. Robles
Metropolis
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error configuring application listener of class com.sun.faces.config.ConfigListener

2004-03-30 Thread QM
On Tue, Mar 30, 2004 at 09:51:04PM +0200, pkhadra24 wrote:
:  I can't start my application because of this error.
: Please help me how to resolve it:
: 
: 2004-03-30 21:37:47 StandardContext[/projet]Error configuring application
: listener of class com.sun.faces.config.ConfigListener

Help us help you -- what version of Tomcat are you running?

Apparently there's a known issue w/ certain JSF releases that magically
disappears in Tomcat 5.0.19.

I can't take all the credit for that -- I had some help:

http://www.google.com/search?hl=enlr=ie=UTF-8oe=UTF-8q=%22signer+information+does+not+match+signer+information+of+other+classes+in+the+same+package%22btnG=Search

;)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: tomcat5/tomcat4 comparison

2004-03-30 Thread Neil MacMillan
Basically, the whiz-bang feature I want is JSP2.0

I have looked over whats on the site as they do show about 10 differences in 
containers, so the clustering, GC improvments, some others, I've read.  I just need to 
justify the move of a handful of servers to tomcat 5.

neilm



-Original Message-
From:   QM [mailto:[EMAIL PROTECTED]
Sent:   Tue 3/30/2004 11:55 AM
To: Tomcat Users List
Cc: 
Subject:Re: tomcat5/tomcat4 comparison
On Tue, Mar 30, 2004 at 09:44:23AM -0800, Neil MacMillan wrote:
: Hi all, I'm trying to gather all the information I can about pros/cons of
: migrating  10-15 servers from tomcat4 to tomcat5.  I have been unsuccessful in
: finding some good performance comparisons, and major feature differences
: between the two (major)versions.  Can anyone provide some links/docs for
: this?

Jokes aside, have you checked the release docs?  I don't have
the exact URL but they're on the website.

just a few TC5 new features/improvements that come to mind:
- support for servlet spec 2.4 and JSP spec 2.0
- clustering
- improved manager app (IIRC)

Unless you see some total whiz-bang feature that you've been
craving, then it's a matter of deciding whether you want to 
upgrade just for the heck of it, or to be running the latest
version. (-and that's not necessarily a bad thing.)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
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: Error configuring application listener of class com.sun.faces.config.ConfigListener

2004-03-30 Thread Parsons Technical Services
I concur. I have seen this type of error where the package was developed
against another brand of jvm. Mostly, applets that will not run on sun's jvm
but will against microsoft's vm.

Doug

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 3:07 PM
Subject: RE: Error configuring application listener of class
com.sun.faces.config.ConfigListener



Howdy,
Ask whoever supplied your JSF jar.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: pkhadra24 [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 2:51 PM
To: [EMAIL PROTECTED]
Subject: Error configuring application listener of class
com.sun.faces.config.ConfigListener

 I can't start my application because of this error.
Please help me how to resolve it:

2004-03-30 21:37:47 StandardContext[/projet]Error configuring
application
listener of class com.sun.faces.config.ConfigListener
java.lang.SecurityException: class
com.sun.faces.config.ConfigListener's
signer information does not match signer information of other classes
in
the same package
 at java.lang.ClassLoader.checkCerts(ClassLoader.java:599)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:532)
 at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
 at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCl
assL
oader.java:1677)
 at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoade
r.ja
va:900)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade
r.ja
va:1350)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade
r.ja
va:1230)
 at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.
java
:3721)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:427
0)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
ava:
866)
 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
yer.
java:320)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
 at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:657)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:476)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
94)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
uppo
rt.java:166)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:519
)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
9)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
l.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)



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]




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



RE: tomcat5/tomcat4 comparison

2004-03-30 Thread Justin Ruthenbeck
At 12:22 PM 3/30/2004, you wrote:
Basically, the whiz-bang feature I want is JSP2.0

I have looked over whats on the site as they do show about 10 
differences in containers, so the clustering, GC improvments, some 
others, I've read.  I just need to justify the move of a handful of 
servers to tomcat 5.
Up there amongst the best reasons is availability of support.  As with 
all OSS, you benefit by aligning yourself to the main trunk of 
development from a bug fix and *especially* forum support point-of-view.

Many (most, it seems) of the regular contributors to this list have 
migrated to Tomcat5, so there's less of an audience anxious to work on 
Tomcat4 problems.

justin


-Original Message-
From:   QM [mailto:[EMAIL PROTECTED]
Sent:   Tue 3/30/2004 11:55 AM
To: Tomcat Users List
Cc:
Subject:Re: tomcat5/tomcat4 comparison
On Tue, Mar 30, 2004 at 09:44:23AM -0800, Neil MacMillan wrote:
: Hi all, I'm trying to gather all the information I can about pros/cons 
of
: migrating  10-15 servers from tomcat4 to tomcat5.  I have been 
unsuccessful in
: finding some good performance comparisons, and major feature differences
: between the two (major)versions.  Can anyone provide some links/docs for
: this?

Jokes aside, have you checked the release docs?  I don't have
the exact URL but they're on the website.
just a few TC5 new features/improvements that come to mind:
- support for servlet spec 2.4 and JSP spec 2.0
- clustering
- improved manager app (IIRC)
Unless you see some total whiz-bang feature that you've been
craving, then it's a matter of deciding whether you want to
upgrade just for the heck of it, or to be running the latest
version. (-and that's not necessarily a bad thing.)
-QM


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


Mod_jk killed apache...

2004-03-30 Thread Mark Nye
Hi all,

  I've installed apache 2.0.49 with Tomcat 5.0.19.  I just downloaded the
latest jk2 connector and build it as well.  All three where downloaded as
src files and built locally.  I pointed the -apxs2 flag to the bin dir under
apache2 and the mod_jk2.so builds fine.  Now when I try to start apache I
get an error message telling me mod_jk doesn't work with the newest version
of apache.  Has anyone else seen such a message?  

 

Thanks in advance,

Mark

 

Message when I start the web server.

 

Httpd: module ../../server/apache2/mod_jk2.c is not compatible with this
version of apache (found 20020628, need 20020903).

 

 



RE: tomcat5/tomcat4 comparison

2004-03-30 Thread Shapira, Yoav

Howdy,

Up there amongst the best reasons is availability of support.  As with
all OSS, you benefit by aligning yourself to the main trunk of
development from a bug fix and *especially* forum support
point-of-view.

Many (most, it seems) of the regular contributors to this list have
migrated to Tomcat5, so there's less of an audience anxious to work on
Tomcat4 problems.

Yup, well-said.

JSP 2.0 is a tomcat5 feature: if you require it, you require tomcat5,
end of story ;)

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_jk killed apache...

2004-03-30 Thread karl1coleman
Yes. When I originally started attempting my Tomcat/Apache integration that I talked 
about earlier today, this was the first problem I ran into. Then I just reverted back 
to the version that installed with Fedora, 2.047. I stopped getting that error, but 
still had other issues.

Karl

 
 From: Mark Nye [EMAIL PROTECTED]
 Date: 2004/03/30 Tue PM 02:32:11 CST
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: Mod_jk killed apache...
 
 Hi all,
 
   I've installed apache 2.0.49 with Tomcat 5.0.19.  I just downloaded the
 latest jk2 connector and build it as well.  All three where downloaded as
 src files and built locally.  I pointed the -apxs2 flag to the bin dir under
 apache2 and the mod_jk2.so builds fine.  Now when I try to start apache I
 get an error message telling me mod_jk doesn't work with the newest version
 of apache.  Has anyone else seen such a message?  
 
  
 
 Thanks in advance,
 
 Mark
 
  
 
 Message when I start the web server.
 
  
 
 Httpd: module ../../server/apache2/mod_jk2.c is not compatible with this
 version of apache (found 20020628, need 20020903).
 
  
 
  
 
 
 


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



Re: RE: Connecting Apache and Tomcat

2004-03-30 Thread karl1coleman
SUCCESS!

I made one little change and it works now. Bother jsp-examples and servlets-examples 
apps run.

The change was adding the PROTOCOL property to the connector on port 8009 in the 
server.xml. I added protocol=AJP/1.3, restarted both Tomcat and Apache, and it 
worked!! Here's what my Connector looks like:

Connector port=8009 enableLookups=false redirectPort=8443 debug=0 
protocol=AJP/1.3 /

Thanks to all who responded.

Karl

 
 From: [EMAIL PROTECTED]
 Date: 2004/03/30 Tue AM 10:52:28 CST
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: RE: Connecting Apache and Tomcat
 
 That's one I tried already. That setup is the one that gave me the 503 Service Not 
 Available error.
 
 I will post the logs from Apache and Tomcat when I get a chance. Maybe that will 
 help.
 
 Karl
 
  
  From: Dale, Matt [EMAIL PROTECTED]
  Date: 2004/03/30 Tue AM 10:30:34 CST
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: RE: Connecting Apache and Tomcat
  
  Try this one
  
  http://www.connecties.com/cymulacrum/tomcat5/book1.html
  
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: 30 March 2004 17:26
  To: [EMAIL PROTECTED]
  Subject: Connecting Apache and Tomcat
  
  
  Someone on this planet surely has gotten this to work. I have found 4 sites with 
  instructions, all 4 have vastly different instructions, and none of them work, at 
  least on my system.
  
  I am running Fedora Core 1, Apache 2.0.47 and Tomcat 5.0.19. I've tried a 
  pre-compiled connector. I've tried compiling it myself. Nothing works.
  
  The last setup I tried was the instruction found at 
  www.greenfieldresearch.ca/technical/jk2_config.html.
  
  Those also seemed to be the simplest instructions. I have gotten different errors, 
  but this setup from the site above gives me an error about a possible 
  misconfiguration. Other setups have given me a 503 Service Unavailable error.
  
  My files are exactly as suggested on the site above. Any suggestions or ideas are 
  welcome.
  
  Thanks,
  Karl
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.




-
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: RE: Connecting Apache and Tomcat

2004-03-30 Thread Shapira, Yoav

Hi,
Great! ;)

You mean you followed the information as provided at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html?

You might want to email to authors of the various documents that you
tried without success previously to let them know of this.  Hopefully
they'll update their docs and other users will be spared the hassles you
went through.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 3:56 PM
To: Tomcat Users List
Subject: Re: RE: Connecting Apache and Tomcat

SUCCESS!

I made one little change and it works now. Bother jsp-examples and
servlets-examples apps run.

The change was adding the PROTOCOL property to the connector on port
8009
in the server.xml. I added protocol=AJP/1.3, restarted both Tomcat
and
Apache, and it worked!! Here's what my Connector looks like:

Connector port=8009 enableLookups=false redirectPort=8443
debug=0
protocol=AJP/1.3 /

Thanks to all who responded.

Karl


 From: [EMAIL PROTECTED]
 Date: 2004/03/30 Tue AM 10:52:28 CST
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: RE: Connecting Apache and Tomcat

 That's one I tried already. That setup is the one that gave me the
503
Service Not Available error.

 I will post the logs from Apache and Tomcat when I get a chance.
Maybe
that will help.

 Karl

 
  From: Dale, Matt [EMAIL PROTECTED]
  Date: 2004/03/30 Tue AM 10:30:34 CST
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: RE: Connecting Apache and Tomcat
 
  Try this one
 
  http://www.connecties.com/cymulacrum/tomcat5/book1.html
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: 30 March 2004 17:26
  To: [EMAIL PROTECTED]
  Subject: Connecting Apache and Tomcat
 
 
  Someone on this planet surely has gotten this to work. I have found
4
sites with instructions, all 4 have vastly different instructions, and
none
of them work, at least on my system.
 
  I am running Fedora Core 1, Apache 2.0.47 and Tomcat 5.0.19. I've
tried
a pre-compiled connector. I've tried compiling it myself. Nothing
works.
 
  The last setup I tried was the instruction found at
www.greenfieldresearch.ca/technical/jk2_config.html.
 
  Those also seemed to be the simplest instructions. I have gotten
different errors, but this setup from the site above gives me an error
about a possible misconfiguration. Other setups have given me a 503
Service
Unavailable error.
 
  My files are exactly as suggested on the site above. Any
suggestions or
ideas are welcome.
 
  Thanks,
  Karl
 
 
 
 
-
  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]



RE: RE: Connecting Apache and Tomcat

2004-03-30 Thread Mark Nye
Awesome.. I had some trouble understanding the documentation at the Jakarta
site as well.   

So far I've been successful using

http://www.connecties.com/cymulacrum/tomcat5/book1.html

and it seems pretty cut and dry.. no fancy stuff. 

Thanks for the reply...
Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 30, 2004 3:56 PM
To: Tomcat Users List
Subject: Re: RE: Connecting Apache and Tomcat

SUCCESS!

I made one little change and it works now. Bother jsp-examples and
servlets-examples apps run.

The change was adding the PROTOCOL property to the connector on port 8009 in
the server.xml. I added protocol=AJP/1.3, restarted both Tomcat and
Apache, and it worked!! Here's what my Connector looks like:

Connector port=8009 enableLookups=false redirectPort=8443 debug=0
protocol=AJP/1.3 /

Thanks to all who responded.

Karl

 
 From: [EMAIL PROTECTED]
 Date: 2004/03/30 Tue AM 10:52:28 CST
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: RE: Connecting Apache and Tomcat
 
 That's one I tried already. That setup is the one that gave me the 503
Service Not Available error.
 
 I will post the logs from Apache and Tomcat when I get a chance. Maybe
that will help.
 
 Karl
 
  
  From: Dale, Matt [EMAIL PROTECTED]
  Date: 2004/03/30 Tue AM 10:30:34 CST
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: RE: Connecting Apache and Tomcat
  
  Try this one
  
  http://www.connecties.com/cymulacrum/tomcat5/book1.html
  
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: 30 March 2004 17:26
  To: [EMAIL PROTECTED]
  Subject: Connecting Apache and Tomcat
  
  
  Someone on this planet surely has gotten this to work. I have found 4
sites with instructions, all 4 have vastly different instructions, and none
of them work, at least on my system.
  
  I am running Fedora Core 1, Apache 2.0.47 and Tomcat 5.0.19. I've tried
a pre-compiled connector. I've tried compiling it myself. Nothing works.
  
  The last setup I tried was the instruction found at
www.greenfieldresearch.ca/technical/jk2_config.html.
  
  Those also seemed to be the simplest instructions. I have gotten
different errors, but this setup from the site above gives me an error about
a possible misconfiguration. Other setups have given me a 503 Service
Unavailable error.
  
  My files are exactly as suggested on the site above. Any suggestions or
ideas are welcome.
  
  Thanks,
  Karl
  
  
  
  -
  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: RE: Connecting Apache and Tomcat

2004-03-30 Thread Shapira, Yoav

Hi,

Awesome.. I had some trouble understanding the documentation at the
Jakarta
site as well.

If you provide more details, or better yet modified docs, we'd be glad
to incorporate them.  In this case, the change Senor Coleman did and the
Connector element he ended up with are not only exactly as described in
the Connector configuration reference docs, but also exactly the same as
the sample Apache-Tomcat connector provided in the out-of-the-box
server.xml...

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: RE: Connecting Apache and Tomcat

2004-03-30 Thread karl1coleman
Yes. Very strange to come full circle. The instructions at the Greenfield Research 
site I mentioned previously did not have the PROTOCOL attribute. I guess I just forgot 
to put it back in when I went to try something different. One of these days I will 
learn to backup config files before making major changes...

Karl

 
 From: Shapira, Yoav [EMAIL PROTECTED]
 Date: 2004/03/30 Tue PM 03:12:21 CST
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: RE: Connecting Apache and Tomcat
 
 
 Hi,
 
 Awesome.. I had some trouble understanding the documentation at the
 Jakarta
 site as well.
 
 If you provide more details, or better yet modified docs, we'd be glad
 to incorporate them.  In this case, the change Senor Coleman did and the
 Connector element he ended up with are not only exactly as described in
 the Connector configuration reference docs, but also exactly the same as
 the sample Apache-Tomcat connector provided in the out-of-the-box
 server.xml...
 
 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]
 
 


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



My Apache and Tomcat Setup

2004-03-30 Thread karl1coleman
I thought I would post my config files for others to see if anyone else ever has 
problems. Variations of course may work, but this is what worked for me.

Karl

httpd.conf - added this line to section where modules are loaded:

LoadModule jk2_module modules/mod_jk2.so

-
workers2.properties:

# define shared memory file
[shm]
file=/etc/httpd/logs/jk2.shm
size=1048576

#define communication channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[uri:/jsp-examples]
context=/examples
debug=0

[uri:/jsp-examples/*]
worker=ajp13:localhost:8009

[uri:/servlets-examples/*]
worker=ajp13:localhost:8009
---
server.xml - make sure Connector on port 8009 is uncommented. Is by default but check 
to make sure. My Connector looks like this:

  Connector port=8009 enableLookups=false redirectPort=8443 debug=0 
protocol=AJP/1.3 /

--
jk2.properties

shm.file=/etc/httpd/logs/jk2.shm


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



[OT] is Host part of Requestion URL?

2004-03-30 Thread Yansheng Lin

Hey, I am a bit confused with the terminology used in the servlet spec.  Isn't a
request URL consists: host + [webapp +] servlet path + filename?  But in the
spec, host is not part of the request URL.  Why?  

Thanks!

-Yan


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



Windows 2003 Server\Tomcat ISAPI Filter

2004-03-30 Thread Robert Priest
Hello All,

I know that this is a topic that has been discussed and I have read the
following docs on the issue:

https://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.ht
https://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.ht 
ml
https://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html
https://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html 
http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html
http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html 


However I am still having an issue with (I guess) the filter handing off to
tomcat.

I DO have IIS Running in IIS 5.0 ISOLATION MODE

And I HAVE allowed Tomcat's Redirector DLL in Web Service Extensions
However I still get a The page cannot be found when browsing to
http://localhost/examples/servlets http://localhost/examples/servlets .

However http://localhost:8080/examples/servlets
http://localhost:8080/examples/servlets  works fine.

I do see that the filter is picking it up, but is it not handing it off to
tomcat?

Here is ALL that I see my log file:
[Tue Mar 30 17:07:01 2004] (debug ) [jk_isapi_plugin.c (290)]
HttpFilterProc started
[Tue Mar 30 17:07:01 2004] (debug ) [jk_isapi_plugin.c (352)]  In
HttpFilterProc Virtual Host redirection of localhost : 80
[Tue Mar 30 17:07:01 2004] (debug ) [jk_uriMap.c (898)]  uriMap.mapUri()
hostname localhost port 80 uri /examples/servlets
[Tue Mar 30 17:07:01 2004] (debug ) [jk_uriMap.c (920)]  uriMap.mapUri()
found host *
[Tue Mar 30 17:07:01 2004] (debug ) [jk_uriMap.c (947)]  uriMap.mapUri()
found ctx /examples/servlet
[Tue Mar 30 17:07:01 2004] (debug ) [jk_uriMap.c (1004)]  uriMap.mapUri()
context match /examples/servlets lb:lb
[Tue Mar 30 17:07:01 2004] (debug ) [jk_isapi_plugin.c (361)]
HttpFilterProc [/examples/servlets] is a servlet url - should redirect to
lb:lb
[Tue Mar 30 17:07:01 2004] (debug ) [jk_isapi_plugin.c (427)]
HttpFilterProc check if [/examples/servlets] is pointing to the web-inf
directory



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



RE: [OT] is Host part of Requestion URL?

2004-03-30 Thread Shapira, Yoav

Hi,
Usually when we refer to a request URL, we use the definition in
HttpServletRequest#getRequestURL, which includes the host/server.

Where in the spec are you looking and what's the exact definition?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 4:55 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: [OT] is Host part of Requestion URL?


Hey, I am a bit confused with the terminology used in the servlet spec.
Isn't a
request URL consists: host + [webapp +] servlet path + filename?  But
in
the
spec, host is not part of the request URL.  Why?

Thanks!

-Yan


-
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]



RE: [OT] is Host part of Request URL?

2004-03-30 Thread Yansheng Lin
Oh my, so many typo/mistakes in my original post, sorry.

Here is what it says in SRV 4.4 (the request section): 

It is important to note that, except for URL encoding differences between the
request URI and the path parts, the following equation is always true:
requestURI = contextPath + servletPath + pathInfo

Obviously host is not part of the contextPath

Thanks!

-Yan 


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 30, 2004 3:08 PM
To: Tomcat Users List
Subject: RE: [OT] is Host part of Requestion URL?



Hi,
Usually when we refer to a request URL, we use the definition in
HttpServletRequest#getRequestURL, which includes the host/server.

Where in the spec are you looking and what's the exact definition?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 4:55 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: [OT] is Host part of Requestion URL?


Hey, I am a bit confused with the terminology used in the servlet spec.
Isn't a
request URL consists: host + [webapp +] servlet path + filename?  But
in
the
spec, host is not part of the request URL.  Why?

Thanks!

-Yan


-
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]


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



RE: Windows 2003 Server\Tomcat ISAPI Filter

2004-03-30 Thread Robert Priest
Thanks guys. I think I found my issue.

I had the following entry:

[ajp13:localhost:8009]

info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol

channel=channel.socket:localhost:8009

Which I guess conflicts with:

[channel.socket:localhost:8009]
info=A second tomcat instance. 
debug=0
tomcatId=localhost:8009
group=lb


So I commented out the ajp13 entry, as so:

#[ajp13:localhost:8009]

#info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol

#channel=channel.socket:localhost:8009

-Original Message-
From: Robert Priest [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 30, 2004 5:09 PM
To: Tomcat Users List
Subject: Windows 2003 Server\Tomcat ISAPI Filter

Hello All,

I know that this is a topic that has been discussed and I have read the
following docs on the issue:

https://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.ht
https://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.ht
ml
https://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html
https://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html
http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html
http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html 


However I am still having an issue with (I guess) the filter handing off to
tomcat.

I DO have IIS Running in IIS 5.0 ISOLATION MODE

And I HAVE allowed Tomcat's Redirector DLL in Web Service Extensions
However I still get a The page cannot be found when browsing to
http://localhost/examples/servlets http://localhost/examples/servlets .

However http://localhost:8080/examples/servlets
http://localhost:8080/examples/servlets  works fine.

I do see that the filter is picking it up, but is it not handing it off to
tomcat?

Here is ALL that I see my log file:
[Tue Mar 30 17:07:01 2004] (debug ) [jk_isapi_plugin.c (290)] HttpFilterProc
started [Tue Mar 30 17:07:01 2004] (debug ) [jk_isapi_plugin.c (352)]  In
HttpFilterProc Virtual Host redirection of localhost : 80 [Tue Mar 30
17:07:01 2004] (debug ) [jk_uriMap.c (898)]  uriMap.mapUri() hostname
localhost port 80 uri /examples/servlets [Tue Mar 30 17:07:01 2004] (debug )
[jk_uriMap.c (920)]  uriMap.mapUri() found host * [Tue Mar 30 17:07:01 2004]
(debug ) [jk_uriMap.c (947)]  uriMap.mapUri() found ctx /examples/servlet
[Tue Mar 30 17:07:01 2004] (debug ) [jk_uriMap.c (1004)]  uriMap.mapUri()
context match /examples/servlets lb:lb [Tue Mar 30 17:07:01 2004] (debug )
[jk_isapi_plugin.c (361)] HttpFilterProc [/examples/servlets] is a servlet
url - should redirect to lb:lb [Tue Mar 30 17:07:01 2004] (debug )
[jk_isapi_plugin.c (427)] HttpFilterProc check if [/examples/servlets] is
pointing to the web-inf directory



-
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]



Britta Albrecht/HKG/HELLA ist außer Haus.

2004-03-30 Thread Britta . Albrecht
Ich werde ab  18.03.2004 nicht im Büro sein. Ich kehre zurück am
01.04.2004.

Ich werde Ihre Nachricht nach meiner Rückkehr beantworten. In dringenden
Fällen wenden Sie sich bitte an Frau Dagmar Ernst (0 29 41/38 67 17,
[EMAIL PROTECTED]).



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



Source code mod JK 1.1.0

2004-03-30 Thread Akash Jauhar
Where can I get the source code for mod JK 1.1.0


The URL http://jakarta.apache.org/site/sourceindex.cgi seems to have the
source code for JK 1.2 and JK 2 connectors only

Please let me know

thanks
-Akash




context mapping problem after upgrade from 4.1.29 to 4.1.30

2004-03-30 Thread Jim Hopp
Greetings-

I've just upgraded my development environment from Tomcat 4.1.29 to 
4.1.30 (Win XP, jdk 1.4.2).  It appears that my URI's are not mapped to 
the same context under 4.1.30 as they were under 4.1.29.  I've made no 
changes to any of my config files; I simply upgraded Tomcat.

Here's a snippet of my process log from 4.1.29, which works as I expect 
it to:
2004-03-30 11:52:59 StandardHost[localhost]: Mapping request URI 
'/fileupload/fileUpload.html'
2004-03-30 11:52:59 StandardHost[localhost]:   Trying the longest 
context path prefix
2004-03-30 11:52:59 StandardHost[localhost]:  Mapped to context 
'/fileupload'
2004-03-30 11:52:59 default: DefaultServlet.serveResource:  Serving 
resource '/fileUpload.html' headers and data
2004-03-30 11:52:59 default: DefaultServlet.serveFile: 
lastModified='2004-03-30 11:48:46.455'
2004-03-30 11:52:59 default: DefaultServlet.serveFile: 
contentType='text/html'
2004-03-30 11:52:59 default: DefaultServlet.serveFile:  contentLength=1830

Here's the same request under 4.1.30, not working as I expected it to:
2004-03-30 13:41:22 StandardHost[localhost]: Mapping request URI ''
2004-03-30 13:41:22 StandardHost[localhost]:   Trying the longest 
context path prefix
2004-03-30 13:41:22 StandardHost[localhost]:  Mapped to context ''

Here's the Host section of the server.xml:
  Host name=localhost
appBase=c:/tomcat/webapps
workDir=c:/cvs-work/dvlp/temp/tomcat-ui/ui/localhost
autoDeploy=false
liveDeploy=false
debug=10
deployXML=false
Context path=/manager privileged=true 
docBase=c:/tomcat/server/webapps/manager
  Valve className=org.apache.catalina.valves.RemoteAddrValve 
allow=127.0.0.1/
/Context

Context path= docBase=c:/cvs-work/dvlp/bin/ui 
reloadable=true
  Manager 
className=org.apache.catalina.session.PersistentManager 
checkInterval=60 maxInactiveInterval=120 saveOnRestart=false/
  Parameter name=version value=dev/
  Resource name=nyw/directory auth=Container 
type=nyw.dir.Directory/
  ResourceParams name=nyw/directory
parameter
  namefactory/name
  valuenyw.dir.DirectoryObjectFactory/value
/parameter
parameter
  nameurl/name
  valuehttp://localhost:13001/property/value
/parameter
  /ResourceParams
  Resource name=nyw/xmltranslator auth=Container 
type=nyw.ui.XMLTranslator/
  ResourceParams name=nyw/xmltranslator
parameter
  namefactory/name
  valuenyw.ui.XMLTranslatorObjectFactory/value
/parameter
parameter
  namecache/name
  valuefalse/value
/parameter
parameter
  namexsltRoot/name
  valuejndi:/localhost//value
/parameter
parameter
  namefopUserConfig/name

valuec:/cvs-work/dvlp/conf/tomcat-ui/conf/fopUserConfig.xml/value
/parameter
  /ResourceParams
  Resource name=nyw/aodfactory auth=Container 
type=nyw.aod.comm.AODFactory/
  ResourceParams name=nyw/aodfactory
parameter
  namefactory/name
  valuenyw.aod.comm.AODFactoryObjectFactory/value
/parameter
  /ResourceParams
  Resource name=nyw/performancemonitor auth=Container 
type=nyw.util.PerformanceMonitor/
  ResourceParams name=nyw/performancemonitor
parameter
  namefactory/name
  valuenyw.util.PerformanceMonitorObjectFactory/value
/parameter
  /ResourceParams
  Resource name=mail/session auth=Container 
type=javax.mail.Session/
  ResourceParams name=mail/session
parameter
  namemail.smtp.host/name
  valuep1.netyourwork.com/value
/parameter
  /ResourceParams
/Context

Context path=/fileupload
 docBase=c:/cvs-work/dvlp/bin/fileupload
 reloadable=true
  Resource name=nyw/directory
auth=Container
type=nyw.dir.Directory/
  ResourceParams name=nyw/directory
parameter
  namefactory/name
  valuenyw.dir.DirectoryObjectFactory/value
/parameter
parameter
  nameurl/name
  valuehttp://localhost:13001/property/value
/parameter
  /ResourceParams
  Resource name=nyw/aodfactory
auth=Container
type=nyw.aod.comm.AODFactory/
  ResourceParams name=nyw/aodfactory
parameter
  namefactory/name
  valuenyw.aod.comm.AODFactoryObjectFactory/value
/parameter
  /ResourceParams
  Resource name=nyw/performancemonitor
auth=Container
   

IIS mod_jk2 2.0.4 Bug???

2004-03-30 Thread E Cunningham

We just downloaded the recently released 2.0.4 mod_jk2

connector and found a bug. 

Upload a binary document that is larger than 48K 
using a servlet that has been well tested for a few
years against straight Tomcat, mod_jk and previous
versions of mod_jk2 (v2.0.3) for both IIS and NSAPI. 
Then download using another well tested servlet only 
to find that the document was corrupted.

Documents are missing 4 bytes at the 48305, 48318, or
48320 byte marker (varies depending on attempt;
reproduced with the same file uploaded several times.

We have not verified this yet using stock Tomcat
(4.1.29) and the stock doc upload servlet. 

Is there some sort of new configuration that is needed

to accompany this point release of mod_jk2?

thanks,
e




__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



restarting tomcat

2004-03-30 Thread naryam naryam
Hi,
 
Is it true that each time a java servlet changes the tomcat  servlet engine must be 
restarted.  
 
Does it mean that each time we need to recompile, we need also to restart the engine?
 
Chris


-
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

RE: restarting tomcat

2004-03-30 Thread Rob Ross
That's a great question! I was about to ask a very similar question myself.

If you make changes to a JSP file, that means that file has to be
recompiled, first to a .java file, then by javac to a .class file, which is
really a Servlet. So, does changing a JSP file mean the Tomcat web app to
which it belongs is also reloaded?

Rob

 -Original Message-
 From: naryam naryam [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 30, 2004 8:28 PM
 To: [EMAIL PROTECTED]
 Subject: restarting tomcat
 
 
 Hi,
  
 Is it true that each time a java servlet changes the tomcat  
 servlet engine must be restarted.  
  
 Does it mean that each time we need to recompile, we need 
 also to restart the engine?
  
 Chris
 
 
 -
 Do you Yahoo!?
 Yahoo! Finance Tax Center - File online. File on time.
 

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



RE: restarting tomcat

2004-03-30 Thread Karl Coleman
I don't know the why's. I just know that a change to a JSP doesn't require
a restart but a change to a class file does.

Karl


 That's a great question! I was about to ask a very similar
 question myself.

 If you make changes to a JSP file, that means that file has to be
 recompiled, first to a .java file, then by javac to a .class
 file, which is
 really a Servlet. So, does changing a JSP file mean the Tomcat web app to
 which it belongs is also reloaded?

 Rob

  -Original Message-
  From: naryam naryam [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 30, 2004 8:28 PM
  To: [EMAIL PROTECTED]
  Subject: restarting tomcat
 
 
  Hi,
 
  Is it true that each time a java servlet changes the tomcat
  servlet engine must be restarted.
 
  Does it mean that each time we need to recompile, we need
  also to restart the engine?
 
  Chris
 
 
  -
  Do you Yahoo!?
  Yahoo! Finance Tax Center - File online. File on time.
 

 -
 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: restarting tomcat

2004-03-30 Thread Duncan Krebs
I also know that there are different types of debugging modes that you can
run Tomcat it that do not require a restart for a .class file change.
- Duncan

- Original Message -
From: Karl Coleman [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 10:43 PM
Subject: RE: restarting tomcat


 I don't know the why's. I just know that a change to a JSP doesn't
require
 a restart but a change to a class file does.

 Karl

 
  That's a great question! I was about to ask a very similar
  question myself.
 
  If you make changes to a JSP file, that means that file has to be
  recompiled, first to a .java file, then by javac to a .class
  file, which is
  really a Servlet. So, does changing a JSP file mean the Tomcat web app
to
  which it belongs is also reloaded?
 
  Rob
 
   -Original Message-
   From: naryam naryam [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 30, 2004 8:28 PM
   To: [EMAIL PROTECTED]
   Subject: restarting tomcat
  
  
   Hi,
  
   Is it true that each time a java servlet changes the tomcat
   servlet engine must be restarted.
  
   Does it mean that each time we need to recompile, we need
   also to restart the engine?
  
   Chris
  
  
   -
   Do you Yahoo!?
   Yahoo! Finance Tax Center - File online. File on time.
  
 
  -
  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: Configuring Tomcat on different IP's

2004-03-30 Thread UmamaheswarKalluru




Doug,
I am finally getting something to work after doing lot of experiments. Now
the issue is
1)It does not work with http://localhost, seems to be a problem with my
DNS.
2)It works with http://172.27.2.44

This address (172.27.2.44) is defined in the first service and the host
tag has a context as
  Context path= docBase=/IBS1 debug=0
  /Context
Look its IBS1. This context has an index.jsp file which just fwd the
request to https://172.27.2.246/IBS/Login.jsp

This address (172.27.2.246) is defined in  the second service and the
host tag has a context as
  Context path= docBase=/IBS debug=0
  /Context
Look its IBS now. This context has all the files that needs to run under
https.

3)Now when the user logs in using https://172.27.2.246/IBS/Login.jsp he
goes to https://172.27.2.246/IBS/d1.jsp

4)When the user changes the port to HTTP (in the address bar of the
browser) and doesnt change the IP address as http://172.27.2.246
/IBS/d1.jsp, then the user gets cannot find server. This is perfect.

5)When the user changes the port to HTTP and change the IP address (in the
address bar of the browser) as http://172.27.2.44/IBS/d1.jsp,  as I am
internally checking for the session, the programme finds the session is
invalid and sends him to (HTTP Login page) http://172.27.2.44
/IBS/Login.jsp. Now the user still can access my IBS context files using
http protocol and 80 port.

Now see this IP configuration (172.27.2.44) on port 80 has got a context
reference of IBS1 and it still supports IBS context that is on port 443.

It seems to me that Tomcat 5 is still internally checking for the contexts
somewhere else other than the server.xml file. If we can disable that then
it should work fine.

Can I know from where the Tomcat is reading the default context? So that
I can disable them? or if there is any better solution to this please help
me out.

Thank you,
Best Regards,
Uma




   
 Parsons  
 Technical 
 Services  To 
 parsonstechnical 
 @earthlink.net   Tomcat Users List 
   [EMAIL PROTECTED]
 03/30/2004 06:58   cc 
 PM
   
   
 Please respond to 
   Tomcat Users   
   List   Subject 
 [EMAIL PROTECTED] Re: Configuring Tomcat on different 
  rta.apache.org  IP's
   
   
   
   
   
   




Uma,

This has moved beyond my experiance. Other than experimenting or diving
into
the source what I suggest now is to reply to this post and edit the subject
line to read:

Two service on one Tomcat instance.[Was Re: Configuring Tomcat on different
IP's]

In the hope that someone with more information will respond.

You may try google with a search based on tomcat and two or multiple
service.

Sorry I ran out of ideas.

Doug


- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 29, 2004 11:50 PM
Subject: Re: Configuring Tomcat on different IP's






 Doug,
 I fogot to tell you that the first context has only one .jsp file. Here
is
 the content of that index.jsp file

 %
 response.sendRedirect(https://172.27.2.246/IBS/Login.jsp;);
 %

 Thanks
 Uma


 -
 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]



Tomcat5 vs Tomcat3

2004-03-30 Thread Kayley Ma
Hi,

What are the major differences between tomcat 3 vs tomcat 5?  what are the
advantages of version 5 vs 3?  our institute is trying to decide as to
whether or not to upgrade our system.

thx!
Kay



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



RE: Tomcat5 vs Tomcat3

2004-03-30 Thread Ramachandran
Hi,

This is an Application Server and also Pooling is maintained. So the
application running under this server eill be very fast compared to tomcat 3

-Original Message-
From: Kayley Ma [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 10:24 AM
To: Tomcat Users List
Subject: Tomcat5 vs Tomcat3


Hi,

What are the major differences between tomcat 3 vs tomcat 5?  what are the
advantages of version 5 vs 3?  our institute is trying to decide as to
whether or not to upgrade our system.

thx!
Kay



-
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]



  1   2   >