Where should I store my static content in a clustered environment

2005-11-23 Thread Eickvonder Bjoern
Hi,

lets start with describing my current task where I would appreciate any
advice from you.
I have to construct a clustered system (with lots of webservers) that
has few dynamic pages but a lot of static ones, whereby all resources
have to be protected by security-constraints of a webapp (so letting
Apache deliver this content won't work). Moreover there should be the
possibility to upload/delete static components via a web form. My main
problem is now where should I store the static data (mainly html pages,
images, ...; but over 4 GB(!) large in total)?

As far as now I'm considering the following solutions:

1.) Storing the content within the webapp of each webserver. This would
include that the servers know each other as the upload/delete operations
must be propagated from one server to all the others. Moreover the
update of the dynamic parts would not be as easy any more as just
uploading a new war-file as this requires deleting the old webapp
directory (that contains the content is this case as well).

2.) Storing the content in a separate directory but still on each
webserver. This would still include that servers must know each other,
but updating the dynamic part would be easier. The downside is that I
would have to write a servlet that delivers all static content with all
the problems of mime-types, character encoding and so on which I would
have to handle myself.

3.) Storing the content in a database on a separate server. The
advantage would be that webservers only need to know their database
server and updating the webapps would be easy (just uploading new
war-files). The downside here is that I need a servlet too and I think
it's maybe not the fastest solution as all requests of all servers to
each single chuck of static content would require a connection to the
database server.

4.) As 3.) but storing data on a single separate server in the
filesystem. The advantages/disadvantages should be similar to 3.)
whereby I do not know which solution might be faster.

5.) As 3.)/4.) but additionally implementing a caching-mechanism on the
webservers. This means if a webserver gets a request for a specific page
for the first time he connects the database server to retrieve that
page, then stores it in its webapp directory and then let tomcat deliver
that page. On the second request it is just checked if that page is
already there and if so it is delivered directly. Of course I must
implement some mechanism such that the webservers get to know if their
cached data is outdated but so far this seems to me the best solution.

Anyone ever faced this kind of problem? Any kind of remark to my
possible solutions or any other possibilities you might know of are
appreciated.

Thanks you in advance for your help.

Bjoern

 

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



Re: suppress tomcat version numbers

2005-11-23 Thread Andrew Miehs

Hi Charles,

This seems to be a new option for TC 5.5. Do you know of anything  
similar for 5.0?


Thanks

Andrew

On Nov 22, 2005, at 4:52 PM, Caldarale, Charles R wrote:


From: Kiarna Boyd [mailto:[EMAIL PROTECTED]
Subject: suppress tomcat version numbers

Hi I'm trying to suppress the version number Tomcat gives in its
headers.


Read the doc on the Connector tag.  You're looking for the server
attribute (the description mentions something about being  
paranoid :-).




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



Vedr.: Where should I store my static content in a clustered environment

2005-11-23 Thread Thomas Nybro Bolding
Hi Eickvonder,

I would definitely go for solution 5, which resembles an assigment we were 
given in a course in Distributed Computing.

If possible go for active replication to distribute the load on several 
database servers. To implement this you must implement a common frontend 
(FE) communicating with the replica managers (RM). A read operation simply 
connects to the FE which (using round-robin or similar) connects to a 
database server. If youre not worried about byzantine errors simply fetch 
the first file being returned. A write operation connects to the FE which 
updates all database servers.

If you settle for this solution but something seems a bit unclear I 
recommend reading up upon distributed computing terms (e.g. Distributed 
Systems: Concepts and Design, G. Coulouris, J. Dollimore, T. 
Kindberg, Addison-Wesley, 4rd edition, 2005, ISBN 0321263545)

As far as invalidation goes you can basically choose timestamp cache 
invalidation or callback cache invalidation.

Timestamp cache invalidation will upon each read request read the last 
time the file was updated and if e.g. 5 minutes has passed read a new file 
from the database. This is rather simple but does not ensure consistency. 
Further if the html files really are static and not changed very often 
you will probably choose long timeouts to minimize the number of 
irrelevant reads thus prolonging the time the webservers are out of sync 
after an update has been comitted. If possible memorywise save the state 
(fileId as int, time as long) in a hashmap or similar on the webservers to 
avoid having to read from disk before determining whether to fetch from 
the database.

Callback cache invalidation is better at acheiving consistency and 
minimizes reads from the database. The FE/RM should know which webservers 
has requested which files and send an invalidate to the those webservers 
when a client commits an update (thus ensuring webservers which have read 
the file will read it again once it is requested from a client). Also if 
possible here memorywise save the state (webserverId as int, fileId as 
int, time as long) in a hashmap or similar on the webservers to avoid 
having to read from disk before determining which webservers to 
invalidate.



Good luck, Thomas






Eickvonder Bjoern [EMAIL PROTECTED]
23-11-2005 10:23
Besvar venligst til Tomcat Users List

 
Til:users@tomcat.apache.org
cc: 
Vedr.:  Where should I store my static content in a clustered 
environment



Hi,

lets start with describing my current task where I would appreciate any
advice from you.
I have to construct a clustered system (with lots of webservers) that
has few dynamic pages but a lot of static ones, whereby all resources
have to be protected by security-constraints of a webapp (so letting
Apache deliver this content won't work). Moreover there should be the
possibility to upload/delete static components via a web form. My main
problem is now where should I store the static data (mainly html pages,
images, ...; but over 4 GB(!) large in total)?

As far as now I'm considering the following solutions:

1.) Storing the content within the webapp of each webserver. This would
include that the servers know each other as the upload/delete operations
must be propagated from one server to all the others. Moreover the
update of the dynamic parts would not be as easy any more as just
uploading a new war-file as this requires deleting the old webapp
directory (that contains the content is this case as well).

2.) Storing the content in a separate directory but still on each
webserver. This would still include that servers must know each other,
but updating the dynamic part would be easier. The downside is that I
would have to write a servlet that delivers all static content with all
the problems of mime-types, character encoding and so on which I would
have to handle myself.

