| Article: |
An Introduction to WebObjects | |
| Subject: | Direct to Web java.lang.ClassNotFoundException: Application error | |
| Date: | 2004-12-31 05:43:22 | |
| From: | Florijan | |
|
Response to: Direct to Web java.lang.ClassNotFoundException: Application error
|
||
|
Thank you Josh,
|
||
Showing messages 1 through 7 of 7.
-
problem fixed
2004-12-31 06:13:25 Florijan [View]
-
problem fixed
2006-12-09 23:32:02 dbsurf [View]
I would like to know in details, what you did to overcome this issue. I have the same problem with my D2W application and all the samples. I appreciate any help!
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
Reason: [<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 -
problem fixed
2006-12-10 08:55:41 Josh Paul |
[View]
From the release notes:
For Direct To Web projects: When creating a new Direct To Web project, you'll notice that the MenuHeader.java and PageWrapper.java source files are not correctly added to the Application Servers target and are in the Bundle Resources build phase and not in the Sources build phase. After creating a new project, open the Application Servers target in the Groups & Files view and drag the MenuHeader.java and PageWrapper.java source files from the Bundle Resources build phase to Sources build phase.
Instructions, as explained by Andres Toussaint on the Apple WebObjects list:
'After you create your D2W project in xCode, open the contents of the "Targets" group (a red bullseye).
Double click the "Application Server" target.
Select "Build Phases". In the right hand you will see the build phases, indicated by "Sources", "Bundle resources", etc..
Drag the MenuHeader.java and PageWrapper.java from the Bundle Resources to the Sources.
That is all.'
HTH. -
problem fixed
2006-12-11 08:36:58 dbsurf [View]
I got my D2W to work correctly. Thank you so much! -
problem fixed
2006-12-10 08:55:17 Josh Paul |
[View]
From the release notes:
For Direct To Web projects: When creating a new Direct To Web project, you'll notice that the MenuHeader.java and PageWrapper.java source files are not correctly added to the Application Servers target and are in the Bundle Resources build phase and not in the Sources build phase. After creating a new project, open the Application Servers target in the Groups & Files view and drag the MenuHeader.java and PageWrapper.java source files from the Bundle Resources build phase to Sources build phase.
Instructions, as explained by Andres Toussaint on the Apple WebObjects list:
'After you create your D2W project in xCode, open the contents of the "Targets" group (a red bullseye).
Double click the "Application Server" target.
Select "Build Phases". In the right hand you will see the build phases, indicated by "Sources", "Bundle resources", etc..
Drag the MenuHeader.java and PageWrapper.java from the Bundle Resources to the Sources.
That is all.'
HTH. -
problem fixed
2005-05-17 08:01:11 janiceC [View]
Hi F,
What java classes and where are you supposed to change the two java classes to? I am having the same errors as you previously had. I know that one of the java classes is MenuHeader.java .. please help!
Thanks for any advice!
Best regards,
J -
problem fixed
2005-05-17 08:14:16 janiceC [View]
never mind .. i found the documentation. thanks!!! :)



Thanks for your assistance,
'
Regards,
F