Arabic content

2002-08-19 Thread Laurent Féral-Pierssens



Hi,

We have been realizing web applications for the last 2 years using
Tomcat. Last week, one of our clients asked us if we could provide a
multilingual application that would contain English, French and Arabic
content.

My questions are vague for now. Did anyone actually produced an
application with Arabic content? What should we have to take in
consideration in our design and development? What are the risks and
traps to avoid while coding such webapp? Is there a problem with
displaying such information under Tomcat? storing it in MySQL? 

Those questions may actually be out of context for Tomcat. But your
opinion would be much appreciated.

Regards,

Laurent



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Arabic content

2002-08-20 Thread Laurent Féral-Pierssens


Thank you for all your comments. I will report them and try to better
evaluate the work at hand.

Regards,
Laurent



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




ClassCastException after reloading Context

2002-09-09 Thread Laurent Féral-Pierssens


Hi,

We are experiencing a problem with Tomcat 4.0.4. We have a series of
webapp that are working perfectely but this particular one will produce
a ClassCastException after reloading its context with the Manager.

Actually the Context is reloaded correctely but when we try to access a
jsp page we get the ClassCastException.

What is happening? I though that reloading the Context was the same
thing as restarting Tomcat but for one webapp only.

If there is any piece of code/configuration that I can send to help,
please let me know.

Thank you for your help, once again,

Laurent


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat/IIS + SSL : Mime Type problem

2002-11-12 Thread Laurent Féral-Pierssens

Hi,

We have been experiencing some problems with Mime type configuration. We
want to allow the download of wpd (WordPerfect) documents through our
webapp and with our configuration, we only get junk printed in the
browser. 

Our configuration consist of a single server, Windows 2000, with Tomcat
4.0.6 behing IIS using AJP13. We access all documents directely in the
webapp directory through SSL. The new mime types are configured in IIS
and in the web.xml of the webapp.

Here is the result of our tests:

http://server.com:8080/mywebapp/file.wpd -> download properly
http://server.com/mywebapp/file.wpd -> download properly
http://server.com/file.wpd -> download properly
https://server.com/file.wpd -> download properly

https://server.com/mywebapp/file.wpd -> junk

Looking at that, it looks like a connector problem with SSL. Is there a
setting I misconfigured?


Thank you for your help,
Laurent


 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: OutofMemoryError

2002-05-01 Thread Laurent Féral-Pierssens


Hi Matthew,

I have been experiencing the same problems but with T3.2.x.

You should try to use Tomcat options -Xms and -Xmx

I added those 2 lines:

TOMCAT_OPTS="-server -Xms256m -Xmx256m -Xincgc"
export TOMCAT_OPTS

in my /etc/init.d/tomcat script 

This increase the default heap size of the JVM to 256Meg (from 64Meg)
and make sure incremental Garbage collection is done. Since I changed
those, I have no more OutOfMemory errors.

Hope it helps,
Laurent




-Original Message-
From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] 
Sent: May 1, 2002 12:08 PM
To: [EMAIL PROTECTED]
Subject: OutofMemoryError


Hello List.

I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, mysql 
3.23.43
I am occasionally seeing tomcat go postal with the following errors:
Exception in thread "CompileThread0" java.lang.OutOfMemoryError: 
requested 32760 bytes



Another exception has been detected while we were handling last error.
No information available. Please check ERROR REPORT FILE for further
information, if there is any. Good bye.

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x419852cb Function name=(N/A)
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
   just occurred. Please refer to release documentation for possible
   reason and solutions.


Current Java thread:



Another exception has been detected while we were handling last error.
Dumping information about last error: ERROR REPORT FILE = (N/A)
PC= 0x0x419852cb
SIGNAL= 11
FUNCTION NAME = (N/A)
LIBRARY NAME  = (N/A)
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.

Any thoughts on what might be the cause? There is nothing in the log 
files to tell me more than this, which gets dumped to the console.

-Thanks!

