Ldap alias for user-account doesn't work in jndi realm

2005-01-31 Thread Hennig, Andreas
Authentication to an ldap realm fails if I use a user alias. normal
user-accounts work properly. 
I've tried always and never for derefAliases but it doesn't work. 

How do I authenticate successfully with an alias?

Thanks 

Andreas Hennig

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



Redeployment of a webapp without restarting tomcat

2005-01-31 Thread Chris Picton
Hi

I am using tomcat 5.0.X, and have the following serlvet.xml file:
/etc/tomcat5/Catalina/localhost/Servlet.xml

Context path= docBase=/home/chrisp/Servlet.war reloadable=true/


I would like the webapp to be unloaded and reloaded when I make changes
to the war file.  autoDeploy and unpackWARs are both true in the
server.xml


Currently, when tomcat starts, it upacks Servlet.war
to /var/lib/tomcat5/webapps/ROOT.

If I update Servlet.xml, the webapp is reloaded, but not unpacked again,
even if the war file has changed.

Is there a way to get the war to be unpacked again if it has changed.  I
don't have the manager webapp installed, and do not want to install it.
Are there any other ways around my problem?


-- 
Chris Picton [EMAIL PROTECTED]
Tangent Systems


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



Do the Hotspot fixes in jvm-1.4.2_07-b05 affect tomcat-5.0.27

2005-01-31 Thread Zsolt Koppany
Hi,

At the url below you can see several fixes in jvm-1.4.2_07-b05. Do theses
problems affect also tomcat-5.0.27? Should we upgrade from 1.4.2_06-b03 to
1.4.2_07-b05?

http://java.sun.com/j2se/1.4.2/ReleaseNotes.html#bugparade

Zsolt



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



RE: [OT] Advertising website

2005-01-31 Thread Didier McGillis
This is why you will need someone who is dedicated to keeping up with trends 
and rules of search engines.  They change to close loop holes, and close 
down tricks.

