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  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:
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 to know if 

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]



Michelle Brett-Mitchell is out of the office.

2005-11-23 Thread mbrett-mitchell
I will be out of the office starting Mon 11/21/2005 and will not return until
Mon 11/28/2005.

I will respond to your message when I return.

Please contact Liz Manning or Thomas Gaffney with any urgent issues.


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



Re: default logging in tomcat 5.5

2005-11-23 Thread Remy Maucherat
On 11/23/05, Akoulov, Alexandre [IT] <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am in the process of upgrading from tomcat-3.3 to tomcat-5.5 and would 
> greatly appreciate if you could let me know whether I understood tomcat-5.5's 
> default logging correctly.
>
> As of tomcat 5.5 Context element does not have a Logger sub-element. Logging 
> can be configured with log4j or java.util.logging. I went with  
> java.util.logging, which is turned on by default and uses 
> /conf/logging.properties. To be more exact Tomcat does not use 
> java.util.logging as is but rather "will, in the default configuration, 
> replace the default LogManager implementation with a container friendly 
> implementation called JULI" (extract from 
> http://tomcat.apache.org/tomcat-5.5-doc/logging.html)
>
> The following describes how the default logging (ie java.util.logging) works 
> in tomcat-5.5 (well, it describes how I saw it working :) ):
>
> I.
> When using /conf/logging.properties from the box (ie without 
> any modifications) all the logging performed in the particular web app goes 
> to the handlers defined in the .handlers clause, or in other words it gets 
> logged into the logs/catalina..txt file and the console. In 
> addition, all the exceptions thrown by the web app go to the 2localhost 
> handler, ie they are logged into the localhost..log
>
> That's what /conf/logging.properties has:
> --
> handlers = 1catalina.org.apache.juli.FileHandler, , 
> 2localhost.org.apache.juli.FileHandler,...
>
> .handlers = 1catalina.org.apache.juli.FileHandler, 
> java.util.logging.ConsoleHandler
>
> 
> 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> 1catalina.org.apache.juli.FileHandler.prefix = catalina.
> 
> 2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> 2localhost.org.apache.juli.FileHandler.prefix = localhost.
> --
>
> that is what our web app has
> --
> public class TestServlet extends HttpServlet {
>   public void doGet(H
>   {
> Logger logger1 = Logger.getLogger("test");
>   Handler[] handlers = logger1.getHandlers();
>   for (int i = 0; i < handlers.length; i++) {
> Handler handler = handlers[i];
> System.out.println(handler);
>   }
>   System.out.println("handlers.size: " + handlers.length);
>
>   logger1.info("INFO logging is successful");
>
>   throw new IllegalStateException("test exception");
>   }
> }
> --
>
> once TestServlet serves HTTP GET request the result is:
>
> a) Console has the following
> handlers.size: 0// result of System.out.println
> Nov 23, 2005 5:24:37 PM com.SSMB.TestProj.servlets.TestServlet doGet 
> // result of logging
>   INFO: INFO logging is successful
>
> b) catalina.2005-11-23.log has the following:
> Nov 23, 2005 5:24:37 PM com.SSMB.TestProj.servlets.TestServlet doGet 
> // result of logging
>   INFO: INFO logging is successful
>
> c) localhost.2005-11-23.log has the following
> java.lang.IllegalStateException: test exception // 
> result of throwing the ISEx
> at 
> com.SSMB.TestProj.servlets.TestServlet.doGet(TestServlet.java:45)
>
>
> II.
> If we want the logging performed by a particular web app and the exceptions 
> thrown by it to go to a particular file we can modify 
> /conf/logging.properties.  Let's assume that we have got a web 
> app that runs on the /test context.
>
> That's how /conf/logging.properties should be modified
> --
> # add new handler, 6test.org.apache.juli.FileHandler, to the list
> handlers = 
> 1catalina.org.apache.juli.FileH,...,6test.org.apache.juli.FileHandler
> 
> ## new line - 'test' logger will only log into 6test handler
> test.handlers=6test.org.apache.juli.FileHandler
> ...
> ## define 6test file handler - all logging done via 'test' logger
> ## will go to test..txt file
> 6test.org.apache.juli.FileHandler.level = FINE
> 6test.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> 6test.org.apache.juli.FileHandler.prefix = test.
> 
> ## all of the exceptions coming from /test context are to be logged into 
> 6test handler.
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test].level = 
> INFO
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test].handlers
>  = 6test.org.apache.juli.FileHandler
> --
>
> once TestServlet (see its doGet method content above) serves HTTP GET request 
> the result is:
>
> a) Console has the following
> [EMAIL PROTECTED] // result of System.out.println
> handlers.size: 1// result of 
> System.out.println
>
> b) test.2005-11-23.log has 

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 wapace
What operating system are you using?
> 
> From: "Scott Purcell" <[EMAIL PROTECTED]>
> Date: 2005/11/23 Wed AM 09:17:01 EST
> To: 
> 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]



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