-- 
Matthew Boeckman(816) 777-2160
Manager - Systems Integration   Saepio Technologies
== 
==
...Many say that DOS is the dark side, but actually UNIX is more like 
the dark side: It's less likely to find the one way to destroy your 
incredibly powerful machine, and more likely to make upper management
choke.
-Lore Sjoberg


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Re[2]: OutofMemoryError

2002-05-01 Thread Laurent Féral-Pierssens


Thanks, yes we can live with that. Actually, since we added those
changes it really improved the stability of the application. Those
suggestions were made on that list a few months ago. 

Regards,
Laurent



-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
Sent: May 1, 2002 2:52 PM
To: Tomcat Users List
Subject: Re[2]: OutofMemoryError


Hello Laurent,

Hmmm

-Xincgc
Enable the incremental garbage collector. The incremental garbage
collector, which is off by default, will eliminate occasional
garbage-collection pauses during program execution. However, it can lead
to a roughly 10% decrease in overall GC performance

From:
http://java.sun.com/products/hotspot/2.0/README.html#use

If you can live with a 10% decrease in overall garbage collection
performance, then yeah, I guess use incremental garbage collection.

Jake

Wednesday, May 01, 2002, 12:35:37 PM, you wrote:


LFP> Hi Matthew,

LFP> I have been experiencing the same problems but with T3.2.x.

LFP> You should try to use Tomcat options -Xms and -Xmx

LFP> I added those 2 lines:

LFP> TOMCAT_OPTS="-server -Xms256m -Xmx256m -Xincgc"
LFP> export TOMCAT_OPTS

LFP> in my /etc/init.d/tomcat script

LFP> This increase the default heap size of the JVM to 256Meg (from 
LFP> 64Meg) and make sure incremental Garbage collection is done. Since 
LFP> I changed those, I have no more OutOfMemory errors.

LFP> Hope it helps,
LFP> Laurent




LFP> -Original Message-
LFP> From: Matthew Boeckman [mailto:[EMAIL PROTECTED]]
LFP> Sent: May 1, 2002 12:08 PM
LFP> To: [EMAIL PROTECTED]
LFP> Subject: OutofMemoryError


LFP> Hello List.

LFP> I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1,
mysql 
LFP> 3.23.43
LFP> I am occasionally seeing tomcat go postal with the following
errors:
LFP> Exception in thread "CompileThread0" java.lang.OutOfMemoryError: 
LFP> requested 32760 bytes


LFP> 
LFP> Another exception has been detected while we were handling last
error.
LFP> No information available. Please check ERROR REPORT FILE for
further
LFP> information, if there is any. Good bye.

LFP> An unexpected exception has been detected in native code outside
the VM.
LFP> Unexpected Signal : 11 occurred at PC=0x419852cb Function
name=(N/A)
LFP> Library=(N/A)

LFP> NOTE: We are unable to locate the function name symbol for the
error
LFP>just occurred. Please refer to release documentation for
possible
LFP>reason and solutions.


LFP> Current Java thread:


LFP> 
LFP> Another exception has been detected while we were handling last
error.
LFP> Dumping information about last error: ERROR REPORT FILE = (N/A)
LFP> PC= 0x0x419852cb
LFP> SIGNAL= 11
LFP> FUNCTION NAME = (N/A)
LFP> LIBRARY NAME  = (N/A)
LFP> Please check ERROR REPORT FILE for further information, if there is
any.
LFP> Good bye.

LFP> Any thoughts on what might be the cause? There is nothing in the
log 
LFP> files to tell me more than this, which gets dumped to the console.

LFP> -Thanks!




-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




db connections and Abusive refresh

2002-05-01 Thread Laurent Féral-Pierssens


Hi all,

We are experiencing a few problems with our DB connection code and an
abusive usage of the F5/refresh function on the client side.

Each of our jsp actually connects to the db at the top and disconnects
at the bottom. When someone uses the refresh in the browser it leaves
connections hanging/sleeping in MySQL. Is there anyway to avoid this?

Thanks for the help,
Laurent




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: OutofMemoryError

2002-05-02 Thread Laurent Féral-Pierssens