3.) Storing the content in a database on a separate server. The
advantage would be that webservers only need to know their database
server and updating the webapps would be easy (just uploading new
war-files). The downside here is that I need a servlet too and I think
it's maybe not the fastest solution as all requests of all servers to
each single chuck of static content would require a connection to the
database server.

4.) As 3.) but storing data on a single separate server in the
filesystem. The advantages/disadvantages should be similar to 3.)
whereby I do not know which solution might be faster.

5.) As 3.)/4.) but additionally implementing a caching-mechanism on the
webservers. This means if a webserver gets a request for a specific page
for the first time he connects the database server to retrieve that
page, then stores it in its webapp directory and then let tomcat deliver
that page. On the second request it is just checked if that page is
already there and if so it is delivered directly. Of course I must
implement some mechanism such that the webservers get 

AW: JSTL

2005-11-23 Thread Bernhard Slominski
Hi,

JSTL is not a part of J2EE 1.4, you need to install it separatly.
But it will be a part of JEE5.

Cheers

Bernhard

 -Ursprüngliche Nachricht-
 Von: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 23. November 2005 03:04
 An: Tomcat Users List
 Betreff: JSTL
 
 
 Hi,
 
 Isn't JSTL a standard part of the J2EE 1.4 Web containers? Shouldn't
 it be available to Web apps out of the box with no need to include the
 JAR files in the WEB-INF/lib and referencing to their tlds in the
 web.xml?
 
 Thanks in advance,
 Behi
 
 --
 Science is a differential equation. Religion is a boundary 
 limit - Alan Turing
 
 Behrang Saeedzadeh
 http://www.jroller.com/page/behrangsa
 http://my.opera.com/behrangsa
 

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



Re: JSTL

2005-11-23 Thread Behrang Saeedzadeh
Hi Bernhard,

Thanks for the explanation.

Regards,
Behi

On 11/23/05, Bernhard Slominski [EMAIL PROTECTED] wrote:
 Hi,

 JSTL is not a part of J2EE 1.4, you need to install it separatly.
 But it will be a part of JEE5.

 Cheers

 Bernhard

  -Ursprüngliche Nachricht-
  Von: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]
  Gesendet: Mittwoch, 23. November 2005 03:04
  An: Tomcat Users List
  Betreff: JSTL
 
 
  Hi,
 
  Isn't JSTL a standard part of the J2EE 1.4 Web containers? Shouldn't
  it be available to Web apps out of the box with no need to include the
  JAR files in the WEB-INF/lib and referencing to their tlds in the
  web.xml?
 
  Thanks in advance,
  Behi
 
  --
  Science is a differential equation. Religion is a boundary
  limit - Alan Turing
 
  Behrang Saeedzadeh
  http://www.jroller.com/page/behrangsa
  http://my.opera.com/behrangsa
 

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




