Article:
 |
|
An Introduction to WebObjects
|
| Subject: |
|
Direct to Web java.lang.ClassNotFoundException: Application error |
| Date: |
|
2004-12-30 14:17:43 |
| From: |
|
joshpaul
|
Response to: Direct to Web java.lang.ClassNotFoundException: Application error
|
|
Florijan,
There are a few things that come to mind:
1) check to see you are building the correct target. You will find this setting in the upper left corner of your project window, as a popup menu. It should be set to "D2WTutorial9".
2) check to see that the Application class is a part of your Application Server build target. You can check this by selecting Application Server from the Target popup menu (as above). Then check to see that the checkbox to the left is checked. If you don't see a checkbox, select View->Groups & Files Columns->Target Membership.
3) make sure there are no spaces in the path to your project. For example: "/Users/Florijan/Projects/D2WTutorial9" works well, whereas "/Users/Florijan/My Projects/D2WTutorial" does not.
HTH,
Josh
|
Showing messages 1 through 8 of 8.
-
Direct to Web java.lang.ClassNotFoundException: Application error
2004-12-31 05:43:22
Florijan
[View]
-
problem fixed
2004-12-31 06:13:25
Florijan
[View]
-
problem fixed
2006-12-09 23:32:02
dbsurf
[View]
-
problem fixed
2006-12-10 08:55:41
Josh Paul |
[View]
-
problem fixed
2006-12-11 08:36:58
dbsurf
[View]
-
problem fixed
2005-05-17 08:01:11
janiceC
[View]
-
problem fixed
2005-05-17 08:14:16
janiceC
[View]
Creating projects in paths with no spaces helped. I managed to run the login screen of WebObjects. However, when I clicked login, I got the following error:
Application:
D2WTutorial
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
From what I can make out of it, it looks like he can not access methods of the classes generated by the EO model. And I am using the RealEstate tutorial model specified in the D2W documentation. I really don't understand why that happens because the model is freshly installed with the system, and the OpenBase says that he is runnig the database.
I would be grateful for suggestions on how to overcome this.
Thank you