• 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: EOF inside of an axis app running in Tomcat
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOF inside of an axis app running in Tomcat


  • Subject: Re: EOF inside of an axis app running in Tomcat
  • From: Jay Al Hashal <email@hidden>
  • Date: Tue, 10 Feb 2009 01:14:18 -0800

I have not done this in a while, so take the advice with a few grains of salt. The null pointer exception is resulting from your main bundle being null so you want to double, and triple, check that JavaFoundation is in your path. If you think it is in your path, then it is more likely than not a problem with the structure of your jars. Go over how you are including the necessary jars, perhaps there is an incompatibility there.  

Also, try logging out the values for NSBundle.mainBundle() and NSBundle.bundleForName("JavaFoundation") and see what that is giving you. 

Good luck. 

Hi All,

I would like to use EOF to extend an existing axis application deployed with tomcat.  Has anyone done this?

At the moment I get this exception in the deployed app:

Caused by: java.lang.ExceptionInInitializerError
    at com.webobjects.eoaccess.EOModelGroup.modelGroupForLoadedBundles(EOModelGroup.java:775)
    at com.webobjects.eoaccess.EOModelGroup.globalModelGroup(EOModelGroup.java:338)
    at com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:370) 
    at liberty.ps1.PeopleServiceSoapBindingImpl.addEntity(PeopleServiceSoapBindingImpl.java:109)
    ... 30 more
Caused by: java.lang.NullPointerException
    at com.webobjects.foundation.NSBundle.LoadUserAndBundleProperties(NSBundle.java:640)
    at com.webobjects.foundation.NSBundle.&lt;clinit&gt;(NSBundle.java:367)
    ... 34 more

The code is something like:

EOModel model = new EOModel(new URL("file:///Path/To/my.eomodeld"));
EOModelGroup.defaultGroup().addModel(model);

The exception happens when EOModelGroup.defaultGroup() is called.

It also seems like WOSession is required for this.  My preference would be to simply utilize foundation, eoaccess, and eocontrol.

Any help would be GREATLY appreciated.

asa
_______________________________________________


 _______________________________________________
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

  • Prev by Date: Installer question, + Wonder Framwork not being found
  • Next by Date: Re: Entity Modeller - Setting Up Many-to-Many Relationships: Link Entities(?)
  • Previous by thread: Re: Installer question, + Wonder Framwork not being found
  • Next by thread: WOLips Entity Modeler
  • Index(es):
    • Date
    • Thread