Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Works in eclipse but not in a jar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Works in eclipse but not in a jar



I feel skeptical that an jarred up WO app that uses bundle resources would work. What did the build.xml file used to do? Why not keep using that?

Chuck


On Nov 27, 2009, at 1:03 PM, Calven Eggert wrote:

nope. it was done before using ant and a build.xml file.


On 2009-11-27, at 3:41 PM, Chuck Hill wrote:

Did you make the jar like this before?


On Nov 27, 2009, at 11:38 AM, Calven Eggert wrote:

Hi all,

In my final attempts to move my Tiger WO stuff to Snow Leopard I have one last visible hurdle. I have a java application that does some batch stuff to a database and this runs via crontab on a daily basis. I've created my new java application in eclipse and linked in all the libraries and it runs fine, although I'm still using the deprecated EOModelGroup.addModelWithPath call.

When I create my jar, via Export Runnable JAR file, and run it from the terminal, it barfs on the call EOModelGroup.defaultGroup() with:

java.lang.IllegalArgumentException: Attempt to insert null into an com.webobjects.foundation.NSMutableArray.
at com .webobjects .foundation.NSMutableArray.addObject(NSMutableArray.java:239)
at com .webobjects .eoaccess .EOModelGroup.modelGroupForLoadedBundles(EOModelGroup.java:700)
at com .webobjects .eoaccess.EOModelGroup.globalModelGroup(EOModelGroup.java:306)
at com .webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java: 333)
at com.blah.blah.blah<init>(DailyImport.java:748)
at com.blah.blah.blah.main(DailyImport.java:127)


Can someone please explain to me how I should properly create the JAR file? (I'm sure you'll have a note about the deprecated call I'm using above.)

Thank you. :-)

Calven


_______________________________________________ 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

-- 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












-- 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: 
 >Works in eclipse but not in a jar (From: Calven Eggert <email@hidden>)
 >Re: Works in eclipse but not in a jar (From: Chuck Hill <email@hidden>)
 >Re: Works in eclipse but not in a jar (From: Calven Eggert <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.