Rmi registry and Tomcat

2003-11-14 Thread mourad jaber
Hi,
I'm looking for a solution to make the rmi registry load and unload in 
the same time of a webapp deploy/undeploy...
It work for deploying, but when I try to undeploy my web app, it can't 
finish to undeploy, waiting for registry to die and it never dies
It is the same when I stop Tomcat, rmi registry continue to listen on 
port 1099 and tomcat program never stop.
I unbind all objects, unexport also all of them and it doesn't change 
any thing
Is there somebody with the same pb and solve it ?
What are your solution to use rmi with tomcat ?
Thanks a lot

Mourad

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


how to get WebClassLoader Classpath ?

2003-11-06 Thread mourad jaber
Hi,
I need to get the classpath used by classloader of my web app...
System properties don't help me, as there are not used by WebClassLoader 
of tomcat...
How can I get it ?

Any idea

Thanks



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


Re: To Access File in Linux.

2003-09-15 Thread mourad jaber
Hi,
It's not java problem. it's cohabitation between Unix world and Windows...
I see 3 ways :
- If it is only read access you need, you can try to use http server
- Use ftp and you can use some common-net classes to use it in java.
- Install samba on your AIX and mount share directory on your windows 
and use it as local filesystem...

Mourad

Anitha K Rao wrote:

Hi,

  I have to find a solution for this. Can Anybody help me.

My Tomcat is on Windows.
My database server is on Windows/Linux.
My Actual Content which I need to put onto database is on AIX machine. 
Client can be a window/linux user.

How can I access from Java, files which are present on AIX machines?



Best Regards
Anitha
 



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


Re: Hardware and Memory Requirements

2003-08-14 Thread mourad jaber
There are no clear responses depending usage of tomcat !
As a production plateform ( linux ), I'm using P4 2.4G with 1Go of ram 
and as I'm using a data base on an other machine I don't take care of 
the disk size but i't mirrored 18Go SCSI...
As my dev plateform( linux ) is P3 1Go/512Mo of Ram and it is really to 
much !
But my webapp is using lot's of memory by formatting on the fly pdf, rtf 
and gif files so I set my jvm environement to 512Mo, but basically I 
think it set to 128 ( please correct if I'm wrong )...
but I have an other tomcat runing on a shared plateform ( window$ )  
with several M$ asp web sites ( about 20 hits/day ) and my tomcat is 
runing well with an isapi filter to work with IIS and it is a bi-P3 Xeon 
900Mhz with 2Go of ECC sdram and about 200Go of hard drives... And it 
work very well for a year :)

So if it is only to try some basic webapps, don't worry, every today's 
hardware configuration is enough to run tomcat ;)

Mourad

kmk kumar wrote:

Hi

Is there a document which talks about the hardware and memory 
requirements based on the platform on which tomcat is installed.

specifically looking for
1. How much disk space and memory does it require to install it.
2. How much memory it takes to run it.
Thanks for any help.

_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Servlet seem to be call 2 times

2003-07-31 Thread mourad jaber
Hi,
I'm very surprised by a strange thing happen with Tomcat 4.1.24 on 
Linux, when I test my webapp with mozilla, konqueror, it work well, but 
with micro$oft ie6 sp1 it seem to call 2 times the servlet when the 
output is binary content ( pdf, rtf... ).
After testing more precisely, it appear that it's really a second 
processRequest so I guess a second call of the servlet !
It is very overloading ! because binary documents are very heavy to 
generate...
Any idea to make sure that servlet is call only one time for each request ?

Thanks

Mourad

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


Again... cannot completely shutdown tomcat with embeded RMIRegistery

2003-07-23 Thread mourad jaber
Hi,
I have a shutdown pb with tomcat4.1.24rpm ( linux kernel 2.4.21 and 
j2se1.4.2 ) since I'm using rmiregistery...
To force RmiRegistery  to unload, I implement a loop to empty completely 
the registery by unbinding bound objects and I try to unexport all 
objects I can
I read the content of the registery after that, and it's empty.
I wait about 30 seconds and after half of tomcat processes dies, but not 
all of them and if I do a netstat -a, the rmiregitery is always 
listening on port 1099
Is somebody's got an idea ?
Thanks a lot because I have no more idea to solve that issue

Mourad

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


