Re: Switch from 5.3.3 to 5.4.3 breaks tomcat deployment
Re: Switch from 5.3.3 to 5.4.3 breaks tomcat deployment
- Subject: Re: Switch from 5.3.3 to 5.4.3 breaks tomcat deployment
- From: email@hidden
- Date: Thu, 6 May 2010 09:56:32 -0400 (EDT)
- Importance: Normal
Jon,
Thanks. It might be a red herring, but our entire startup happens in the target method of that notification, so it's a mighty big issue for us. Yes, I *would* be very interested in your hack, even if it's just to understand the problem better.
Thanks!
Ken
-----Original Message-----
From: "Jon Nolan" <email@hidden>
Sent: Thursday, May 6, 2010 9:49am
To: email@hidden
Subject: Re: Switch from 5.3.3 to 5.4.3 breaks tomcat deployment
I think he's saying ApplicationDidFinishInitializationNotification not
being posted is a known bug. NSNotification(Center) stuff works, just
not this one. Something to do with having to use JavaWOJSPServlet I
believe although I'm not certain. My workaround is an embarrassing hack
so I'd rather not share it unless you're really interested. ;-)
I'm not sure exactly why you're having troubles but 5.4 deployment under
tomcat (I never did deploy 5.3) is an exercise is patience. One thing
after another. It does work though. Don't worry about
appDidFinishLaunching() not being called. That's a red herring in this
case.//
On 5/6/10 3:56 AM, Ken Anderson wrote:
> Are you saying I just can't deploy 5.4.3 with Tomcat ? There's no workaround ?
>
>
> On May 5, 2010, at 11:08 PM, Ramsey Lee Gurley wrote:
>
>>
>> On May 5, 2010, at 10:42 PM, Ken Anderson wrote:
>>
>>> All,
>>>
>>> We're in the midst of converting some WO apps from 5.3.3 to 5.4.3. Everything works well in Eclipse, but when we deploy to tomcat 5.5 via a .war file, the app basically does nothing. Remote debugging shows that the Application constructor gets called, but the notification center never fires the appDidFinishLaunching event.
>>>
>>> We're using Java 1.6 if that matters... Any thoughts?
>>>
>>> Thanks!
>>> Ken
>>
>> Known issue if I'm not mistaken...
>>
>> Begin forwarded message:
>>
>>> Date: October 23, 2008 5:13:02 PM EDT
>>> To: Apple WO-Dev<email@hidden>
>>> Subject: Wonder App doesn't receive "ApplicationDidFinishLaunchingNotification" notification when deployed as a servlet
>>>
>>> I was banging my head on this, so I thought I would share it with the group:
>>>
>>> Our Wonder App doesn't receive "ApplicationDidFinishLaunchingNotification" notification when deployed as a servlet, this results in ERXRemoteSynchronizer not being started when initialized using ERXObjectStoreCoordinatorSynchronizer.initialize(); since initialization depends on that notification being received (Line 87 in ERXObjectStoreCoordinatorSynchronizer.java):
>>>
>>> NSNotificationCenter.defaultCenter().addObserver(this, new NSSelector("startRemoteSynchronizer", ERXConstant.NotificationClassArray), WOApplication.ApplicationDidFinishLaunchingNotification, null);
>>>
>>> You can bypass that by doing this instead
>>> ERXObjectStoreCoordinatorSynchronizer.synchronizer().initializeRemoteSynchronizer();
>>>
>>> As a confirmation I also overrode didFinishLaunching() from ERXApplication and that doesn't get called either when deployed as a servlet...
>>>
>>> Thanks,
>>>
>>> Saad
>>>
>>
>
> _______________________________________________
> 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
>
_______________________________________________
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
_______________________________________________
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