--
Science is a differential equation. Religion is a boundary limit - Alan Turing

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa


TC 5.0.28, JK1, CAS-SERVER, SSL sleep less nights please mayday!

2005-11-23 Thread [EMAIL PROTECTED]
hi everyone,

this is what i have :

- TC 5.0.28
http://bigleo.dyndns.org/tc/server.xml.log

- Apache with JK modules SSL enabled

http://bigleo.dyndns.org/tc/mod_jk.conf.log

- CAS SERVER 3.0 for those who dont know what cas is ( its a Central 
Authentication Server based on Tomcat filter)

- i have a test application (jsp-examples) the one from Tomcat  where i applied 
the CAS Filter 

http://bigleo.dyndns.org/tc/jsp-examples.web.xml.log 

this is what i want to do:
is to be able to authenthicate a user once grat access everywhere 

this is my problem:
if you go on

1 ]   http://bigleo.dyndns.org/jsp-examples

you will be redirected to the the  (an SSL connection will be established)

2 ] http://bigleo.dyndns.org/cas/login

you can authenticates with username=password example yel/yel

so you will recieve a ticket and then you will be redirected to the origin 
where you comes from [1] and now you should have a ticket wich should grants 
you access to the jsp-examples 

but here we go a problem occure whith tomcat internally wihc drops this 
exception :

from the context log

http://bigleo.dyndns.org/tc/exception.log



now i really spent more than 12 days trrying to debug this and im really 
helpless i just can not see a clue what the problem could be and ill be glad 
fro any questions or suggestions or even critics

i hope i provieded enough informations 


Greeting from Cologne 
and Thanks in Advance
Yassine 
YEL



first i get an exception when the user authenticates 
i



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



admin module for Tomcat 5

2005-11-23 Thread Scott Purcell
Hello,
I am running Tomcat 5, and I have been having troubles configuring a web-app  
in a virtual environment. Anyway, I see there is an admin module, and I believe 
it may assist in this.

I downloaded the admin module for Tomcat 5, but do not know where or how to 
install it. I tried unzipping it under webapps/ROOT but that did not do the 
trick. I googled for info, but it appears to be slim.

Anyone?



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



RE: admin module for Tomcat 5

