Lachlan Deck wrote:
On 28/07/2008, at 12:59 PM, Peter Vandoros wrote:

It's usually when a different class with the same name as your component comes before your component on the classpath.

I doubt there's another component wrapper out there with the same name.
Sorry that should have said:

"It's usually when a different class with the same name as your component comes before your component class on the classpath."

You can see the class WebObjects is instantiating for your component name with the following code which should help you:

Class aClass = _NSUtilities.classWithName( "Foo" );
if ( aClass != null ) {
    System.out.println( "Found class '" + aClass.getName() + "' for name 'Foo'" );
}


WebObjects does not check which class it tries to instantiate for your component to be a subclass of WOComponent.

Actually I'm finding that when I deploy the app it's fine - but when debugging from within Eclipse that it can't find various component classes in the app.

Any clues on why that might be?
Different classpath specified in Eclipse compared to your deployed application.

Lachlan Deck wrote:

Hi there,

could someone please remind me what the usual solution is for this error (for either direct or component actions etc)
<com.webobjects.appserver._private.WOComponentDefinition> WARNING: Unable to find component class named "Foo"

with regards,
-- 

Lachlan Deck



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

This email sent to [EMAIL PROTECTED]


-- 
Peter Vandoros
Software Engineer
Etech Group Pty Ltd
Level 3/21 Victoria St
Melbourne VIC 3000
Australia

Ph: +61 3 9639 9677
Fax: +61 3 9639 9577
----------------------------------
IMPORTANT: This e-mail message and any attachments are confidential and may be privileged. If received in error, please reply to this message and destroy all copies and any attachments. You should check this message and any attachments for viruses or defects. Our liability is limited to resupplying any affected message or attachments. For more information about Etech Group, please visit us at http://www.etechgroup.com.au.

with regards,
--

Lachlan Deck





--
Peter Vandoros
Software Engineer
Etech Group Pty Ltd
Level 3/21 Victoria St
Melbourne VIC 3000
Australia

Ph: +61 3 9639 9677
Fax: +61 3 9639 9577
----------------------------------
IMPORTANT: This e-mail message and any attachments are confidential and may be privileged. If received in error, please reply to this message and destroy all copies and any attachments. You should check this message and any attachments for viruses or defects. Our liability is limited to resupplying any affected message or attachments. For more information about Etech Group, please visit us at http://www.etechgroup.com.au.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to