Re: tomcat and active x problem

2008-03-23 Thread Nikola Milutinovic
 Hi, i have an html page that has a javascript function that opens an outlook 
 mail window .the function is pretty basic:
 
 function OpenOutlookDoc()
 {try{
 var outlookApp = new ActiveXObject(Outlook.Application);
 var nameSpace = outlookApp.getNameSpace(MAPI);
 mailFolder = nameSpace.getDefaultFolder(6);
 mailItem = mailFolder.Items.add('IPM.Note.FormA');
 mailItem.Subject=a subject test;
 mailItem.To = [EMAIL PROTECTED];
 mailItem.HTMLBody = bbold/b;
 mailItem.display (0);
 }catch(e){
 alert(e);
 // act on any error that you get
 }}
 
 if I run the file locally, with the url looking like: file://C:/things 
 are ok, page works, if I copy
 the html page in one of my projects and run int like
 localhost:8080/project/file.html I get an [Object error] alert..i 
 remember reading somewhere
 about some problems using Active -x in tomcat.


First of all, this is entirely client side stuff, so it should not make any 
difference if it is deployed on Tomcat, Apache, WebSphere or IIS. In this 
script, there is no interaction with the server, whatsoever, so, it is not 
Tomcat related in any way.

You should give us more info on the Object error you're getting, but I must 
warn you - your problems are IE related and have nothing to do with TC, so you 
may get help, but then again, you may not.

Nix.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: tomcat and active x problem

2008-03-23 Thread loredana loredana
this is the code of the page:

html
head
script language=javascript
function OpenOutlookDoc()
{
try
{
var outlookApp = new ActiveXObject(Outlook.Application);
var nameSpace = outlookApp.getNameSpace(MAPI);
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add('IPM.Note.FormA');
mailItem.Subject=a subject test;
mailItem.To = [EMAIL PROTECTED];
mailItem.HTMLBody = bbold/b;
mailItem.display (0);
}
catch(e)
{
alert(e);
// act on any error that you get
}
}
/script
/head
body
input type=button value=click onclick=OpenOutlookDoc()/
/body
/html


now, if u have outlook instaled, it should work. if u run the file 
locally(right click open with IE) it should work. leave it unedited and move it 
in a tomcat project and run it using localhost:8080/projectname/... and it will 
alert you the exception. You might be right, it might not be a tomcat related 
issue, but so far, I am using same browser, same code, and under tomcat it 
doesn't work for some reason.so my first thought is that it might have 
something to do with tomcat. anyway, 10x for the reply. About the Object error 
, this is the only alert I get. I don't know if there is a way to print a stack 
trace in javascript. In my try catch block I just put an alert(exception) in 
case I get any and all I get is [Object error].

10x in advance

- Original Message 
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 23, 2008 1:38:08 PM
Subject: Re: tomcat and active x problem

 Hi, i have an html page that has a javascript function that opens an outlook 
 mail window .the function is pretty basic:
 
 function OpenOutlookDoc()
 {try{
 var outlookApp = new ActiveXObject(Outlook.Application);
 var nameSpace = outlookApp.getNameSpace(MAPI);
 mailFolder = nameSpace.getDefaultFolder(6);
 mailItem = mailFolder.Items.add('IPM.Note.FormA');
 mailItem.Subject=a subject test;
 mailItem.To = [EMAIL PROTECTED];
 mailItem.HTMLBody = bbold/b;
 mailItem.display (0);
 }catch(e){
 alert(e);
 // act on any error that you get
 }}
 
 if I run the file locally, with the url looking like: file://C:/things 
 are ok, page works, if I copy
 the html page in one of my projects and run int like
 localhost:8080/project/file.html I get an [Object error] alert..i 
 remember reading somewhere
 about some problems using Active -x in tomcat.


First of all, this is entirely client side stuff, so it should not make any 
difference if it is deployed on Tomcat, Apache, WebSphere or IIS. In this 
script, there is no interaction with the server, whatsoever, so, it is not 
Tomcat related in any way.

You should give us more info on the Object error you're getting, but I must 
warn you - your problems are IE related and have nothing to do with TC, so you 
may get help, but then again, you may not.

Nix.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat and active x problem

2008-03-23 Thread loredana loredana
Hi, after searching google today for a couple of hours I found out what I think 
was the problem. As you said, it was IE security settings.
I think there is a difference between running a file as local and runing it 
from tomcat.(enters a different security level). So I modified the security 
settings for 
Initialize and script Active x control not marked as safe from disable to 
prompt and it worked under tomcat as well.