2005-11-23 Thread Caldarale, Charles R
 From: Scott Purcell [mailto:[EMAIL PROTECTED] 
 Subject: admin module for Tomcat 5
 
 I downloaded the admin module for Tomcat 5, but do not know 
 where or how to install it.

Unzip the download into the same location as your main Tomcat download.
Note that the paths in the .zip file match up with those of your Tomcat
installation.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: suppress tomcat version numbers

2005-11-23 Thread Caldarale, Charles R
 From: Andrew Miehs [mailto:[EMAIL PROTECTED] 
 Subject: Re: suppress tomcat version numbers
 
 This seems to be a new option for TC 5.5. Do you know of anything  
 similar for 5.0?

Sorry, I don't - haven't used 5.0 for a long time, since the performance
of 5.5 is noticeably better.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: admin module for Tomcat 5

2005-11-23 Thread Scott Purcell
XP

Scott K Purcell | Developer | VERTIS |
555 Washington Ave. 4th Floor | St. Louis, MO 63101 |
314.588.0720 Ext:1320 | [EMAIL PROTECTED] | http://www.vertisinc.com

Vertis is the premier provider of targeted advertising, media, and 
marketing services that drive consumers to marketers more effectively. 
 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 23, 2005 9:09 AM
To: Tomcat Users List
Subject: Re: admin module for Tomcat 5


What operating system are you using?
 
 From: Scott Purcell [EMAIL PROTECTED]
 Date: 2005/11/23 Wed AM 09:17:01 EST
 To: users@tomcat.apache.org
 Subject: admin module for Tomcat 5
 
 Hello,
 I am running Tomcat 5, and I have been having troubles configuring a web-app  
 in a virtual environment. Anyway, I see there is an admin module, and I 
 believe it may assist in this.
 
 I downloaded the admin module for Tomcat 5, but do not know where or how to 
 install it. I tried unzipping it under webapps/ROOT but that did not do the 
 trick. I googled for info, but it appears to be slim.
 
 Anyone?
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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


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



Re: RE: admin module for Tomcat 5

2005-11-23 Thread wapace
Ah.  Unzip it into the same folder into which you've installed Tomcat.  You'll 
need to edit Tomcat-Users.xml in the conf folder to include a user with the 
admin role to access the app.  Restart Tomcat and it should work.
 
 From: Scott Purcell [EMAIL PROTECTED]
 Date: 2005/11/23 Wed AM 10:16:46 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: RE: admin module for Tomcat 5
 
 XP
 
 Scott K Purcell | Developer | VERTIS |
 555 Washington Ave. 4th Floor | St. Louis, MO 63101 |
 314.588.0720 Ext:1320 | [EMAIL PROTECTED] | http://www.vertisinc.com
 
 Vertis is the premier provider of targeted advertising, media, and 
 marketing services that drive consumers to marketers more effectively. 
  
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 23, 2005 9:09 AM
 To: Tomcat Users List
 Subject: Re: admin module for Tomcat 5
 
 
 What operating system are you using?
  
  From: Scott Purcell [EMAIL PROTECTED]
  Date: 2005/11/23 Wed AM 09:17:01 EST
  To: users@tomcat.apache.org
  Subject: admin module for Tomcat 5
  
  Hello,
  I am running Tomcat 5, and I have been having troubles configuring a 
  web-app  in a virtual environment. Anyway, I see there is an admin module, 
  and I believe it may assist in this.
  
  I downloaded the admin module for Tomcat 5, but do not know where or how to 
  install it. I tried unzipping it under webapps/ROOT but that did not do the 
  trick. I googled for info, but it appears to be slim.
  
  Anyone?
  
  
  
  -
  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]



Content is not allowed in prolog Tomcat-XmlRpc

2005-11-23 Thread Bello Martinez Sergio
Hi all, 
I'm using Tomcat 5.0, and I'm having a very strange problem. Sometimes, when
a client sends several continuous http requests to the server, it receives
http headers when it should only be the body. If in method doPost()I call
request.getInputStream, I can see header lines. I'm using Apache XmlRpc, so
the body is a xml document, when I try to parse this body, I get a Content
is not allowed in prolog error, because the parser finds this header lines
in the body (document to be parsed). It's very strange, we only get this
error when we use a xmlrpc client written in C and using xmlrpc-c and
libwww.
Has anybody ever seen a similar problem. Any kind of help would be very
appreciated. Thanks a lot


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



RE: suppress tomcat version numbers

2005-11-23 Thread Kiarna Boyd

From: Caldarale, Charles R [EMAIL PROTECTED]
Date: November 22, 2005 10:52:49 AM EST
To: Tomcat Users List users@tomcat.apache.org
Subject: RE: suppress tomcat version numbers



From: Kiarna Boyd [mailto:[EMAIL PROTECTED]
Subject: suppress tomcat version numbers

Hi I'm trying to suppress the version number Tomcat gives in its
headers.


Read the doc on the Connector tag.  You're looking for the server
attribute (the description mentions something about being paranoid :-).

 - Chuck


Hi Chuck
 I looked through the docs and it seems to only be an option for 5.5 
tomcat, not for the 5.0 or the 4.0.

http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

Any other ideas on how to pass that header variable?

Thanks!
-Kiarna

Connection refused when attempt to contact myUsename.myDns.com:8080

2005-11-23 Thread dcausevi
I want to use Tomcat with its own HTTP web server without having to use it 
with Apache HTTP web server but I run into a problem when accessing Tomcat 
from outside.
Everything works just fine as long as I am using web browser from my local 
machine via http://localhost:8080, but I get Connection refused error 
message if I try from any other machine on the internet (from the computer at 
my work) via DNS name http://dcausevic.homelinux.com:8080

By the way everything is okay with my DNS name since I am able to access 
everything served by Apache HTTP via http://dcausevic.homelinux.com (using 
default port 80), but Tomcat is not reachable thru the same DNS and different 
port (I configured server.xml to use 8080 port).

Everything works fine accessing from http://localhost:8080 locally but 
http://dcausevic.homelinux.com:8080 would not work from outside? How do I 
check if Tomcat is actually listening on port 8080 from outside? To me it 
looks like it is not listening to outside requests... Please someone help me 
figure out what is happening here. Thanks

Dzenan Causevic
Software Developer
NaviSite, Inc
Syracuse, NY


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



RE: Connection refused when attempt to contact myUsename.myDns.com:8080

2005-11-23 Thread Caldarale, Charles R
 From: dcausevi [mailto:[EMAIL PROTECTED] 
 Subject: Connection refused when attempt to contact 
 myUsename.myDns.com:8080
 
 Everything works fine accessing from http://localhost:8080 
 locally but http://dcausevic.homelinux.com:8080 would not 
 work from outside?

Sounds like some sort of firewall issue, somewhere between outside and
your homelinux.com site.

 How do I check if Tomcat is actually listening on port 8080 from 
 outside?

You didn't say what OS you're using, but nearly all of them these days
have a netstat program.  However, that won't tell you if there's a
firewall in the way, since it's reporting from the inside.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



ordering apps startups

2005-11-23 Thread Rogerio Baldini das Neves
Hi Folks.
 
Is it possible to order apps startups.
For example.
I have app1, app2 and app3. 
I need that app3 starts up first of all. and app2 in second and so on.
Is it possible ?
 
Thanks in advance.
Rogerio.

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.4/175 - Release Date: 18/11/2005
 


Re: Starting the apache tomcat 4.05 servlet engine on windows xp

2005-11-23 Thread Jon Wingfield

Try the binary distribution instead of the source bundle:
http://archive.apache.org/dist/tomcat/tomcat-4/archive/v4.0.5/bin/

Either jakarta-tomcat-4.0.5.zip or jakarta-tomcat-4.0.5.exe should be fine.

CATALINA_HOME will probably then be:
C:\tomcat\jakarta-tomcat-4.0.5

HTH,

Jon

Aaron Bortman wrote:

Hello,

In my job I recently have been assigned to work with Cocoon.  In order 
to be able to use cocoon I need to be able to deploy it on a servlet 
engine.   The book I am reading to learn Cocoon has chosen tomcat 4.0.5 
as the servlet engine to use.  I am having a problem getting tomcat to 
start.  Any help that could be given would be much appreciated.  So far 
I have:


1) Installed the java sdk 1.4.1_07 and set the environment variable 
JAVA_HOME to its location
2) Copied the jakarta-tomcat-4.0.5-src.zip to a file on my computer 
(running Windows XP professional)

