Re: Arabic encoding

2005-02-26 Thread Fadwa Barham
But I wonder why the old tomcat and java displayed arabic correctly, and I 
use the same classes12.jar in both of the old and the new.
I want to know what is the differance, what encoding they stopped to 
support? It looks like that tomcat cannot understand the old Java cause I 
have to change the encoding to arabic windows in the internet explorer each 
time I request the servlet, and when I do this, every arabic character is 
displayed correctly.
I think it is better to understand the problem and the changes so I can 
handle the problem if I faced it again in the newer versions of tomcat or 
Java.
I know that being the database in us7ascii is not good, but changing the 
database encoding each time I face the problem is not the right way. I may 
change it this time, but I need to understand.
thanks

- Original Message - 
From: "Benson Margulies" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Sunday, February 27, 2005 12:44 AM
Subject: RE: Arabic encoding


Oracle's ODBC driver will transcode from the database to UTF-16 based on
the databse encoding. If the database is in US7ASCII, this is a
destructive process for Arabic. The only alternative I can think of is
to do all your database I/O in hex.
-Original Message-
From: Fadwa Barham [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 26, 2005 1:20 PM
To: Tomcat Users List
Subject: Re: Arabic encoding
I use oracle 7 database, and the NLS language is
American_America.US7ASCII, and it is not easy to change it to utf-8.
Beside, the question is, a servlet work fine on tomcat 4.0.6 why it
stopped with the new versions, what changes made to the encoding of
tomcat??
do I need tomcat-i18n-ar.jar? and if so, from where to get it?
I can't determine where is the problem, is it from the new Java or the
new tomcat.
thanks in advanced
- Original Message -
From: "Benson Margulies" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, February 23, 2005 11:26 PM
Subject: RE: Arabic encoding

What database? Do you have the database set up to deliver Unicode, or
CP1256, correctly? Note that not all Arabic fits into CP1256, you
might
really be better off with UTF-8.
-
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]


RE: Startup

2005-02-26 Thread Caldarale, Charles R
> From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
> Subject: Re: Startup
> 
> While 5.5.7 can be made to run on JDK (not JRE) 1.4.x, 
> it is not intended for 1.4 series.

I suspect that would be news to the developers.  The 5.5 branch runs perfectly 
fine on the 1.4.2 JRE (the JDK is _not_ needed), as long as the compat.zip 
download is added to the primary download.  5.5.7 is also noticeably faster 
than 5.0.30, even on the 1.4.2 JRE.

 - 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: Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-26 Thread Parsons Technical Services
Okay, I know I am starting a flame war but why go through the effort?
If I can see your encrypted passwords, then I can see the code that decrypts 
them. And with that I have your passwords. It only adds a step to my effort 
to crack your security.

The only way to really secure them is to secure the files they are stored 
in. If you are on Linux or Windoze with NTFS this can be done. Then only you 
and Tomcat can see them. This of course does not exclude the admin/root, but 
if you can't trust them then you have bigger issues.

So in reality don't bother with what is in the files, instead secure the 
files.

If you disagree, then explain how you are going to send the password to 
MySQL?  And some more info on your environment may help us give you some 
other suggestions.

Please don't take this the wrong way. This has been discussed many times 
before and there is no real solution other than as stated above. If you have 
a different idea, please post it. We are open to new ideas and suggestions, 
but with this one, I feel the solution lies in the environment. Please feel 
free to prove me wrong. And yes it has been done before, for I am far from 
perfect.

Doug
- Original Message - 
From: "Edmon Begoli" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Saturday, February 26, 2005 10:08 PM
Subject: Question for Tomcat Developers - How to Plug In Encryption for JDBC 
passwords


Hi,
I an using Tomcat 5.5.7, and I am planning on upgrading as needed.
As we all know Tomcat enables me to configure JDBC resources
that my app can use through the JNDI. My problem is that these passwords 
have to be stored as a plain text
which is a very bitter pill in my environment.

