Mail Archive Home | enhydra List | October 2004 Index
| <-- Date Index --> | <-- Thread Index --> |
Hi Community, IMO, it is important to have a good deployer for the EAR in JOnAS. After trying many things I come to this conclusion, also see my older mail at: http://www.objectweb.org/wws/arc/jonas/2004-10/msg00126.html 1. Under Win2000. The long path name makes it impossible under Win2000 an EAR file to be deployable. I tried everything: - Standard EAR. - EAR with a WAR (exploded) inside it. Nothing seems to work. Because JOnAS 4.1.2 does not support - Exploded EAR deployment and - "Naked" deployment (see my older mail at: http://www.objectweb.org/wws/arc/jonas/2004-10/msg00103.html So, you have no chance to deploy a "real world" EAR in JOnAS 4.1.2. I successfully deployed a simple EAR from my PiggyBank example but for a "real world" application like OpenUSS (with long package name and path name, with more than 100 EJBs) it is impossible. 2. Under Linux. You don't have the long path name problem but I still get a problem with "#". See my older email at: http://www.objectweb.org/wws/arc/jonas/2004-10/msg00126.html -> 2. Error in executing the web app So, it is also impossible to deploy a real world application with EAR deployer in JOnAS 4.1.2. SOLUTION: Here is the HACK-HOW-TO (so that you don't need to spend your whole nites and days in the front of computer like me ;-)) which is working for both OS: 1. Deploy all your EJBs within the EAR file. Don't put your servlet WAR in it (comment it out from your application.xml). 2. Deploy your servlet WAR in "exploded" way. Add the jonas-web.xml to put this <java2-delegation-model>false</java2-delegation-model>. Put all your libs and ejbs within this exploded servlet, so your servlet can find the ejbs: /WEB-INF/lib/.. 3. Edit your jonas.properties, like this: jonas.service.ear.autoloaddir ../deploy/ear-package jonas.service.web.autoloaddir ../deploy/war So you deploy the EAR and the WAR in different classloader. 4. Run your JOnAS 4.1.2, you'll see it says JOnAS version 4.1.2 is ready! I really hope that this part will get better in the next coming release, also for Enhydra Enterprise 6.x! Hope this helps! -- --------------------------------------------------- Blasius Lofi Dewanto --------------------------------------------------- OpenUSS - Open University Support System http://openuss.sourceforge.net --------------------------------------------------- E-Mail : dewanto@xxxxxxxxxxxxxxx ICQ : 39343280 ---------------------------------------------------
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.