Re: Hi Guys ... can some one tell what is hashcode in java

2010-09-15 Thread ramzi khlil
HashCode is a value computed in such way to be unique as possible to improve performance while retrieving object in HashedCollections. If for example you have a HashMap, and didn't overrride hashCode() method all your objects will be in the same bucket resulting a slow execution while retrieving an

Re: Why does errorPage work but WEB-INF/web.xml error-page does not?

2010-05-27 Thread ramzi khlil
Try putting this at the top of the page <%@ page contentType="text/html; charset=UTF-8" isErrorPage="true"> On Thu, May 27, 2010 at 12:06 PM, laredotornado wrote: > > Actually that is directly related and I'm seeing the same exception in my > logs. Thanks so much for this -- I would have been s

Re: How configure Tomcat redirect to web page instead index.htm

2010-03-01 Thread ramzi khlil
In web.xml you can specify the main page. On Mon, Mar 1, 2010 at 4:29 PM, John McKaine wrote: > > Hello everyone. > > I have the website, deployed on Tomcat server (virtual host). > When I enter in browser my domain - http://workinua.com.ua/ > http://workinua.com.ua/ > i get from server index

Re: Deploy a .class file when tomcat is running

2009-11-27 Thread ramzi khlil
I suggest you to create a task that undeploy the and deploy it again. Or from your manager reload the application. On Fri, Nov 27, 2009 at 2:36 PM, Stefano Tranquillini < stefano.tranquill...@gmail.com> wrote: > Hi all. > i've a question for you. > > i made a web project and i deployed it into to

Re: ConnectionPool question

2009-11-04 Thread ramzi khlil
Yes, It releases the connection back to the pool. On Wed, Nov 4, 2009 at 9:43 AM, Carsten Pohl wrote: > Hi, > > if you close the connection, it will be recycled. So, close() does not > really close, but releases the connection. > > Regards, > Carsten Pohl > - Original Message - > From

Re: Caching flash files

2009-10-26 Thread ramzi khlil
Yeah, the browser was caching the xml file. Thanks for your reply. I figured out this problem. On Mon, Oct 26, 2009 at 11:32 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Ramzi, > > On 10/23/2009 10:

Re: How to Connect Remotely?

2009-10-23 Thread ramzi khlil
Did you disable the firewall of windows ? On Fri, Oct 23, 2009 at 4:34 PM, maximf83 wrote: > > Guys i have tomcat on a computer i'm using as a server , i can connect to > the > tomcat localy on the computer, but when i try to connect to the server from > other places , from the network or anywhe

Re: Caching flash files

2009-10-23 Thread ramzi khlil
8:51 AM, ramzi khlil wrote: > Hi Mark, > > I cleared my browser's cache but this does'nt work also. > > I will take a look at the headers. > > Ramzi > > On Fri, Oct 23, 2009 at 7:41 AM, Mark Thomas wrote: > >> ramzi khlil wrote: >> > Hi Al

Re: Caching flash files

2009-10-23 Thread ramzi khlil
Hi Mark, I cleared my browser's cache but this does'nt work also. I will take a look at the headers. Ramzi On Fri, Oct 23, 2009 at 7:41 AM, Mark Thomas wrote: > ramzi khlil wrote: > > Hi All, > > > > I need to set tomcat to allways send a new copy of the flash

Caching flash files

2009-10-22 Thread ramzi khlil
Hi All, I need to set tomcat to allways send a new copy of the flash file on the server and not send a cached copy. I set cachingAllowed to false but the probleme still persist. I heard about setting web filter, anyone has an idea on how to do that ? Ramzi

Re: [ANN] Compile Tomcat Web apps into native Windows/Linux executables (beta)

2009-09-22 Thread ramzi khlil
Hi, I think it's not a good idea especially when application are subject to modification frequetly or if we plan to deploy a new application on the server. Tomcat has a very interesting feature which allows user to load application on fly without closing the server. But If I compile tomcat and web

Re: Create FileInputStream in servlet from remote file with accentuated character name

2009-09-21 Thread ramzi khlil
Sylvie, I suggest you to create a mapping until you find a solution. In your application, put the origianl file name as friendly name and save the file without accent. So, when user list the files, you show him the friendly name, but when you load a file use the mapping entry to get the file name

Re: Monitor Tomcat Performance

2009-09-04 Thread ramzi khlil
Hello, Try using yourkit. Ramzi On Fri, Sep 4, 2009 at 12:34 AM, Zaki Akhmad wrote: > Hello, > > I am using tomcat on my web application. I want to monitor my tomcat > performance. What tools I can use? From the cacti graph, shows that > the memory usage is very big (>90%). > > Thanks > -- > Z

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread ramzi khlil
It provides you the version of installed java. On Thu, Sep 3, 2009 at 10:19 AM, Ziggy wrote: > What do you get when you run java -version? > > I think the linux distributions include the open jdk version see > http://openjdk.java.net/ > > > > > On Thu, Sep 3, 2009 at 3:13 PM, Caldarale, Charles

Re: Share file between 2 apps

2009-09-02 Thread ramzi khlil
Hi, There is no way to reload it outside the ClassLoader. Ramzi On Wed, Sep 2, 2009 at 2:02 PM, Tim Funk wrote: > If the file is loaded via a ClassLoader - then the JVM will cache it and > you'll need to reload the webppa or restart tomcat. > > -Tim > > ramzi khlil wrot

Re: Share file between 2 apps

2009-09-02 Thread ramzi khlil
app b needs to write the file; > File f = new File(servletContext.getInitParameter("myfile")); > FileWriter fw = new FileWriter(f); > fw.write(stuff); > ... > > If you need to read the file from app B, use a file reader. This is an easy > way to keep the apps decoupled > > -Tim > > &

Share file between 2 apps

2009-09-02 Thread ramzi khlil
Hi All, I need to share a file between two applications, A and B. A: I put my web site under Root folder and it is using test.xml file. B: The second application which generate the xml file is host under webapps application. My question is how to allow to application B to update test.xml ? Regard