Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W launch error help



Thanks so much. That worked perfectly. I'll see if this has been filed with Radar and file it if it hasn't.

Mike
On Sep 30, 2004, at 12:26 PM, Jonathan Meijer wrote:

Hey Mike,

I've had this error many times and, in my case, the problem seems to be in the template the newer version of XCode uses when I first generate the project. MenuHeader.java and PageWrapper.java (see the errors about having a "classless component") are not actually added to the Application build target even if XCode says they are.

My solution is quite easy:
1. Select both files (MenuHeader.java and PageWrapper.java), right click and select Delete; in the requester, select "Delete Reference".


2. Add Existing Files: Select the same 2 files from your current working directory and add them to your project without requesting a copy to be made.

3. Rebuild and enjoy.

Hope that helps,

Jonny

Hi -

I've used D2W several times to test eomodels but not in a while (i.e.,
I've updated Java and OS X to 10.3.5 and Java 1.4.2 update 2) and now
it doesn't seem to work at all.   I created a simple EOModel with a
table called name that has 3 fields, nameId, firstName and lastName.
I also tried this with 3 other eomodels that i have in production and
they all end up with the same errors.

When I run a newly created Direct To Web application project, as soon
as I click Login, I get this error message:

Error:
  com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: [
valueForKey()]: lookup of unknown key: 'visibleEntityNames'. This
WOComponent does not have an instance variable of the name
visibleEntityNames or _visibleEntityNames, nor a method of the name
visibleEntityNames, _visibleEntityNames, getVisibleEntityNames, or
_getVisibleEntityNames


In the Run log I have this;

[2004-09-30 12:04:25 CDT] <main> Waiting for requests...
[2004-09-30 12:04:28 CDT] <WorkerThread3>
<com.webobjects.appserver._private.WOComponentDefinition> WARNING:
Unable to find component class named "PageWrapper". If this is not
intended to be a classless component, check your framework settings and
the contents of your classpath file (in the .woa's
Contents/<PLATFORM_NAME> subdirectory).
[2004-09-30 12:04:28 CDT] <WorkerThread3>
WOBundle.lookForClassInAllBundles(MenuHeader) failed!
[2004-09-30 12:04:28 CDT] <WorkerThread3>
<com.webobjects.appserver._private.WOComponentDefinition> WARNING:
Unable to find component class named "MenuHeader". If this is not
intended to be a classless component, check your framework settings and
the contents of your classpath file (in the .woa's
Contents/<PLATFORM_NAME> subdirectory).
[2004-09-30 12:04:28 CDT] <WorkerThread3>
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException:
[<com.webobjects.appserver.WOComponent name: MenuHeader subcomponents:
null > valueForKey()]: lookup of unknown key: 'visibleEntityNames'.
This WOComponent does not have an instance variable of the name
visibleEntityNames or _visibleEntityNames, nor a method of the name
visibleEntityNames, _visibleEntityNames, getVisibleEntityNames, or
_getVisibleEntityNames
[2004-09-30 12:04:28 CDT] <WorkerThread3>
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException:
[<com.webobjects.appserver.WOComponent name: MenuHeader subcomponents:
null > valueForKey()]: lookup of unknown key: 'visibleEntityNames'.
This WOComponent does not have an instance variable of the name
visibleEntityNames or _visibleEntityNames, nor a method of the name
visibleEntityNames, _visibleEntityNames, getVisibleEntityNames, or
_getVisibleEntityNames
at
com.webobjects.appserver.WOComponent.handleQueryWithUnboundKey(WOCompo ne
nt.java:1566)
...
	at java.lang.Thread.run(Thread.java:552)

I'm not sure where it's coming from but it seems like the frameworks
aren't finding the pages. I checked the .woa package and all the pages
and jars seem to be in there.


Any ideas? I spent a bit of time trying to debug this but want to make
sure it's not one of the updates that has broken something.


Thanks
Mike


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: D2W launch error help (From: Jonathan Meijer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.