RE: ordering apps startups

2005-11-23 Thread Rogerio Baldini das Neves
Ok Robert. Thanks a lot. 

-Original Message-
From: Robert Harper [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 23 de novembro de 2005 15:52
To: 'Tomcat Users List'
Subject: RE: ordering apps startups 

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]

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

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



Tomcat doesn't load classes

2005-11-23 Thread Arjan
Hi, i'm having a strange problem to load classes 
from the directory WEB-INF/classes. I placed an 
url.properties file there, restarted Tomcat 
(version 5.0.28), but the classes aren't loaded
as far as i can see. I've tryed to store the 
file on other locations (ROOT/, webapps/ etc), 
even in the $CATALINA_BASE/shared/classes, but 
no luck at all...

Ofcourse i read 
http://tomcat.apache.org/tomcat-5.0-doc/class-loader-howto.html, 
tryed Google etc, but i still couldn't find a 
solution to my problem. I also cannot find 
anything in the Tomcat logfiles...

This is the content of my url.properties:



# Basic pages
ADMIN_LOGIN_URL = /admin/jsp/login.jsp
ADMIN_HOME_URL  = /admin/jsp/home.jsp
ADMIN_WEBSITE_HOME_URL  = /admin/jsp/website.jsp

# List pages
ADMIN_USER_LIST = /admin/user/userList.jsp
ADMIN_THEMA_LIST= /admin/thema/themaList.jsp
ADMIN_STYLE_LIST= /admin/style/styleList.jsp
ADMIN_TEMPLATE_LIST = /admin/template/templateList.jsp
ADMIN_MODULE_LIST   = /admin/module/moduleList.jsp
ADMIN_NEWS_LIST = /admin/news/newsList.jsp

# Edit pages
ADMIN_USER_EDIT = /admin/user/userEdit.jsp
ADMIN_THEMA_EDIT= /admin/thema/themaEdit.jsp
ADMIN_STYLE_EDIT= /admin/style/styleEdit.jsp
ADMIN_TEMPLATE_EDIT = /admin/template/templateEdit.jsp
ADMIN_MODULE_EDIT   = /admin/module/moduleEdit.jsp
ADMIN_NEWS_EDIT = /admin/news/newsEdit.jsp

# Data actions
DATA_ACTION_FIND= 1;
DATA_ACTION_CREATE_NEW  = 2;
DATA_ACTION_SAVE_CURRENT= 3;
DATA_ACTION_UPDATE_CURRENT  = 4;
DATA_ACTION_DELETE_CURRENT  = 5;
DATA_ACTION_COPY_CURRENT= 6;
DATA_ACTION_EDIT= 7;

-

I guess i do something wrong, but i cannot find what Thx for help!


Re: ordering apps startups

2005-11-23 Thread Bruno Georges
Rogiero
If this is an option for you I would use JBoss to manage the deployment 
ordering.
You have implicit and explicit behavior.
For example the deployment ordering scheme could be the you name your war: 
01appA.war, 02appB.war
Here the apps will be implicitly loaded in this order. This is know as the 
deploymentSorter implicit policy.
Its policy is defined in the conf/jboss-service.xml by the attribute 
URLComparator set to DeploymentSorter or PrefixDeploymentSorter.

There isa very good adminguide on jboss wiki. I suggest you have a look at it.
Hope this helps.

With Best Regards
Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: "Rogerio Baldini das Neves" [EMAIL PROTECTED]
Sent: 23.11.2005 18:36
To: 
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
 


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word "misdirected" as the message and delete this
e-mail from your system.



Re: FTP Was: Re: manager for some users

