Re: WebObjects jar frameworks and classpaths
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