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


  • Subject: Re: Works in eclipse but not in a jar
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 27 Nov 2009 13:32:34 -0800

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

  • Prev by Date: Re: Works in eclipse but not in a jar
  • Next by Date: Re: WOVNG Files?
  • Previous by thread: Re: Works in eclipse but not in a jar
  • Next by thread: EROraclePlugIn, migrations and reserved words
  • Index(es):
    • Date
    • Thread