Re: Tomcat 4.1 HttpServletRequest.getServerPort() returns incorrect port ?

2004-05-12 Thread Bill Barker

Ryan Lissack [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 In our setup we have a hardware load-balancer which forwards normal
requests
 to our cluster of Tomcat servers.  For SSL requests, the load balancer
first
 forwards to an hardware SSL accelerator and then on to one of our Tomcat
 servers.  Each Tomcat instance has 2 connectors configured.

 For normal requests, clients connect to load balancer on port 80 and the
 load balancer then forwards the request to a Tomcat instance on port 8800.

 For secure requests, clients connect to the load balancer on port 443, the
 load balancer then forwards to the SSL accelerator and then the load
 balancer forwards to a Tomcat instance on port 8801.

 The problem I am having is that the getServerPort method *always* returns
80
 for all requests even though I know they were received on either port 8800
 or 8801 (netstat also confirms this).  If I connect directly to the
servers
 (http://server:8800), the port is correctly reported.

 I can access the correct port by inspecting the incoming requests using
 reflection (request.request.connector.port) but this is obviously far from
 ideal (non-portable etc).

 Does anyone have an idea why this is occurring or perhaps a way around the
 problem ?

This is occurring because getServerPort returns the value that the request
was sent to (i.e. the value in the 'Host' HTTP header).  This is necessary
so that it is possible to form URLs that refer back to the server (e.g.
response.sendRedirect).

The way around the problem is to upgrade to Tomcat 5, and use
request.getLocalPort.  This returns the port that the request was received
on.


 Thanks,
 Ryan.

 Tomcat 4.1.24, Sun Java 1.4.2, RedHat 9




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



Re: error starting tomcat5

2004-05-12 Thread Bill Barker

Steven Garrett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 Thanks to those of you who helped me with my previous server.xml include
 file issue, that worked out like a charmeventually :)

 Anyways, we're testing out tomcat5 on a RedHat 9 box and I keep getting
this
 error message.

 java.lang.NoClassDefFoundError: org/apache/commons/modeler/BaseModelMBean

 All I've been able to find so far is that this is supposedly part of the
 catalina.jar (not very helpful I know).  all I'm trying to do is to get
 tomcat to start at this point.  Any suggestions on how to debug this or if
 anyone knows what's wrong that would be great.  Please let me know if you
 need any further information.


Actually, it is supposed to be part of commons-modeler.jar which should be
living in $CATALINA_HOME/server/lib.

 Thanks,

 Steve




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



tomcat, SSL and multiple urls

2004-05-12 Thread ian
Hi. Is it possible for tomcat to have multiple domain names connecting
thru SSL? For example, my tomcat-5.0.19 is hosted on a server with
202.10.11.12 as its public IP. This IP can be accessed thru either
www.myserver1.net or www.myserver2.net. All connections can only go thru
SSL (https). Is this possible? If so, how do I configure tomcat's
keystore? 
Thanks in advance.

- ian




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



RE: tomcat, SSL and multiple urls

2004-05-12 Thread Shane Linley
The SSL protocol demands that the domain recorded within the SSL certificate
is the same as the domain thru which the SSL connection is obtained.
Otherwise the SSL connection negotiation will fail. This is to avoid the
nastiness of hijacking and whatnot. To use the 2 different domains that you
have you will need 2 different SSL certificates, taking into account the
limitations in the web server et all to handle multiple SSL certificates for
different domains etc.

My memory is a little fuzzy on this area as its been a while since I've had
to think about it so take some salt with this :)

Alternativly if you had a redirector or load balancer of some kind sitting
in front of your web server you could have a SSL certifcate bound to a more
generic domain like www.myserver.net, and have the redirector/balancer dish
out the requests to www.myserver1.net and www.myserver2.net while still
supporting the SSL. I don't know how Tomcats load balancing works with
SSL...

But then i'm not a network architect either... so more salt..

Regards,
Shane.


-Original Message-
From: ian [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 12 May 2004 2:41 PM
To: 'Tomcat Users List'
Subject: tomcat, SSL and multiple urls


Hi. Is it possible for tomcat to have multiple domain names connecting
thru SSL? For example, my tomcat-5.0.19 is hosted on a server with
202.10.11.12 as its public IP. This IP can be accessed thru either
www.myserver1.net or www.myserver2.net. All connections can only go thru
SSL (https). Is this possible? If so, how do I configure tomcat's
keystore?
Thanks in advance.

- ian




-
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: having webapp reachable at two URLs

2004-05-12 Thread Mats Henrikson
Tim, Mike,

  If you use Apache in front with jk, could you supply two different
  jkmount directives ?  (I'm actually asking a question, since I don't
  know).  ;)

 No. Jk can't rewrite the request. But mod_rewrite can.
 
 In fact - based on the problem below - using mod_rewrite would probably be 
 the easiest.

Aha, you have figured out what I am trying to do then, and now this
email will get a bit more complex...

I'm using Apache2 and mod_jk to connect to Tomcat. The reason I need the
webapp deployed at two different URL's in Tomcat is that I need two
different Location blocks in Apache to deal with two different ways of
authenticating users. 

Like you said though, I haven't found a way to do this using mod_jk,
which would be the best and simplest way to do it otherwise. 

So, I looked into mod_rewrite, and successfully managed to set it up so
that I can reach the webapp from two different URL's, and mod_rewite
then forwards to the same JkMount. However, the mod_rewrite directives
are evaluated very early in the connection process, before any
Location blocks are considered. This means that by the time Apache
starts thinking about which Location block to use, the URL has already
been rewritten, and so the same block is considered no matter which
initial URL was used by the user, effectively bypassing the extra
Location I wanted them to go through.

So I gave up on the mod_rewrite, and started considering if I could
deploy the same context at two different URL's in Tomcat instead, but if
anybody has a better idea which might work please speak up!

Regards,
-- 
Mats Henrikson
Unix Systems Programmer
Systems Development  Support
Oxford University Computing Services


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



RE: tomcat, SSL and multiple urls

2004-05-12 Thread ian
This setup is actually not for load balancing. We just had a bad
experience yesterday wherein a supposed world class data center here
failed to pay their bills resulting to forfeit their registration for
their domain names, 2 of which were ours. Because of this our services
were inaccessible to all our clients. To prevent another event like
this, I was thinking of having another domain name for our server hosted
on a different DNS. I'm just not sure whether tomcat can handle multiple
SSL certificates. If so, how do I configure it?
Thanks for your reply.

- ian


-Original Message-
From: Shane Linley [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 12, 2004 2:53 PM
To: Tomcat Users List
Subject: RE: tomcat, SSL and multiple urls

The SSL protocol demands that the domain recorded within the SSL
certificate
is the same as the domain thru which the SSL connection is obtained.
Otherwise the SSL connection negotiation will fail. This is to avoid the
nastiness of hijacking and whatnot. To use the 2 different domains that
you
have you will need 2 different SSL certificates, taking into account the
limitations in the web server et all to handle multiple SSL certificates
for
different domains etc.

My memory is a little fuzzy on this area as its been a while since I've
had
to think about it so take some salt with this :)

Alternativly if you had a redirector or load balancer of some kind
sitting
in front of your web server you could have a SSL certifcate bound to a
more
generic domain like www.myserver.net, and have the redirector/balancer
dish
out the requests to www.myserver1.net and www.myserver2.net while still
supporting the SSL. I don't know how Tomcats load balancing works with
SSL...

But then i'm not a network architect either... so more salt..

Regards,
Shane. 



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



Re: maxThreads

2004-05-12 Thread Endre Stølsvik
On Mon, 10 May 2004, Hollerman Geralyn M wrote:

| Evidently, I'm misunderstanding something about the maxThreads attribute
| on the HTTP Connector; I saw from the docs that in Tomcat 5.0.19, this
| is the maximum number of request processing threads to be created by
| this connector. So, what that said to me was that if I wanted to allow
| lots of requests, I ought to make that number larger than the default,
| which the docs say is 200. I also assumed that this attribute,
| maxThreads, is similar to the maxProcessors attribute that was used
| in, for instance, Tomcat 4.0.4. When we were using Tomcat 4.0.4, we
| often got the message No processor available, rejecting this
| connection, and the way I was told to correct that error was to
| increase maxProcessors, and this worked fine. But to correct another
| problem, we were told to upgrade to 4.1.24, and then to 5.0.16.
|

The new tomcat code have (finally!) an idea of connection queues, so that
you can have 2 processors, but 1 queue-entries, and you won't get the
connection refused crap message, but instead the connectin will be
queued untill a processor is available.
  This is possible due to the way TCP works - one thread can keep on
receiving connections, but not handle them and instead stack them into a
queue - then there's another thread dispatching this queue to the
workers/processors as they become available. (Not that this is exactly as
tomcat have done it, but this is the general idea)

Endre.


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



Off Topic - Java Graphing Package

2004-05-12 Thread Andy Eastham
Hi,

Sorry this is a bit off topic, but can anyone recommend an open source or
freeware toolkit for building bar charts and graphs in java?

I am going to use it within Tomcat, but I could probably use something
that's aimed at applets if I had the source code.

Thanks to anyone who responds.

Best regards,

Andy



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



RE: Off Topic - Java Graphing Package

2004-05-12 Thread Ryan Lissack
Hi,

This might help :

http://www.manageability.org/blog/stuff/open-source-structured-graphics-libr
aries-in-java/view

Ryan.

