Hi I got the reason for the errors it was some problem with the classpath. To run the EJB's in the Local Server mode, you need to have various jar files in you Classpath, those which have caused the problem include: 1)$(OpenEJB)/lib/castor-0.9.3.9.jar 2)$(OpenEJB)/lib/castor-0.9.3.9-xml.jar 3)$(OpenEJB)/lib/xercesImpl-2.0.2.jar 4)$(OpenEJB)/lib/jakarta-regexp-1.1.jar 5)$(OpenEJB)/lib/idb_3.26.jar
Thanks For Valuable Help Regards Swet Batra Ph: 91-11-26908838 Extn: 838 The world knows you by what you are and not by what you are capable of doing -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 8:17 PM To: [EMAIL PROTECTED] Subject: RE: [openejb-user] Problem while using OpenEJB as Local Server I think that I've seen a similar error when I had my CLASSPATH messed up. At the risk of tooting my own horn, take a look at my example http://blog.ideoplex.com/software/2004/01/29.html#a768 that runs against a local server via ant. Double check the CLASSPATH. Dwight On Wed, 26 May 2004 19:03:27 +0530, "Swet Batra" <[EMAIL PROTECTED]> said: > Thnks for reply > > But, I had already tried all this stuff. When i validate the jar file on > the > command prompt it does not display any message and control goes to a new > line on command prompt. Further the openejb.conf file is also perfectly > alright. There is one poin that i would like to ur attention is that > application works absolutely fine if i use Remote Server. Further it is > also > working fine if i access the EJB's deployed in OpenEJB container through > JSP's in Apache Tomcat. Please provide some more options. > > Thanks and Regards > Swet Batra > The world knows you by what you are and not by what you are capable of > doing > > > > -----Original Message----- > From: David Blevins [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 26, 2004 6:22 PM > To: [EMAIL PROTECTED] > Subject: Re: [openejb-user] Problem while using OpenEJB as Local Server > > > On Wed, May 26, 2004 at 04:48:34PM +0530, Swet Batra wrote: > > Exception Caught in InitialContext > > 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/ValidationExeption > > Looks like there is some bad xml in the mix somewhere. > > Run the validator on your beans with -vvv. If that reports a problem, > then you need to fix one of your ejb-jar.xml files. Otherwise, make > sure your openejb.conf is ok. If you rename it to something other > than openejb.conf, OpenEJB will create you a new one. > -- Dwight Shih [EMAIL PROTECTED] ----------------------------------------------------------- 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.