using java 1.4 assert

2003-07-22 Thread mourad jaber
Hi,
Is it possible to enable assert into tomcat ?
Thanks
Mourad

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


tomcat stop does not kill all processes

2003-06-27 Thread mourad jaber
Hi,
I'm using tomcat 4.1.24rpm but I have the same pb with binary 
installation under linux ( 2.4.21 ) jdk 1.4.1_03.
When I shutdown tomcat, it log that the standalone tomcat is down but 
all processes stay in memory and if I restart tomcat there are more 
processes I must kill then all if I want tomcat completely shutdown...
I is not really clean for a production machine !
Somebody's got an idea to stop tomcat properly ?
Thanks a lot

Mourad

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


Re: tomcat stop does not kill all processes

2003-06-27 Thread mourad jaber
I'm using Rmi with an encapsulated rmiregistery but I don't know how to 
stop it.

Shapira, Yoav wrote:

Howdy,
Do your applications start any non-daemon threads?
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: mourad jaber [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 9:03 AM
To: Tomcat Users List
Subject: tomcat stop does not kill all processes
Hi,
I'm using tomcat 4.1.24rpm but I have the same pb with binary
installation under linux ( 2.4.21 ) jdk 1.4.1_03.
When I shutdown tomcat, it log that the standalone tomcat is down but
all processes stay in memory and if I restart tomcat there are more
processes I must kill then all if I want tomcat completely shutdown...
I is not really clean for a production machine !
Somebody's got an idea to stop tomcat properly ?
Thanks a lot
Mourad

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





This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
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: tomcat stop does not kill all processes

2003-06-27 Thread mourad jaber
I start it with LocateRegistery.createRegistery(1099) and Registery 
interface and LocateRegistery haven't got any close or destroy and any 
method to stop the RmiRegistery !
Have you got an idea about it ?
Thanks a lot

Mourad

Shapira, Yoav wrote:

Howdy,
Well, how are you starting the registry?
 

I'm using Rmi with an encapsulated rmiregistery but I don't know how to
stop it.
   

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

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


Strange error

2003-06-10 Thread mourad jaber
I'm using massively rmi into my web app but when i unload my web app I get :

WebappClassLoader: Lifecycle error : CL stopped
java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
   java.lang.ClassNotFoundException: java.lang.StackTraceElement 
(no security manager: RMI class loader disabled)

somebody can explain it to me because, rmi class loader seem to work 
well
Thanks a lot

Mourad

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


Serialization pb

2003-06-06 Thread mourad jaber
Hello,
I've got a strange pb with serialization...
I create a class containing a vector containe pair of String ( the key ) 
and Serializable ( the value ).
As a Map, but simpler.
I test it with standalone server and standalone client, containing 
several serializable object, and could get my data without pb...
I try to use it with tomcat as client, and stand alone rmi server, and I 
could not get my data, the key is good, but the serializable object (it 
was a String) become a [Ljava.lang.String; and I can't transtype it as 
java.lang.String and I can't get the previous string...
I think about a ClassLoader pb between SystemClassLoader and 
CatalinaClassLoader...
Any one's got a similar problem ?
My config : linux/tomcat 4.1.24_rpm/j2se1.4.1_02

Thanks a lot

Mourad

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


jar ressource pb

2003-06-05 Thread mourad jaber
Hi,
I'm trying to understand the folowing problem :
I've got some xml files into the jar file of my webapp.
when I use a stand alone java application to retreive that ressource by 
using ClassLoader.getSystemClassLoader().getResource(myfile.xml) it 
works...
but it doesn't work any more ( I get null ) when I do it into my webapp...
Any suggestion ?
Thanks a lot

Mourad

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


Re: jar ressource pb [solved]

2003-06-05 Thread mourad jaber
I reply myself, because I just find the solution by using :
this.getClass().getClassLoader().getResource(myFile.xml)
mourad jaber wrote:

Hi,
I'm trying to understand the folowing problem :
I've got some xml files into the jar file of my webapp.
when I use a stand alone java application to retreive that ressource 
by using ClassLoader.getSystemClassLoader().getResource(myfile.xml) 
it works...
but it doesn't work any more ( I get null ) when I do it into my 
webapp...
Any suggestion ?
Thanks a lot

Mourad

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