-Original Message-
From: Andy Eastham [mailto:[EMAIL PROTECTED]
Sent: 12 May 2004 10:41
To: 'Tomcat Users List'
Subject: Off Topic - Java Graphing Package


Hi,

Sorry this is a bit off topic, but can anyone recommend an open source or
freeware toolkit for building bar charts and graphs in java?

I am going to use it within Tomcat, but I could probably use something
that's aimed at applets if I had the source code.

Thanks to anyone who responds.

Best regards,

Andy



-
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 4.1 HttpServletRequest.getServerPort() returns incorre ct port ?

2004-05-12 Thread Ryan Lissack
Hi Bill,

Thanks for the clarification.

Best regards,
Ryan.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Barker
Sent: 12 May 2004 07:22
To: [EMAIL PROTECTED]
Subject: Re: Tomcat 4.1 HttpServletRequest.getServerPort() returns
incorrect port ?



Ryan Lissack [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 In our setup we have a hardware load-balancer which forwards normal
requests
 to our cluster of Tomcat servers.  For SSL requests, the load balancer
first
 forwards to an hardware SSL accelerator and then on to one of our Tomcat
 servers.  Each Tomcat instance has 2 connectors configured.

 For normal requests, clients connect to load balancer on port 80 and the
 load balancer then forwards the request to a Tomcat instance on port 8800.

 For secure requests, clients connect to the load balancer on port 443, the
 load balancer then forwards to the SSL accelerator and then the load
 balancer forwards to a Tomcat instance on port 8801.

 The problem I am having is that the getServerPort method *always* returns
80
 for all requests even though I know they were received on either port 8800
 or 8801 (netstat also confirms this).  If I connect directly to the
servers
 (http://server:8800), the port is correctly reported.

 I can access the correct port by inspecting the incoming requests using
 reflection (request.request.connector.port) but this is obviously far from
 ideal (non-portable etc).

 Does anyone have an idea why this is occurring or perhaps a way around the
 problem ?

This is occurring because getServerPort returns the value that the request
was sent to (i.e. the value in the 'Host' HTTP header).  This is necessary
so that it is possible to form URLs that refer back to the server (e.g.
response.sendRedirect).

The way around the problem is to upgrade to Tomcat 5, and use
request.getLocalPort.  This returns the port that the request was received
on.


 Thanks,
 Ryan.

 Tomcat 4.1.24, Sun Java 1.4.2, RedHat 9




-
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: Off Topic - Java Graphing Package

2004-05-12 Thread foxgem
jfreechart  cewolf ( it is a taglib for jfreechart).
u can find it at sourceforge.
- Original Message - 
From: Andy Eastham [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 5:41 PM
Subject: Off Topic - Java Graphing Package


 Hi,
 
 Sorry this is a bit off topic, but can anyone recommend an open source or
 freeware toolkit for building bar charts and graphs in java?
 
 I am going to use it within Tomcat, but I could probably use something
 that's aimed at applets if I had the source code.
 
 Thanks to anyone who responds.
 
 Best regards,
 
 Andy
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

RE: Off Topic - Java Graphing Package

2004-05-12 Thread Andy Eastham
Thanks very much - I'll have a go with JFreeChart - it looks perfect on
first glance.

Andy

 -Original Message-
 From: foxgem [mailto:[EMAIL PROTECTED]
 Sent: 12 May 2004 10:58
 To: Tomcat Users List
 Subject: Re: Off Topic - Java Graphing Package
 
 jfreechart  cewolf ( it is a taglib for jfreechart).
 u can find it at sourceforge.
 - Original Message -
 From: Andy Eastham [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, May 12, 2004 5:41 PM
 Subject: Off Topic - Java Graphing Package
 
 
  Hi,
 
  Sorry this is a bit off topic, but can anyone recommend an open source
 or
  freeware toolkit for building bar charts and graphs in java?
 
  I am going to use it within Tomcat, but I could probably use something
  that's aimed at applets if I had the source code.
 
  Thanks to anyone who responds.
 
  Best regards,
 
  Andy
 
 
 
  -
  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: Off Topic - Java Graphing Package

2004-05-12 Thread Andy Eastham
Thanks Ryan.  That's a useful resource.

Andy

 -Original Message-
 From: Ryan Lissack [mailto:[EMAIL PROTECTED]
 Sent: 12 May 2004 10:44
 To: 'Tomcat Users List'
 Subject: RE: Off Topic - Java Graphing Package
 
 Hi,
 
 This might help :
 
 http://www.manageability.org/blog/stuff/open-source-structured-graphics-
 libr
 aries-in-java/view
 
 Ryan.
 
 -Original Message-
 From: Andy Eastham [mailto:[EMAIL PROTECTED]
 Sent: 12 May 2004 10:41
 To: 'Tomcat Users List'
 Subject: Off Topic - Java Graphing Package
 
 
 Hi,
 
 Sorry this is a bit off topic, but can anyone recommend an open source or
 freeware toolkit for building bar charts and graphs in java?
 
 I am going to use it within Tomcat, but I could probably use something
 that's aimed at applets if I had the source code.
 
 Thanks to anyone who responds.
 
 Best regards,
 
 Andy
 
 
 
 -
 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: Configuration free persistence?

2004-05-12 Thread Tim Funk
To get the server info: ServletContext.getServerInfo()

Personally - I would state my webapp needs a directory[or database] to 
write/load its configuration. The directory or datasource would be setup 
using JNDI. Then its up to the system admin to use the Container specific 
functionality to setup the JNDI space. No war file code/config to change.

-Tim

Will Hartung wrote:
This is blasphemy, I know...but...

As far as I know, there is no portable way that a generic Webapp bundled in
a WAR, and dropped into a random container can persist information from one
run of the container to another.
On the one hand, there is no requirement that a WAR be exploded on deploy,
and you certainly can't write to a resource that's bundled in a Jar file.
On the other hand, you can get access to a Temp directory, and persist
information there, but there is no guarantee that the information will be
there when the container restarts.
What this means is that you can not take a portable WAR, plop it into an
arbitrary container, and then let the Webapp self configure with either
reasonable defaults, or even through a web page.
So, in order to get any portable persistence, you must:

a) Explode the WAR, change the web.xml to add/change a parameter, and
rebundle it and then deploy it.
b) Require that a database be present and publish the datasource name that
the web app is looking for, and assume that the user will configure their
container properly (and, of course, your web app must be compatible with
that database).
c) set a system property on the command line telling the Webapp its
persistence information
d) create a less portable Webapp and rely on container specific behaviors
on which you can make assumptions.
Actually, is there even an API that lets the Webapp identify its container?
There must be something somewhere, I just haven't looked.
So, what are you folks trying/doing to make easily deployed WARs that
needs to save setup options or even other real data?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: error sset

2004-05-12 Thread Veniamin Fichin
agarlita,dan wrote:

I have some questions about error customisation.
I want to change the look of 500 Error. (that is
org.apache.jasper.JasperException)
so, I want to redirect all strings to the new page.
so, for example the 404 error is simple becouse we know that is Page Not
Found
but, the 500 Error can report errors like According to the TLD or the tag
file, attribute operation is mandatory for tag sql
how can I send that string (exception string) in the new page?
   First, create custom error page, then mention it in web.xml like this:

error-page
 error-code500/error-code
 location/error.jsp/location!-- Your page name --
/error-page
   (Look at web-app_2_3.dtd to see where you must put it -- the order 
of XML tags is important).
   That page should declare itself as error page (%@ page ... 
isErrorPage=true ... %). When a 500 error occurs, container will 
invoke this page, setting exception scripting variable (JSP 2.0 
section 1.4.3) or javax.servlet.jsp.jspException request attribute 
(JSP 1.2 section 2.4.2) to the appropriate Throwable object.
   To get your exception string, try Throwable.getMessage() .

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


RE: [ANN] The Reference Scanner and Jakarta Tomcat - Heap Profiling, Memory Leaks

2004-05-12 Thread Shapira, Yoav

Hi,
Come on people.  Tomcat5 is built with MX4J because its license is now
OK (and I modified the NOTICE file that ships with tomcat5 accordingly).
If you want to recompile things to need to make sure your classpath is
setup accordingly: either figure it out from the tomcat build file or
nag Senor Baumgaertel to add instructions to his documents.  It's just
like the HttpScanner thing you mentioned: he didn't document the import
statement for that class, but it's fairly obvious.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 12:19 AM
To: Tomcat Users List
Subject: Re: [ANN] The Reference Scanner and Jakarta Tomcat - Heap
Profiling, Memory Leaks

Jacob Kjome wrote:
 At 11:47 PM 5/11/2004 -0400, you wrote:

 Joerg Baumgaertel wrote:

 Hi all,
 because often requested,
 I added a Jakarta-Tomcat-Howto to the 'jb2works.com' website.
 You find the following documents
 - How to scan a Java webapplication
   http://jb2works.com/refscan/tomcat.html
 - How to scan Jakarta-Tomcat full-space
   http://jb2works.com/refscan/tomcatfull.html


 I tried that, but when trying to run tomcat I got:

 Due to new licensing guidelines mandated by the Apache Software
 Foundation Board of Directors, a JMX implementation can no longer
 be distributed with the Apache Tomcat binaries. As a result, you
 must download a JMX 1.2 implementation (such as the Sun Reference
 Implementation) and copy the JAR containing the API and
 implementation of the JMX specification to:
 ${catalina.home}/bin/jmx.jar

 ...which confuses me, because jmx.jar is still where it always was.
 Using the bootstrap.jar that came with tomcat works fine.


 If you use the latest version of Tomcat5, you'll find that this is
not
 an issue.  Download Tomcat-5.0.24.  The implementation of JMX that
said
 version of Tomcat comes with is MX4J which is open source so there is
no
 problem anymore.

 Jake

I am using 5.0.24, and jmx.jar is there.  Tomcat works if I use the
Bootstrap.class that comes with it, but if I recompile Bootstrap.class
per the instructions on http://jb2works.com/refscan/tomcatfull.html it
suddenly gives me that error message.

I can post the jar file if you think that will help.

-
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: Its me

2004-05-12 Thread Technical Support
This is an automated email reply to acknowledge your message to 
Yahoo! Slurp email help.

A number of frequently asked questions regarding Yahoo! Slurp are 
available at:
http://help.yahoo.com/help/us/ysearch/slurp/

Thank you for your interest in Yahoo! Slurp.

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



RE: maxThreads

2004-05-12 Thread Shapira, Yoav

Hi,

The new tomcat code have (finally!) an idea of connection queues, so
that

You just manage to hit a nerve with almost every post ;)  This stuff has
been in tomcat code for years, it's not new.

Yoav



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: Definitive Documentation for RH9, mod_jk2, Apache2 Tomcat 5?

2004-05-12 Thread Shapira, Yoav

Hi,
Definitive in the true sense of the word, no.  Helpful docs are aplenty,
though, on the tomcat wiki (http://wiki.apache.org/jakarta-tomcat)
UsefulLinks page.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Dan Barron [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 6:32 PM
To: Tomcat Users List
Subject: Definitive Documentation for RH9, mod_jk2, Apache2  Tomcat 5?

Hello,

Is anyone aware of any definitive documentation for compiling,
installing,
and configuring mod_jk2 on Red Hat9 with Apache2 and Tomcat5?

Thank you,

Dan Barron


-
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: having webapp reachable at two URLs

2004-05-12 Thread Shapira, Yoav

Hi,
Have you considered tomcat's balancer webapp?  It does the same stuff as
I mentioned before with the filter, only the code is there for you, you
just need to configure it.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Mats Henrikson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 2:54 AM
To: Tomcat Users List
Subject: Re: having webapp reachable at two URLs

Tim, Mike,

  If you use Apache in front with jk, could you supply two different
  jkmount directives ?  (I'm actually asking a question, since I
don't
  know).  ;)

 No. Jk can't rewrite the request. But mod_rewrite can.

 In fact - based on the problem below - using mod_rewrite would
probably
be
 the easiest.

Aha, you have figured out what I am trying to do then, and now this
email will get a bit more complex...

I'm using Apache2 and mod_jk to connect to Tomcat. The reason I need
the
webapp deployed at two different URL's in Tomcat is that I need two
different Location blocks in Apache to deal with two different ways
of
authenticating users.

Like you said though, I haven't found a way to do this using mod_jk,
which would be the best and simplest way to do it otherwise.

So, I looked into mod_rewrite, and successfully managed to set it up so
that I can reach the webapp from two different URL's, and mod_rewite
then forwards to the same JkMount. However, the mod_rewrite directives
are evaluated very early in the connection process, before any
Location blocks are considered. This means that by the time Apache
starts thinking about which Location block to use, the URL has
already
been rewritten, and so the same block is considered no matter which
initial URL was used by the user, effectively bypassing the extra
Location I wanted them to go through.

So I gave up on the mod_rewrite, and started considering if I could
deploy the same context at two different URL's in Tomcat instead, but
if
anybody has a better idea which might work please speak up!

Regards,
--
Mats Henrikson
Unix Systems Programmer
Systems Development  Support
Oxford University Computing Services


-
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: Multihosting in tomcat

2004-05-12 Thread Shapira, Yoav

Hi,

There does not seem to be any documentation for Tomcat in a
multihosting
environment.  The main things which are lacking are the results of
setting
certain parameters too high or too low.

I've also mentioned MANY MANY MANY times why such documentation can be
worse than useless, and actually misleading: it's specific to the
application and the environment being documented.  These characteristics
greatly impact performance and the specific setup is just that:
specific.  Set it up and test/tune repeatedly until you're happy.  Then
if you feel like it post your findings so that other people who think
they're a silver bullet might benefit.

Ex. MaxProcessors (Tomcat 4.1.27)  - we have an issue where one site
will
creep up to 107 thread and be so slow that we have to restart the
service
(JVM Instance.)  Default value is 75 - how does it even get up to 107?
We

75 is the number of processor threads.  There are many others in the
JVM, some related to tomcat and some that are not.  You can use a
profiler, a simple little utility (like the SystemThreadList.java class
I've posted to the list numerous times), or a ctrl-break thread dump to
see what all the threads are.

have been constantly modifiying this along with accept count and
monitoring
trying to figure the best fit.  However, I don't know if this is a good
value to be modifying when you have 20+ sites.

You're going through the right process, assuming you're doing it in a
test environment.

Also please be careful in your usage of site, instance, web
application, context, and related terms.

1) Is Tomcat Standalone (4.1.27 or higher) still a viable
implementation in
a multi-instance scenario?

Yes, we've had such setups in production for years now.

2) What are the ramifications of modifing these parameters in a
multi-instance scenario?

They impact performance directly.  You have to test modifications out in
a test environment before employing them in production.

3) Is anyone willing to join a create a discussion group on this topic
or
should we keep posting our thoughts/concerns here?

Stay here: this is a central source for information about tomcat, it's
widely archived and referenced.

So far the testing of standalone tomcat proves to be ok, however, I am
weary
of changing production because test environment and load tests almost
never
provide the same results as real life :)

If you have little faith in your tests, that's unfortunate.  As long as
they simulate why you think is a realistic load, you'll not only be
fine, but you'll be covered (to higher ups) to a good extent if things
go wrong.

Yoav



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: Requested Resource Not Available

2004-05-12 Thread Shapira, Yoav

Hi,
No problem.  I can diagnose these in my sleep by now ;)  If only I could
get paid for this... Wait a second... lightbulb /


Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Jonathan Quinn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 11:59 PM
To: Tomcat Users List
Subject: RE: Requested Resource Not Available


You nailed it.  My url was wrong.  How silly..

Thanks for the help!

 Original message 
Date: Tue, 11 May 2004 13:35:06 -0400
From: Shapira, Yoav [EMAIL PROTECTED]
Subject: RE: Requested Resource Not Available
To: Tomcat Users List [EMAIL PROTECTED]


Hi,

Having read that similar new users had this kind of problem,
I've stared at the mappings for about 16 hours now, and I

Ouch, 16 hours ;)

   servlet-mapping
   servlet-nameHelloServlet/servlet-name
   url-pattern/my-hello/hello/url-pattern
   /servlet-mapping

With this mapping, you servlet would be accessible at
http://yourhost:yourport/yourWebappName/my-hello/hello.
What URL have
you been trying for accessing the servlet?

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


-
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: full URL

2004-05-12 Thread Shapira, Yoav

Hi,
A = request.getRequestURL().toString()
If(request.getQueryString() != null) {
  A += ?;
  A += request.getQueryString();
}

Lazy half-assed code, but there it is.  BTW, there are no directories in
a URL: it'd be worth your time to read the java.net.URL class JavaDoc
description of what goes into a URL.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: rlipi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 1:54 AM
To: 'Tomcat Users List'
Subject: full URL

Hi,
is it possible to (in servlet or JSP) gain full URL string? It means
protocol, server, directory, parameters, user identification.

There are methods in the servlet that return parts of the URL. But I
didn't find method that returns full URL string.

Than you,
Lipi




-
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: strange memory problem

2004-05-12 Thread Shapira, Yoav

Hi,
That's a good theory.  Another question is are you compiling JSPs
frequently at runtime?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 12:17 AM
To: Tomcat Users List
Subject: Re: strange memory problem

java.lang.OutOfMemoryError is also thrown when java can't start up a
thread because it reached the system limit.  Could that be your
problem?

-
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: Do Filters and the servlets part of the same thread?

2004-05-12 Thread Charles Shubert
I'm assuming that the same things can be said for valves and servlets 
and
that processing of the request is handled by tomcat in some particular 
order.

What is the relationship between a request's thread and a user's 
session?

Is there a good link that describes this processing?

--Chuck

On May 11, 2004, at 2:00 PM, Tim Funk wrote:

Yes. (Kind of). In the life of a request - you are always one one 
thread.

BUT -- Many threads many be using the doFilter() method at the same 
time.

-Tim

tom ly wrote:

Are the servlets and the Filters that filters that particular servlet 
part of the same thread?

-
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.exe w2k Mem limit?

2004-05-12 Thread Shapira, Yoav

Hi,
It's an OS thread limit problem.  On a unix system you'd fix it with the
ulimit command.  On Windoze I don't know.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Stuart Larking [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 9:04 PM
To: '[EMAIL PROTECTED]'
Subject: Tomcat.exe w2k Mem limit?

Anyone hit a limit on TC 4.1.x Mem Usage size (or other unexpected
limit)
with tomcat.exe on w2k?

We are running  TC 4.1.29, which is running as a service using
tomcat.exe.
The -Xmx (on the service in the registry as a JVM Option) is set to
1580m
as
the machine has plenty of RAM and lots of  data (app is memory hungry).

When the Windows Task Manager Mem Usage gets above 600mb (sometimes as
high
as 700mb), tomcat slows to a crawl and a few requests later the server
dies
with the following error in the stderr.log.  The threads get to about
200-260 for the tomcat.exe (MaxProcesses set to 500).


Severe: Caught exception executing
[EMAIL PROTECTED], terminating thread
java.lang.OutOfMemoryError: unable to create new native thread at
java.lang.Thread.start(Native Method)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(Thread
Pool
.
java:630)


We thought it might be related to the native thread pool being set too
high,
so set the -Xss to 16k, but same results.

When we run with the same JVM Options in catalina.bat and launch from
the
startup.bat (run it in the console) the Mem Usage scales over the 1gb
mark
and the threads go to about 800 without any issue as expected.
Unfortunately running it as a console is not a desirable option for us.


Platform details:

Compaq Proliant server
4GB Ram
Windows 2k Server
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Server VM (build 1.4.2_03-b02, mixed mode)
Apache Tomcat v4.1.29
-server
-Xms1580
-Xmx1580
-Xss16k

Any help greatly appreciated.



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: apache, mod_jk, tomcat hungs

2004-05-12 Thread nyhgan
 
 
Exactly. I have been on this user list for months and I still haven't seen anyone 
solve the mod_jk connector issue for apache and tomcat 4.1.x or above.  Now, I switch 
back to use Tomcat3.3 instead because it runs more stable than tomcat4.x and 5.x
 
