• 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: ERXFrameworkPrincipal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXFrameworkPrincipal


  • Subject: Re: ERXFrameworkPrincipal
  • From: Farrukh Ijaz <email@hidden>
  • Date: Tue, 29 Jun 2010 23:21:38 +0300

Thanks,

it worked after setting up the principalClass property of the project which was set to nothing.

Farrukh

On 2010-06-29, at 10:20 PM, Mike Schrag wrote:

>> Thanks for your reply. Sorry, but I couldn't get what you just said. Can you please elaborate? See my comments below?
>>
>> On 2010-06-29, at 8:33 PM, Mike Schrag wrote:
>>
>>> make sure you set the framework principal class for your framework to point to this class name or it won't be loaded.
>>
>> The MyWSFramework.class is part of the REQUIRES[] array as well as is used inside the static block:
> It's part of the requires array for your app, not part of its own requires array, right? requires array should list the direct framework principal dependencies for your framework.
>
>>>> static {
>>>> 	setUpFrameworkPrincipalClass(MyWSFramework.class);
>>>> }
>> My Wonder Application depends upon this framework. The code I've put in the finishInitialization() of the framework was inside the Application's finishInitialization(). Now the above framework is part of the classpath of the application and is packaged with the application and I can access all the classes and components. This is the only setup I've done for this framework. Is there any other place where I need to call certain method(s) to make it work?
> You have to define the framework principal for your framework to point to your MyWSFramework class. In WOLips, it's in the WOLips Development Properties page of the project's properties. If you're not using WOLips, you have to set the key in build.properties yourself ... principalClass=x.y.z.MyWSFramework IIRC. Unless you specify a framework principal, finishInitialization probably isn't going to be called on it, because .... it's not a framework principal.
>
> ms

 _______________________________________________
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: 
 >ERXFrameworkPrincipal (From: Farrukh Ijaz <email@hidden>)
 >Re: ERXFrameworkPrincipal (From: Farrukh Ijaz <email@hidden>)
 >Re: ERXFrameworkPrincipal (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: WOApplication.application() ... ?
  • Next by Date: OT: WebObjects job opportunity near Gold Coast, Australia
  • Previous by thread: Re: ERXFrameworkPrincipal
  • Next by thread: WOApplication.application() ... ?
  • Index(es):
    • Date
    • Thread