2005-11-23 Thread erh
On Tue, Nov 22, 2005 at 03:33:09PM -0500, Steve Ochani wrote:
> On 22 Nov 2005 at 14:14, [EMAIL PROTECTED] wrote:
> 
> > On Tue, Nov 22, 2005 at 01:17:56PM +0100, Alex Moreno wrote:
> > > The problem is that some partners has said me that this is insecure
> > > and should only be used on beta application servers. At least this
> > > is what the department says us to deny this petition.
> >
> >  what?  They say ftp is insecure?  Well horray for inept admins who
> >  don't
> > know how to configure their system.
> 
> Yes, FTP itself is insecure. It has nothing to do with ability of admins. The 
> protocol
> iteself is a clear text protocol and is thus insecure.

d'oh!  of course.  I don't know what I was thinking.
Thanks for the clue-by-four.

eric

-
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: How to integrate tomcate 5, apache 2 using jk1.2 for Win32

2005-11-23 Thread Martin Gainty
Apache 2 uses mod_jk connector(s)
http://tomcat.apache.org/connectors-doc-archive/jk2/jk/aphowto.html
Martin-
- Original Message - 
From: "Alla Winter" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, November 23, 2005 2:02 PM
Subject: How to integrate tomcate 5, apache 2 using jk1.2 for Win32


> 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 Bruno Georges
Bjoern

Do you need some sort of fault tolerant system? 
Can you clarify the requierments you have, do you need load balancing, session 
sync replication, async replication?
Traffic, SLA, concurrent connections, ...

All these will have an impact on the choice and design of your infrastructure.

Cheers

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


- Original Message -
From: "Duan, Nick" [EMAIL PROTECTED]
Sent: 23.11.2005 21:21
To: "Tomcat Users List" 
Subject: RE: Where should I store my static content in a clustered environment

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]


LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word "misdirected" as the message and delete this
e-mail from your system.


-
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


Re: RE: admin module for Tomcat 5

2005-11-23 Thread andy gordon
In addition, 
   
  The admin app needs to be placed into the same directory as the manager app. 
i.e. 
   
  C:\Apache\Tomcat 5.5\server\webapps
   
  Hope this helps, 
   
  andy gordon

[EMAIL PROTECTED] wrote:
  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" 
> Date: 2005/11/23 Wed AM 10:16:46 EST
> To: "Tomcat Users List" 
> 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" 
> > Date: 2005/11/23 Wed AM 09:17:01 EST
> > To: 
> > 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]

  



-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

RE: Displaying PDF's within a servlet

