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.<clinit> (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 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