Hi Alexandre, It seems to me that when delete the EAR file from the deploy directory of JBoss, the JBoss server did not undeploy completely the application that you deployed reviously, i.e. it did not clean off the old classloader or class objects in the classloader repository. I had the similar problem when I was doing hot deploy. What I did to get rid of the problem is to do the undeploy by calling the MainDeployer of the JBoss first, and then redeploy the EAR by calling the MainDeployer of the JBoss. By this way, you do not need to copy your EAR file to the deploy directory to JBoss, but you need to write you ANT task Java class to do it.
Actually, you do not need to delete the tmp directory if you restart JBoss because restarting JBoss clean off the classloader repository from the memory. Hope this helps a little. Qingxian -----Original Message----- From: Alexandre Aubry [mailto:[EMAIL PROTECTED]] Sent: 12 July 2002 17:24 To: [EMAIL PROTECTED] Subject: [JBoss-dev] EAR deployment/undeployment problem Hi, We have an application in development. This application is composed of servlet, jsp, ejb (SBSL & Entity CMP) and basic beans. To test our development, we are packaging this application within on EAR file and then deploy it to JBoss 3.0. The problem is when we undeploy the EAR (delete the file from the deploy directory of JBoss) or redeploy the EAR file (copy a new modified EAR file in the deploy dir. of JBoss), the client (standalone programm which call the SBSL Facade's methods) has an exception : <<<<RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: null Embedded Exception $Proxy122; nested exception is: javax.ejb.EJBException: null Embedded Exception $Proxy122 If we shutdown JBoss, delete all files within server/default/tmp directory (contains temporary files of deployed applications), and the restard JBoss with the *same* EAR file and start the client, guess what? it works... Of course, this behavior is very, very unconfortable and we waste precious time to undeploy, stop, delete temp files, start, deploy and finally test. Do you have the same issue? Do you have any idea? Jboss says that you can deploy/undeploy application... We try JBoss 3.0.1 and it still not work :-( Thanks for your different answers. Alexandre Aubry France - Sophia Antipolis ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais ! Yahoo! Mail : http://fr.mail.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Gadgets, caffeine, t-shirts, fun stuff. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this e-mail in error you must not copy, distribute or take any action in reliance on it. Please notify the sender by e-mail or telephone. We utilise an anti-virus system and therefore any files sent via e-mail will have been checked for known viruses. You are however advised to run your own virus check before opening any attachments received as we will not in any event accept any liability whatsoever once an e-mail and/or any attachment is received. Any views expressed by an individual within this e-mail do not necessarily reflect the views of Systems Union Group plc or any of its subsidiary companies. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Gadgets, caffeine, t-shirts, fun stuff. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