We can't wait forever like this.  Maybe some experience c++ programmers out there can 
take a look at the source code for mod_jk and see if the problem can be fix.
 
 
Galam.
 
 


Daniel Gibby [EMAIL PROTECTED] wrote:All I can say is you are not alone. Requests of 
our sort never seem to 
be answered, and we've been asking them for months.
Actually, by being answered I'm not saying that people don't post 
replies, I just mean that I don't know of anyone who has fixed this 
issue on their system.

It sure sounds like the same issue that I'm having with mod_jk2 2.0.2, 
apache 2.0.40, tomcat 4.1.30 or tomcat 4.1.27... but I can't be sure 
that it is the same issue. My bet is that most of the tomcat developers 
don't use connectors because they would rather keep things stable, and 
introducing apache into the mix just means one more point of failure.

Sorry I can't be of more help right now. I've tried using JMeter to 
reproduce my lockups, and that hasn't helped me yet.
Is there someone out there who would like to be paid to run a profiler 
on some of my applications? Please contact me off-list, and if you can 
solve my issue, I'll post the results to the list... I'm in contact with 
two or three people from this list that are having the same type of 
issues, and more requests for help come into the list weekly. We'd all 
be happy for the help.

Daniel Gibby

Beat De Martin wrote:

Hello folks
I'm using Tomcat 3.3.1, Apache 1.3.27 and mod_jk 1.2.4.
Every two days my Tomcat hungs and I have to restart it.
Before Tomcat hungs I can see the following in mod_jk.log:
 ERROR: can't receive the response message from tomcat, network problems or
tomcat is down. err=-1
 [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down
or network problems.
 [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable
operation. err=0
 [jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop.
err=0

Any ideas ?
Cheers
Beat

 



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



-
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2' 

RE: Configuration free persistence?

2004-05-12 Thread Shapira, Yoav

Hi,
It's not blasphemy ;)  It's a good question.  Many people take shortcuts
/ cut corners to get around this ;)

b) Require that a database be present and publish the datasource name
that
the web app is looking for, and assume that the user will configure
their
container properly (and, of course, your web app must be compatible
with
that database).

This option is the one most inline with the J2EE specification and
spirit.  Some people go further and include a DB with their application
(e.g. MySQL, or postgreSQL), and then require the client/sysadmin to
configure a directory where the DB can write.  This is similar to your
system property approach (option c in your original post).

Here's another take that's not seen often, but is intriguing: the
java.util.prefs API.  It uses the Registry on Windows, and the
filesystem on unix, by default, but that can be changed.  If you're
running on Windows this is a decent approach (but then again if you're
only running on windows you might make a whole set of choices based on
that).

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]



Using jasper with web application in .war file

2004-05-12 Thread Dennis Thrysøe
Hi,

I'm trying to figure out whether jasper can be used with a web 
application that's still in it's war file (unexploded)?

A classpath for jasper can be specified, but it seems that only direct 
filenames can be specified here and not - for instance - a jar URL.

Any suggestions for using jasper without unpacking the web application 
are welcome.

TIA,

-dennis

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


RE: symLinks broken in tomcat 5.0.19

2004-05-12 Thread Shapira, Yoav

Hi,

Host name=www.domain.com debug=0 appBase=/home/team
unpackWARs=true
Context path=
 docBase=/home/team

Do you really want the Host appBase to be the same as the context
docBase?

   Resources
className=org.apache.naming.resources.FileDirContext
allowLinking=true

At one I point I thought this was no longer needed in tomcat5, and was
replaced by an allowLinking attribute elsewhere (the Context itself
maybe)?  It definitely changed from tomcat 4 to tomcat 5.  Our internet
access is messed up at the moment so I don't have access to tomcat's
configuration reference, but take a look there.

Yoav



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: apache, mod_jk, tomcat hungs

2004-05-12 Thread Beat De Martin
 Before you restart, what sort of forensics do you do? e.g.
 - check whether the Tomcat process really is unavailable
 - check network connectivity between Apache/Tomcat
 - check limits on the Tomcat and Apache processes, such as number
   of open sockets
My tomcat process is ruunig, I can access it locally.
It doesn't seem taht there are too many tomcat threads.

My workers.properties file has the following parameters:
worker.estudiodb.cachesize=200
worker.estudiodb.cache_timeout=300
worker.estudiodb.socket_keepalive=1
worker.estudiodb.socket_timeout=300

In server.xml I have:
 Ajp13Connector port=8009 tomcatAuthentication=false maxThreads=150
maxSpareThreads=50 minSpareThreads=10 /

In httpd.conf I have:
MaxRequestsPerChild 200
MaxClients 150

Are my settings bad ?
Cheers
Beat De Martin
Zürich, Switzerland

 On Tue, May 11, 2004 at 12:26:47PM +0200, Beat De Martin wrote:
 : I'm using Tomcat 3.3.1, Apache 1.3.27 and mod_jk 1.2.4.
^
 Do you have a test system on which you can try out Tomcat 4.1 or 5?
 Even if you've found a legit Tomcat 3.x bug, IIRC that product is not
 under active development...
 
 
 : Every two days my Tomcat hungs and I have to restart it.
 : Before Tomcat hungs I can see the following in mod_jk.log:
 :  ERROR: can't receive the response message from tomcat, network problems
 or
 : tomcat is down. err=-1
 :   [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is
 down
 : or network problems.
 :   [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed,
 recoverable
 : operation. err=0
 :  [jk_ajp_common.c (1309)]: sending request to tomcat failed in send
 loop.
 : err=0
 
 Before you restart, what sort of forensics do you do? e.g.
 - check whether the Tomcat process really is unavailable
 - check network connectivity between Apache/Tomcat
 - check limits on the Tomcat and Apache processes, such as number
   of open sockets
 
 etc., etc., etc.
 
 -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]
 

-- 
Sie haben neue Mails! - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info


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



RE: Definitive Documentation for RH9, mod_jk2, Apache2 Tomcat 5?

2004-05-12 Thread Dan Barron
Thanks.

I came across a link that is the best I have seen so far:

http://www.reliablepenguin.com/clients/misc/tomcat/

At 06:02 AM 5/12/2004, Shapira, Yoav wrote:

Hi,
Definitive in the true sense of the word, no.  Helpful docs are aplenty,
though, on the tomcat wiki (http://wiki.apache.org/jakarta-tomcat)
UsefulLinks page.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Dan Barron [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 6:32 PM
To: Tomcat Users List
Subject: Definitive Documentation for RH9, mod_jk2, Apache2  Tomcat 5?

Hello,

Is anyone aware of any definitive documentation for compiling,
installing,
and configuring mod_jk2 on Red Hat9 with Apache2 and Tomcat5?

Thank you,

Dan Barron


-
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: How to limit time for Connector threads?

2004-05-12 Thread rlipi
Hi Antonio,
your suggestion helped me. Thank you. But I expected bug in our code.
Instead of it, it is somewhere else -
java.net.SocketOutputStream.socketWrite0. And I don't know why.

Some background in the beginning: Our application has one instance
MainServlet. Every request (except of pictures, css, js and so on)
goes to its processRequest method. This method is synchronized. Hence,
only one request can be served in one moment. I know it is strange. But
it is.

I wrote some code to watch behavior of this method. I log start time,
end time, requested url.

We wrote script on Linux that tries to connect this site. In case of the
problem it makes snapshot of system and downloads server status from
manager app, sends kill -QUIT. Then it restarts catalina.

So, I have four samples. You can download them at
http://info.vsb.cz/test/problem.zip. There are three files for every
sample. In catalina_critical.out is result of kill -QUIT, in
portal_vsb...txt are starts and ends and url from the processRequest
method, in the server_status...html is snapshot of server status from
manager app.

In catalina_critical.out you can find that a few threads are waiting for
the monitor of processRequest method. One thread is runnable. In all
four cases the last method in the stack trace is
java.net.SocketOutputStream.socketWrite0(). You can see example below.
As the server status say, this thread is executed up 100 seconds. I
think, this is the reason of problems. But I don't know why it occurs
and how to solve it.



http8080-Processor45 daemon prio=1 tid=0x62b429b0 nid=0x2a07 runnable
[b71fe000..b71ff908]
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOut
putBuffer.java:757)
at
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:436)
at
org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer
.java:347)
at
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:959
)
at org.apache.coyote.Response.action(Response.java:226)
at
org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:369)
at
org.apache.coyote.tomcat5.OutputBuffer.flush(OutputBuffer.java:340)
at
org.apache.coyote.tomcat5.CoyoteWriter.flush(CoyoteWriter.java:117)
at
publisher.web.servlets.MainServlet.processRequest(MainServlet.java:213)
- locked 0x471933c8 (a publisher.web.servlets.MainServlet)
at
publisher.web.servlets.MainServlet.doGet(MainServlet.java:226)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:284)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:204)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:257)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
67)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:245)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:199)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:509)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
67)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:184)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:151)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:164)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:
463)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
67)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:156)
at

runtime compilation request

2004-05-12 Thread Daniel Gibby
I'm wondering if tomcat has a feature that allows runtime compilation to 
be turned off and on without restarting a webapp.
Here's why I think it would be a great feature:

I've really wanted to be able to switch off runtime compilation on my 
tomcat servers, but every once in a while I find it really useful to 
have runtime compilation be on so that I can make a small change to one 
or two .jsp files.

There are definite pros to having runtime compilation off:
Issues with memory don't seem to creep up as much.
The webapps run faster since they don't have to check whether things 
need to be compiled (small slow-down)
The webapps run faster because they don't have to compile code (takes a 
while sometimes)
etc.

There are also definite pros to having runtime compilation on:
No need to restart entire webapp for small changes.
That means that the webapp is more easily kept available which is very 
important on some sites.
etc.

It would be great if one could leave it off most of the time, until a 
jsp change is made. Then switch it on, request that jsp, and switch it 
back off.
So, I'm wondering if tomcat has a feature that allows runtime 
compilation to be turned off and on without restarting a webapp.

I guess this question probably boils down to what access the specs allow 
for outside access to running webapps. For example, how does the tomcat 
/manager application know how many sessions a running webapp has? Also 
what process does it follow when the reload command is ran?
I suppose that I just need to know whether a webapp is available during 
a reload application. Maybe I should look into that? If I could just 
change the runtime compilation value in my web.xml and then run the 
reload command, that might be an option.

