Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

class library confusion



Title: class library confusion
Using XCode 2.4, the file classpath.txt is generated with the Apple frameworks first and any 'local' frameworks after them.  I have a component called MessageFormatter in a local framework, but because it's classname is also in an Apple framework, the Apple class is loaded first (probably from JavaXML.framework), and I get the run time error:

   com.webobjects.foundation.NSForwardException [java.lang.InstantiationException] org.apache.xerces.util.MessageFormatter: <org.apache.xerces.util.MessageFormatter> is an abstract class. It can not be instantiated !

If I manually shuffle the contents of classpath.txt, I can make the error go away, but I don't know any way to change the order of the frameworks in that file at build time.

I also made sure that "MessageFormatter.api" had the right class name:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<wodefinitions>
   <wo class="com.ramsayconz.wocore.MessageFormatter" wocomponentcontent="false">

        but that made no difference.

Obviously, I can change the name of my component, but I've been using it for several years and, anyway, I'm supposed to be in charge here!!

Ideas? ... Gavin

PS: I believe this behavior started when I converted my app to run inside Tomcat -- curious ...
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.