Matthew,

We are using JDK 1.3.1_02. And yes we do see the process climbs very
high (past the Xms) but it goes back down after without Tomcat dying. 

Laurent


-Original Message-
From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] 
Sent: May 1, 2002 4:22 PM
To: Tomcat Users List
Subject: Re: OutofMemoryError


Are you running java 1.3 or 1.4 ? We're really trying to nail this down.

We've had the Xms and Xmx options in place now for some time, and the 
java proc just grows right past Xmx, up to nearly full system memory, 
then tomcat dies.

I'm ready to hear any suggestions, but I want to try to narrow the scope

somewhat.

Laurent Féral-Pierssens wrote:
> Hi Matthew,
> 
> I have been experiencing the same problems but with T3.2.x.
> 
> You should try to use Tomcat options -Xms and -Xmx
> 
> I added those 2 lines:
> 
> TOMCAT_OPTS="-server -Xms256m -Xmx256m -Xincgc"
> export TOMCAT_OPTS
> 
> in my /etc/init.d/tomcat script
> 
> This increase the default heap size of the JVM to 256Meg (from 64Meg) 
> and make sure incremental Garbage collection is done. Since I changed 
> those, I have no more OutOfMemory errors.
> 
> Hope it helps,
> Laurent
> 
> 
> 
> 
> -Original Message-
> From: Matthew Boeckman [mailto:[EMAIL PROTECTED]]
> Sent: May 1, 2002 12:08 PM
> To: [EMAIL PROTECTED]
> Subject: OutofMemoryError
> 
> 
> Hello List.
> 
> I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, 
> mysql
> 3.23.43
> I am occasionally seeing tomcat go postal with the following errors:
> Exception in thread "CompileThread0" java.lang.OutOfMemoryError: 
> requested 32760 bytes
> 
> 
> 
> Another exception has been detected while we were handling last error.

> No information available. Please check ERROR REPORT FILE for further 
> information, if there is any. Good bye.
> 
> An unexpected exception has been detected in native code outside the 
> VM. Unexpected Signal : 11 occurred at PC=0x419852cb Function 
> name=(N/A)
> Library=(N/A)
> 
> NOTE: We are unable to locate the function name symbol for the error
>just occurred. Please refer to release documentation for
possible
>reason and solutions.
> 
> 
> Current Java thread:
> 
> 
> 
> Another exception has been detected while we were handling last error.

> Dumping information about last error: ERROR REPORT FILE = (N/A)
> PC= 0x0x419852cb
> SIGNAL= 11
> FUNCTION NAME = (N/A)
> LIBRARY NAME  = (N/A)
> Please check ERROR REPORT FILE for further information, if there is 
> any. Good bye.
> 
> Any thoughts on what might be the cause? There is nothing in the log
> files to tell me more than this, which gets dumped to the console.
> 
> -Thanks!
> 


-- 
Matthew Boeckman(816) 777-2160
Manager - Systems Integration   Saepio Technologies
== 
==
...Many say that DOS is the dark side, but actually UNIX is more like 
the dark side: It's less likely to find the one way to destroy your 
incredibly powerful machine, and more likely to make upper management
choke.
-Lore Sjoberg


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: db connections and Abusive refresh

2002-05-02 Thread Laurent Féral-Pierssens


Jay,

>From what we do in the page, it is hardly possible to actually do that.
But we'll try to make some example and compare both methods.

Thanks,
Laurent


-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]] 
Sent: May 1, 2002 6:33 PM
To: Tomcat Users List; Jacob Kjome
Subject: RE: db connections and Abusive refresh


If you are not going to use MVC is there any reason why you can't do
your database accesses at the top of your JSP and the put the results in
variables to be output below in the page? Sorry, if I don't understand
your question, but it sounded like you were holding a database
connection open until a scriplet closes it at the bottom of the page.

--JG

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 1:31 PM
To: Tomcat Users List
Subject: Re: db connections and Abusive refresh

Hello Laurent,

Yes,

