• 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: pure EOF in RCP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pure EOF in RCP


  • Subject: Re: pure EOF in RCP
  • From: Ray Kiddy <email@hidden>
  • Date: Tue, 16 Oct 2007 10:54:47 -0700


On Oct 16, 2007, at 6:53 AM, Georg von Bülow wrote:

Hi,

having read the stepwise article about 100% pure EOF Applications (http://www.stepwise.com/Articles/Technical/2001-07-01.01.html),
I´m trying to figure out if it´s possible to get EOF working inside an RCP Application.
So I added the relevant WebObjects jars to lib (eoacess, eocontrol, javafoundation, javaxml, javajdbcadaptor) and compiled successfully. But on runtime the application always fails with:


java.lang.ExceptionInInitializerError
at com.moleque.pas.checklist.Application.loadModel (Application.java:65)
at com.moleque.pas.checklist.Application.run(Application.java:36)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplic ation(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start (EclipseAppLauncher.java:68)
...
Caused by: java.lang.NullPointerException
at com.webobjects.foundation.NSBundle.LoadUserAndBundleProperties (NSBundle.java:313)
at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:2262)
... 15 more


The problem is that MainBundle cannot be resolved, that is already trying
NSBundle.mainBundle() returns the above error.


Has anyone got to work EOF with RCP? Or can point to me how to overcome this NSBundle problem?

I´m using Eclipse 3.2.2, WebObjects jars 5.3.2, and Windows XP.

Thanks for any hints in advance,
Georg

--
\o/ Georg von Bülow, Moleque de Idéias Educação e Tecnologia Ltda
 |  Phone: 55-21-2710-0178 E-mail: email@hidden
/ \ http://www.moleque.com.br   Niterói - Rio de Janeiro - Brasil

This looks like problems I have had while trying many different runtime configurations.


An NSBundle is not just a jar file, but it is also the directory structure, with a '.framework' directory, a 'Contents' directory (sometimes), a 'Resources' directory, a 'Java' directory, and so on and so forth.

The easiest way to unravel NSBundle problems is to try to use just directories, then use the directories inside a jar, then try moving the jar where you want it to go.

Does this help?

- ray


_______________________________________________ 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
  • Follow-Ups:
    • Re: pure EOF in RCP
      • From: Georg von Bülow <email@hidden>
References: 
 >pure EOF in RCP (From: Georg von Bülow <email@hidden>)

  • Prev by Date: pure EOF in RCP
  • Next by Date: (no subject)
  • Previous by thread: pure EOF in RCP
  • Next by thread: Re: pure EOF in RCP
  • Index(es):
    • Date
    • Thread