However, it takes my applications around a minute to either shutdown or 
startup, so that would mean two minutes of downtime if all a reload does 
is stop and wait until it is down and then start again, which is what 
I'm betting that it does. That would mean that my webapps cacheing, etc. 
would have to start from scratch... :-( and a big performance hit would 
occur just to make a small change.

Thanks for listening!
Daniel Gibby
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Definitive Documentation for RH9, mod_jk2, Apache2 Tomcat 5?

2004-05-12 Thread Shapira, Yoav

Hi,
Is it on our wiki?  If not, can you please add it?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Dan Barron [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 10:15 AM
To: Tomcat Users List
Subject: RE: Definitive Documentation for RH9, mod_jk2, Apache2 
Tomcat 5?

Thanks.

I came across a link that is the best I have seen so far:

http://www.reliablepenguin.com/clients/misc/tomcat/


At 06:02 AM 5/12/2004, Shapira, Yoav wrote:

Hi,
Definitive in the true sense of the word, no.  Helpful docs are
aplenty,
though, on the tomcat wiki (http://wiki.apache.org/jakarta-tomcat)
UsefulLinks page.

Yoav Shapira
Millennium Research Informatics


 -Original Message-
 From: Dan Barron [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 11, 2004 6:32 PM
 To: Tomcat Users List
 Subject: Definitive Documentation for RH9, mod_jk2, Apache2  Tomcat
5?
 
 Hello,
 
 Is anyone aware of any definitive documentation for compiling,
installing,
 and configuring mod_jk2 on Red Hat9 with Apache2 and Tomcat5?
 
 Thank you,
 
 Dan Barron
 
 

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




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: Do Filters and the servlets part of the same thread?

2004-05-12 Thread Shapira, Yoav

Hi,

What is the relationship between a request's thread and a user's
session?

No strict 1:1 relationship, that's for sure.  A session may further be
accessed by multiple threads at the same time (e.g. if the user has
multiple browsers using the same webapp at the same time).  I don't
think there's a rigid definition answer to your question.

Is there a good link that describes this processing?

Yes, the servlet specification.

Yoav



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: Definitive Documentation for RH9, mod_jk2, Apache2 Tomcat 5?

2004-05-12 Thread Daniel Gibby
I don't see the 'Useful Links' page that you speak of...
I think you meant the page that is called Tomcat Links

At 06:02 AM 5/12/2004, Shapira, Yoav wrote:

   

Hi,
Definitive in the true sense of the word, no.  Helpful docs are
 

aplenty,
 

though, on the tomcat wiki (http://wiki.apache.org/jakarta-tomcat)
UsefulLinks page.
Yoav Shapira
Millennium Research Informatics
 



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


RE: having webapp reachable at two URLs

2004-05-12 Thread Mats Henrikson
Yoav,

 Have you considered tomcat's balancer webapp?  

Hmmm, no, I am still using Tomcat4 so I didn't actually know it existed,
the docs make it look interesting though. 

 It does the same stuff as
 I mentioned before with the filter, only the code is there for you, you
 just need to configure it.

Which sounds like altogether a much better idea. 

I will check it out, thanks for the tip!

Mats


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



Re: tomcat clustering

2004-05-12 Thread Filip Hanik - Dev
I don't think you have even enabled clustering,
did you put distributable/ in the web.xml file?

also, all session attributes must be serializable

Filip
- Original Message -
From: keita elhadji [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 3:57 AM
Subject: Re: tomcat clustering



Hi,

Thank you for your answer now it's working in my log i
have now :

2004-05-11 10:04:21
StandardContext[/jsp-examples]ContextListener:
contextInitialized()
2004-05-11 10:04:21
StandardContext[/jsp-examples]SessionListener:
contextInitialized()
2004-05-11 10:04:24
StandardContext[/servlets-examples]ContextListener:
contextInitialized()
2004-05-11 10:04:25
StandardContext[/servlets-examples]SessionListener:
contextInitialized()
2004-05-11 10:06:42
StandardContext[/jsp-examples]SessionListener:
sessionCreated('9BC1CA057DB6D0ADAB176D1D1B266CC2.tomcat')
2004-05-11 10:07:07
StandardContext[/jsp-examples]SessionListener:
attributeAdded('9BC1CA057DB6D0ADAB176D1D1B266CC2.tomcat',
'ja
vax.servlet.jsp.jstl.fmt.request.charset', 'null')
2004-05-11 10:07:40
StandardContext[/jsp-examples]SessionListener:
attributeReplaced('9BC1CA057DB6D0ADAB176D1D1B266CC2.tomcat',
'javax.servlet.jsp.jstl.fmt.request.charset', 'UTF-8')

that's mean it's working or not ?
thank you for answer.


--- Filip Hanik - Dev [EMAIL PROTECTED] a écrit : 
Caused by: java.io.NotSerializableException:


 - Original Message -
 From: keita elhadji [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, May 10, 2004 4:52 AM
 Subject: tomcat clustering


 Hi,

 i have a problem with mod_jk2 .
 I have two PC  with tomcat5.019
 1st PC name is : www.avisdunet.biz
 2nd PC name is : www1.avisdunet.biz

 mod_jk2 and apache2 in the first when i start tomcat
 my clustering didn't work and i don't know why and
 in
 my logs catalina.out :

 10 mai 2004 11:30:15
 org.apache.coyote.http11.Http11Protocol init
 INFO: Initialisation de Coyote HTTP/1.1 sur le port
 8080
 10 mai 2004 11:30:17
 org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 48211 ms
 10 mai 2004 11:30:22
 org.apache.catalina.core.StandardService start
 INFO: Démarrage du service Catalina
 10 mai 2004 11:30:22
 org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
 10 mai 2004 11:30:23
 org.apache.catalina.core.StandardHost start
 INFO: XML validation disabled
 10 mai 2004 11:30:23
 org.apache.catalina.cluster.tcp.SimpleTcpCluster
 start
 INFO: Cluster is about to start
 10 mai 2004 11:30:24
 org.apache.catalina.cluster.mcast.McastService start
 INFO: Sleeping for 2000 secs to establish cluster
 membership
 10 mai 2004 11:30:26
 org.apache.catalina.core.StandardHost getDeployer
 INFO: Create Host deployer for direct deployment (
 non-jmx )
 10 mai 2004 11:30:27
 org.apache.catalina.core.StandardHostDeployer
 install
 INFO: Installation d'une application pour le chemin
 de
 contexte /pro depuis l'URL
 file:/usr/local/java/tomcat/webapps/pro
 10 mai 2004 11:30:43
 org.apache.catalina.session.StandardManager doLoad
 GRAVE: IOException lors du chargement des sessions
 persistantes: java.io.WriteAbortedException: writing
 aborted; java.io.No$
 java.io.WriteAbortedException: writing aborted;
 java.io.NotSerializableException:
 com.avisdunet.ServeurFond
 at

java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
 at

java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
 at

java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
 

 Caused by: java.io.NotSerializableException:
 com.avisdunet.ServeurFond
 at

java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
 at

java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
 at

java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
 at

java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
 at

java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
 at

java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
 at

java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
 at

java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)

 Resolving to alternate DTD

'file:/usr/local/java/jakarta-tomcat-5.0.19/work/Standalone/localhost/pro/loader/org/apache/strut$
 Call

org.apache.struts.action.ActionServlet.addServletMapping(monActionServlet/java.lang.String,*.action/java.lang.String)
 Call

org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.String,*.do/java.lang.String)
 10 mai 2004 11:30:56
 org.apache.catalina.core.StandardHostDeployer
 install
 INFO: Installation d'une application pour le chemin
 de
 contexte  depuis l'URL
 file:/usr/local/java/jakarta-tomcat-5.0.19/weba$
 10 mai 2004 11:30:59
 

Re: [ANN] The Reference Scanner and Jakarta Tomcat - Heap Profiling, Memory Leaks

2004-05-12 Thread Jacob Kjome
Quoting Joseph Shraibman [EMAIL PROTECTED]:

 Jacob Kjome wrote:
  At 11:47 PM 5/11/2004 -0400, you wrote:
 
  Joerg Baumgaertel wrote:
 
  Hi all,
  because often requested,
  I added a Jakarta-Tomcat-Howto to the 'jb2works.com' website.
  You find the following documents
  - How to scan a Java webapplication
http://jb2works.com/refscan/tomcat.html
  - How to scan Jakarta-Tomcat full-space
http://jb2works.com/refscan/tomcatfull.html
 
 
  I tried that, but when trying to run tomcat I got:
 
  Due to new licensing guidelines mandated by the Apache Software
  Foundation Board of Directors, a JMX implementation can no longer
  be distributed with the Apache Tomcat binaries. As a result, you
  must download a JMX 1.2 implementation (such as the Sun Reference
  Implementation) and copy the JAR containing the API and
  implementation of the JMX specification to:
  ${catalina.home}/bin/jmx.jar
 
  ...which confuses me, because jmx.jar is still where it always was.
  Using the bootstrap.jar that came with tomcat works fine.
 
 
  If you use the latest version of Tomcat5, you'll find that this is not
  an issue.  Download Tomcat-5.0.24.  The implementation of JMX that said
  version of Tomcat comes with is MX4J which is open source so there is no
  problem anymore.
 
  Jake
 
 I am using 5.0.24, and jmx.jar is there.  Tomcat works if I use the
 Bootstrap.class that comes with it, but if I recompile Bootstrap.class
 per the instructions on http://jb2works.com/refscan/tomcatfull.html it
 suddenly gives me that error message.
 
 I can post the jar file if you think that will help.
 

No, I can't help you with recompile questions.  I just know that previous
versions of Tomcat required you to provide the JMX jar since they had been
shipping the Sun implementation, and probably in violation of the license.  For
this reason, they removed jmx.jar, but they have added it back now that they use
the MX4J implementation.  I can't remember if this affected Tomcat-5.0.19 or
alpha releases in between 5.0.19 and 5.0.24.  All I can say is that, out of the
box, 5.0.24 should work just fine.

Jake

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



RE: maxThreads

2004-05-12 Thread Endre Stølsvik
On Wed, 12 May 2004, Shapira, Yoav wrote:

|
| Hi,
|
| The new tomcat code have (finally!) an idea of connection queues, so
| that
|
| You just manage to hit a nerve with almost every post ;)

I don't have a trace of an idea of what you mean!

;)

|  This stuff has been in tomcat code for years, it's not new.

It wasn't there in earlier Tomcat 4s (-at least- not in 3.2), as Craig
didn't see the use for it. I rather clearly remember arguing rather
heavily for this some years ago, yes.

Endre.


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



Upgrade to 4.1.30 and IBMJava2-141 causes this error

2004-05-12 Thread Kevin Passey
Hi,

can anybody help me

%@ page import=org.adultcf.* %
jsp:useBean id=LogInBean class=org.adultcf.LogInBean scope=session /

This was working before I upgraded to enterprise Linux and Tomcat 4.1.30 and
IBMJava2-141

Now I get this - any ideas.

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 22 in the jsp file: /login.jsp

Generated servlet error:
[javac] Compiling 1 source file

/home/tomcat/jakarta-tomcat-4.1.30/work/Standalone/localhost/adultcf/login_j
sp.java:7: '.' expected
import LogInBean;
^
/home/tomcat/jakarta-tomcat-4.1.30/work/Standalone/localhost/adultcf/login_j
sp.java:60: cannot resolve symbol
symbol  : class LogInBean
location: class org.apache.jsp.login_jsp
  LogInBean LogInBean = null;
  ^

Thanks in advance.

Kevin


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



RE: having webapp reachable at two URLs

2004-05-12 Thread Mats Henrikson
Yoav,

  Have you considered tomcat's balancer webapp?  

Right, from what I can tell from the docs it seems that the Tomcat
balancer webapp cheats, and actually send a redirect back to the client.
Unfortunately that wont do what I need it to do, as all it can do then
is redirect the client back to the single URL where the app is deployed,
and they would get the wrong Location block from the apache config. 

Thanks for the idea though!

Mats


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



Timing service in Tomcat

2004-05-12 Thread Sasha Borodin
I'm wondering what people are doing to schedule/execute tasks in Tomcat...

Is there any built-in timing services in Tomcat?  Are people using external
operating system tools like cron to invoke a class, or hit a servlet?

Is anyone using a good 3rd party scheduling framework?

Or is this kind of stuff home-grown right now (java.util.Timer, etc.)?  If
you've got your own timer, where do you initialize it (like in a servlet's
init() or a context listener)?

Thank you,

-Sasha



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



RE: error starting tomcat5

2004-05-12 Thread Steven Garrett
Thanks that seems to work out.  Now I have one last error that I can't seem
to figure out:  Where should the commons-digester.jar reside?  currently it
is in the /usr/share/java directory (with all the other jars), but tomcat
can't seem to find it.  I have it in the classpath as well as the
${CATALINA_HOME}/server/lib directory, is this the right place?

Thanks,

Steve

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 2:50 AM
To: [EMAIL PROTECTED]
Subject: Re: error starting tomcat5



Steven Garrett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 Thanks to those of you who helped me with my previous server.xml include
 file issue, that worked out like a charmeventually :)

 Anyways, we're testing out tomcat5 on a RedHat 9 box and I keep getting
this
 error message.

 java.lang.NoClassDefFoundError: org/apache/commons/modeler/BaseModelMBean

 All I've been able to find so far is that this is supposedly part of the
 catalina.jar (not very helpful I know).  all I'm trying to do is to get
 tomcat to start at this point.  Any suggestions on how to debug this or if
 anyone knows what's wrong that would be great.  Please let me know if you
 need any further information.


Actually, it is supposed to be part of commons-modeler.jar which should be
living in $CATALINA_HOME/server/lib.

 Thanks,

 Steve




-
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 starting tomcat5

2004-05-12 Thread Steven Garrett
Here's the exact error:

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

java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
at java.lang.Class.getConstructor0(Class.java:1922)
at java.lang.Class.newInstance0(Class.java:278)
at java.lang.Class.newInstance(Class.java:261)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:218)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:375)

Thanks,

Steve

-Original Message-
From: Steven Garrett [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 11:31 AM
To: 'Tomcat Users List'
Subject: RE: error starting tomcat5


Thanks that seems to work out.  Now I have one last error that I can't seem
to figure out:  Where should the commons-digester.jar reside?  currently it
is in the /usr/share/java directory (with all the other jars), but tomcat
can't seem to find it.  I have it in the classpath as well as the
${CATALINA_HOME}/server/lib directory, is this the right place?

Thanks,

Steve

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 2:50 AM
To: [EMAIL PROTECTED]
Subject: Re: error starting tomcat5



Steven Garrett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 Thanks to those of you who helped me with my previous server.xml include
 file issue, that worked out like a charmeventually :)

 Anyways, we're testing out tomcat5 on a RedHat 9 box and I keep getting
this
 error message.

 java.lang.NoClassDefFoundError: org/apache/commons/modeler/BaseModelMBean

 All I've been able to find so far is that this is supposedly part of the
 catalina.jar (not very helpful I know).  all I'm trying to do is to get
 tomcat to start at this point.  Any suggestions on how to debug this or if
 anyone knows what's wrong that would be great.  Please let me know if you
 need any further information.


Actually, it is supposed to be part of commons-modeler.jar which should be
living in $CATALINA_HOME/server/lib.

 Thanks,

 Steve




-
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: Timing service in Tomcat

2004-05-12 Thread Mike Curwen
I like quartz.
 
www.opensymphony.com/quartz

 -Original Message-
 From: Sasha Borodin [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, May 12, 2004 10:33 AM
 To: Tomcat Users List
 Subject: Timing service in Tomcat
 
 
 I'm wondering what people are doing to schedule/execute tasks 
 in Tomcat...
 
 Is there any built-in timing services in Tomcat?  Are people 
 using external operating system tools like cron to invoke a 
 class, or hit a servlet?
 
 Is anyone using a good 3rd party scheduling framework?
 
 Or is this kind of stuff home-grown right now 
 (java.util.Timer, etc.)?  If you've got your own timer, where 
 do you initialize it (like in a servlet's
 init() or a context listener)?
 
 Thank you,
 
 -Sasha
 
 
 
 -
 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: Timing service in Tomcat

2004-05-12 Thread James Neville
Sasha,

Sasha Borodin wrote:

Is anyone using a good 3rd party scheduling framework?

Have a look at:
http://www.quartzscheduler.org/quartz/(h its moved to OpenSymphony!)
We're using this in part with some in-house stuff.
It works well; I actually can't think of any other open -source 
component that's comparable.

Or is this kind of stuff home-grown right now (java.util.Timer, etc.)?  If
you've got your own timer, where do you initialize it (like in a servlet's
init() or a context listener)?
For the custom stuff, we have a seperate servlet for each job/task 
(java.util.Timer), and a reference is stored to them in the application 
context, for admin purposes.
We start each Timer from a single Startup servlet, which gets the 
majority of its parameters from the web.xml file (ideally, i'd rather 
this was seperated).

If you have any more questions, shoot,  i'll try and answer as best I can.

James.



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


problem with nested items in jsp:text with Tomcat 5.0

2004-05-12 Thread Ivan Z. Ganza
Greetings,

Tomcat 5.0.24

We are in the process of migrating our application to Tomat 5 from 
version 4.

There is a strange situation with some of our usage of tags that I'm 
hoping someone might be able to comment on.  Basically within Tomcat 4.0 
the following lines of .jsp code worked fine:

jsp:text![CDATA[
tr
  td]]
  jsp:expressionmanufacturer + / + model/jsp:expression
  ![CDATA[
  /td
  td]]
  jsp:expressiongroupName/jsp:expression
  ![CDATA[
  /td
  td]]
  jsp:expressionhardwareName/jsp:expression
  ![CDATA[
  /td
  td]]
  jsp:expressionipAddress/jsp:expression
  ![CDATA[
  /td
  td]]
  casero:a href=%= actionLocation %Actions/casero:a
  ![CDATA[
  /td
/tr]]
/jsp:text
HOWEVER under Tomcat 5.0 the following error is produced:

org.apache.jasper.JasperException: /node/search.jsp(234,25) 
lt;jsp:textgt; must not have any subelements
   org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39) 

   org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357) 

   org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81) 

   org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:196) 

   org.apache.jasper.compiler.ParserController.doParse(ParserController.java:197) 

   org.apache.jasper.compiler.ParserController.parse(ParserController.java:101) 

   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:196)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:415)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:398)
   org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507) 

   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248) 

   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:277) 

   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:223)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
and this code can be made to work by doing the following:

tr
  td
  jsp:expressionmanufacturer + / + model/jsp:expression
  /td
  td
  jsp:expressiongroupName/jsp:expression
  /td
  td
  jsp:expressionhardwareName/jsp:expression
  /td
  td
  jsp:expressionipAddress/jsp:expression
  /td
  td
  casero:a href=%= actionLocation %Actions/casero:a
  /td
/tr
Is it our usage of elements nested within jsp:text that is incorrect 
or is there some sort of bug with Tomcat 5.0 parser here?

thanks in advance for any help,
-Ivan/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Apache/Tomcat returning error 503