10x


- Original Message 
From: loredana loredana [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 23, 2008 2:10:32 PM
Subject: Re: tomcat and active x problem

this is the code of the page:

html
head
script language=javascript
function OpenOutlookDoc()
{
try
{
var outlookApp = new ActiveXObject(Outlook.Application);
var nameSpace = outlookApp.getNameSpace(MAPI);
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add('IPM.Note.FormA');
mailItem.Subject=a subject test;
mailItem.To = [EMAIL PROTECTED];
mailItem.HTMLBody = bbold/b;
mailItem.display (0);
}
catch(e)
{
alert(e);
// act on any error that you get
}
}
/script
/head
body
input type=button value=click onclick=OpenOutlookDoc()/
/body
/html


now, if u have outlook instaled, it should work. if u run the file 
locally(right click open with IE) it should work. leave it unedited and move it 
in a tomcat project and run it using localhost:8080/projectname/... and it will 
alert you the exception. You might be right, it might not be a tomcat related 
issue, but so far, I am using same browser, same code, and under tomcat it 
doesn't work for some reason.so my first thought is that it might have 
something to do with tomcat. anyway, 10x for the reply. About the Object error 
, this is the only alert I get. I don't know if there is a way to print a stack 
trace in javascript. In my try catch block I just put an alert(exception) in 
case I get any and all I get is [Object error].

10x in advance

- Original Message 
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 23, 2008 1:38:08 PM
Subject: Re: tomcat and active x problem

 Hi, i have an html page that has a javascript function that opens an outlook 
 mail window .the function is pretty basic:
 
 function OpenOutlookDoc()
 {try{
 var outlookApp = new ActiveXObject(Outlook.Application);
 var nameSpace = outlookApp.getNameSpace(MAPI);
 mailFolder = nameSpace.getDefaultFolder(6);
 mailItem = mailFolder.Items.add('IPM.Note.FormA');
 mailItem.Subject=a subject test;
 mailItem.To = [EMAIL PROTECTED];
 mailItem.HTMLBody = bbold/b;
 mailItem.display (0);
 }catch(e){
 alert(e);
 // act on any error that you get
 }}
 
 if I run the file locally, with the url looking like: file://C:/things 
 are ok, page works, if I copy
 the html page in one of my projects and run int like
 localhost:8080/project/file.html I get an [Object error] alert..i 
 remember reading somewhere
 about some problems using Active -x in tomcat.


First of all, this is entirely client side stuff, so it should not make any 
difference if it is deployed on Tomcat, Apache, WebSphere or IIS. In this 
script, there is no interaction with the server, whatsoever, so, it is not 
Tomcat related in any way.

You should give us more info on the Object error you're getting, but I must 
warn you - your problems are IE related and have nothing to do with TC, so you 
may get help, but then again, you may not.

Nix.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help with TomCat 6.0 SSI

2008-03-23 Thread Steve Major
Okay, I've gone back to the beginning with this problem with the  
advice so far and reinstalled Tomcat fresh on a clone of my existing  
box with no web apps deployed yet.  I think my initial diagnosis of  
something wrong with privileged app may have been off.


I think my problem is (aside from being a new with Tomcat) is with the  
SSI filters themselves or something to do with them.


If I go into my web.xml and simply uncomment the SSI filter and filter  
mappings, restart Tomcat, and try to go to the default page, I'm  
greeted with:


HTTP Status 404 - /

type Status report

message /

description The requested resource (/) is not available.
Apache Tomcat/6.0.16

My logs show (in part)

Mar 23, 2008 11:26:02 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart

Re-commenting both those sections restore Tomcat to working order.

On Mar 17, 2008, at 7:36 PM, Caldarale, Charles R wrote:


From: Steve Major [mailto:[EMAIL PROTECTED]
Subject: Re: Help with TomCat 6.0  SSI

Does this mean I need to revert to putting it in my server.xml?


No, it means you've got something else wrong.  Make sure your webapp's
directory structure is correct by comparing it to the manager and
host-manager webapps that come with Tomcat 6.0 (both of which are
privileged).

Once that's verified, install Lambda Probe (www.lambdaprobe.org) and
bring up Tomcat.  Browse to the Lambda Probe app (usually
http://localhost:8080/probe), click on your webapp name in the left
column, then the Context descriptor box on the right side.  Make sure
your Context element is shown correctly.

If that's all correct, then you may have to fiddle with the
conf/catalina.policy file, but I don't think that should be necessary.

- 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help with TomCat 6.0 SSI

2008-03-23 Thread Mark Thomas

Steve Major wrote:
I think my problem is (aside from being a new with Tomcat) is with the 
SSI filters themselves or something to do with them.


If I go into my web.xml and simply uncomment the SSI filter and filter 
mappings, restart Tomcat, and try to go to the default page, I'm greeted 
with:


You still need to mark the context as privileged or the loading of the 
filter will fail which will lead to:



Mar 23, 2008 11:26:02 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart


Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help with TomCat 6.0 SSI

2008-03-23 Thread Steve Major
Thanks for the clarification.  I got SSI Filters all uncommented.   
Manager works now.


I have Probe installed and working too.  When I go to my web app I  
really want to get SSI working with and view it with Probe - under  
Context Descriptor it says Cannot find context descriptor of this  
application.


The app I want to use didn't have a META-INF folder, so I copied it  
over the one from the manager app since it's already a privileged app  
and as the appropriate context.xml contained within.  Same thing.


Is it a problem with my web app?

Thanks again.
--
Various ways of contacting me can be found at my Signat-url webpage: 
http://www.themajorshome.com/signat-url


On Mar 23, 2008, at 12:46 PM, Mark Thomas wrote:


Steve Major wrote:
I think my problem is (aside from being a new with Tomcat) is with  
the SSI filters themselves or something to do with them.
If I go into my web.xml and simply uncomment the SSI filter and  
filter mappings, restart Tomcat, and try to go to the default page,  
I'm greeted with:


You still need to mark the context as privileged or the loading of  
the filter will fail which will lead to:


Mar 23, 2008 11:26:02 AM org.apache.catalina.core.StandardContext  
start

SEVERE: Error filterStart


Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help with TomCat 6.0 SSI

2008-03-23 Thread Mark Thomas

Steve Major wrote:
The app I want to use didn't have a META-INF folder, so I copied it over 
the one from the manager app since it's already a privileged app and as 
the appropriate context.xml contained within.  Same thing.


Copied what from where to where? You'll need to copy the context.xml to 
$CATALINA_HOME/conf/[enginename]/[hostname]/yourapp.xml


Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help with TomCat 6.0 SSI

2008-03-23 Thread Steve Major
Okay, success!  THANK YOU!  Success defined as my app now working, I  
just have to try some SSI with it. ;-)


Some clarification, if you don't mind.

My apps seem to have Context.xml 's in:

$CATALINA_HOME/webapps/manager/META-INF/Context.xml

and

$CATALINA_HOME/webapps/probe/META-INF/Context.xml

These seem to have the privileged=true contained within.

I did the same with my webapp e.g. $CATALINA_HOME/webapps/myapp/META- 
INF/Context.xml


Are those necessary in addition to $CATALINA_HOME/conf/[enginename]/ 
[hostname]/yourapp.xml ?  Or is this all that I really need?


-Steve

On Mar 23, 2008, at 1:51 PM, Mark Thomas wrote:


Steve Major wrote:
The app I want to use didn't have a META-INF folder, so I copied it  
over the one from the manager app since it's already a privileged  
app and as the appropriate context.xml contained within.  Same thing.


Copied what from where to where? You'll need to copy the context.xml  
to $CATALINA_HOME/conf/[enginename]/[hostname]/yourapp.xml


Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Memory allocation

2008-03-23 Thread Charl Gerber
Hi,

I'm setting up a Centos 5 server with Apache, MySQL
and Tomcat 6 (jre 1.6). I think we have joomla on it
as well. The machine will be used purely as a
webserver running a tomcat app and maybe some static
html from the apache server. Quite a bit of
interaction with the MySQL server will be done. We
have 2GB of memory in the machine. How much should I
allocate to Tomcat and where/how do I do it? I suspect
in the catalina.sh file? I am pretty new to managing a
linux machine, so I am not familiar with the
configurations. 

We'd like to optimize Tomcat's performance, but
obviously need to find a balance where MySQL and
Apache will have enough memory too. We don't have many
hard stats about connections expected etc, so we want
to start with a default configuration and memory
allocation that will ensure all apps involved will
have a decent chunk of the memory to work with, but
not too little or too much.

Thanks!

Charl


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying an image from outside the webapps directory

2008-03-23 Thread Kimberly Begley
Thanks for that Chris - very much appreciated,
I did manage to get it to compile but when I click on the link in my
jsp page everything appears except the image - and also no errors -
when I view source it includes the img line for the plot as so:
IMG SRC=/servlet/OpenFile?plot=/home/kimberly/Desktop/test/52-plot.jpg
align=left ALT=plot

My jsp includes it as this:
IMG SRC=/servlet/OpenFile?plot=%=plot% align=left ALT=plot

Then my serlvet calls the getParameter function to get the absolute
path to the jpeg I want to display in the jsp page.

I might have messed it up when getting it to compile - I was having
problems with the getMimeType method with messages like this:
 /usr/local/jdk1.5.0_14/bin/javac -d ../../classes/ OpenFile.java
OpenFile.java:35: cannot find symbol
symbol  : method getServletContext()
location: interface javax.servlet.http.HttpServletRequest
ServletContext application = request.getServletContext();
^
OpenFile.java:38: incompatible types
found   : java.lang.String
required: java.io.File
return application.getMimeType(file.getName());
  ^
OpenFile.java:92: setContentType(java.lang.String) in
javax.servlet.ServletResponse cannot be applied to (java.io.File)
response.setContentType(getMimeType(request, file));
^
3 errors

I got rid of the first error by changing and adding these linesin the
getMimeType method:
ServletConfig config = getServletConfig();
ServletContext application = config.getServletContext();

But was still getting the other errors until I commented out the
getMimeType method and placed the above 2 lines in the else before
calling getMimeType - like this:

else
{
ServletConfig config = getServletConfig();
ServletContext application = config.getServletContext();

response.setStatus(HttpServletResponse.SC_OK);

response.setContentType(application.getMimeType(file.getName()));

response.setHeader(Content-Type,String.valueOf(file.length()));
response.setHeader(Content-Disposition,attachment;
filename=+ file.getName());

sendFile(file, response);
}

So now I'm not sure if it's a problem with the way I'm calling it or
if I've messed it up with the changes I've made to it. I've checked
the logs and nothing - no errors there either.
Thanks for all the assistance with this.
Kimberly

On Sat, Mar 22, 2008 at 12:25 AM, Christopher Schultz
[EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1

  Lars,


  Lars Nielsen Lind wrote:
  | You can do that with a Servlet. Here are some sample code. Replace
  | content of  with your own data.

  This would be a much better class if it:

  * Did not have extraneous class members.
  * Used a buffer for reading and writing to the streams.
  * Did not truncate content-lengths that exceed Integer.MAX_VALUE.
  * Used the proper MIME type (bug!), or allowed the servlet to
  ~  override it.
  * Handled exceptions properly.
  * Returned proper response codes.
  * Included documentation (but hey, it's sample code!)

  :(

  I point out these problems not to embarrass Lars, but to point out that
  giving code with these kinds of problems to a likely newbie (apologies,
  Kimberly, if you are not a newbie... but your question admits a certain
  level of understanding) does not serve them well. They come to the list
  hoping to get good advice from good developers and you hand them a class
  that is rife with problems.

  My guess is that this kind of thing happens all the time and the
  recipient is certainly happy to get some working code, but they don't go
  over it and fix all the problems because it came from someone smarter
  than them. Your code may become an example for how to do certain things.
  Given that, we should endeavor to provide the highest quality code
  possible to the readers of this list. We'll be helping them to be better
  programmers.

  Allow me to suggest a re-write of this class.

  package ...;


  import java.io.*;
  import java.util.*;

  import javax.servlet.*;
  import javax.servlet.http.*;

  public class DownloadServlet
  ~extends HttpServlet
  {
  ~private static final int BUFFER_SIZE = 4096;
  ~private static final String BASE_FILE_PATH = /path/to/your/files;

  ~protected File findFile(HttpServletRequest request)
  ~   throws IOException
  ~{
  ~// This is a reasonable default implementation.
  ~// Feel free to change it.
  ~File file = new File(BASE_FILE_PATH + request.getPathInfo());

  ~return file;
  ~}

  ~protected File getMimeType(HttpServletRequest request, File file)
  ~{
  ~// This is a reasonable default implementation.
  ~// Feel free to change it.
  ~ServletContext application = request.getServletContext();

  ~return 

Re: Help with TomCat 6.0 SSI

2008-03-23 Thread Mark Thomas

Steve Major wrote:
Okay, success!  THANK YOU!  Success defined as my app now working, I 
just have to try some SSI with it. ;-)


Great. Now you just have to watch out for the known issues:
https://issues.apache.org/bugzilla/show_bug.cgi?id=44391
https://issues.apache.org/bugzilla/show_bug.cgi?id=44392

There are on the to-do list. I hope to get to them soon.


My apps seem to have Context.xml 's in:

$CATALINA_HOME/webapps/manager/META-INF/Context.xml

and

$CATALINA_HOME/webapps/probe/META-INF/Context.xml

These seem to have the privileged=true contained within.

I did the same with my webapp e.g. 
$CATALINA_HOME/webapps/myapp/META-INF/Context.xml


Are those necessary in addition to 
$CATALINA_HOME/conf/[enginename]/[hostname]/yourapp.xml ?  Or is this 
all that I really need?


$CATALINA_HOME/conf/[enginename]/[hostname]/yourapp.xml is the only one you 
need. The one in META-INF is copied there on deployment *if* 
$CATALINA_HOME/conf/[enginename]/[hostname]/yourapp.xml does not exist. The 
idea is:

- deploy your app
- modify context settings in 
$CATALINA_HOME/conf/[enginename]/[hostname]/yourapp.xml

- update your app
- your modified context settings do not get over-written

So, META-INF/context.xml should contain your preferred default settings so 
they are used when you deploy your app to a new Tomcat instance.


Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



WIFI custom web application

2008-03-23 Thread karthikn

Hi

Thnx for the initial Reply

Please Somebody suggest me How to proceed




The Life Cycle for the WIFI custom web application for AAA is as follows.

1) User Types www.yahoo.com

2) CISCO ROUTER  Intercepts this requests and reroutes to a WEB container
   as http://IP:PORT or   http://IP   Only  for AAA to be processed.

3) AAA processing is done in the WEB container by the application hosted 
as ROOT

  ( Replaced original ROOT  with custom web application  ) by default.

4) Once the AAA is processed, we redirect the user to a new Window of 
the browser and allow

   the user to  the page requested for Originally (www.yahoo.com).


5) Session is maintained in thew Web server till valid Signoff signal 
sent to AAA router to stop  Processing.



Problem
Load on this  single TOMCAT is building up the CPU for 100% ,as the 
subscribers are increasing.



Solution
We need to bring in the Load Balancer with Multiple TOMCAT /APACHE2.x 
server


[ ROOT of TOMCAT's  mapped to  APACHE2.x server ]
.



SPEC :

OSS = UNIX 11

WEB Container = TOMCAT 5.5.23

JSDK = 1.6




with regards
Karthik

Hence  we need multiple TOMCAT with ROOT being able to configure to a 
APCHE 2X http server.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Memory allocation

2008-03-23 Thread Gabe Wong

Charl Gerber wrote:

Hi,

I'm setting up a Centos 5 server with Apache, MySQL
and Tomcat 6 (jre 1.6). I think we have joomla on it
as well. The machine will be used purely as a
webserver running a tomcat app and maybe some static
html from the apache server. Quite a bit of
interaction with the MySQL server will be done. We
have 2GB of memory in the machine. How much should I
allocate to Tomcat and where/how do I do it? I suspect
in the catalina.sh file? I am pretty new to managing a
linux machine, so I am not familiar with the
configurations. 


We'd like to optimize Tomcat's performance, but
obviously need to find a balance where MySQL and
Apache will have enough memory too. We don't have many
hard stats about connections expected etc, so we want
to start with a default configuration and memory
allocation that will ensure all apps involved will
have a decent chunk of the memory to work with, but
not too little or too much.

Thanks!

Charl
  

Hi Carl,
First thing,
Are you using a JDK and/or Tomcat distribution from the Centos repository?
If not please download and install the JDK from java.sun.com and
download and install Tomcat from tomcat.apache.org.

Using the default configuration, is a good starting point to determine 
the optimized settings as you do not presently have any metrics.

Depending, then you could increase the memory allocation.

--
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement
http://www.ngasi.com
NEW! 8.0 - Centrally manage multiple physical servers


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



replacement for symbolic links to files (Apache httpd to Tomcat)

2008-03-23 Thread DIGLLOYD INC

I'm converting from an Apache http system.

Thousands of my users have bookmarked http://diglloyd.com/diglloyd/blog.html

With Apache, I symlinked blog.html to the current month's blog.

Now with Tomcat, I see warnings that enabling symlinks is a security
risk.

What is the best way to make blog.html = 2008-03-blog.html ?  (eg if
March 2008 is the current blog)

I realize that I can write a one-line blog.jsp which includes the
current month's blog.  But that won't help users that bookmarked
blog.html.

An http redirect works, but it seems the google search engine is not
enamored of redirects; I don't want to hurt my search ranking.

Lloyd Chambers