On Feb 28, 2008, at 10:50 PM, Kristof Cossement wrote:

I copied the system frameworks into my xcode project and removed the system
frameworks from my project.
The code compiles, but does not run:

java.lang.NoClassDefFoundError: com/webobjects/appserver/WOApplication

Generated classpath:

/Users/admin/Data/Projects/ServiceProviderFrameWork/build/ Development/Servic
eProvider.woa/Contents/Resources/Java/serviceprovider.jar
 JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
 JavaEOControl.framework/Resources/Java/javaeocontrol.jar
 JavaFoundation.framework/Resources/Java/javafoundation.jar
 JavaWebObjects.framework/Resources/Java/javawebobjects.jar
JavaWebServicesClient.framework/Resources/Java/ javawebservicesclient.jar JavaWebServicesSupport.framework/Resources/Java/ javawebservicessupport.jar
 JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar
 JavaXML.framework/Resources/Java/javaxml.jar

The above runtime classpaths don't look correct. Maybe someone with more Eclipse or maybe ant experience than I have could explain what you need to do to fix the classpaths. The entries should look like:

APPROOT/<path_in_woa_to_frameworks>/JavaEOAccess.framework/Resources/ Java/javaeoaccess.jar

build.xml and app-modules.xml in the JavaEOGenerator source contain a "self-contained-woa" target that does the right thing when built with ant. But there are probably ways to make this happen in an Eclipse/ WOLips project as well.

Or you could manually edit *.woa/Contents/MacOS/MacOSClassPath.txt which would probably take less time than trying to figure out how to make this happen in Eclipse or with ant build files :-)

Aloha,
Art

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to