2004-05-12 Thread Ken Ramirez
Setup includes:
Redhat Linux 9
Apache 2.0.49
Tomcat 5.0.19
mod_jk2

After performing the appropriate installs, I can get to the Apache
default page, and I can access the Tomcat as well on 8080. I can even
access the jkstatus via Apache, but when I try to access jsp-examples
via Apache, I'm getting the following error 503:

Service Temporarily Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.
Apache/2.0.49 (Unix) mod_jk2/2.0.4 Server at 192.168.1.101 Port 80

** My workers2.properties file appears as follows:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess servers file=/usr/local/tomcat5/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket [channel.un:/usr/local/tomcat5/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/usr/local/tomcat5/work/jk2.socket]
channel=channel.un:/usr/local/tomcat5/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/jsp-examples/*]

* My jk2.properties is as follows:
# Set the desired handler list handler.list=apr,request,channelSocket
channelSocket.port=8009

serverRoot=/usr/local/apache2
apr.NativeSo=/usr/local/apache2/modules/libjkjni.so


* My httpd.conf contains the following connection:
LoadModule jk2_module modules/mod_jk2.so JkSet config.file
/usr/local/apache2/conf/workers2.properties


Can anyone help? I've been trying to solve this one for awhile.

Thanks.


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



RE: Definitive Documentation for RH9, mod_jk2, Apache2 Tomcat 5?

2004-05-12 Thread Shapira, Yoav

Hi,
It's a bit of a semantic pain with the current wiki setup, but
http://wiki.apache.org/jakarta-tomcat/UsefulLinks is the one I had in
mind, which now only lists
http://wiki.apache.org/jakarta-tomcat/Tomcat_2fLinks but in the future
that might change.  Can't hurt to clarify ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Daniel Gibby [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 10:36 AM
To: Tomcat Users List
Subject: Re: Definitive Documentation for RH9, mod_jk2, Apache2 
Tomcat 5?

I don't see the 'Useful Links' page that you speak of...
I think you meant the page that is called Tomcat Links



At 06:02 AM 5/12/2004, Shapira, Yoav wrote:



Hi,
Definitive in the true sense of the word, no.  Helpful docs are


aplenty,


though, on the tomcat wiki (http://wiki.apache.org/jakarta-tomcat)
UsefulLinks page.

Yoav Shapira
Millennium Research Informatics





-
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: maxThreads

2004-05-12 Thread Shapira, Yoav

Hi,

It wasn't there in earlier Tomcat 4s (-at least- not in 3.2), as Craig
didn't see the use for it. I rather clearly remember arguing rather
heavily for this some years ago, yes.

It was there in tomcat 4.0.1 and later.  For tomcat 3.x I don't know but
I believe you do.  I'm glad you argued for this feature, as it's indeed
important, and I'm glad Craig and others listened to you ;)

Yoav




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: Timing service in Tomcat

2004-05-12 Thread Shapira, Yoav

Hi,
Quartz and Flex are good.  They may be overkill though, depending on
your needs.  Java.util.Timer is perfectly fine as well.  Where to
initialize also depends on your needs, but a Servlet's init or a
ServletContextListener's contextInitialized are two candidate locations.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: James Neville [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 11:40 AM
To: Tomcat Users List
Subject: Re: Timing service in Tomcat

Sasha,

Sasha Borodin wrote:

Is anyone using a good 3rd party scheduling framework?

Have a look at:
http://www.quartzscheduler.org/quartz/(h its moved to
OpenSymphony!)

We're using this in part with some in-house stuff.
It works well; I actually can't think of any other open -source
component that's comparable.


Or is this kind of stuff home-grown right now (java.util.Timer, etc.)?
If
you've got your own timer, where do you initialize it (like in a
servlet's
init() or a context listener)?


For the custom stuff, we have a seperate servlet for each job/task
(java.util.Timer), and a reference is stored to them in the application
context, for admin purposes.
We start each Timer from a single Startup servlet, which gets the
majority of its parameters from the web.xml file (ideally, i'd rather
this was seperated).

If you have any more questions, shoot,  i'll try and answer as best I
can.

James.




-
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: Upgrade to 4.1.30 and IBMJava2-141 causes this error

2004-05-12 Thread Shapira, Yoav

Hi,
sigh
http://jakarta.apache.org/tomcat/faq/classnotfound.html
/sigh

Also, do yourself a favor and perform large/significant upgrades one at
a time with testing in between.  Don't change the OS, server, and JDK
all at once.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Kevin Passey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 11:03 AM
To: Tomcat Users List
Subject: Upgrade to 4.1.30 and IBMJava2-141 causes this error

Hi,

can anybody help me

%@ page import=org.adultcf.* %
jsp:useBean id=LogInBean class=org.adultcf.LogInBean
scope=session
/

This was working before I upgraded to enterprise Linux and Tomcat
4.1.30
and
IBMJava2-141

Now I get this - any ideas.

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 22 in the jsp file: /login.jsp

Generated servlet error:
[javac] Compiling 1 source file

/home/tomcat/jakarta-tomcat-
4.1.30/work/Standalone/localhost/adultcf/login_j
sp.java:7: '.' expected
import LogInBean;
^
/home/tomcat/jakarta-tomcat-
4.1.30/work/Standalone/localhost/adultcf/login_j
sp.java:60: cannot resolve symbol
symbol  : class LogInBean
location: class org.apache.jsp.login_jsp
  LogInBean LogInBean = null;
  ^

Thanks in advance.

Kevin


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



Apache 2 - mod_jk2

2004-05-12 Thread Mike Batting
I am running a load balanced Apache2 - mod_jk2 configuration.  I am wondering if there 
is an option in the configuration settings that would allow an administrator to 
dynamically close one or more of the connectors (stop it from accepting new 
connections) so that a given Servlet Engine can be shutdown, updated, restarted etc... 
this way when people enter the site the apache-mod_jk2 will not attempt to contact the 
Servlet Engine that is down but will be directed to another instance that is still 
running.

We already have a means of monitoring existing connections on each Servlet 
Container... so once the connector is not diverting traffic to a given container we 
can wait until the current users finish their work...

is there a way to do this by updating some configuration settings dynamically ?

Hiding app files in Tomcat 4.0.3

2004-05-12 Thread Timothy_Sabin
I'm running Tomcat 4.0.3 on a Windows 2000 platform. I am attempting to 
configure my application so that the index.jsp file is always available 
(the login screen), but the others are only available after the user has 
logged in. I've tried many things in the .xml files, and have done a lot 
of research on the Internet, but nothing seems to work. Any ideas? Thanks.

BTW - the file structure of the app is as follows:

application
application\index.jsp
application\src
application\src\jsps
application\src\jsps\*.jsp
...

--Tim Sabin


context-host question

2004-05-12 Thread Bo van Weert
Hi,

I can't change the server.xml file because of hosting limitations, but I
want to add a realm to a certain context.
I found out that it's possible to create a context.xml file with a realm
in it (we do have access to the webapps directory).
The thing is that the server is always accessed through a domain name, and
the context.xml file isn't in any way related to that domain name (because
it's not within a host tag, as it would be in the server.xml).

Can anybody explain how to relate that context to a domain name, or how to
access the context in the first place?

Best regards,
Bo


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



Tomcat 4.1.x Vs 5.0.x

2004-05-12 Thread wsedio
Hi,
I've a web hosting server running Red Hat Enterprise Linux 3 ES and I am 
planning to install Tomcat on it.

I would like to give dedicated Tomcat instances to some clients and to 
keep a shared instance for smaller web sites.

Is it better to use Tomcat 4.1.x or 5.0.x for such scenario?
Which version is faster and stabler?
Will applications designed for Tomcat 4 work fine with version 5?

What is the recommended JVM for production use on Linux? Sun or IBM? 
Which version?

Thanks!

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


dedicated Tomcat instances

2004-05-12 Thread wsedio
Hi,
I've an hosting server running Red Hat Enterprise Linux 3 ES. and I am 
planning to install Tomcat 4.1.x on it, I am pretty new to Tomcat.

I would like to give dedicated Tomcat instances to some clients.
That way, if an instance crashes, the problem shouldn't affect other 
clients web sites.

The dedicated Tomcat instances should also improve security, by keeping 
each customer's applications separated from others clients.

What is the best way to give dedicated Tomcat instances and accomplish 
the above aims?

How many resources (CPU/memory) does each Tomcat instace require 
approximately?

Thanks!

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


Tomcat 5.0.24 RPM

2004-05-12 Thread wsedio
Hi,
where can I get an RPM for Tomcat 5.0.24?
I am running Red Hat Enterprise Linux 3 ES.

Thanks.

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


RE: Hiding app files in Tomcat 4.0.3

2004-05-12 Thread Shapira, Yoav

Hi,
Doing this via file structure is kind of ugly.  Consider at least these
two alternatives:
- Declarative security constraints in web.xml (see the Servlet Spec for
your options there),
- A filter mapped to /* that checks that the user has logged in, and if
not directs the user to the index page.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 1:37 PM
To: [EMAIL PROTECTED]
Subject: Hiding app files in Tomcat 4.0.3

I'm running Tomcat 4.0.3 on a Windows 2000 platform. I am attempting to
configure my application so that the index.jsp file is always available
(the login screen), but the others are only available after the user
has
logged in. I've tried many things in the .xml files, and have done a
lot
of research on the Internet, but nothing seems to work. Any ideas?
Thanks.

BTW - the file structure of the app is as follows:

application
application\index.jsp
application\src
application\src\jsps
application\src\jsps\*.jsp
...

--Tim Sabin



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 4.1.x Vs 5.0.x

2004-05-12 Thread Shapira, Yoav

Hi,

Is it better to use Tomcat 4.1.x or 5.0.x for such scenario?
Which version is faster and stabler?

The tomcat 5.0.x versions are faster and at least as stable.

Will applications designed for Tomcat 4 work fine with version 5?

Applications designed for the Servlet Specification will work fine with
tomcat 4 and tomcat 5.  Applications whose designers were bad enough to
include tomcat 4 - specific code will not work with tomcat 5 obviously.

What is the recommended JVM for production use on Linux? Sun or IBM?
Which version?

Again, the latest stable version is what you want.  We have people using
Sun, IBM, Blackdown, and JRockit on this list.

To answer one of your other questions: the typical hardware
requirements for tomcat would be any old processor and 64MB of RAM.
This varies greatly depending on the user application's memory and CPU
needs.

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 5.0.24 RPM

2004-05-12 Thread Shapira, Yoav

Hi,
We don't create RPMs ourselves: the primary source for those is
JPackage.org, whose latest tomcat 5 RPM is for 5.0.19:
http://www.jpackage.org/rpm.php?id=2571.  Give them a few days to get a
5.0.24 RPM, especially if you send them a friendly reminder ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: wsedio [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 2:11 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 5.0.24 RPM

Hi,
where can I get an RPM for Tomcat 5.0.24?

I am running Red Hat Enterprise Linux 3 ES.

Thanks.

-
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: apache, mod_jk, tomcat hungs

2004-05-12 Thread Bill Bruns
At our site we are fortunate so far to NOT have this problem -
is it related to the amount of traffic on the link that has problems?
We use Apache httpd 2.0.49; Tomcat 4.1.24; mod-jk 1.2.5 all on
Solaris-sparc.
Here is a little chart of the configuration data so far from these three
examples:

Hangups seen Apache  Tomcat  mod-jk  OS
 --  --  --  --
Daniel Gibby 2.0.40  4.1.30  2.0.2   ?
Daniel Gibby 2.0.40  4.1.27  2.0.2   ?
Beat De Mart 1.3.27  3.3.1   1.2.4   ?

No Hangups (so far!)
Bill Bruns   2.0.49  4.1.24  1.2.5   Solaris-sparc

-Original Message-
From: Daniel Gibby [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 7:28 AM
To: Tomcat Users List
Subject: Re: apache, mod_jk, tomcat hungs


All I can say is you are not alone. Requests of our sort never seem to
be answered, and we've been asking them for months.
Actually, by being answered I'm not saying that people don't post
replies, I just mean that I don't know of anyone who has fixed this
issue on their system.

It sure sounds like the same issue that I'm having with mod_jk2 2.0.2,
apache 2.0.40, tomcat 4.1.30 or tomcat 4.1.27... but I can't be sure
that it is the same issue. My bet is that most of the tomcat developers
don't use connectors because they would rather keep things stable, and
introducing apache into the mix just means one more point of failure.

Sorry I can't be of more help right now. I've tried using JMeter to
reproduce my lockups, and that hasn't helped me yet.
Is there someone out there who would like to be paid to run a profiler
on some of my applications? Please contact me off-list, and if you can
solve my issue, I'll post the results to the list... I'm in contact with
two or three people from this list that are having the same type of
issues, and more requests for help come into the list weekly. We'd all
be happy for the help.

Daniel Gibby

Beat De Martin wrote:

Hello folks
I'm using Tomcat 3.3.1, Apache 1.3.27 and mod_jk 1.2.4.
Every two days my Tomcat hungs and I have to restart it.
Before Tomcat hungs I can see the following in mod_jk.log:
 ERROR: can't receive the response message from tomcat, network problems or
tomcat is down. err=-1
  [jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down
or network problems.
  [jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed,
recoverable
operation. err=0
 [jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop.
err=0

Any ideas ?
Cheers
Beat






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



unable to compile class for JSP

2004-05-12 Thread Chris Purcell
Tomcat 4.1.30
Apache 2.0.46
Red Hat Enterprise Linux ES 3.0

I'm having a problem getting Tomcat to work on Red Hat ES 3.0.   The
examples that come with Tomcat are failing with 500 Internal Server
Errors...



org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 11 in the jsp file: /examples/jsp/num/numguess.jsp

Generated servlet error:
[javac] Compiling 1 source file

/usr/local/jakarta-tomcat-4.1.30-LE-jdk14/work/foo/surge.foo.net/_/examples/jsp/num/numguess_jsp.java:7:
package num does not exist
import num.NumberGuessBean;
   ^
/usr/local/jakarta-tomcat-4.1.30-LE-jdk14/work/foo/surge.foo.net/_/examples/jsp/num/numguess_jsp.java:44:
package num does not exist
  num.NumberGuessBean numguess = null;



Does anyone have any idea what could be causing this error?   Please let
me know if you need more information on the problem.

Thanks for the help,
Chris



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



Problems with JavaHelp content from tomcat hosted application

2004-05-12 Thread Jim Solderitsch
We are working on expanding our on-line help for an application that 
has a workstation component (made available with Java Web Start) and a 
server component. We are currently using tomcat 4.1.30 with a Java 
1.4.2 VM.

One of our developers wrote some initial help content using the 
JavaHelp 2.0 release and it works reasonably well when accessed from 
the workstation -- the help browser that appears has expected 
functionality and the interface buttons and embedded links work as 
expected.

However the same help set, served from the server, has significant UI 
issues related to navigation between the navigation frame (where TOC 
and Index entries appear) and the main content frame. The JSP pages for 
the help system are basically clones of the JSP Help Demo source that 
ships with JavaHelp 2.0. The problems I see with our server help and 
the demo application are identical.

The main usability issue is that the forward and back buttons that 
appear in a toolbar frame above the content frame to control the 
content only work every other button click. The first click does 
nothing and the second click does take you back or forward as expected. 
Also, each time you use these buttons, I believe the expected behavior 
is that the corresponding node in the navigation frame should get 
highlighted to be in sync with the help page showing in the content 
frame. This refreshed highlighting never happens.

At first I suspected some Javascript issues and I do see Firefox 
reporting some errors in its Javascript console. But I did some code 
mods to the demo JSP source that removed these errors (mainly due to 
frame references to other frames being incorrect). But the wrong 
behavior remains.

I tried accessing the Java Help Demo app from IE 6.0 as well as Firefox 
and I see the same behavior. In addition, for IE, I still have some 
sound-effects turned on so that you hear an audible click when you key 
on a link. BUT I hear multiple clicks when I click a link in the 
navigation window as if the same link is being accessed multiple times, 
perhaps once by my manual click and some hidden Javascript that causes 
the same browser event to happen again.

I now suspect something is messed up with the basic servlet help broker 
that provides the basis for the JSP help mechanism -- I may go digging 
through the source to see if I can spot something.

But, if any reader of this problem has been down this road and can 
offer experiences or suggestions, I would appreciate hearing.

Jim

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


tomcat 5.0.25 with eclipse sysdeo plugin

2004-05-12 Thread Emerson Cargnin
I noticed that when upgrading to 5.0.24 in my dev machine, the logs stop 
appearing at console with the message:

log4j:WARN No appenders could be found for logger 
(org.apache.catalina.startup.Embedded).
log4j:WARN Please initialize the log4j system properly.

Does it has happened with anyone?
This plugin gives some error to debug with eclipse M8. Does anyone know 
a plugin that enables debbuging inside eclipse?

--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Apache 2 - mod_jk2 cont...

2004-05-12 Thread Mike Batting
I have found a section referring to a graceful attribute for load balanced
workers.  This feature is supposed to be set to 1 if the given worker should
stop accepting new connections (while maintaining existing ones).  This
sounds like the feature I am looking for (as described below) but it is not
working for me.  Is there something I have to enable on the apache side or
change during the mod_jk2 comilation so that it dynamically recognixes
changes to the work2.properties file at runtime ?

Some sites refer to this feature as 'hot-reconfiguration' and it sounds like
a feature that is supposed to be supported by mod_jk2... but I am not having
any luck.


- Original Message - 
From: Mike Batting [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 1:05 PM
Subject: Apache 2 - mod_jk2


I am running a load balanced Apache2 - mod_jk2 configuration.  I am
wondering if there is an option in the configuration settings that would
allow an administrator to dynamically close one or more of the connectors
(stop it from accepting new connections) so that a given Servlet Engine can
be shutdown, updated, restarted etc... this way when people enter the site
the apache-mod_jk2 will not attempt to contact the Servlet Engine that is
down but will be directed to another instance that is still running.

We already have a means of monitoring existing connections on each Servlet
Container... so once the connector is not diverting traffic to a given
container we can wait until the current users finish their work...

is there a way to do this by updating some configuration settings
dynamically ?


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



Re: unable to compile class for JSP

2004-05-12 Thread QM
: 
/usr/local/jakarta-tomcat-4.1.30-LE-jdk14/work/foo/surge.foo.net/_/examples/jsp/num/numguess_jsp.java:7:
: package num does not exist
: import num.NumberGuessBean;


Where is the class file NumberGuessBean, or the JAR file that contains
it?

-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: unable to compile class for JSP

2004-05-12 Thread Mike Curwen
[EMAIL PROTECTED]:~$ cd /usr/local/applications/tomcat-4.1.30
[EMAIL PROTECTED]:/usr/local/applications/tomcat-4.1.30$ grep -rn
'num.NumberGuessBean' *
Binary file webapps/examples/WEB-INF/classes/num/NumberGuessBean.class
matches
webapps/examples/jsp/num/numguess.jsp:10:%@ page import =
num.NumberGuessBean %
webapps/examples/jsp/num/numguess.jsp:12:jsp:useBean id=numguess
class=num.NumberGuessBean scope=session/
webapps/examples/jsp/num/numguess.txt:10:%@ page import =
num.NumberGuessBean %
webapps/examples/jsp/num/numguess.txt:12:jsp:useBean id=numguess
class=num.NumberGuessBean scope=session/
[EMAIL PROTECTED]:/usr/local/applications/tomcat-4.1.30$ 



 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, May 12, 2004 2:06 PM
 To: Tomcat Users List
 Subject: Re: unable to compile class for JSP
 
 
 : 
 /usr/local/jakarta-tomcat-4.1.30-LE-jdk14/work/foo/surge.foo.n
 et/_/examples/jsp/num/numguess_jsp.java:7:
 : package num does not exist
 : import num.NumberGuessBean;
 
 
 Where is the class file NumberGuessBean, or the JAR file that 
 contains it?
 
 -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: unable to compile class for JSP

2004-05-12 Thread Mike Curwen
sorry, I mean to add to that last email, speaking to Chris:

This is where you *should* find them.

;) 


 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, May 12, 2004 2:06 PM
 To: Tomcat Users List
 Subject: Re: unable to compile class for JSP
 
 
 : 
 /usr/local/jakarta-tomcat-4.1.30-LE-jdk14/work/foo/surge.foo.n
 et/_/examples/jsp/num/numguess_jsp.java:7:
 : package num does not exist
 : import num.NumberGuessBean;
 
 
 Where is the class file NumberGuessBean, or the JAR file that 
 contains it?
 
 -QM
 


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



Re: Apache 2 - mod_jk2

2004-05-12 Thread Thomas D. Zeimet
1. Edit workers2.properties. Find the channel. Change graceful to 1 to
disable or 0 to reactivate. Increment ver.
2. Access /jkstatus page. You should see the value changed in the channel and
worker info.

  See the JK2 documentation at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configweb.html


--- Mike Batting [EMAIL PROTECTED] wrote:
 I am running a load balanced Apache2 - mod_jk2 configuration.  I am wondering
 if there is an option in the configuration settings that would allow an
 administrator to dynamically close one or more of the connectors (stop it
 from accepting new connections) so that a given Servlet Engine can be
 shutdown, updated, restarted etc... this way when people enter the site the
 apache-mod_jk2 will not attempt to contact the Servlet Engine that is down
 but will be directed to another instance that is still running.
 
 We already have a means of monitoring existing connections on each Servlet
 Container... so once the connector is not diverting traffic to a given
 container we can wait until the current users finish their work...
 
 is there a way to do this by updating some configuration settings dynamically
?





__
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

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



Re: unable to compile class for JSP

2004-05-12 Thread Chris Purcell
I don't really know anything about Java, I'm setting this up to get Citrix
NFuse working, which I have done before in the past.  This is basically a
default installation of Tomcat, the only things I've changed are slight
modifications to server.xml, and I created the conf/jk/workers.properties
file.  I also compiled a new mod_jk.so file and loaded it into Apache. I
have a working installation of this on a different server if you want me
to check anything on that to compare.   That installation was done
slightly different.

Thanks,
Chris


 :
 /usr/local/jakarta-tomcat-4.1.30-LE-jdk14/work/foo/surge.foo.net/_/examples/jsp/num/numguess_jsp.java:7:
 : package num does not exist
 : import num.NumberGuessBean;


 Where is the class file NumberGuessBean, or the JAR file that contains
 it?

 -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: unable to compile class for JSP

2004-05-12 Thread Chris Purcell
Mike, I have the same exact output as you.


Binary file webapps/examples/WEB-INF/classes/num/NumberGuessBean.class
matches
webapps/examples/jsp/num/numguess.jsp:10:%@ page import =
num.NumberGuessBean %
webapps/examples/jsp/num/numguess.jsp:12:jsp:useBean id=numguess
class=num.NumberGuessBean scope=session/
webapps/examples/jsp/num/numguess.txt:10:%@ page import =
num.NumberGuessBean %
webapps/examples/jsp/num/numguess.txt:12:jsp:useBean id=numguess
class=num.NumberGuessBean scope=session/


Chris


 [EMAIL PROTECTED]:~$ cd /usr/local/applications/tomcat-4.1.30
 [EMAIL PROTECTED]:/usr/local/applications/tomcat-4.1.30$ grep -rn
 'num.NumberGuessBean' *
 Binary file webapps/examples/WEB-INF/classes/num/NumberGuessBean.class
 matches
 webapps/examples/jsp/num/numguess.jsp:10:%@ page import =
 num.NumberGuessBean %
 webapps/examples/jsp/num/numguess.jsp:12:jsp:useBean id=numguess
 class=num.NumberGuessBean scope=session/
 webapps/examples/jsp/num/numguess.txt:10:%@ page import =
 num.NumberGuessBean %
 webapps/examples/jsp/num/numguess.txt:12:jsp:useBean id=numguess
 class=num.NumberGuessBean scope=session/
 [EMAIL PROTECTED]:/usr/local/applications/tomcat-4.1.30$



 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 12, 2004 2:06 PM
 To: Tomcat Users List
 Subject: Re: unable to compile class for JSP


 :
 /usr/local/jakarta-tomcat-4.1.30-LE-jdk14/work/foo/surge.foo.n
 et/_/examples/jsp/num/numguess_jsp.java:7:
 : package num does not exist
 : import num.NumberGuessBean;


 Where is the class file NumberGuessBean, or the JAR file that
 contains it?

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




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



Re: Tomcat 4.1.x Vs 5.0.x

2004-05-12 Thread wsedio
On 12-05-2004 20:14, Shapira, Yoav wrote:

The tomcat 5.0.x versions are faster and at least as stable.
Ok, I am going to install Tomcat 5.0.24.

Again, the latest stable version is what you want.  We have people using
Sun, IBM, Blackdown, and JRockit on this list.
I can choose between the following JVMs:
Sun 1.4.2
IBM 1.4.1
Bea 1.4.2 (JRockit)
Which one would be better?
I am running RH Enterprise Linux 3 on a Dell PowerEdge 1655MC: dual 
1.4Ghz PIII and 2GB of RAM.

Thanks.

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


Re: Tomcat 5.0.24 RPM

2004-05-12 Thread wsedio
On 12-05-2004 20:15, Shapira, Yoav wrote:

We don't create RPMs ourselves: the primary source for those is
JPackage.org, whose latest tomcat 5 RPM is for 5.0.19:
http://www.jpackage.org/rpm.php?id=2571.  Give them a few days to get a
5.0.24 RPM, especially if you send them a friendly reminder ;)
It looks like there is no real advantage of installing Tomcat from RPM, 
since you can remove the tarball installation by simply deleting the 
install direction.

Am I missing something?

Thanks.

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


RE: Tomcat 4.1.x Vs 5.0.x

2004-05-12 Thread Shapira, Yoav

Hi,

Sun 1.4.2
IBM 1.4.1
Bea 1.4.2 (JRockit)

Which one would be better?
I am running RH Enterprise Linux 3 on a Dell PowerEdge 1655MC: dual
1.4Ghz PIII and 2GB of RAM.

The reason people cite for shifting away from the Sun JVM are
performance-oriented.  The problems cited with others often revolve
around bad stability.  So if you want stability (which I think is the
case for a service host), start out using the Sun JDK.

BTW, I'm not convinced on the performance front either, so definitely
IMHO start with the Sun JDK.

Yoav




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 5.0.24 RPM

2004-05-12 Thread Shapira, Yoav

Hi,
Nope, the RPM is of limited utility, so you're not missing something.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: wsedio [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 3:29 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.0.24 RPM

On 12-05-2004 20:15, Shapira, Yoav wrote:

 We don't create RPMs ourselves: the primary source for those is
 JPackage.org, whose latest tomcat 5 RPM is for 5.0.19:
 http://www.jpackage.org/rpm.php?id=2571.  Give them a few days to get
a
 5.0.24 RPM, especially if you send them a friendly reminder ;)

It looks like there is no real advantage of installing Tomcat from RPM,
since you can remove the tarball installation by simply deleting the
install direction.

Am I missing something?

Thanks.

-
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: Apache 2 - mod_jk2

2004-05-12 Thread Mike Batting
Thanks.  I did miss the part about incrementing ver.

I have done this now and I do in fact see the values being changed in the
jk2status page... however the channel I have set to graceful=1 is still
accepting new connections...

is this a known bug ? or could something else be wrong.

eg)
[lb:lb_51]
logger=logger.file:0
debug=1
balanced_workers=ajp13:10.10.1.52:12009,ajp13:10.10.1.51:11009

[channel.socket:10.10.1.51:11009]
ver=1
port=11009
host=10.10.1.51
type=ajp13
tomcatId=jetty1
lb_factor=0
graceful=0
disabled=0

[channel.socket:10.10.1.52:12009]
ver=1
port=12009
host=10.10.1.52
type=ajp13
tomcatId=jetty2
lb_factor=1
graceful=0
disabled=0

[ajp13:10.10.1.51:11009]
channel=channel.socket:10.10.1.51:11009

[ajp13:10.10.1.52:12009]
channel=channel.socket:10.10.1.52:12009

- Original Message - 
From: Thomas D. Zeimet [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 2:04 PM
Subject: Re: Apache 2 - mod_jk2


 1. Edit workers2.properties. Find the channel. Change graceful to 1 to
 disable or 0 to reactivate. Increment ver.
 2. Access /jkstatus page. You should see the value changed in the channel
and
 worker info.

   See the JK2 documentation at
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configweb.html


 --- Mike Batting [EMAIL PROTECTED] wrote:
  I am running a load balanced Apache2 - mod_jk2 configuration.  I am
wondering
  if there is an option in the configuration settings that would allow an
  administrator to dynamically close one or more of the connectors (stop
it
  from accepting new connections) so that a given Servlet Engine can be
  shutdown, updated, restarted etc... this way when people enter the site
the
  apache-mod_jk2 will not attempt to contact the Servlet Engine that is
down
  but will be directed to another instance that is still running.
 
  We already have a means of monitoring existing connections on each
Servlet
  Container... so once the connector is not diverting traffic to a given
  container we can wait until the current users finish their work...
 
  is there a way to do this by updating some configuration settings
dynamically
 ?





 __
 Do you Yahoo!?
 Yahoo! Movies - Buy advance tickets for 'Shrek 2'
 http://movies.yahoo.com/showtimes/movie?mid=1808405861

 -
 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 configure the cookie-path-argument

2004-05-12 Thread Christoph Meier
Hi

I'm runnig tomcat 5.19 behind an apache.
apache is serving static contents and rewriting the requests (using 
mod_rewrite), for the rewrite-rules, see below.

the web-app /edit  has a Login-module, if login is successfull, the 
app /edit sends a cookie to the client with
Path=/edit(the setting of the Cookie is done with  
theHttpServletReqest.getSession(true)  ).
The value for the Path-attribute by default seems to be /appName  ... 
which for sure makes sense

since the client is sending its request to e.g.   
http://edit.hmb.ch/ServiceBroker   (or   http://edit.hmb.ch/de.html ),
but not sending to http://edit.hmb.ch/edit/ServiceBroker... the 
client does send back the cookie in the Request-Header (since for the 
client it's not a Request to  /edit ) 

in BEA-weblogic its possible to configure the path-attribute for the 
cookie for every web-app within the weblogic-specific weblogic.xml  (see 
weblogic.xml - snippet  below)

is there a way to override tomcats default-behaviour for setting the 
path-argument of  a cookie,
e.g. in the web.xml   or may be in the server.xml (in the 
context-section) ...
... or has someone another hint how to set the Path=/

thanks in advance,
christoph


# weblogic.xml - snippet -
session-descriptor
 session-param
param-nameCookieDomain/param-name
param-valuemyCookieDomain/param-value
param-nameCookiePath/param-name
param-value//param-value
 /session-param
/session-descriptor
# EOF: weblogic.xml - snippet -


# httpd.conf- snippet -
VirtualHost hmb.ch:80
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /home/hmb/htdocs
   ServerName www.hmb.ch
   ErrorLog /var/log/apache/hmb.ch-error.log
   CustomLog /var/log/apache/hmb.ch.log common
   RewriteEngine On
#   RewriteRule ^/(.*)\.(jpg|jpeg)$ $0 [L]
#   RewriteRule ^/(.*) http://localhost:8080/edit/$1; [P]
#   ProxyPassReverse / http://localhost:8080/edit/
   #RewriteRule ^/  http://localhost:8080/edit/index.html [L,P]
   RewriteRule ^/ServiceBroker(.*) http://localhost:8080/edit$0 [P]
   RewriteRule ^/(.*).html http://localhost:8080/edit$0 [P]
/VirtualHost
# EOF:   httpd.conf- snippet -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


oh

2004-05-12 Thread tomcat-user
picture?


Norton AntiVirus Deleted1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Trying to connect to DB2 usning JNDI

2004-05-12 Thread Cooper, Vickie
I have been trying to connect to DB2 but I keep getting the error:
javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context at org.apache.naming.NamingContext.lookup
My code has:
  Context initCtx =3D new InitialContext();
  Context envCtx =3D (Context)initCtx.lookup(java:comp/env);
  DataSource ds =3D (DataSource)envCtx.lookup(jdbc/DB2);

My server.xml has:
Resource name=3Djdbc/DB2 auth=3DContainer =
type=3Djavax.sql.DataSource/ ResourceParams name=3Djdbc/DB2
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value4/value
  /parameter
  parameter
namepassword/name
valuemypass/value
  /parameter
  parameter
nameurl/name
valuejdbc:db2:DB2/value
  /parameter
  parameter
namedriverClassName/name
valueCOM.ibm.db2.jdbc.app.DB2Driver/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
nameusername/name
valuemyuser/value
  /parameter
/ResourceParams
   Context className=3Dorg.apache.catalina.core.StandardContext
cachingAllowed=3Dtrue
charsetMapperClass=3Dorg.apache.catalina.util.CharsetMapper
cookies=3Dtrue crossContext=3Dfalse debug=3D0 =
docBase=3DC:/Program Files/Apache Group/Tomcat 4.1/webapps/vickie.war
mapperClass=3Dorg.apache.catalina.core.StandardContextMapper
path=3D/vickie privileged=3Dfalse reloadable=3Dfalse
swallowOutput=3Dfalse useNaming=3Dtrue
wrapperClass=3Dorg.apache.catalina.core.StandardWrapper
/Context

I added this to my web.xml:
web-app
   resource-ref
  res-ref-namejdbc/DB2/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
   /resource-ref

I can't find anything wrong...but it won't connect.  I'm using the
DB2Client on my pc to connect to the db2 data.  This works when I
connect with Jrun, so it should be able to find it.  It also works if I
use:
Class.forName(COM.ibm.db2.jdbc.app.DB2Driver);
String url=3D  jdbc:db2:DB2;

I have copied the db2java.zip to /tomcat/common/lib and renamed it to
db2java.jar

Any ideas why this won't connect?  Is there any way to test the
connection for TomCat outside of a servlet...just to verify it can get
there?

Thanks,

Vickie 


Vickie Cooper
OS/390 Web Services  FOCUS/EDA Technical Support
Phone:  (425) 957-5502
Email:   [EMAIL PROTECTED]


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



What happened to wrapper.properties in Tomcat 4.1

2004-05-12 Thread Jesse_Perez




I'm starting to migrate my applications from Tomcat 3.3 to version 4.1. My
web apps depend on JNI DLLs.
In Tomcat 3.3, we had a file called conf\jk\wrapper.properties used by the
NT Service and where we could specify
location of DLLs via the wrapper.ld_path parm. This wrapper.properties
does not exist in Tomcat 4.1 and I have
had no luck in finding a way to tell Tomcat where to find my DLLs.

Any suggestions are appreciated.

[EMAIL PROTECTED]


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



RE: What happened to wrapper.properties in Tomcat 4.1

2004-05-12 Thread Shapira, Yoav

Hi,
You can set the LD_LIBRARY_PATH variable, either as an environment
setting or in your $CATALINA_HOME/bin/catalina.sh/catalina.bat file.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 4:11 PM
To: [EMAIL PROTECTED]
Subject: What happened to wrapper.properties in Tomcat 4.1





I'm starting to migrate my applications from Tomcat 3.3 to version 4.1.
My
web apps depend on JNI DLLs.
In Tomcat 3.3, we had a file called conf\jk\wrapper.properties used by
the
NT Service and where we could specify
location of DLLs via the wrapper.ld_path parm. This
wrapper.properties
does not exist in Tomcat 4.1 and I have
had no luck in finding a way to tell Tomcat where to find my DLLs.

Any suggestions are appreciated.

[EMAIL PROTECTED]


-
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: Trying to connect to DB2 usning JNDI

2004-05-12 Thread Mike Curwen
Is the Resource outside or inside your Context ?
It should be inside. 
 


 -Original Message-
 From: Cooper, Vickie [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, May 12, 2004 3:04 PM
 To: [EMAIL PROTECTED]
 Subject: Trying to connect to DB2 usning JNDI
 
 
 I have been trying to connect to DB2 but I keep getting the error:
 javax.naming.NameNotFoundException: Name jdbc is not bound in 
 this Context at org.apache.naming.NamingContext.lookup
 My code has:
   Context initCtx =3D new InitialContext();
   Context envCtx =3D (Context)initCtx.lookup(java:comp/env);
   DataSource ds =3D (DataSource)envCtx.lookup(jdbc/DB2);
 
 My server.xml has:
 Resource name=3Djdbc/DB2 auth=3DContainer = 
 type=3Djavax.sql.DataSource/ ResourceParams name=3Djdbc/DB2
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namemaxWait/name
 value5000/value
   /parameter
   parameter
 namemaxActive/name
 value4/value
   /parameter
   parameter
 namepassword/name
 valuemypass/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:db2:DB2/value
   /parameter
   parameter
 namedriverClassName/name
 valueCOM.ibm.db2.jdbc.app.DB2Driver/value
   /parameter
   parameter
 namemaxIdle/name
 value2/value
   /parameter
   parameter
 nameusername/name
 valuemyuser/value
   /parameter
 /ResourceParams
Context className=3Dorg.apache.catalina.core.StandardContext
 cachingAllowed=3Dtrue 
 charsetMapperClass=3Dorg.apache.catalina.util.CharsetMapper
 cookies=3Dtrue crossContext=3Dfalse debug=3D0 = 
 docBase=3DC:/Program Files/Apache Group/Tomcat 
 4.1/webapps/vickie.war 
 mapperClass=3Dorg.apache.catalina.core.StandardContextMapper
 path=3D/vickie privileged=3Dfalse reloadable=3Dfalse 
 swallowOutput=3Dfalse useNaming=3Dtrue 
 wrapperClass=3Dorg.apache.catalina.core.StandardWrapper
 /Context
 
 I added this to my web.xml:
 web-app
resource-ref
   res-ref-namejdbc/DB2/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
/resource-ref
 
 I can't find anything wrong...but it won't connect.  I'm 
 using the DB2Client on my pc to connect to the db2 data.  
 This works when I connect with Jrun, so it should be able to 
 find it.  It also works if I
 use:
 Class.forName(COM.ibm.db2.jdbc.app.DB2Driver);
 String url=3D  jdbc:db2:DB2;
 
 I have copied the db2java.zip to /tomcat/common/lib and 
 renamed it to db2java.jar
 
 Any ideas why this won't connect?  Is there any way to test 
 the connection for TomCat outside of a servlet...just to 
 verify it can get there?
 
 Thanks,
 
 Vickie 
 
 
 Vickie Cooper
 OS/390 Web Services  FOCUS/EDA Technical Support
 Phone:  (425) 957-5502
 Email:   [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: unable to compile class for JSP

2004-05-12 Thread QM
On Wed, May 12, 2004 at 03:18:45PM -0400, Chris Purcell wrote:
: Binary file webapps/examples/WEB-INF/classes/num/NumberGuessBean.class

So far, so good.

Next step: what are the perms on the class file, and all dirs leading up
to it?  Is everything accessible to the tomcat user?

The short version of this test, substituting within the {}'s as needed:

su - {tomcat user} -c file {path to class file}

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



Revoking or deleting a client certificate

2004-05-12 Thread Plamen Neykov
Hi all,

It is probably a stupid question, but  
I have standalone tomcat installation with client authentication switched on 
as described in the tomcat documentation. The problem is that anybody who has 
a signed certificate from my CA can connect to tomcat - even if the client 
certificate is not in the tomcat keystore . How can I make sure that only 
clients with certificates existing in the tomcat keystore are allowed to 
connect?


Thanks a lot!


pgp0.pgp
Description: signature


error shutting down the tomcat

2004-05-12 Thread Arora, Avinash
Hi,
   I was making some changes to my server.xml (I was adding another
context to it). I was also using the webpage of manager. But even after
making changes I cannot see the newly context available in the manager
window. I decided to restart tomcat using command line. But I am getting
the follwing exception--
bash-2.03$ ./startup.sh
Using CATALINA_BASE:   /opt/aarora/jakarta-tomcat-4.1.29
Using CATALINA_HOME:   /opt/aarora/jakarta-tomcat-4.1.29
Using CATALINA_TMPDIR: /opt/aarora/jakarta-tomcat-4.1.29/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.0
bash-2.03$ ./shutdown.sh
Using CATALINA_BASE:   /opt/aarora/jakarta-tomcat-4.1.29
Using CATALINA_HOME:   /opt/aarora/jakarta-tomcat-4.1.29
Using CATALINA_TMPDIR: /opt/aarora/jakarta-tomcat-4.1.29/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.0
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.init(Socket.java:290)
at java.net.Socket.init(Socket.java:118)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
bash-2.03$

although starting up tomcat do not show any errors, but I cannot see
that tomcat is working. Nothing is available on the web page, I get
error saying page not available.
I have even restored all the changes, but then alsp I get them same
exception. Any suggestions??
Thanks. 

Avinash Arora


 

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



Re: Revoking or deleting a client certificate

2004-05-12 Thread QM
On Wed, May 12, 2004 at 10:57:30PM +0200, Plamen Neykov wrote:
: I have standalone tomcat installation with client authentication switched on
: as described in the tomcat documentation. The problem is that anybody who has
: a signed certificate from my CA can connect to tomcat - even if the client
: certificate is not in the tomcat keystore .

Yes, that's considered a strong selling point of SSL trust
chains/hierarchies.  ;)


: How can I make sure that only
: clients with certificates existing in the tomcat keystore are allowed to
: connect?

Remove the CA cert from the keystore and install only the certs (pub
keys, that is) of clients that should be allowed to connect.

Barring that, create a special CA for just Tomcat connections and store
that in the keystore.  That would spare you the trouble of adding
clients to the keystore individually.

-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 4.1.x Vs 5.0.x

2004-05-12 Thread Wade Chandler
Shapira, Yoav wrote:

Hi,


Sun 1.4.2
IBM 1.4.1
Bea 1.4.2 (JRockit)
Which one would be better?
I am running RH Enterprise Linux 3 on a Dell PowerEdge 1655MC: dual
1.4Ghz PIII and 2GB of RAM.


The reason people cite for shifting away from the Sun JVM are
performance-oriented.  The problems cited with others often revolve
around bad stability.  So if you want stability (which I think is the
case for a service host), start out using the Sun JDK.
BTW, I'm not convinced on the performance front either, so definitely
IMHO start with the Sun JDK.
Yoav



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]


I agree with Yoav.  I find Sun to be the better of all the JVMs I have 
tried in both cases: performance and stability.  If someone can show me 
something working and prove their points, then I'll have reason to 
believe, but from my own experiences Sun's VM is usually less buggy and 
runs very well and the others including IBM and Blackdown don't really 
compare (at least on Intel and Linux anyways).

Wade



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


Re: Revoking or deleting a client certificate

2004-05-12 Thread Plamen Neykov
Thanks for the very quick reply!

But  I had the certificates of the clients only initially in the keystore 
(no CA cert!) but I had trouble with MSIE and Mozilla - both denied to 
present the certificate to the server so that no connection was possible from 
those browsers :-(

On the second suggestion - it would be not very practical to send to every 
client a new CA cert. every time someone leaves the community

Is the Apache http server better on that or is it a kind of basic SSL problem 
here?

Thanks!

On Wednesday 12 May 2004 23:03, QM wrote:
 On Wed, May 12, 2004 at 10:57:30PM +0200, Plamen Neykov wrote:
 : I have standalone tomcat installation with client authentication switched 
on
 : as described in the tomcat documentation. The problem is that anybody who 
has
 : a signed certificate from my CA can connect to tomcat - even if the client
 : certificate is not in the tomcat keystore .
 
 Yes, that's considered a strong selling point of SSL trust
 chains/hierarchies.  ;)
 
 
 : How can I make sure that only
 : clients with certificates existing in the tomcat keystore are allowed to
 : connect?
 
 Remove the CA cert from the keystore and install only the certs (pub
 keys, that is) of clients that should be allowed to connect.
 
 Barring that, create a special CA for just Tomcat connections and store
 that in the keystore.  That would spare you the trouble of adding
 clients to the keystore individually.
 
 -QM
 


pgp0.pgp
Description: signature


charset error still on Tomcat 4.1.30

2004-05-12 Thread Kilic, Hakan
I've searched the mailing list and bugzilla, and it looks like this was
addressed in Tomcat 4.1.30, but I still see a problem with 4.1.30. Remy in
his comments mentioned it's probably a configuration issue (and hinted some
actual test/data would be useful). Here is what I did:

1)  Clean install of Tomcat 4.1.30 standalone running on port 80.
2)  Copied over test.jsp (attached) into the ROOT directory of tomcat.
3)  Used CURL to get the server response.

Test.jsp:
++
% 
  response.setContentType(application/pdf);
%

html
head
title
Worked?
/title

body
Charset test
/body
/html
+++

cURL response (using org.apache.coyote.tomcat4.CoyoteConnector):
+++
HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=24F976F993E84090BFC69EC9E77A8710; Path=/
Content-Type: application/pdf;charset=ISO-8859-1
Content-Length: 90
Date: Wed, 12 May 2004 21:34:57 GMT
Server: Apache-Coyote/1.1

cURL response (using org.apache.catalina.connector.http.HttpConnector):
+++
HTTP/1.1 200 OK
Content-Type: application/pdf;charset=ISO-8859-1
Date: Wed, 12 May 2004 21:46:25 GMT
Server: Apache Tomcat/4.1.30 (HTTP/1.1 Connector)
Transfer-Encoding: chunked
Set-Cookie: JSESSIONID=65AABE61AA1C86FDF963B459D67D1573; Path=/



It looks like charset is still being set, which is wrong. Any ideas? Is the
jsp file incorrect?

Thanks.


Re: Revoking or deleting a client certificate

2004-05-12 Thread QM
On Wed, May 12, 2004 at 11:31:11PM +0200, Plamen Neykov wrote:
: Thanks for the very quick reply!

Please, don't think me till it works. ;)


: But  I had the certificates of the clients only initially in the keystore
: (no CA cert!) but I had trouble with MSIE and Mozilla - both denied to
: present the certificate to the server so that no connection was possible from
: those browsers :-(

Was this a CA from a commercial entity, or a homegrown/self-signed CA?

I don't see why a browser would refuse to present its client cert to the
server.  Sounds more like the client couldn't verify the server CA and
stopped there.  (IIRC, the server gives its cert and then (optionally)
requests the client's cert.)


: On the second suggestion - it would be not very practical to send to every
: client a new CA cert. every time someone leaves the community

Not at all, but that's not quite what I meant: the idea was to create a
new, single CA and store *that* pub key in the keystore.  Certs for
clients are issued from/signed by this new, Tomcat-only CA.

iow, you'd separate your general CA work (for the rest of your
organization) from the certs needed for Tomcat connections.

This is essentially the same as what you have now, except replace your
current CA with this new Tomcat-only CA.

If I've misunderstood your scenario completely, please reexplain.


: Is the Apache http server better on that or is it a kind of basic SSL problem
: here?

Sounds more like an SSL infrastructure issue.

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



How to set the JSESSION cookie domain?

2004-05-12 Thread Christian Mittendorf
Hello all,

I'm working on a tomcat project that shall be deployed on multiple 
hosts.

However, we are currently stuck with two problems / questions:

1) How can I specifiy the domain name that tomcat is using for the 
JSESSIONID cookie?
By default tomcat is using the domain name from the request. For 
example a request to
http://www.foo.com will create a JSESSIONID cookie for the domain 
www.foo.com.
But instead we would like the cookie domain to be .foo.com. How can I 
tell tomcat to
use my specified domain name instead of the default behaviour?

2) Problem two is related to session clustering. We are using Tomcat 5 
for deployment.
A simple example is working nice. However, the complete application is 
showing some
strange behaviour. Sometimes the changed session object is available on 
every host,
sometimes not. Is there a way to make the session mechanism more 
verbose? Can we
instruct Tomcat to tell us whenever he is changing objects in the 
session store between
different hosts? Where can we find some detailed information about this 
topic?

Thanks for your help!

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


Tomcat default page

2004-05-12 Thread Claudio Carvalho
Cláudio CarvalhoHi,

How can I define the default page for my server, when I type in the browser
www.myhost.com it goes to my specific www.myhost.com/project  instead of
going to the Tomcat's initial page?

Thanks

Claudio.



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



Re: Revoking or deleting a client certificate

2004-05-12 Thread Plamen Neykov
I'm sure it will work ;-)

I think previously I misunderstood you - now just for my understanding - I 
should create a selfsigned CA just for signing the server certificate and 
then import in the keystore the client certificates which are signed with the 
org's standard CA cert. And then the client browsers  should be made aware of 
this selfsigned CA in addition so that they can verify the server 
authenticity?

Is that right? (it sounds actually logical to me :-))

Thanks


pgp0.pgp
Description: signature


RE: Trying to connect to DB2 usning JNDI

2004-05-12 Thread Cooper, Vickie
I moved the context around the resource:
Context debug=0 docBase=C:/Program Files/Apache Group/Tomcat
4.1/webapps/vickie.war path=/vickie reloadable=false
useNaming=true
  
Resource name=jdbc/DB2 auth=Container
type=javax.sql.DataSource/

ResourceParams name=jdbc/DB2
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value4/value
  /parameter
  parameter
namepassword/name
valuemypass/value
  /parameter
  parameter
nameurl/name
valuejdbc:db2:DB2/value
  /parameter
  parameter
namedriverClassName/name
valueCOM.ibm.db2.jdbc.app.DB2Driver/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
nameusername/name
valuemyuserid/value
  /parameter
/ResourceParams
  /Context

Now when I start up the server, I get an error:
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)...

When I try to run the servlet, I now get this error:
SQLException caught: Cannot create JDBC driver of class '' for connect
URL 'null' 

Any ideas?

Thanks,

Vickie

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 12, 2004 1:25 PM
To: 'Tomcat Users List'
Subject: RE: Trying to connect to DB2 usning JNDI


Is the Resource outside or inside your Context ?
It should be inside. 
 


 -Original Message-
 From: Cooper, Vickie [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 12, 2004 3:04 PM
 To: [EMAIL PROTECTED]
 Subject: Trying to connect to DB2 usning JNDI
 
 
 I have been trying to connect to DB2 but I keep getting the error:
 javax.naming.NameNotFoundException: Name jdbc is not bound in
 this Context at org.apache.naming.NamingContext.lookup
 My code has:
   Context initCtx =3D new InitialContext();
   Context envCtx =3D (Context)initCtx.lookup(java:comp/env);
   DataSource ds =3D (DataSource)envCtx.lookup(jdbc/DB2);
 
 My server.xml has:
 Resource name=3Djdbc/DB2 auth=3DContainer =
 type=3Djavax.sql.DataSource/ ResourceParams name=3Djdbc/DB2
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namemaxWait/name
 value5000/value
   /parameter
   parameter
 namemaxActive/name
 value4/value
   /parameter
   parameter
 namepassword/name
 valuemypass/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:db2:DB2/value
   /parameter
   parameter
 namedriverClassName/name
 valueCOM.ibm.db2.jdbc.app.DB2Driver/value
   /parameter
   parameter
 namemaxIdle/name
 value2/value
   /parameter
   parameter
 nameusername/name
 valuemyuser/value
   /parameter
 /ResourceParams
Context className=3Dorg.apache.catalina.core.StandardContext
 cachingAllowed=3Dtrue 
 charsetMapperClass=3Dorg.apache.catalina.util.CharsetMapper
 cookies=3Dtrue crossContext=3Dfalse debug=3D0 = 
 docBase=3DC:/Program Files/Apache Group/Tomcat 
 4.1/webapps/vickie.war 
 mapperClass=3Dorg.apache.catalina.core.StandardContextMapper
 path=3D/vickie privileged=3Dfalse reloadable=3Dfalse 
 swallowOutput=3Dfalse useNaming=3Dtrue 
 wrapperClass=3Dorg.apache.catalina.core.StandardWrapper
 /Context
 
 I added this to my web.xml:
 web-app
resource-ref
   res-ref-namejdbc/DB2/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
/resource-ref
 
 I can't find anything wrong...but it won't connect.  I'm
 using the DB2Client on my pc to connect to the db2 data.  
 This works when I connect with Jrun, so it should be able to 
 find it.  It also works if I
 use:
 Class.forName(COM.ibm.db2.jdbc.app.DB2Driver);
 String url=3D  jdbc:db2:DB2;
 
 I have copied the db2java.zip to /tomcat/common/lib and
 renamed it to db2java.jar
 
 Any ideas why this won't connect?  Is there any way to test
 the connection for TomCat outside of a servlet...just to 
 verify it can get there?
 
 Thanks,
 
 Vickie
 
 
 Vickie Cooper
 OS/390 Web Services  FOCUS/EDA Technical Support
 Phone:  (425) 957-5502
 Email:   [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: Trying to connect to DB2 usning JNDI

2004-05-12 Thread Parsons Technical Services
Vickie,

1. Look for an error in the server.xml. When you moved the context section
you may have left out or added in something that messes up the format of the
file. Use a viewer like IE to look at the file and see what is wrong.

2. Check your log and if nothing shows up the turn up debugging.

3. Move the username entry to before the password entry. I had a problem
with it not seeing the password.

Doug
www.parsonstechnical.com


- Original Message - 
From: Cooper, Vickie [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 7:32 PM
Subject: RE: Trying to connect to DB2 usning JNDI


I moved the context around the resource:
Context debug=0 docBase=C:/Program Files/Apache Group/Tomcat
4.1/webapps/vickie.war path=/vickie reloadable=false
useNaming=true

Resource name=jdbc/DB2 auth=Container
type=javax.sql.DataSource/

ResourceParams name=jdbc/DB2
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value4/value
  /parameter
  parameter
namepassword/name
valuemypass/value
  /parameter
  parameter
nameurl/name
valuejdbc:db2:DB2/value
  /parameter
  parameter
namedriverClassName/name
valueCOM.ibm.db2.jdbc.app.DB2Driver/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
nameusername/name
valuemyuserid/value
  /parameter
/ResourceParams
  /Context

Now when I start up the server, I get an error:
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)...

When I try to run the servlet, I now get this error:
SQLException caught: Cannot create JDBC driver of class '' for connect
URL 'null'

Any ideas?

Thanks,

Vickie

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 12, 2004 1:25 PM
To: 'Tomcat Users List'
Subject: RE: Trying to connect to DB2 usning JNDI


Is the Resource outside or inside your Context ?
It should be inside.



 -Original Message-
 From: Cooper, Vickie [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 12, 2004 3:04 PM
 To: [EMAIL PROTECTED]
 Subject: Trying to connect to DB2 usning JNDI


 I have been trying to connect to DB2 but I keep getting the error:
 javax.naming.NameNotFoundException: Name jdbc is not bound in
 this Context at org.apache.naming.NamingContext.lookup
 My code has:
   Context initCtx =3D new InitialContext();
   Context envCtx =3D (Context)initCtx.lookup(java:comp/env);
   DataSource ds =3D (DataSource)envCtx.lookup(jdbc/DB2);

 My server.xml has:
 Resource name=3Djdbc/DB2 auth=3DContainer =
 type=3Djavax.sql.DataSource/ ResourceParams name=3Djdbc/DB2
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namemaxWait/name
 value5000/value
   /parameter
   parameter
 namemaxActive/name
 value4/value
   /parameter
   parameter
 namepassword/name
 valuemypass/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:db2:DB2/value
   /parameter
   parameter
 namedriverClassName/name
 valueCOM.ibm.db2.jdbc.app.DB2Driver/value
   /parameter
   parameter
 namemaxIdle/name
 value2/value
   /parameter
   parameter
 nameusername/name
 valuemyuser/value
   /parameter
 /ResourceParams
Context className=3Dorg.apache.catalina.core.StandardContext
 cachingAllowed=3Dtrue
 charsetMapperClass=3Dorg.apache.catalina.util.CharsetMapper
 cookies=3Dtrue crossContext=3Dfalse debug=3D0 =
 docBase=3DC:/Program Files/Apache Group/Tomcat
 4.1/webapps/vickie.war
 mapperClass=3Dorg.apache.catalina.core.StandardContextMapper
 path=3D/vickie privileged=3Dfalse reloadable=3Dfalse
 swallowOutput=3Dfalse useNaming=3Dtrue
 wrapperClass=3Dorg.apache.catalina.core.StandardWrapper
 /Context

 I added this to my web.xml:
 web-app
resource-ref
   res-ref-namejdbc/DB2/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
/resource-ref

 I can't find anything wrong...but it won't connect.  I'm
 using the DB2Client on my pc to connect to the db2 data.
 This works when I connect with Jrun, so it should be able to
 find it.  It also works if I
 use:
 Class.forName(COM.ibm.db2.jdbc.app.DB2Driver);
 String url=3D  jdbc:db2:DB2;

 I have copied the db2java.zip to /tomcat/common/lib and
 renamed it to db2java.jar

 Any ideas why this won't connect?  Is there any way to test
 the connection for TomCat outside of a servlet...just to
 verify it can get there?

 Thanks,

 Vickie


 Vickie Cooper
 OS/390 Web Services  

how to access webpages under apache/tomcat without specifying port 8080

2004-05-12 Thread b
I have a webserver with Apache 2.043 and Tomcat 4.1.18 and mod_jk connector. 
 
I can access my webpages locally without having to specify tomcat's port 8080.
 
eg: http://localhost/webapps
 
However, I have still have to specify the port number if accessing from other computers
 
eg: http://webserver:8080/webapps
 
My server is on Win2K Server SP4 with MySQL as the database. 
 
Any idea on how I can access the webpages from anywhere without having to specify the 
port number?
 
Regards,
shabb


-
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2' 

RE: symLinks broken in tomcat 5.0.19

2004-05-12 Thread Randy
Host name=www.domain.com debug=0 appBase=/home/team
unpackWARs=true
Context path=
 docBase=/home/team

Do you really want the Host appBase to be the same as the context docBase?

Yeah this was a bad idea, and on my list to go back and change. 


   Resources
className=org.apache.naming.resources.FileDirContext
allowLinking=true

At one I point I thought this was no longer needed in tomcat5, and was
replaced by an allowLinking attribute elsewhere (the Context itself
maybe)?  It definitely changed from tomcat 4 to tomcat 5.  Our internet
access is messed up at the moment so I don't have access to tomcat's
configuration reference, but take a look 
there.
Yoav

Thanks
It is now and it works
Context path=
 docBase=/home/team
 allowLinking=true
 debug=0
 reloadable=false 



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



  1   2   >