3) Extracted the zip file
4) Brought up a command prompt and set the environment variable 
CATALINA_HOME like this:

set CATALINA_HOME=C:\tomcat\jakarta-tomcat-4.0.5-src\catalina\src
5) Navigated to the CATALINA_HOME directory and run the startup script.
6) When I run the script I get the following echoed to the screen.
Using CATALINA_BASE:   C:\tomcat\jakarta-tomcat-4.0.5-src\catalina\src
Using CATALINA_HOME:   C:\tomcat\jakarta-tomcat-4.0.5-src\catalina\src
Using CATALINA_TMPDIR: C:\tomcat\jakarta-tomcat-4.0.5-src\catalina\src\temp
Using JAVA_HOME:   c:\tools\j2sdk1.4.1_07
7) I have been unable to get the welcome page to display when I point a 
browser at http://localhost:8080.


I have looked at the FAQ's and tried changing the port 8080 to something 
else, but that did not fix my problem.  I also have checked and am not 
behind a proxy.  I am not sure what I am doing wrong, but I have been 
searching the help pages for Apache and other sites with little luck.  
If you could help me look in the right place I would be greatful.


Thanks for your time,

Aaron



-
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: ordering apps startups

2005-11-23 Thread Robert Harper
This one has been addressed several times before. The short answer is NO.

Tomcat being multithreaded does not guarantee order of start or access of a
page. It would be better to change your apps so that they are not dependent
on each other's state or order of starting. Think more in terms of event
driven application development rather than developing a single user GUI.

Robert S. Harper
Information Access Technology, Inc.