Here is an example.  Take notice of how connections, result sets, and
prepared statements are guaranteed to be closed in the "finally"
blocks:


public Site getSite( int _id ) throws SQLException
{
Connection conn = null;
Site newSite= null;

try {
conn = openConn();
newSite = getSite(_id, conn);
closeConn(conn);
return newSite;
}
catch(SQLException e) {
System.out.println(MSG_ERROR_CONNECTION + e.getMessage());
throw e;
}
finally {
if (conn != null)  try { closeConn(conn); } catch(Exception
e2) {}
}
}

//  Get a single site by id
public Site getSite( int _id, Connection _conn ) throws SQLException
{
PreparedStatement pstmt = null;
ResultSet rs = null;
Site newSite = null;

String query = "SELECT id, url, description, created, updated,
deleted " +
   "FROM site WHERE id = ?";

try {
pstmt = _conn.prepareStatement(query);
pstmt.setInt(1,_id);
rs = pstmt.executeQuery();

while (rs.next()) {
newSite = Site.fromResults(rs);
if (debug) System.out.println("\n" + newSite);
}
rs.close();
pstmt.close();
return newSite;
}
catch(SQLException e) {
System.out.println(MSG_ERROR_RESULTSET + e.getMessage());
throw e;
}
finally {
if (rs != null)try { rs.close(); }catch(Exception
e2) {}
if (pstmt != null) try { pstmt.close(); } catch(Exception
e3) {}
}
}


You can also use Syncronization if it is still a problem.

Jake

Wednesday, May 01, 2002, 2:23:17 PM, you wrote:


LFP> Hi all,

LFP> We are experiencing a few problems with our DB connection code and 
LFP> an abusive usage of the F5/refresh function on the client side.

LFP> Each of our jsp actually connects to the db at the top and 
LFP> disconnects at the bottom. When someone uses the refresh in the 
LFP> browser it leaves connections hanging/sleeping in MySQL. Is there 
LFP> anyway to avoid this?

LFP> Thanks for the help,
LFP> Laurent




LFP> --
LFP> To unsubscribe:

LFP> For additional commands: 
LFP> 
LFP> Troubles with the list:




--
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




French accented character not displaying

2002-05-16 Thread Laurent Féral-Pierssens


Hi,

This is very weird. Two days ago, we started experiencing problems with
french specific characters stopping to print correctely. 

When we look at a jsp page in a browser, it displays "?" instead of the
normal character. After some initial searching on the server, we
realized that even files with french names would not display properly on
the console. Would it be a tomcat specific issue or a locale setting
misconfiguration?

We are running Debian Linux, Tomcat 3.3.1-dev, JDK 1.3.1_02.

Would someone have an idea on how to approach this problem?

Thanks in advance for your help and advice!

Laurent



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat Stability

2002-01-15 Thread Laurent Féral-Pierssens


Hi,

We've been experiencing problems with stability recently. Every 2 weeks,
Tomcat crashes with 500 errors. We now have more information about what
happened the last time.

Our configuration is:
Tomcat 3.2.4 with Apache 1.3.20 and mod_jk
Linux Debian, PIII 1 GHz, 512 Megs of RAM, Raid 1

Basically there is only one webapp on the server that has a daily load of 40
000 Hits or 5 000 page views.

In the logs of Apache we've discovered that someone was using Htdig to index
the site, basically making one call every 5 sec for 45 minutes. That's were
and when tomcat crashes.

So my questions, should I ugrade the server's hardware? Would Tomcat 4
series be more stable? or would it be just a tomcat configuration problem?

Thanks in advance for your help and advice!

Laurent






--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat Stability

2002-01-15 Thread Laurent Féral-Pierssens

