• 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: Unable to find component class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to find component class


  • Subject: Re: Unable to find component class
  • From: Peter Vandoros <email@hidden>
  • Date: Mon, 28 Jul 2008 13:27:37 +1000


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      (email@hidden)
Help/Unsubscribe/Update your Subscription:


This email sent to email@hidden


-- 
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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Unable to find component class (From: Lachlan Deck <email@hidden>)
 >Re: Unable to find component class (From: Peter Vandoros <email@hidden>)
 >Re: Unable to find component class (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: Unable to find component class
  • Next by Date: Re: Unable to find component class
  • Previous by thread: Re: Unable to find component class
  • Next by thread: Re: Unable to find component class
  • Index(es):
    • Date
    • Thread