How to run WONDER example source in Eclipse+WOLips
How to run WONDER example source in Eclipse+WOLips
- Subject: How to run WONDER example source in Eclipse+WOLips
- From: "Ren, Kevin" <email@hidden>
- Date: Tue, 16 Dec 2008 13:51:22 +1300
- Thread-topic: How to run WONDER example source in Eclipse+WOLips
Title: How to run WONDER example source in Eclipse+WOLips
Hi,
Eclipse3.4+Wolips3.4.5588 nightlybuild
I installed WONDER framework to /Library/Frameworks, then I can create new WO app or Wonder App.
I copied all examples source from Wonder/Examples to my eclipse workspace, and then import to Eclipse.
All good, not red cross stick in the project. I found all libraries under "Referenced Libraries", looks all good.
But when I try run the application "AjaxExample" , I got message:
[2008-12-16 12:40:57 GMT+12:00] <main> Initialized : er.extensions.ERXExtensions
[2008-12-16 12:41:0 GMT+12:00] <main> A fatal exception occurred: null
[2008-12-16 12:41:0 GMT+12:00] <main> java.lang.ExceptionInInitializerError
at com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:116)
at com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317)
at com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)
at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:779)
at er.extensions.appserver.ajax.ERXAjaxApplication.<init>(ERXAjaxApplication.java:22)
at er.extensions.appserver.ERXApplication.<init>(ERXApplication.java:804)
at Application.<init>(Application.java:19)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at er.extensions.appserver.ERXApplication.main(ERXApplication.java:592)
at Application.main(Application.java:15)
Caused by: java.lang.IllegalStateException: Main bundle 'Properties' file can't be read. Did you run as a Java Application instead of a WOApplication in WOLips?
Please post your deployment configuration in the Wonder mailing list.
at er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplication.java:505)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:562)
at com.webobjects.foundation.NSBundle.postNotification(NSBundle.java:1819)
at com.webobjects.foundation.NSBundle.LoadBundlesFromClassPath(NSBundle.java:490)
at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:2109)
... 16 more
Any idea, which lib I need import to the project? The same message for all other examples source.
thanks
kevin
"This communication is confidential and may contain
privileged and/or copyright material. If you are not the intended recipient you
must not use, disclose, copy or retain it. If you have received it in error
please immediately notify me by return email, delete the emails and destroy any
hard copies. ANZ National Bank Limited does not guarantee the integrity of this
communication, or that it is free from errors, viruses or
interference."
_______________________________________________
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