Unfortunately this time, we couldn't find something... (log were badly
configured and were deleted after restart :-(  but last time it was a java
out of memory error. Could that help? The only thing we know this time was
that it is an error 500.

Thank you,
Laurent

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: January 15, 2002 8:54 AM
To: Tomcat Users List
Subject: AW: Tomcat Stability


Do you find anything usefull in the logs.

There are several levels on which tomcat can crash.
(The connector, the JVM, Tomcat itself)

Are there Exception, cores or what else ?

> -Ursprüngliche Nachricht-
> Von: Laurent Féral-Pierssens
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 15. Januar 2002 14:45
> An: [EMAIL PROTECTED]
> Betreff: Tomcat Stability
>
>
>
> Hi,
>
> We've been experiencing problems with stability recently.
> Every 2 weeks,
> Tomcat crashes with 500 errors. We now have more information
> about what
> happened the last time.
>
> Our configuration is:
> Tomcat 3.2.4 with Apache 1.3.20 and mod_jk
> Linux Debian, PIII 1 GHz, 512 Megs of RAM, Raid 1
>
> Basically there is only one webapp on the server that has a
> daily load of 40
> 000 Hits or 5 000 page views.
>
> In the logs of Apache we've discovered that someone was using
> Htdig to index
> the site, basically making one call every 5 sec for 45
> minutes. That's were
> and when tomcat crashes.
>
> So my questions, should I ugrade the server's hardware? Would Tomcat 4
> series be more stable? or would it be just a tomcat
> configuration problem?
>
> Thanks in advance for your help and advice!
>
> Laurent
>
>
>
>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Tomcat Stability

2002-01-15 Thread Laurent Féral-Pierssens

Thanks to everyone for their tips. I will look into them all and try to
report what worked...

Regards,
Laurent



-Original Message-
From: Laurent Féral-Pierssens [mailto:[EMAIL PROTECTED]]
Sent: January 15, 2002 8:45 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Stability



Hi,

We've been experiencing problems with stability recently. Every 2 weeks,
Tomcat crashes with 500 errors. We now have more information about what
happened the last time.

Our configuration is:
Tomcat 3.2.4 with Apache 1.3.20 and mod_jk
Linux Debian, PIII 1 GHz, 512 Megs of RAM, Raid 1

Basically there is only one webapp on the server that has a daily load of 40
000 Hits or 5 000 page views.

In the logs of Apache we've discovered that someone was using Htdig to index
the site, basically making one call every 5 sec for 45 minutes. That's were
and when tomcat crashes.

So my questions, should I ugrade the server's hardware? Would Tomcat 4
series be more stable? or would it be just a tomcat configuration problem?

Thanks in advance for your help and advice!

Laurent






--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Special characters

2003-06-22 Thread Laurent Féral-Pierssens


David,

I had this problem quite a few months back for the first time and was
not able to solve it... Untill It surfaced again last week.

The solution I used is fairly simple, here is my entry for this issue.
Let me know if it works.

Laurent

***
Description:
Webapp does not recognize accented characters (eg. é,è,à...) and display
a question mark instead.

Solution: 
This is a locale issue. Characters are captured properly, only when they
are displayed they get modified to a '?'. There is no loss of data when
using a system with this issue.

To fix the problem, you need to set your LANG OS specific environment
variable to the language you use. 
Try adding this line:
export LANG=en_CA
to your tomcat/bin/catalina.sh and restart tomcat.

It should look like this:
...
# OS specific support.  $var _must_ be set to either true or
false.
cygwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
esac
==>>export LANG=en_CA
# resolve links - $0 may be a softlink
PRG="$0"
...



-Original Message-
From: David Del Sacramento [mailto:[EMAIL PROTECTED] 
Sent: June 12, 2003 10:04 AM
To: [EMAIL PROTECTED]
Subject: Special characters


Hi,

I installed Tomcat 4.1.24 in a Solaris server and I'm
using a JSP form that received special characters
like: á é Ó É ú. The action of the form send an e-mail
(using javamail). When de tomcat process the e-mail
changes the special characters with "?".

I used the directive 
<%@ page contentType="text/html; charset=iso-8859-1"
%>
but it isn't working.

I installed Tomcat 4.0.6 and the error is the same.

I used java.net.URLDecoder and java.net.URLEncode and
isn´t work too.


Can you help me?

Regards,
David

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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