-Original Message-
From: Rogerio Baldini das Neves [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 23, 2005 10:36 AM
To: users@tomcat.apache.org
Subject: ordering apps startups 

Hi Folks.
 
Is it possible to order apps startups.
For example.
I have app1, app2 and app3. 
I need that app3 starts up first of all. and app2 in second and so on.
Is it possible ?
 
Thanks in advance.
Rogerio.

-- 

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.4/175 - Release Date: 18/11/2005
 



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



How to integrate tomcate 5, apache 2 using jk1.2 for Win32

2005-11-23 Thread Alla Winter
Can anybody refer me to the HOW TO instructions  to integrate Tomcat 5,
Apache 2 using jk1.2 for Windows environment?

thanks



RE: Where should I store my static content in a clustered environment

2005-11-23 Thread Duan, Nick
A simple solution would be to have all static pages hosted on an Apache
httpd server in front of tomcat clusters.  If you need more performance,
just cluster the httpds. Tomcat is not really designed to server static
pages.  Apache httpd can also serve as a LB.  In this case, certainly
you have to treat static pages separately from dynamic webapps.  In
other words, you can't bundle static pages with your war files. 

ND

-Original Message-
From: Eickvonder Bjoern [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 23, 2005 4:23 AM
To: users@tomcat.apache.org
Subject: Where should I store my static content in a clustered
environment

Hi,

lets start with describing my current task where I would appreciate any
advice from you.
I have to construct a clustered system (with lots of webservers) that
has few dynamic pages but a lot of static ones, whereby all resources
have to be protected by security-constraints of a webapp (so letting
Apache deliver this content won't work). Moreover there should be the
possibility to upload/delete static components via a web form. My main
problem is now where should I store the static data (mainly html pages,
images, ...; but over 4 GB(!) large in total)?

As far as now I'm considering the following solutions:

1.) Storing the content within the webapp of each webserver. This would
include that the servers know each other as the upload/delete operations
must be propagated from one server to all the others. Moreover the
update of the dynamic parts would not be as easy any more as just
uploading a new war-file as this requires deleting the old webapp
directory (that contains the content is this case as well).

2.) Storing the content in a separate directory but still on each
webserver. This would still include that servers must know each other,
but updating the dynamic part would be easier. The downside is that I
would have to write a servlet that delivers all static content with all
the problems of mime-types, character encoding and so on which I would
have to handle myself.

3.) Storing the content in a database on a separate server. The
advantage would be that webservers only need to know their database
server and updating the webapps would be easy (just uploading new
war-files). The downside here is that I need a servlet too and I think
it's maybe not the fastest solution as all requests of all servers to
each single chuck of static content would require a connection to the
database server.

4.) As 3.) but storing data on a single separate server in the
filesystem. The advantages/disadvantages should be similar to 3.)
whereby I do not know which solution might be faster.

5.) As 3.)/4.) but additionally implementing a caching-mechanism on the
webservers. This means if a webserver gets a request for a specific page
for the first time he connects the database server to retrieve that
page, then stores it in its webapp directory and then let tomcat deliver
that page. On the second request it is just checked if that page is
already there and if so it is delivered directly. Of course I must
implement some mechanism such that the webservers get to know if their
cached data is outdated but so far this seems to me the best solution.

Anyone ever faced this kind of problem? Any kind of remark to my
possible solutions or any other possibilities you might know of are
appreciated.

Thanks you in advance for your help.

Bjoern

 

-
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: ordering apps startups

2005-11-23 Thread Shankar Unni

Rogerio Baldini das Neves wrote:


I need that app3 starts up first of all. and app2 in second and so on.


As several folks have said: no.  I'm currently exploring a notion of 
extending StandardHost and subclassing the addChild(), etc., behavior to 
keep the children in a list rather than a hashmap, to make the order of 
webapp startup and shutdown more predictable.


It's meant for use in a specific environment of ours where we don't 
auto-deploy apps on the fly, and depend on the startup and shutdown 
order. I'll post something here if I'm successful, just for the record..



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



Displaying PDF's within a servlet

2005-11-23 Thread Khawaja Shams
Hello all,
I am doing a project where I need to display several hundred pdf's one
at a time on my website.  However, starting Acrobat for this purpose
everytime could be rather slow and inconvenient.  My professor mentioned
that in php, there is an easy way to convery pdf to png's, but I would like
to stick with servlets.  Is there any way that I can convert a pdf document
into some kind of an image file before displaying it? Any guidance would be
deeply appreciated.

Best Regards,
Khawaja Shams


JAASRealm-based Login Fails After Upgrade from 5.0 to 5.5

2005-11-23 Thread Shaw, David \(David\)
I have a stable, working, Struts-based web application running under
Tomcat 5.0.28 that uses HTTP BASIC authentication and a JAASRealm (with
a home grown LoginModule and user and role principals) over SSL. The
authentication / security has been working with no issues for several
releases.
 
