well i had tried and worked on the OpenEJB with tomcat v4 and i had tried on both the local as well as remote server. Once thing that i would like to point is that while u deploy on local server don't forget to include the following jar files in your class path.
1) ejb-1.0.jar or ejb 2.0.jar depending on which ever is present in the "lib" directory of OpenEJB instalation directory. This jar file is used to get the classes and interfacs related to EJB such as javax.ejb.EJBHome and javax.ejb.EJBObject 2) openEJB-client-0.9.2.jar file that is available in the "dist" directory. It is used to get the classes such as LocalInitialContextFactory. 3) openEJB-0.9.2.jar from the "dist" directory. It provides the SystemException and other related classes that are used to perform the JNDI lookup 4) openEJB-loader.0.9.2.jar from the "dist" directory. It is used to provide the EmbeddingLoader class file that is used in the internal processing while you deploy EJB on local server. 5) log4j-1.2.1.jar from the "lib" directory that provides the Priority class If you don't use these jar files then you may face the exceptions such as NoClassDefFoundError org/openEJB/loader/EmbeddingLoader.class file NoClassDefFoundError org/apache/log4j/Priority javax.naming.NamingException. Attempted to load OpenEJB. Cannot embed OpenEJB. Exception: java.lang.Exception: Cannot initialize OpenEJB. OpenEJB has encountered a fatal error and cannot be started. The assembler encountered an unexpected error while attempting to initialize: org/exolab/castor/xml/ValidationException........ .... and so on. There will be a lot exceptions if these jar files are not in the ClassPath For the rest it is very simple and fun using the EJB in the OpenEJB container. As far as links are concerned the OpenEJB site is the best source of information. Regards Swet Batra -----Original Message----- From: Kyle Korndoerfer [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 2:38 AM To: [EMAIL PROTECTED] Subject: [openejb-user] OpenEJB, Tomcat v5, & Struts I've just started looking into using OpenEJB embedded into Tomcat v5 (which I've gotten to work). My question is (hopefully) simple... Is there anything else that I need to do to start using this combination with Struts (mostly BMP's)? Any pitfalls/quirks, etc to look out for? I've tried looking on Google, but haven't found much of anything. Thanks for any pointers, links, etc. -={ Kyle }=- __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail NIIT's new GNIIT Program co-designed by the very people who hire IT/ITES Professionals! For more details visit http://www.niit.com ----------------------------------------------------------- NOTICE ------------------------------------------------------------ This email and any files transmitted with it are confidential and are solely for the use of the individual or entity to which it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you receive this transmission in error, please notify the sender by reply email and then destroy the message. Opinions, conclusions and other information in this message that do not relate to official business of NIIT shall be understood to be neither given nor endorsed by NIIT. Any information contained in this email, when addressed to NIIT Clients is subject to the terms and conditions in governing client contract.