From: Peter Crowther [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: RE: [OT] Advertising website
Date: Sun, 30 Jan 2005 13:35:04 -
 From: Didier McGillis [mailto:[EMAIL PROTECTED]
 One trick that I know of and requires some software.  Is to
 setup 4 to 5
 sites filled with links back to your pages, and similar
 content, and of
 course you link to those sites.
If Google notice you spamming the index in this way then they reserve
the right not to list your site.  Also, it appears they're now
autodetecting the IP addresses of the 'copy' sites and are reducing the
ranking of sites that are hosted at the same IP.  So if you *are* going
to risk this, you'll need sites hosted with different people.
- Peter
-
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: [OT] Advertising website

2005-01-31 Thread Parsons Technical Services
So if a group of say Tomcat uses all traded some simple html pages with each 
others links we could in fact beat the system and for free (as in beer).

Doug
- Original Message - 
From: Didier McGillis [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, January 31, 2005 8:20 AM
Subject: RE: [OT] Advertising website


This is why you will need someone who is dedicated to keeping up with 
trends and rules of search engines.  They change to close loop holes, and 
close down tricks.

From: Peter Crowther [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: RE: [OT] Advertising website
Date: Sun, 30 Jan 2005 13:35:04 -
 From: Didier McGillis [mailto:[EMAIL PROTECTED]
 One trick that I know of and requires some software.  Is to
 setup 4 to 5
 sites filled with links back to your pages, and similar
 content, and of
 course you link to those sites.
If Google notice you spamming the index in this way then they reserve
the right not to list your site.  Also, it appears they're now
autodetecting the IP addresses of the 'copy' sites and are reducing the
ranking of sites that are hosted at the same IP.  So if you *are* going
to risk this, you'll need sites hosted with different people.
- Peter
-
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: logging remote IP address

2005-01-31 Thread David Smith
Sorry I'm coming into this discussion so late.  I tend not to read work 
email on weekends for my own sanity.

Let's not equate IPs with users.  The fact of the matter is there are a 
lot of places that use cable routers to share one internet IP with a 
number of different clients.  Here in Ithaca, it's as common as water 
with student housing doing some not so legal things with their 
Roadrunner hook-ups.  I'm sure other areas are doing the same stuff with 
both cable routers and wireless access points.

The facts of the matter are you have two different sessions with two 
different login.  Personally I would consider that enough to determine 
there are two different people regardless of the common IP.

--David
Mark wrote:
I'm trying to figure out is is the client on remote network has a
duplicated id's (id used in my aplication).
Here an example:
I have two entries in access log file within 30 second from the same
IP, but different logon id - my question is how to track it down that
it's a different person?
I check cookies: sessionID is not the same, but it doesn't help since
you can close and open a browser to create a new cooke string.
It might be getting of Tomcat topic, but any input is welcome.
Thanks,
Mark.
--- Cervenka, Tom [EMAIL PROTECTED] wrote:
 

Mark,
Why do want to know the internal NAT ip address of a request? How
is
this helpful?
Also, what if the requests come from clients with accounts on the
same
multiuser system? Are you trying to figure out how to tell them
apart?
There is no NAT address in this case.
Maybe what you are trying to do is best solved by using cookies?
What is
it that you are trying to do?
Tom


   

-
 

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


		
__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

-
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: [OT] Advertising website

2005-01-31 Thread Didier McGillis
If I remember correctly and somone who has been more involved with me more 
then this can tell me right or wrong.  The key on that is you have to have 
similar keywords and content.  FOr example a company I used to work for is 
really into this, and they have had great results.  They have 18 
micro-sites, or sites that are keyword intensive, resouce/information 
pages that are seperate domains, they have links from their main site to 
all of these micro sites, and all the microsites link back.  This also 
allows for those microsites to appear in the search results and they have 
javascript redirect that go to certain pages.  These 18 microsites server up 
content specific to the spider/indexer that is coming in.

From: Parsons Technical Services [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: [OT] Advertising website
Date: Mon, 31 Jan 2005 08:26:56 -0500
So if a group of say Tomcat uses all traded some simple html pages with 
each others links we could in fact beat the system and for free (as in 
beer).

Doug
- Original Message - From: Didier McGillis 
[EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, January 31, 2005 8:20 AM
Subject: RE: [OT] Advertising website


This is why you will need someone who is dedicated to keeping up with 
trends and rules of search engines.  They change to close loop holes, and 
close down tricks.

From: Peter Crowther [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: RE: [OT] Advertising website
Date: Sun, 30 Jan 2005 13:35:04 -
 From: Didier McGillis [mailto:[EMAIL PROTECTED]
 One trick that I know of and requires some software.  Is to
 setup 4 to 5
 sites filled with links back to your pages, and similar
 content, and of
 course you link to those sites.
If Google notice you spamming the index in this way then they reserve
the right not to list your site.  Also, it appears they're now
autodetecting the IP addresses of the 'copy' sites and are reducing the
ranking of sites that are hosted at the same IP.  So if you *are* going
to risk this, you'll need sites hosted with different people.
- Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


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

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


Ream authentication + Apache Web Server Authentication

2005-01-31 Thread SAG - Jose Antonio Tarifa
Hi.
 
I have a question.  How can I mix authentication on both servers, Tomcat and 
Apache?
 
I want to use Form authentication with Tomcat, also I need Apache Web Server to 
be authenticated.  Is posible to authenticate a user in Tomcat and get 
authenticated in Apache at the same time?
 
Thanks.
 
José Antonio Tarifa Lorenzo
SAGE-OMEL
Tfno. +34 91 659 89 79
 
 


RE: Tomcat connector for AIX 5.2

2005-01-31 Thread Fan, Tony
Hi,
 
Here is what I did recently to make jk works with Apache 2.0.52 and  Jboss 
3.2.5 in AIX 5.2+SP4.
1. download jk source from 
http://archive.apache.org/dist/jakarta/tomcat-connectors/jk/v1.2.3/src/
2. following the instruction in 
http://www.apache.org/~trawick/tomcataix.html#mod_jk_gcc
3. you may get compile error during Apache compiling with pthread,  instead of 
using pthread.h from /usr/lib try to copy the one from you gcc3.2.2 source.  

--Tony
 

-Original Message-
From: Hausmann, Tobias [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 28, 2005 5:40 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat connector for AIX 5.2

Hi,

Would anybody please tell me where I can download a Tomcat connector (mod_jk2 
or mod_jk) for AIX 5.2?  I have tried to compile a connector myself, but I got 
constant compiler errors.  I want to use it with Apache (2.0.52) and Tomcat 
4.1.31.

Unfortunately, there are no available binaries for AIX on the Jakarta website.

http://apache.cs.utah.edu/jakarta/tomcat-connectors/jk2/binaries/
http://apache.cs.utah.edu/jakarta/tomcat-connectors/jk/binaries/aix/


Any help is greatly appreciated.

Thanks,

Tobias


This electronic transmission may contain information that is privileged, 
confidential and exempt from disclosure under
applicable law. If you are not the intended recipient, please notify me 
immediately as use of this information is strictly prohibited.

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



compiling mod_jk 1.2.8 from source on Win32

2005-01-31 Thread Charles Baker
I have visual studio 6 service pack 5 installed. I have the processor
packs installed. I have set APACHE1_HOME to my apache_1.3.33 source
directory. I have set JAVA_HOME to my JDK directory. APACHE_HOME is set
to the apache installation directory. A colleague advised me to change
these two lines in the mod_jk.dsp file from 

ADD CPP /nologo /MD /W3 /O2 /Zi /I ..\common /I
$(APACHE1_HOME)\include /I $(APACHE1_HOME)\src\include /I
$(APACHE1_HOME)\src\os\win32 /I $(JAVA_HOME)\include /I
$(JAVA_HOME)\include\win32 /D WIN32 /D NDEBUG /D _WINDOWS /D
_MBCS /D _USRDLL /D MOD_JK_EXPORTS /FdRelease\mod_jk_src /FD /

to

ADD CPP /nologo /MD /W3 /O2 /Zi /I ..\common /I
$(APACHE1_HOME)\include /I $(APACHE1_HOME)\src\include /I
$(APACHE1_HOME)\src\os\win32 /I $(JAVA_HOME)\include /I
$(JAVA_HOME)\include\win32 /D EAPI /D WIN32 /D NDEBUG /D
_WINDOWS /D _MBCS /D _USRDLL /D MOD_JK_EXPORTS
/FdRelease\mod_jk_src /FD /

Note the only change is the addition of /D EAPI. I did this in the
release and debug sections, and of course uncommented those lines. I'm
expecting this to produce a DLL. However I get 19 errors when I run
``MSDEV mod_jk.dsp /MAKE ALL''. Here are the errors from the Release
build:

Configuration: mod_jk - Win32
Release
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_ajp_c
ommon.c(
32): Could not find the file util_ebcdic.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_ajp_c
ommon.c(
35): Could not find the file novsock2.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(47):
 Could not find the file ap_config.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(51):
 Could not find the file ap_config.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(52):
 Could not find the file apr_strings.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(53):
 Could not find the file apr_lib.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(66):
 Could not find the file unistd.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(68):
 Could not find the file novsock2.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(75):
 Could not find the file netdb.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(76):
 Could not find the file netinet/in.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(77):
 Could not find the file sys/socket.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(80):
 Could not find the file netinet/tcp.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(81):
 Could not find the file arpa/inet.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(82):
 Could not find the file sys/un.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(84):
 Could not find the file sys/socketvar.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(87):
 Could not find the file sys/select.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(91):
 Could not find the file sys/time.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(92):
 Could not find the file sys/ioctl.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(172)
: Could not find the file util_ebcdic.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_mt.h(
59): Could not find the file pthread.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(47):
 Could not find the file ap_config.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(51):
 Could not find the file ap_config.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(52):
 Could not find the file apr_strings.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(53):
 Could not find the file apr_lib.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(66):
 Could not find the file unistd.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(68):
 Could not find the file novsock2.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(75):
 Could not find the file netdb.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(76):
 Could not find the file netinet/in.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(77):
 Could not find the file sys/socket.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(80):
 Could not find the file netinet/tcp.h.
C:\sandbox\jakarta-tomcat-connectors-1.2.8-src\jk\native\common\jk_globa
l.h(81):
 Could not find the file arpa/inet.h.

Re: logging remote IP address

2005-01-31 Thread Dakota Jack
snip
 Let's not equate IPs with users.  The fact of the matter is there are a
 lot of places that use cable routers to share one internet IP with a
 number of different clients.  
/snip

You probably did not have time to read all of the posts, David, but,
the fact of the matter, I think everyone was clear on this one.

snip
 The facts of the matter are you have two different sessions with two
 different login.  Personally I would consider that enough to determine
 there are two different people regardless of the common IP.
/snip

Different sessions do not indicate two different people or two
different machines anymore than the same ip address indicates the same
person.  I think that the original question, however, would have been
happy with identifying two different machines.  And, of course, one
can do thatl  So we do not have to make your assumption.

Jack


-- 
You can lead a horse to water but you cannot make it float on its back.
Heaven has changed.  The Sky now goes all the way to our feet.

~Dakota Jack~

This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation.

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



Re: Jakarta Tomcat Connector - Load Balancing

2005-01-31 Thread Derek Greer
Thanks.  I don't recall reading this in any of the documentation.  Can 
you explain what setting this actually does?

Derek
Mladen Turk wrote:
Derek Greer wrote:
I'm trying to use the Tomcat Connector to do load balancing through 
the IIS filter, however the sessions do not seem to be 'sticky.  
According to the documentation, the session is set to sticky by 
default.  Even so, after seeing non-sticky behavior I set my lb 
worker explicitly (i.e. worker.lbworker.sticky_session=1).  Why is 
this not working?

Could be various reasons, but the first one is:
Did you set the jvmRoute to match the worker names?
Mladen.
-
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]


Specifying context details in web.xml

2005-01-31 Thread micky none
Hi Friends,
I need to ask you guys that is it possible that I can move the context details 
from my server.xml to web.xml.Like when i make a war,i want that i should 
specify the database url,driver,username,password etc. details .Presently i 
have 2 contexts(one for alpha databse other for the live one)in the server.xml 
file in the server.But i need these details in my web.xml.Can you tell me if I 
can do soany help would be appreciated.
Thanks

RE: Jakarta Tomcat Connector - Load Balancing

2005-01-31 Thread Richard Mixon (qwest)
Derek Greer wrote:
 Thanks.  I don't recall reading this in any of the documentation.  Can
 you explain what setting this actually does?


 Derek

 Mladen Turk wrote:

 Derek Greer wrote:

 I'm trying to use the Tomcat Connector to do load balancing through
 the IIS filter, however the sessions do not seem to be 'sticky.
 According to the documentation, the session is set to sticky by
 default.  Even so, after seeing non-sticky behavior I set my lb
 worker explicitly (i.e. worker.lbworker.sticky_session=1).  Why is
 this not working?


 Could be various reasons, but the first one is:
 Did you set the jvmRoute to match the worker names?

It is documented both in the server.xml, in the JK doc and in the Tomcat
configuration documentation.
e.g - http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/engine.html


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



Re: Tomcat datasource not persisting across restarts

2005-01-31 Thread Johnny Tolliver
Thanks for your help. You wrote:

-
Always better to be too much than not enough.

At a quick glance I see two errors.

One make

Context
  path=/APLRegistration
  docBase=/usr/local/webapps/aplregistration/exploded


Context
  path=/APLRegistration
  docBase=/usr/local/webapps

this for the root of the app. When the war or root folder resides.
-

I'm confused by this. First, I found that to get the datasource to work at all
I had to use a context file with a docbase pointing to an exploded war file
rather than just installing a complete war file into Tomcat's webapps
directory. Thinking that there might be other such occasions coming up, I
invented a directory outside of the Tomcat tree to hold such context files and
exploded wars and chose /usr/local/webapps for that directory. My current
application, APLRegistration, appears there, in the subdirectory
aplregistration. In this location I have my context file and also the
exploded war file in a directory named 'exploded'. I.e.,

/usr/local/webapps/
aplregistration/
context.xml
exploded/
a bunch of jsp files
WEB-INF/
   etc.

That's why the context file points to that exploded directory. I tried
your suggestion, but the app wouldn't work at all then.

This brings up a more general question. Is there a way to use global
datasources with just a war file? After several failed attempts, I finally hit
upon the scheme of using an exploded war file and a context file with the
ResourceLink tag. I deploy using the web app manager page and giving
a file: URL pointing to the context file.

But this sounds crazy! Surely there should be some way to just deploy a war
file and still use a global datasource. But how?


Your second suggestion was:

--
Two make


  !-- Catch  FacesException --
  resource-ref
descriptionRave generated DataSource Reference/description
res-ref-namejdbc/APLregistration/res-ref-name
res-typejavax.sql.DataSource/res-type

should be

  !-- Catch  FacesException --
  resource-ref
descriptionRave generated DataSource Reference/description
res-ref-namejdbc/APLregistration/res-ref-name
res-ref-typejavax.sql.DataSource/res-ref-type

res-ref-type.
--

I did that in my web.xml file in the exploded directory (i.e., in
/usr/local/webapps/aplregistration/exploded/WEB-INF/web.xml)

It didn't help. But it didn't hurt either, so I'll leave it. On the other
hand, JSCreator wrote the original web.xml file, as is obvious from the
descriptionRave generated DataSource Reference/description tag. If I
ever need to change something in JSCreator and rebuild, then I'll have to
re-explode the war and re-edit the web.xml file. I don't know if there's a way
to get into the Creator-generated web.xml file directly and make changes that
will stick.


 Change these and see if that helps.

No such luck. I still have the situation that after a Tomcat 5.0.28
shutdown/restart, I have to go into the Tomcat admin page, delete the
datasource, and then recreate it. My guess is that something somewhere other
than conf/server.xml must be being changed by the admin interface and that
that something doesn't persist across restarts for some reason. But what and
where?

Thanks again for your interest.

Johnny S. Tolliver
Oak Ridge National Laboratory
[EMAIL PROTECTED], 865-574-1305





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



Session Replication jk2

2005-01-31 Thread sulaiman jrar
Hi I am trying to do session repliction with
tomcat-528 and apache 2 I am haveing this problem.
any ideas
Stopping httpd:   
[  OK  ]
Starting httpd: [Mon Jan 31 06:43:40 2005] [notice]
config.update(): done logger
[Mon Jan 31 06:43:40 2005] [notice] config.update():
done config:
[Mon Jan 31 06:43:40 2005] [notice] config.update():
done channel.socket:localhost:8009
[Mon Jan 31 06:43:40 2005] [notice] config.update():
done ajp13:localhost:8009
[Mon Jan 31 06:43:40 2005] [notice] config.update():
done channel.socket:localhost:8011
[Mon Jan 31 06:43:40 2005] [notice] config.update():
done ajp13:localhost:8011
[Mon Jan 31 06:43:40 2005] [notice]
config.setAttribute() Error setting lb:balanced
timeout 90
[Mon Jan 31 06:43:40 2005] [notice]
config.setAttribute() Error setting lb:balanced
attempts 3
[Mon Jan 31 06:43:40 2005] [notice]
config.setAttribute() Error setting lb:balanced
recovery 90
[Mon Jan 31 06:43:40 2005] [notice]
config.setAttribute() Error setting lb:balanced
StickySession 0
[Mon Jan 31 06:43:40 2005] [notice]
config.setAttribute() Error setting lb:balanced
noworksMsg Server busy please retry after some time
[Mon Jan 31 06:43:40 2005] [notice] config.update():
done lb:balanced
[Mon Jan 31 06:43:40 2005] [notice] config.update():
done shm
[Mon Jan 31 06:43:40 2005] [notice] config.update():
done uri:/SessionRepTest/*
[Mon Jan 31 06:43:40 2005] [notice] config.update():
done status:
[Mon Jan 31 06:43:40 2005] [notice] config.update():
done uri:/jkstatus/*
  
[  OK  ]

my worker.properties 
[logger]
level=DEBUG

[config:]
file=/etc/httpd/conf/workers.properties
debug=0

#Socket communication balace for Tomcat1
[channel.socket:localhost:8009]
host=localhost
port=8009
tomcatId=Tomcat1
group=lb:balanced
lb_factor=1
route=Tomcat1Route

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


#Socket communication balace for Tomcat2
[channel.socket:localhost:8011]
host=localhost
port=8011
tomcatId=Tomcat2
group=lb:balanced
lb_factor=1
route=Tomcat2Route

[ajp13:localhost:8011]
channel=channel.socket:Tomcat2



#load balancing
[lb:balanced]
worker=ajp13:localhost:8009
worker=ajp13:localhost:8011
timeout=90
attempts=3
recovery=90
StickySession=0
noworksMsg=Server busy please retry after some time


[shm]
file=/etc/httpd/conf/jk2.shm
size=100






[uri:/SessionRepTest/*]
context=/SessionRepTest
workers.properties 65L, 951C 
info=Display status information and checks the config
file for changes.


[status:]

[uri:/jkstatus/*]
group=status
workers.properties 65L, 951C  

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



article draft - Summary of benchmark

2005-01-31 Thread Peter Lin
http://cvs.apache.org/~woolfel/benchmark_summary.doc
http://cvs.apache.org/~woolfel/benchmark_summary.sxw
http://cvs.apache.org/~woolfel/tc_results.html

I've finished a complete draft of the benchmark results. If you have
any feedback, please email me directly. thanks in advance.


peter lin

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



Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-31 Thread sulaiman jrar
I am having problem doing sessionreplication 
apache give me this problem
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done config:
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done channel.socket:localhost:8009
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done ajp13:localhost:8009
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done channel.socket:localhost:8011
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done ajp13:localhost:8011
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
timeout 90
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
attempts 3
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
recovery 90
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
StickySession 0
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
noworksMsg Server busy please retry after some time
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done lb:balanced
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done shm
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done uri:/SessionRepTest/*
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done status:
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done uri:/jkstatus/*


my worker.properties
[logger]
level=DEBUG

[config:]
file=/etc/httpd/conf/workers.properties
debug=0

#Socket communication balace for Tomcat1
[channel.socket:localhost:8009]
host=localhost
port=8009
tomcatId=Tomcat1
group=lb:balanced
lb_factor=1
route=Tomcat1Route

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


#Socket communication balace for Tomcat2
[channel.socket:localhost:8011]
host=localhost
port=8011
tomcatId=Tomcat2
group=lb:balanced
lb_factor=1
route=Tomcat2Route

[ajp13:localhost:8011]
channel=channel.socket:Tomcat2



#load balancing
[lb:balanced]
worker=ajp13:localhost:8009
worker=ajp13:localhost:8011
timeout=90
attempts=3
recovery=90
StickySession=0
noworksMsg=Server busy please retry after some time


[shm]
file=/etc/httpd/conf/jk2.shm
size=100


[uri:/SessionRepTest/*]
context=/SessionRepTest
info=Display status information and checks the config
file for changes.


[status:]

[uri:/jkstatus/*]
group=status
workers.properties 65L, 951C   

my server.xml
!-- Example Server Configuration File --
!-- Note that component elements are nested
corresponding to their
 parent-child relationships with each other --



Server port=8006 shutdown=SHUTDOWN debug=0


 
  
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue
type=java.lang.Integer value=30/

!-- Editable user database that can also be used
by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated
and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
   
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

 

  Engine name=Standalone defaultHost=Tomcat2
debug=0
  jvmRoute=Tomcat2Route
 Host name=Tomcat2 debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false
xmlNamespaceAware=false
 Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true

Membership
   
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=228.0.0.4
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000/

Receiver
   
className=org.apache.catalina.cluster.tcp.ReplicationListener
tcpListenAddress=auto   
tcpListenPort=4001   
tcpSelectorTimeout=100
tcpThreadCount=6/

Sender
   
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled/

Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
  
filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/

Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
  tempDir=/tmp/war-temp/
  deployDir=/tmp/war-deploy/
  watchDir=/tmp/war-listen/
  

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-31 Thread Filip Hanik - Dev
start your own thread

- Original Message - 
From: sulaiman jrar [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, January 31, 2005 1:54 PM
Subject: Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5


I am having problem doing sessionreplication 
apache give me this problem
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done config:
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done channel.socket:localhost:8009
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done ajp13:localhost:8009
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done channel.socket:localhost:8011
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done ajp13:localhost:8011
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
timeout 90
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
attempts 3
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
recovery 90
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
StickySession 0
[Mon Jan 31 07:51:02 2005] [notice]
config.setAttribute() Error setting lb:balanced
noworksMsg Server busy please retry after some time
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done lb:balanced
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done shm
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done uri:/SessionRepTest/*
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done status:
[Mon Jan 31 07:51:02 2005] [notice] config.update():
done uri:/jkstatus/*


my worker.properties
[logger]
level=DEBUG

[config:]
file=/etc/httpd/conf/workers.properties
debug=0

#Socket communication balace for Tomcat1
[channel.socket:localhost:8009]
host=localhost
port=8009
tomcatId=Tomcat1
group=lb:balanced
lb_factor=1
route=Tomcat1Route

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


#Socket communication balace for Tomcat2
[channel.socket:localhost:8011]
host=localhost
port=8011
tomcatId=Tomcat2
group=lb:balanced
lb_factor=1
route=Tomcat2Route

[ajp13:localhost:8011]
channel=channel.socket:Tomcat2



#load balancing
[lb:balanced]
worker=ajp13:localhost:8009
worker=ajp13:localhost:8011
timeout=90
attempts=3
recovery=90
StickySession=0
noworksMsg=Server busy please retry after some time


[shm]
file=/etc/httpd/conf/jk2.shm
size=100


[uri:/SessionRepTest/*]
context=/SessionRepTest
info=Display status information and checks the config
file for changes.


[status:]

[uri:/jkstatus/*]
group=status
workers.properties 65L, 951C   

my server.xml
!-- Example Server Configuration File --
!-- Note that component elements are nested
corresponding to their
 parent-child relationships with each other --



Server port=8006 shutdown=SHUTDOWN debug=0


 
  
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue
type=java.lang.Integer value=30/

!-- Editable user database that can also be used
by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated
and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
   
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

 

  Engine name=Standalone defaultHost=Tomcat2
debug=0
  jvmRoute=Tomcat2Route
 Host name=Tomcat2 debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false
xmlNamespaceAware=false
 Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true

Membership
   
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=228.0.0.4
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000/

Receiver
   
className=org.apache.catalina.cluster.tcp.ReplicationListener
tcpListenAddress=auto   
tcpListenPort=4001   
tcpSelectorTimeout=100
tcpThreadCount=6/

Sender
   
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled/

Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
  

Re: Ream authentication + Apache Web Server Authentication

2005-01-31 Thread Jorge Davila
try to configure ajp13 connector to put apache in front of tomcat.

SAG - Jose Antonio Tarifa wrote:
Hi.
 
I have a question.  How can I mix authentication on both servers, Tomcat and Apache?
 
I want to use Form authentication with Tomcat, also I need Apache Web Server to be authenticated.  Is posible to authenticate a user in Tomcat and get authenticated in Apache at the same time?
 
Thanks.
 
José Antonio Tarifa Lorenzo
SAGE-OMEL
Tfno. +34 91 659 89 79
 
 


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


RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-31 Thread Richard Mixon (qwest)
It appears that you are using the deprecated JK2, not JK 1.2.8 that this
thread is discussing. Please start a new thread with the appropriate
title and you might get better responses.
- Richard

sulaiman jrar wrote:
 I am having problem doing sessionreplication
 apache give me this problem
 [Mon Jan 31 07:51:02 2005] [notice] config.update():
 done config:
 [Mon Jan 31 07:51:02 2005] [notice] config.update():
 done channel.socket:localhost:8009
 [Mon Jan 31 07:51:02 2005] [notice] config.update():
 done ajp13:localhost:8009
 [Mon Jan 31 07:51:02 2005] [notice] config.update():
 done channel.socket:localhost:8011
 [Mon Jan 31 07:51:02 2005] [notice] config.update():
 done ajp13:localhost:8011
 [Mon Jan 31 07:51:02 2005] [notice]
 config.setAttribute() Error setting lb:balanced
 timeout 90
 [Mon Jan 31 07:51:02 2005] [notice]
 config.setAttribute() Error setting lb:balanced
 attempts 3
 [Mon Jan 31 07:51:02 2005] [notice]
 config.setAttribute() Error setting lb:balanced
 recovery 90
 [Mon Jan 31 07:51:02 2005] [notice]
 config.setAttribute() Error setting lb:balanced
 StickySession 0
 [Mon Jan 31 07:51:02 2005] [notice]
 config.setAttribute() Error setting lb:balanced
 noworksMsg Server busy please retry after some time
 [Mon Jan 31 07:51:02 2005] [notice] config.update():
 done lb:balanced
 [Mon Jan 31 07:51:02 2005] [notice] config.update():
 done shm
 [Mon Jan 31 07:51:02 2005] [notice] config.update():
 done uri:/SessionRepTest/*
 [Mon Jan 31 07:51:02 2005] [notice] config.update():
 done status:
 [Mon Jan 31 07:51:02 2005] [notice] config.update():
 done uri:/jkstatus/*


 my worker.properties
 [logger]
 level=DEBUG

 [config:]
 file=/etc/httpd/conf/workers.properties
 debug=0

 #Socket communication balace for Tomcat1
 [channel.socket:localhost:8009]
 host=localhost
 port=8009
 tomcatId=Tomcat1
 group=lb:balanced
 lb_factor=1
 route=Tomcat1Route

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


 #Socket communication balace for Tomcat2
 [channel.socket:localhost:8011]
 host=localhost
 port=8011
 tomcatId=Tomcat2
 group=lb:balanced
 lb_factor=1
 route=Tomcat2Route

 [ajp13:localhost:8011]
 channel=channel.socket:Tomcat2



 #load balancing
 [lb:balanced]
 worker=ajp13:localhost:8009
 worker=ajp13:localhost:8011
 timeout=90
 attempts=3
 recovery=90
 StickySession=0
 noworksMsg=Server busy please retry after some time


 [shm]
 file=/etc/httpd/conf/jk2.shm
 size=100


 [uri:/SessionRepTest/*]
 context=/SessionRepTest
 info=Display status information and checks the config
 file for changes.


 [status:]

 [uri:/jkstatus/*]
 group=status
 workers.properties 65L, 951C

 my server.xml
 !-- Example Server Configuration File --
 !-- Note that component elements are nested
 corresponding to their
  parent-child relationships with each other --



 Server port=8006 shutdown=SHUTDOWN debug=0




   Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
   Listener

className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 debug=0/

   !-- Global JNDI resources --
   GlobalNamingResources

 !-- Test entry for demonstration purposes --
 Environment name=simpleValue
 type=java.lang.Integer value=30/

 !-- Editable user database that can also be used
 by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated
 and saved
 /Resource
 ResourceParams name=UserDatabase
   parameter
 namefactory/name

 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams

   /GlobalNamingResources



   Engine name=Standalone defaultHost=Tomcat2
 debug=0
   jvmRoute=Tomcat2Route
  Host name=Tomcat2 debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false
 xmlNamespaceAware=false
  Cluster
 className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

 managerClassName=org.apache.catalina.cluster.session.DeltaManager
  expireSessionsOnShutdown=false
  useDirtyFlag=true

 Membership

 className=org.apache.catalina.cluster.mcast.McastService
 mcastAddr=228.0.0.4
 mcastPort=45564
 mcastFrequency=500
 mcastDropTime=3000/

 Receiver

 className=org.apache.catalina.cluster.tcp.ReplicationListener
 tcpListenAddress=auto
 tcpListenPort=4001
 tcpSelectorTimeout=100
 tcpThreadCount=6/

 Sender

 className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
 replicationMode=pooled/

 Valve
 className=org.apache.catalina.cluster.tcp.ReplicationValve

 filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/

 

Use of Admin application creates duplicate secure attribute in server.xml

2005-01-31 Thread Jeffrey Barnett
We have recently upgraded from Tomcat 4 to Tomcat 5.0.27.  Now whenever 
we use the Admin application to alter webapp context parameters the new 
server.xml that gets written out contains an extra 'secure=true' 
attribute at the end of the ssl Connector, which causes the server to 
fail with a SEVERE: Parse Fatal Error on restart.  Removing the extra 
attribute manually allows the server to be started, but is operationally 
unacceptable.

Where is the extra attribute coming from (is there a template 
somewhere)?  How can we stop this from happening?  Why is a new 
server.xml created at all? (Nothing is changed but the addition of the 
incorrect attribute)

Here is the exception:
Jan 29, 2005 7:30:54 AM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 22 column 221: Attribute secure was 
already specified for element Connector.
org.xml.sax.SAXParseException: Attribute secure was already specified 
for element Connector.

And here is the offending element (second attribute highlighted):
   Connector acceptCount=100 disableUploadTimeout=true port=8443 
scheme=https secure=true sslProtocol=TLS clientauth=false 
maxSpareThreads=75 maxThreads=150 minSpareThreads=25 
protocol=TLS *secure=true*
   /Connector

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


context.xml question

2005-01-31 Thread Sal Scotto
I put the following file in my war at META-INF/context.xml

 

Context path=/external docBase=${catalina.home}/webapps/external debug=0 
reloadable=false

   !-- Oracle Resource Definitions --

Resource name=jdbc/abadb

auth=Container

type=oracle.jdbc.pool.OracleDataSource

driverClassName=oracle.jdbc.driver.OracleDriver

factory=oracle.jdbc.pool.OracleDataSourceFactory

url=jdbc:oracle:thin:@myhost:1521:myinstance

username=name

password=password

maxActive=20

maxIdle=10

maxWait=-1 /

/Context

 

I have the following problems with it :

 

1.) I can no longer undeploy the application (which is odd)

2.) When I startup the admin app to see my context data all I see the the 
jdbc/abadb name entry but none of the other data

 

Im running Tomcat 5.5.7 under JDK1.5.0 on a RedHat Enterprise Linux 3

Thanks in advance

Salvatore E. Scotto Di Luzio

The American Board of Anesthesiology
4101 Lake Boone Trail Suite 510
Raleigh, NC 27607-7506
v: (919) 573-4324
f: (919) 881-2575
e: HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED]

 

/


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.2 - Release Date: 1/28/2005



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.2 - Release Date: 1/28/2005
 


Re: Specifying context details in web.xml

2005-01-31 Thread QM
On Mon, Jan 31, 2005 at 05:07:34PM -, micky none wrote:
: I need to ask you guys that is it possible that I can move the
: context details from my server.xml to web.xml.Like when i make a war,i want
: that i should specify the database url,driver,username,password etc. details
: .Presently i have 2 contexts(one for alpha databse other for the live one)in
: the server.xml file in the server.But i need these details in my web.xml.

You can do this, but not necessarily using web.xml.

Search the Tomcat docs for context.xml.  The short version is that you
store this in you WAR file.  It contains settings for that context.  

context.xml is essentially a Context/ element inside its own 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]



FOLLOW-UP: Sharing the JSTL JARs and Classloading

2005-01-31 Thread Tony LaPaso
Hi all,
On Jan. 22 I posted a message to this group, ?? Sharing the JSTL JARS and 
Classloading ??, where I described a problem I was having with the JSTL 
JARs. It seemed that when I put the JSTL JARs (standard.jar and jstl.jar) in 
Tomcat's shared/lib TC could not find them, contrary to the TC 
documentation.

I know what the problem was. It turns out it was my fault. I was using a 
value of CATALINA_BASE that was not the same as CATALINA_HOME. Tomcat's 
documentation says that Shared/lib is relative to CATALINA_BASE. So, I'm 
sorry to all you who read my post and tried to help me solve the problem. It 
was all my fault after all for not having read the Tomcat documentation well 
enough. I am sorry to those of you whose time I wasted.

I'll be more careful in the future.
Thanks. 


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


how do i set thread stack size in TOMCAT5.5.4

2005-01-31 Thread fan lianjie
I have a .exe TOMCAT vesion.
and how do i set the thread stack size?










--
MSN:[EMAIL PROTECTED]
QQ:29967409
-
_
 MSN Hotmail  http://www.hotmail.com  

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


Re: FOLLOW-UP: Sharing the JSTL JARs and Classloading

2005-01-31 Thread Parsons Technical Services
Thank you for posting the follow up. So often people solve their problems 
and don't post the solution. Then when you do a search you may find the 
issue you were looking for but not the solution.

Don't worry we have all goofed.
Doug
- Original Message - 
From: Tony LaPaso [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, January 31, 2005 9:21 PM
Subject: FOLLOW-UP: Sharing the JSTL JARs and Classloading


Hi all,
On Jan. 22 I posted a message to this group, ?? Sharing the JSTL JARS and 
Classloading ??, where I described a problem I was having with the JSTL 
JARs. It seemed that when I put the JSTL JARs (standard.jar and jstl.jar) 
in Tomcat's shared/lib TC could not find them, contrary to the TC 
documentation.

I know what the problem was. It turns out it was my fault. I was using a 
value of CATALINA_BASE that was not the same as CATALINA_HOME. Tomcat's 
documentation says that Shared/lib is relative to CATALINA_BASE. So, I'm 
sorry to all you who read my post and tried to help me solve the problem. 
It was all my fault after all for not having read the Tomcat documentation 
well enough. I am sorry to those of you whose time I wasted.

I'll be more careful in the future.
Thanks.
-
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 datasource not persisting across restarts

2005-01-31 Thread Parsons Technical Services
Johnny wrote:
I'm confused by this. First, I found that to get the datasource to work at 
all
I had to use a context file with a docbase pointing to an exploded war 
file
rather than just installing a complete war file into Tomcat's webapps
directory. Thinking that there might be other such occasions coming up, I
invented a directory outside of the Tomcat tree to hold such context files 
and
exploded wars and chose /usr/local/webapps for that directory. My current
application, APLRegistration, appears there, in the subdirectory
aplregistration. In this location I have my context file and also the
exploded war file in a directory named 'exploded'. I.e.,

/usr/local/webapps/
   aplregistration/
   context.xml
   exploded/
   a bunch of jsp files
   WEB-INF/
  etc.
That's why the context file points to that exploded directory. I tried
your suggestion, but the app wouldn't work at all then.
This brings up a more general question. Is there a way to use global
datasources with just a war file? After several failed attempts, I finally 
hit
upon the scheme of using an exploded war file and a context file with the
ResourceLink tag. I deploy using the web app manager page and giving
a file: URL pointing to the context file.

But this sounds crazy! Surely there should be some way to just deploy a 
war
file and still use a global datasource. But how?

Now I understand what you had done. And yes, you can just deploy the war 
file and use Global, I do it all the time.

First: For this to work the context.xml for you app must reside in the 
META-INF folder in the war. You should be able to create/edit it from the 
IDE.

Second: The doc base should point to the root of your app. Just make sure 
that the user Tomcat is running as, has full rights to that directory. 
Tomcat has to delete the files and folders during a deploy/redeploy.

docBase=/usr/local/webapps/aplregistration
I went down one too many.
Third: The war is placed in tomcathome/webapps.
I believe what is causing you grief is the placement of you context.xml. 
During a restart Tomcat is not reading the file and thus not linking the 
resource. On a deploy you are pointing to the file and thus Tomcat is 
reading it. The app works otherwise during a restart based on the default 
context.

Don't sweat the web.xml entry. It is for container portability. I was basing 
it on the examples and it is possible they are wrong. For Tomcat it will 
work without the web.xml entry. According to the docs.

Doug

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


Problems connecting to Tomcat from remote machine

2005-01-31 Thread Debayan
Hi all,

I recently installed Tomcat 4.1.31 on Linux Fedora Core 3. I downloaded
the gzipped tar file from http://jakarta.apache.org and extracted it on a
suitable directory. I also started it in the usual way and did not see any
errors in the catalina.out file. I am also able to connect to the default
Tomcat home page from the local machine using the URL http://localhost:8080

However, I am simply unable to connect to the default Tomcat home page
from any remote machine. The network interface on the Fedora box is fine -
and I am able to connect to it over SSH/SFTP from any remote machine.
However, I am not able to get to the Tomcat home page URL.

 Is there any specific configuration that needs to be done ? Any help on
this would be most welcome.

regards,
Debayan.


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



Tomcat Log for Web site Stats view

2005-01-31 Thread Rajesh
Hai all
I am using Tomcat5 i have 3 webapps.
I know tomcat stores all its access logs of each site in logs folder .
i want to display a WebSite Stats for thest 3 sites individuallin in 
there site ..

Can anybody tell me how to do this ??
its very urgent please help me
if any free tool is available it will be soo helpfull
thank you
Rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Slow HTTP upload of POST content

2005-01-31 Thread Michael Merkulovich
We are experiencing a very strange problem with HTTP uploads on tomcat5.
When uploading large files from IE over the network, upload speed is capped
at about 70kbytes/sec even though the network allows for much higher speeds.
Neither CPU nor disk access appears to be the bottleneck. When using FireFox
browser, upload speed is about 4000kbytes/sec. When using IE from the server
through loopback adapter, speed is 7000kbytes/sec.

This problem is happening on 2 separate servers. One is a win 2000 box with
a freshly installed OS. The other one is a brand new windows server 2003
enterprise edition.

I tried apache fileupload library and o'reilly MultipartRequest. I also
tried reading directly from InputStream all to the same effect.

There is one machine which runs file-for-file identical tomcat installation
under the same version of java. When accessing that machine with IE from
other boxes, uploads go fast.

I cannot figure out what's different between the machine on which it works
and the two on which it doesn't. Any ideas?

-- Mike

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