2005-11-23 Thread Caldarale, Charles R
> From: Khawaja Shams [mailto:[EMAIL PROTECTED] 
> Subject: Displaying PDF's within a servlet
> 
> However, starting Acrobat for this purpose
> everytime could be rather slow and inconvenient.

It appears that, at least with IE on XP, Acrobat Reader stays loaded as
long as the browser is active.  Consequently, a new process is not
started with each download; all that happens is a new document window is
opened by the already active .  Don't know if it works that way with
Firefox.  

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



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 


  



  
  
  ...
 
 End snippet from server.xml 

 Snippet from web.xml 

403
/WEB-INF/webpages/error/403.jsp



home
/login/*
/admin/summary.do
/webpages/error.jsp
/webpages/index.jsp


adminRole
deviceAdminRole
customerAdminRole


 
CONFIDENTIAL




admin
/admin/*
/feature/*


adminRole
customerAdminRole


 
CONFIDENTIAL


BASIC
SSGSP


The admin pages
adminRole


The device admin pages
deviceAdminRole


Customer role
customerAdminRole

 End snippet from web.xml 
 


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()+"");
out.print(net+" is Directory = "+netDir.isDirectory()+"");
%>
-

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]


RE: default logging in tomcat 5.5

2005-11-23 Thread Akoulov, Alexandre [IT]
Thanks a lot, Remy , for reviewing my email and providing a good tip on 
System.out

Kind regards,

Sasha. 

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 23 November 2005 10:34 PM
To: Tomcat Users List
Subject: Re: default logging in tomcat 5.5


Yes, since you don't have a configuration in your web application
(WEB-INF/classes/logging.properties), everything uses the
configuration of the container and it all depends on the logger names
used.

Note: you should be able to capture and log System.out stuff to the
container logger using swallowOutput

--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x






On 11/23/05, Akoulov, Alexandre [IT] <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am in the process of upgrading from tomcat-3.3 to tomcat-5.5 and would 
> greatly appreciate if you could let me know whether I understood tomcat-5.5's 
> default logging correctly.
>
> As of tomcat 5.5 Context element does not have a Logger sub-element. Logging 
> can be configured with log4j or java.util.logging. I went with  
> java.util.logging, which is turned on by default and uses 
> /conf/logging.properties. To be more exact Tomcat does not use 
> java.util.logging as is but rather "will, in the default configuration, 
> replace the default LogManager implementation with a container friendly 
> implementation called JULI" (extract from 
> http://tomcat.apache.org/tomcat-5.5-doc/logging.html)
>
> The following describes how the default logging (ie java.util.logging) works 
> in tomcat-5.5 (well, it describes how I saw it working :) ):
>
> I.
> When using /conf/logging.properties from the box (ie without 
> any modifications) all the logging performed in the particular web app goes 
> to the handlers defined in the .handlers clause, or in other words it gets 
> logged into the logs/catalina..txt file and the console. In 
> addition, all the exceptions thrown by the web app go to the 2localhost 
> handler, ie they are logged into the localhost..log
>
> That's what /conf/logging.properties has:
> --
> handlers = 1catalina.org.apache.juli.FileHandler, , 
> 2localhost.org.apache.juli.FileHandler,...
>
> .handlers = 1catalina.org.apache.juli.FileHandler, 
> java.util.logging.ConsoleHandler
>
> 
> 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> 1catalina.org.apache.juli.FileHandler.prefix = catalina.
> 
> 2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> 2localhost.org.apache.juli.FileHandler.prefix = localhost.
> --
>
> that is what our web app has
> --
> public class TestServlet extends HttpServlet {
>   public void doGet(H
>   {
> Logger logger1 = Logger.getLogger("test");
>   Handler[] handlers = logger1.getHandlers();
>   for (int i = 0; i < handlers.length; i++) {
> Handler handler = handlers[i];
> System.out.println(handler);
>   }
>   System.out.println("handlers.size: " + handlers.length);
>
>   logger1.info("INFO logging is successful");
>
>   throw new IllegalStateException("test exception");
>   }
> }
> --
>
> once TestServlet serves HTTP GET request the result is:
>
> a) Console has the following
> handlers.size: 0// result of System.out.println
> Nov 23, 2005 5:24:37 PM com.SSMB.TestProj.servlets.TestServlet doGet 
> // result of logging
>   INFO: INFO logging is successful
>
> b) catalina.2005-11-23.log has the following:
> Nov 23, 2005 5:24:37 PM com.SSMB.TestProj.servlets.TestServlet doGet 
> // result of logging
>   INFO: INFO logging is successful
>
> c) localhost.2005-11-23.log has the following
> java.lang.IllegalStateException: test exception // 
> result of throwing the ISEx
> at 
> com.SSMB.TestProj.servlets.TestServlet.doGet(TestServlet.java:45)
>
>
> II.
> If we want the logging performed by a particular web app and the exceptions 
> thrown by it to go to a particular file we can modify 
> /conf/logging.properties.  Let's assume that we have got a web 
> app that runs on the /test context.
>
> That's how /conf/logging.properties should be modified
> --
> # add new handler, 6test.org.apache.juli.FileHandler, to the list
> handlers = 
> 1catalina.org.apache.juli.FileH,...,6test.org.apache.juli.FileHandler
> 
> ## new line - 'test' logger will only log into 6test handler
> test.handlers=6test.org.apache.juli.FileHandler
> ...
> ## define 6test file handler - all logging done via 'test' logger
> ## will go to test..txt file
> 6test.org.apache.juli.FileHandler.level = FINE
> 6test.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> 6t

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

2005-11-23 Thread Caldarale, Charles R
> From: NanFei Wang [mailto:[EMAIL PROTECTED] 
> Subject: Re: Net Disk Failure in JSP with Tomcat 5.5.9( or 5.5.X)
> 
> I made a Net Disk named P:\
>
> 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
> ``

I suspect you were running 5.0.28 from a command prompt, and 5.5.x as a
Windows service.  As far as I can tell, network drive mappings are not
visible to a service, even when the service is run under an account that
has persistent network connections.  By using the .bat files to run
5.5.x, you should be able to do what you want.  Note that the .bat files
are only included in the .zip Tomcat download, not the .exe one (seems
silly, but that's the way it is).

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