What is the Tomcat class that reads in those plain text values?
I would like to override this behavior and to enable this class to read 
digests/encrypted passwords.
I would also contribute this code to Tomcat code base if desired.

Please advise,
Edmon
-
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]


Question for Tomcat Developers - How to Plug In Encryption for JDBC passwords

2005-02-26 Thread Edmon Begoli
Hi,
I an using Tomcat 5.5.7, and I am planning on upgrading as needed.
As we all know Tomcat enables me to configure JDBC resources
that my app can use through the JNDI. My problem is that these passwords 
have to be stored as a plain text
which is a very bitter pill in my environment.

What is the Tomcat class that reads in those plain text values?
I would like to override this behavior and to enable this class to read 
digests/encrypted passwords.
I would also contribute this code to Tomcat code base if desired.

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


RE: Arabic encoding

2005-02-26 Thread Benson Margulies
Oracle's ODBC driver will transcode from the database to UTF-16 based on
the databse encoding. If the database is in US7ASCII, this is a
destructive process for Arabic. The only alternative I can think of is
to do all your database I/O in hex. 

-Original Message-
From: Fadwa Barham [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 26, 2005 1:20 PM
To: Tomcat Users List
Subject: Re: Arabic encoding

I use oracle 7 database, and the NLS language is
American_America.US7ASCII, and it is not easy to change it to utf-8.
Beside, the question is, a servlet work fine on tomcat 4.0.6 why it
stopped with the new versions, what changes made to the encoding of
tomcat??
do I need tomcat-i18n-ar.jar? and if so, from where to get it?
I can't determine where is the problem, is it from the new Java or the
new tomcat.
thanks in advanced

- Original Message -
From: "Benson Margulies" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, February 23, 2005 11:26 PM
Subject: RE: Arabic encoding


> What database? Do you have the database set up to deliver Unicode, or
> CP1256, correctly? Note that not all Arabic fits into CP1256, you
might
> really be better off with UTF-8.
>
> -
> 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: Howto get Port in HttpServlet#init(ServletConfig)?

2005-02-26 Thread Bill Barker

"Patrick Wunderlich" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hey Tomcat Fans,
>
> is there a programmatically way to get the Http-Port
> in the HttpServlet#init(ServletConfig) method?
>

No, for the simple reason that the Http-Port isn't well-defined during init. 
For example, if you have both a HTTP Connector and a HTTPS Connector 
defined, then the same servlet will serve requests on both port 80 and port 
443.

> Kind Regards,
> Patrick Wunderlich
> (Germany) 




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



Re: How to disable PUT, DELETE http methods etc if not using container managed security?

2005-02-26 Thread Bill Barker
For TC 5.x.x, you need two security-constraints to do what you want.  One of 
them looks like your first example, and the other like your second example 
(except that you probably want , which is "deny all", 
instead of  which is deny to all but the blank role).  Since you 
are forbidding all access, you could also drop the  on 
the second one (since with it, TC will first redirect a PUT to SSL, and then 
deny it).

"Ted Anagnost" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
Is there a way to prevent PUT or DELETE http methods if you're not using 
container managed security?  If so, how?

I already have this to force the use of https:

   
 
Protected Context
 /*
  
  
  
 CONFIDENTIAL
  
   

What changes are needed?  I tried this but it didn't seem to work:



 Protected Context
 /*
   HEAD <--
   PUT<--
   DELETE  <--
   TRACE<--
   OPTIONS <--


 


 CONFIDENTIAL



Inserting these statements seems to turn off the automatic enforcement of 
https which was achieved with the first version.

Any ideas?  Thanks 




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



Re: Benefits of running Tomcat as a daemon with JSVC

2005-02-26 Thread Bill Barker

"Behrang Saeedzadeh" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Mladen,
>
> But not everything that runs when the system starts up is a daemon.
> For example, to run Tomcat as a daemon one needs to use JSVC (or
> something like that.) But it's also possible to write an init script
> for Tomcat and store it in /etc/init.d and add it to the list of the
> programs that are executed when the system starts up and in that init
> script only call Tomcat's startup.sh script. This won't run Tomcat as
> a daemon.
>
> In Linux, as you said, one can use daemons to run on ports < 1024 but
> on Windows I doubt if the only benefit would be that to run a certain
> program when the Windows boots.
>

That's pretty much it.  About the only other benefit is to not tie up a TS 
session on your W2K+3 machine just to run Tomcat.  Of course (thanks to 
Mladen), using procrun (aka tomcatw.exe) also gives you the nice GUI to do 
configuration :).

> Best Regards,
> Behrang S.
>
>
> On Sat, 26 Feb 2005 11:06:07 -0800, Shankar Unni
> <[EMAIL PROTECTED]> wrote:
>> Mladen Turk wrote:
>> > Behrang Saeedzadeh wrote:
>> >
>> >> What are the benefits of running an application like Tomcat with as a
>> >> daemon (with JSVC) vs. running it like a normal application?
>> >>
>> > In one sentence:
>> > Running as non-root on port < 1024
>>
>> In another sentence, starting up the service automatically on system
>> startup. That's the big one. We actually run Tomcat as a non-root user,
>> but we need to start it up automatically on system startup.
>>
>> On Windows, too - the same rationale. Making it start up as a service
>> means you don't have to log in and start it up manually each time.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> -- 
>
> Behrang Saeedzadeh
> http://www.jroller.com/page/behrangsa 




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



Tomcat 5.5.7 hangs on startup

2005-02-26 Thread Ilya . Nabedrik
Return Receipt
   
   Your   Tomcat 5.5.7 hangs on startup
   document:   
   
   wasIlya Nabedrik/PHIL/FRS   
   received
   by: 
   
   at:02/26/2005 02:34:03 PM   
   





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



RE: Tomcat 5.5.7 hangs on startup

2005-02-26 Thread Ilya . Nabedrik
Return Receipt
   
   Your   RE: Tomcat 5.5.7 hangs on startup
   document:   
   
   wasIlya Nabedrik/PHIL/FRS   
   received
   by: 
   
   at:02/26/2005 02:32:12 PM   
   





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



Re: Benefits of running Tomcat as a daemon with JSVC

2005-02-26 Thread Behrang Saeedzadeh
Mladen,

But not everything that runs when the system starts up is a daemon.
For example, to run Tomcat as a daemon one needs to use JSVC (or
something like that.) But it's also possible to write an init script
for Tomcat and store it in /etc/init.d and add it to the list of the
programs that are executed when the system starts up and in that init
script only call Tomcat's startup.sh script. This won't run Tomcat as
a daemon.

In Linux, as you said, one can use daemons to run on ports < 1024 but
on Windows I doubt if the only benefit would be that to run a certain
program when the Windows boots.

Best Regards,
Behrang S.


On Sat, 26 Feb 2005 11:06:07 -0800, Shankar Unni
<[EMAIL PROTECTED]> wrote:
> Mladen Turk wrote:
> > Behrang Saeedzadeh wrote:
> >
> >> What are the benefits of running an application like Tomcat with as a
> >> daemon (with JSVC) vs. running it like a normal application?
> >>
> > In one sentence:
> > Running as non-root on port < 1024
> 
> In another sentence, starting up the service automatically on system
> startup. That's the big one. We actually run Tomcat as a non-root user,
> but we need to start it up automatically on system startup.
> 
> On Windows, too - the same rationale. Making it start up as a service
> means you don't have to log in and start it up manually each time.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 

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

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



Re: Benefits of running Tomcat as a daemon with JSVC

2005-02-26 Thread Shankar Unni
Mladen Turk wrote:
Behrang Saeedzadeh wrote:
What are the benefits of running an application like Tomcat with as a
daemon (with JSVC) vs. running it like a normal application?
In one sentence:
Running as non-root on port < 1024
In another sentence, starting up the service automatically on system 
startup. That's the big one. We actually run Tomcat as a non-root user, 
but we need to start it up automatically on system startup.

On Windows, too - the same rationale. Making it start up as a service 
means you don't have to log in and start it up manually each time.

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


Re: Someone is using Tomcat for spreading spam?

2005-02-26 Thread Shankar Unni
Susan Hoddinott wrote:
Everytime I resubscribe to the user list I am bombarded with Spam.
So use an NNTP interface to the list, like I'm doing (on 
news.gmane.org). It's sometimes a little less convenient to use, but the 
benefits are that I don't have to flood my mailbox with the messages, 
and I don't have to deal with spam.

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


Re: Startup

2005-02-26 Thread Bill Barker

"patrick et michelle" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>
> Hi there, I'm a newcomer in Web technology and I need to understand how to
> configure Tomcat 3.3
> In fact, I can see that the servlets examples offered with tomcat are
> located in
> tomcat\jakarta-tomcat-3.3.2\webapps\examples\web-inf\classes\whatever.class
>
> Although, the URL to invoke these servlets is
> HTTP://localhost:8080/examples/servlet/whatever.class
>
> How is this URL-directory path relation done ? (through what config file /
> what command / TAG ??)
>

In the case of the examples, it's $TOMCAT_HOME/conf/apps-examples.xml.  If 
TC 3.3 doesn't find a $TOMCAT_HOME/conf/apps-.xml, it will also 
attempt to mount any directories found in $TOMCAT_HOME/webapps.

> If I want to build a web application and want to put a new directory
> structure, where do I put it and what configuration files do I have to
> modify in order to be able to invoke them through a URL.

If you want to put your apps someplace other than $TOMCAT_HOME/webapps, you 
need to change/add the  and  elements in server.xml. 
If you just one one app someplace else, then you can do it easier by 
creating an apps-.xml file with the docBase pointing to the correct 
place.
>
> Can somebody provide me with a step-by-step ?
>
> Thank you. 




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



Re: How to disable PUT, DELETE http methods etc if not using container managed security?

2005-02-26 Thread Tim Funk
CONFIDENTIAL means that request 
must be encrypted (use ssl)

Unless the default servlet (in conf/web.xml) is configured to allow put and 
delete - there is not worry. (As long as your don't write any servlets to 
handle put and delete)


-Tim
Ted Anagnost wrote:
Is there a way to prevent PUT or DELETE http methods if you're not using 
container managed security?  If so, how?
I already have this to force the use of https:
   
 
Protected Context
 /*
  
  
  
 CONFIDENTIAL
  
   
What changes are needed?  I tried this but it didn't seem to work:


 Protected Context
 /*
   HEAD <--
   PUT<--
   DELETE  <--
   TRACE<--
   OPTIONS <--


 


 CONFIDENTIAL


Inserting these statements seems to turn off the automatic enforcement of https 
which was achieved with the first version.
Any ideas?  Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Startup

2005-02-26 Thread Nikola Milutinovic
patrick et michelle wrote:
Hi there, I'm a newcomer in Web technology and I need to understand how to
configure Tomcat 3.3
 

First of all, current versions are 5.0.30 and 5.5.7 (for JDK 1.5.0, or 
actually JRE 1.5.0). While 5.5.7 can be made to run on JDK (not JRE) 
1.4.x, it is not intended for 1.4 series. Version 3.3 is really ancient. 
Series 4.x.y was the helm of Servlet 2.3 and JSP 1.2 specification, 
wjile 5.x.y is helming Servlet 2.4 and JSP 2.0

Go for 5.5 if you can, otherwise 5.0.30, unless you're crippled with 
some exotic OS that has no JDK 1.4 written for it. If it has a regular 
1.3, go for 4.1.x

In fact, I can see that the servlets examples offered with tomcat are
located in
tomcat\jakarta-tomcat-3.3.2\webapps\examples\web-inf\classes\whatever.class
Although, the URL to invoke these servlets is
HTTP://localhost:8080/examples/servlet/whatever.class
 

This is just in case the "invoker" service servlet is active. That is 
not the default on 4.x and higher Tomcat's.

How is this URL-directory path relation done ? (through what config file /
what command / TAG ??)
 

Invoking URL is configured for each Context (or Java Web Application in 
Servlet/JSP specification). You are free to map it anywhere you like.

If I want to build a web application and want to put a new directory
structure, where do I put it and what configuration files do I have to
modify in order to be able to invoke them through a URL.
 

For your new web application you must configure a Context within the 
desired VirtualHost. The Context in question will tell Tomcat where to 
look for the files and where to map the application in the URL space.

Can somebody provide me with a step-by-step ?
 

Go to jakarta.apache.org, look for Tomcat and read the docs.
Nix.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Benefits of running Tomcat as a daemon with JSVC

2005-02-26 Thread Mladen Turk
Behrang Saeedzadeh wrote:
In one sentence:
Running as non-root on port < 1024

In one sentence: Thanks a lot ;-)
In more than one sentence: Thanks a lot, but what's the benefit of
daemons (Services) in a Windows environment?
None, even if you manage to run a unix daemon on the windows
at the first place :).
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Benefits of running Tomcat as a daemon with JSVC

2005-02-26 Thread Behrang Saeedzadeh
> In one sentence:
> Running as non-root on port < 1024

In one sentence: Thanks a lot ;-)

In more than one sentence: Thanks a lot, but what's the benefit of
daemons (Services) in a Windows environment?

Best regards,
Behrang S.

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



Startup

2005-02-26 Thread patrick et michelle

Hi there, I'm a newcomer in Web technology and I need to understand how to
configure Tomcat 3.3
In fact, I can see that the servlets examples offered with tomcat are
located in
tomcat\jakarta-tomcat-3.3.2\webapps\examples\web-inf\classes\whatever.class

Although, the URL to invoke these servlets is
HTTP://localhost:8080/examples/servlet/whatever.class

How is this URL-directory path relation done ? (through what config file /
what command / TAG ??)

If I want to build a web application and want to put a new directory
structure, where do I put it and what configuration files do I have to
modify in order to be able to invoke them through a URL.

Can somebody provide me with a step-by-step ?

Thank you.



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



RE: Heap size - java.lang.OutOfMemoryError

2005-02-26 Thread Caldarale, Charles R
> From: Rasmus - Camp Online [mailto:[EMAIL PROTECTED]
> Subject: Heap size - java.lang.OutOfMemoryError
> 
> I have tried everything to increase the heap size, setting the
> environment variables:

As has been explained on this list numerous times, environment variables are 
not used when running Tomcat as a Windows service.  Only the .bat files look at 
the variables.  There are registry setting you can set to have the service 
change the JVM heap parameters.  Look in the archives, Google, read the doc, ...

 - 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: Heap size - java.lang.OutOfMemoryError

2005-02-26 Thread A Leg
Hi Rasmus
Switch to Linux 8-)
Unfortunatly, I have no idea but joke. I realy think that this problem 
is OS dependent.

Are you sure that your environment variables are taken in count ?
Suppose you run tomcat using some startup.bat ? in this case may be 
could you print some debug telling you the real args passed to the JVM.

I have done this on linux using set -x in startup.sh, I don't remember 
the equivalent for bat.
I think you can just change the first line echo off by echo on. May be 

At that time I had seen that for any reason my env was crashed somewhere.
Andre
Rasmus - Camp Online wrote:
Hi
I keep getting a  java.lang.OutOfMemoryError in my tomcat-log. I am
pretty sure it relates to the size of my heap - I keep getting the error
when the tomcat.exe process reaches approx. 118 MB of memory usage.
I am running Windows Server 2003, IIS 6, Tomcat 4.1 (running as a
windows service)
I have tried everything to increase the heap size, setting the
environment variables:
-CATALINA_OPTS -Xms256m -Xmx768m
-JAVA_OPTS -Xms256m -Xmx768m
-TOMCAT_OPTS -Xms256m -Xmx768m
But no matter what I do, it has ABSOLUTELY NO EFFECT
Please help, as I am going crazy over this
Best regards,
Rasmus

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


Heap size - java.lang.OutOfMemoryError

2005-02-26 Thread Rasmus - Camp Online
Hi

I keep getting a  java.lang.OutOfMemoryError in my tomcat-log. I am
pretty sure it relates to the size of my heap - I keep getting the error
when the tomcat.exe process reaches approx. 118 MB of memory usage.

I am running Windows Server 2003, IIS 6, Tomcat 4.1 (running as a
windows service)

I have tried everything to increase the heap size, setting the
environment variables:

-CATALINA_OPTS -Xms256m -Xmx768m
-JAVA_OPTS -Xms256m -Xmx768m
-TOMCAT_OPTS -Xms256m -Xmx768m

But no matter what I do, it has ABSOLUTELY NO EFFECT

Please help, as I am going crazy over this

Best regards,

Rasmus



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



Re: Someone is using Tomcat for spreading spam?

2005-02-26 Thread Mladen Turk
Susan Hoddinott wrote:
Everytime I resubscribe to the user list I am bombarded with Spam.
Well, that is something that you will have to live with.
I've even received a couple of emails where people even
threaten me with the FBI, because they where receiving commit
messages from Tomcat cvs on emails like [EMAIL PROTECTED]
that some of their coworker used to subscribe to Tomcat list.
So I know at least couple of guys that are fighting those
kind of messages on a daily basis, to actually search and
destroy all those stupid users setting autoresponders,
company group emails, etc...
Since those guys needs to get some sleep now and then,
IMO we are quite OK.
Regards,
Mladen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Arabic encoding

2005-02-26 Thread Fadwa Barham
Hi,
I want to ask if the servlet_api has effect on encoding?
may be the changes are made in the new version in servlet_api encoding. 
Please, can anyone help me
thanks in advanced

- Original Message - 
From: "Fadwa Barham" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Saturday, February 26, 2005 8:20 PM
Subject: Re: Arabic encoding


I use oracle 7 database, and the NLS language is
American_America.US7ASCII, and it is not easy to change it to utf-8.
Beside, the question is, a servlet work fine on tomcat 4.0.6 why it 
stopped with the new versions, what changes made to the encoding of 
tomcat??
do I need tomcat-i18n-ar.jar? and if so, from where to get it?
I can't determine where is the problem, is it from the new Java or the new 
tomcat.
thanks in advanced

- Original Message - 
From: "Benson Margulies" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, February 23, 2005 11:26 PM
Subject: RE: Arabic encoding


What database? Do you have the database set up to deliver Unicode, or
CP1256, correctly? Note that not all Arabic fits into CP1256, you might
really be better off with UTF-8.
-
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: Someone is using Tomcat for spreading spam?

2005-02-26 Thread Susan Hoddinott
Yes,

Everytime I resubscribe to the user list I am bombarded with Spam.

Regards,
Susan Hoddinott
http://www.hexworx.com

- Original Message - 
From: "Behrang Saeedzadeh" <[EMAIL PROTECTED]>
To: 
Sent: Friday, February 25, 2005 5:57 AM
Subject: Someone is using Tomcat for spreading spam?


> Hi
> 
> I get spam message from Tomcat's mailing list? Is anybode else having
> this problem either? I just recieved a message that had the same title
> as my last message with a Re: appended to it. Does anybody else also
> recieved this message? It's something from Harvard whatever... bla
> bla...
> 
> Regards,
> -- 
> 
> Behrang Saeedzadeh
> http://www.jroller.com/page/behrangsa
> 
> -
> 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: Benefits of running Tomcat as a daemon with JSVC

2005-02-26 Thread Mladen Turk
Behrang Saeedzadeh wrote:
Hi all
What are the benefits of running an application like Tomcat with as a
daemon (with JSVC) vs. running it like a normal application?
In one sentence:
Running as non-root on port < 1024
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Benefits of running Tomcat as a daemon with JSVC

2005-02-26 Thread Behrang Saeedzadeh
Hi all

What are the benefits of running an application like Tomcat with as a
daemon (with JSVC) vs. running it like a normal application?

Best regards,
-- 

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

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