• 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
Re: WebObjects jar frameworks and classpaths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebObjects jar frameworks and classpaths


  • Subject: Re: WebObjects jar frameworks and classpaths
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 13 Jan 2009 18:43:50 -0800


On Jan 6, 2009, at 5:18 AM, John Pollard wrote:

Hi List,

A bit off topic, but I am struggling to make sense of this. Simply put I want to understand why I can't put a couple of jars into a WO framework and have the code still work as it does when the same jars are in /Library/Java/Extensions.

That should work unless the jars are extending the core Java functionality. In that case you might run into classloader permission problems. This does not sound like you situation to me.



So here is what I did:

Created a new WebObjects framework.
Manually moved two jar files (rome-1.0RC1.jar and jdom.jar) out of / Library/Java/Extensions into the new framework project's /Libraries sub folder

WOLips stable or New Hotness (nightly)?


In Java Build Path properties, Libraries tab, Add Jars.. to add them in, then in the Order and Export tab tick them
In the app project, add the new framework as a dependency


Eclipse shows no compile time problems, so why the runtime error:
[java.lang.NoClassDefFoundError] com/sun/syndication/io/ ModuleGenerator


I will be very grateful for any pointers to help me solve this one; in particular why/when Eclipse is happy at compile time, but actually the classes are not found when run. The class that is not found is definitely in the rome jar.


This should work if you are using New Hotness. The runtime classpath is controlled by the Launch Config. If you are using New Hotness, you might want to delete your current run config and create a new one. That may fix the problem.

Chuck


-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ 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
References: 
 >WebObjects jar frameworks and classpaths (From: John Pollard <email@hidden>)

  • Prev by Date: Re: EO Not deleting
  • Next by Date: Re: A relationship in a converted model now throws an exception on save
  • Previous by thread: Re: WebObjects jar frameworks and classpaths
  • Next by thread: Patch to 5.4.3???
  • Index(es):
    • Date
    • Thread