• 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: Failing to run WOExamples from the 5.4 examples
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Failing to run WOExamples from the 5.4 examples


  • Subject: Re: Failing to run WOExamples from the 5.4 examples
  • From: Miguel Arroz <email@hidden>
  • Date: Wed, 26 Dec 2007 20:39:48 +0000

Hi!

It appears that you are including the same frameworks twice in the classpath (namely, JavaFoundation). Please check on the project properties the classpath stuff (I'm sure Pascal says how to do that in the podcast!) ;)

  Yours

Miguel Arroz

On 2007/12/26, at 19:51, Archibal Singleton wrote:

Hi,

I've followed Pascal's instruction to setup the 5.4 examples for use through eclipse. The examples compile without problems (except for some minor errors). But when I try to run the WOExamples project it immediately fails with the stack trace below.

What am I missing here? I don't understand why it's failing so any help would be much appreciated.

[2007-12-26 19:32:33 ] <main> A fatal exception occurred: null
[2007-12-26 19:32:33 ] <main> java.lang.ExceptionInInitializerError
at com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys (WOProperties.java:187)
at com.webobjects.appserver.WOApplication._initWOApp (WOApplication.java:5081)
at com.webobjects.appserver.WOApplication.<init> (WOApplication.java:551)
at webobjectsexamples.woexamples.Application.<init> (Application.java:45)
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: 323)
at webobjectsexamples.woexamples.Application.main(Application.java: 35)
Caused by: java.lang.IllegalStateException: <com.webobjects.foundation.NSBundle> warning: There is already a unique instance for Bundle named 'JavaFoundation'. Use NSBundle.bundleForName(JavaFoundation) to access it: <com.webobjects.foundation.NSBundle name:'JavaFoundation' bundlePath:'/Library/WebObjects/lib/JavaFoundation.jar' packages:'("com.webobjects.foundation", "com.webobjects.foundation.xml")' 214 classes >
at com.webobjects.foundation.NSBundle.CreateBundleWithPath (NSBundle.java:825)
at com.webobjects.foundation.NSBundle._bundleWithPathShouldCreateIsJar (NSBundle.java:487)
at com.webobjects.foundation.NSBundle.LoadBundlesFromClassPath (NSBundle.java:742)
at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:365)
... 12 more



TIA

= tmk =
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40guiamac.com


This email sent to email@hidden

Miguel Arroz http://www.terminalapp.net http://www.ipragma.com



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Failing to run WOExamples from the 5.4 examples
      • From: Archibal Singleton <email@hidden>
References: 
 >Converting your XCode projects to WOLips the podcast (From: Pascal Robert <email@hidden>)
 >Failing to run WOExamples from the 5.4 examples (From: Archibal Singleton <email@hidden>)

  • Prev by Date: Re: New version of the podcasts
  • Next by Date: Re: Semantics of ^ in value bindings in .wod file.
  • Previous by thread: Failing to run WOExamples from the 5.4 examples
  • Next by thread: Re: Failing to run WOExamples from the 5.4 examples
  • Index(es):
    • Date
    • Thread