• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
class library confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

class library confusion


  • Subject: class library confusion
  • From: Gavin Eadie <email@hidden>
  • Date: Wed, 25 Oct 2006 17:57:47 -0400

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: class library confusion
      • From: Gary Teter <email@hidden>
  • Prev by Date: Re: WORepetition, checked attribute question
  • Next by Date: Re: class library confusion
  • Previous by thread: Re: Re: Loading images in WO application
  • Next by thread: Re: class library confusion
  • Index(es):
    • Date
    • Thread