I found a way around this problem without having to recompile classes and such that you can use ND Class Loader. The trick is to move your custom classes out of the projects directory. You will need to modify NETDYN_CLASSPATH and CLASSPATH environment variables to reflect the new location of your custom classes. dan [EMAIL PROTECTED] wrote: > >I ran into the same thing outside of ND for some packages I was using. What version >of the JDK are you using?. > >My fix was to go down a version on the JDK and recompile all. >the ClassFormatError in java means that the class was the wrong binary format. > > > > >Curt Springer <[EMAIL PROTECTED]> wrote: >>I developed a set of classes under 3.x that I use across several ND apps. >>They sit in an 'hms' directory (or directories thereunder) that hangs below >>'Projects', same as any ND app directory. >> >>I include objects of these classes in my ND pages as class variables. >>These class variables are instantiated for the most part in >>'onAfterInitEvent' via 'new'. Any one instantiation at the page level >>causes multiple objects to be instantiated, as the 'hms' classes contained >>by the pages contain their own class variables, and so on. >> >>All of this works fine in 3.x. >> >>So I went to convert to 4.x. Knowing that class variables must now be >>serializable, I just went through the exercise of making all of my classes >>implement the Serializable interface, replacing any elemental 'int' or >>'boolean' class variables by Integer or Boolean class variables,= >> respectively. >> >>I just tried to boot up an app (which I had converted to 4.x) that uses my >>classes. I got the 'could not connect to app server' message on the= >> browser. >> >>In the log file, I see the following message: >>spider.Util.CSpClassLoader---loadClass:ClassFormatError thrown while trying >>to load 'hms.netdynamics.serializable.NDComplexRowContainer'.Please verify >>that the class is packaged correctly (e.g., same package name as the >>Project) and is not corrupted. >> >>(in case it is not obvious, 'hms.netdynamics.serializable' is an in-house >>package) >> >>This is news to me. I had not heard that I would not be able to use my >>class library. >> >>In 3.x, there is an option to use ND's class loader or the generic class >>loader. I don't see this in 4.x. Is it someplace where I missed it? >> >>Any similar experience, workarounds, ideas? >> >>Thx, >>-- Curt >>____________________________________________________________________________= >>_ >>Curt Springer English or French - your= >> choice >>Team NetDynamics En francais ou en anglais - c=92est =E0 toi de= >> choisir >>=C9quipe NetDynamics >> > _________________________________________________________________________ For help in using, subscribing, and unsubscribing to the discussion forums, please go to: http://www.netdynamics.com/support/visitdevfor.html For dire need help, email: [EMAIL PROTECTED]