I am now trying to upgrade Tomcat from 5.0.28 to 5.5.12. I've rebuilt
the web application using JDK 1.5.0_05. I've followed the usual
procedure for installing and configuring Tomcat, including modifying
server.xml to remove the deprecated references to Logger. My web
application appears to start with no problems according to the various
log files. I then browse to it. I receive the SSL certificate as usual
and the browser requests that I login in (via its pop-up box) - again as
usual. I do so. According to my web application logs, the correct
LoginModule is activated and I login successfully and the appropriate
roles are assigned to the user. However, rather than taking me to the
home page of the web application I am redirected to the 403 (permission
denied) error page - which displays with the correct images and style
sheet.
 
I've search the FAQ, bug lists, mailing lists and the web, but have been
unable to find any directly relevant help. Any thoughts? In particular
has this area of Tomcat changed? My understanding is that the servlet
and JSP specs are the same for Tomcat 5.0 and 5.5, so I should expect
the same behaviour.
 
Relevant snippets from server.xml and web.xml are below.
 
Thanks,
 
David
 
 Snippet of server.xml 
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost debug=1
  Host name=localhost debug=1 appBase=webapps
   unpackWARs=false autoDeploy=false
   xmlValidation=false xmlNamespaceAware=false
!-- Our auth mechanism --
Realm className=org.apache.catalina.realm.JAASRealm
appName=SSGSP
userClassNames=com.avaya.common.auth.UserPrincipal
roleClassNames=com.avaya.common.auth.RolePrincipal
debug=1/
Context className=org.apache.catalina.core.StandardContext
allowLinking=false
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper
cookies=true
crossContext=false
debug=99
displayName=Product X Web Application
docBase=../../../Webapps/Collector
mapperClass=org.apache.catalina.core.StandardContextMapper
path=/ssg
privileged=false
reloadable=false
swallowOutput=true
useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper
  !-- Turn off session caching in the manager --
  Manager className=org.apache.catalina.session.StandardManager
  pathname=/
  ...
 /Engine
 End snippet from server.xml 

 Snippet from web.xml 
error-page
error-code403/error-code
location/WEB-INF/webpages/error/403.jsp/location
/error-page
security-constraint
web-resource-collection
web-resource-namehome/web-resource-name
url-pattern/login/*/url-pattern
url-pattern/admin/summary.do/url-pattern
url-pattern/webpages/error.jsp/url-pattern
url-pattern/webpages/index.jsp/url-pattern
/web-resource-collection
auth-constraint
role-nameadminRole/role-name
role-namedeviceAdminRole/role-name
role-namecustomerAdminRole/role-name
/auth-constraint
user-data-constraint
 
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint
security-constraint
web-resource-collection
web-resource-nameadmin/web-resource-name
url-pattern/admin/*/url-pattern
url-pattern/feature/*/url-pattern
/web-resource-collection
auth-constraint
role-nameadminRole/role-name
role-namecustomerAdminRole/role-name
/auth-constraint
user-data-constraint
 
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint
login-config
auth-methodBASIC/auth-method
realm-nameSSGSP/realm-name
/login-config
security-role
descriptionThe admin pages/description
role-nameadminRole/role-name
/security-role
security-role
descriptionThe device admin pages/description
role-namedeviceAdminRole/role-name
/security-role
security-role
descriptionCustomer role/description
role-namecustomerAdminRole/role-name

Re: Net Disk Failure in JSP with Tomcat 5.5.9( or 5.5.X)

2005-11-23 Thread NanFei Wang

Hi,Chuck
Would you please give me some idea for the following !

NanFei



Hi,
The following seem simple question get no any response yet !
Is it really no solution ?



I made a Net Disk named P:\
The file ' test.jsp ' as following:

-
%@ page import=java.io.File %
%
String net = P:\\;
java.io.File netDir=new java.io.File(net);
out.print(net+ exist = +netDir.exists()+br);
out.print(net+ is Directory = +netDir.isDirectory()+br);
%
-

I got the following result when I use Apache Tomcat 5.5.9( or 5.5.X) Server
:

P:\ exist = false
P:\ is Directory = false
*

But I got the following when I use Tomcat 5.0.18 :
``
P:\ exist = true
P:\ is Directory = true
``

Can Anybody advise how to do to get net disk available using Tomcat 5.5.9 !

Thanks

NanFei

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



The Server PUSH tech?

2005-11-23 Thread Andrew.du
I hava search for Server PUSH  for a long time.
But I still don't know it.
Can you teach me?

[EMAIL PROTECTED]