Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erxapplication().didFinishLaunching() is not called when deployed as servlet #642

Closed
renebock opened this issue May 8, 2015 · 0 comments · Fixed by #646
Closed

erxapplication().didFinishLaunching() is not called when deployed as servlet #642

renebock opened this issue May 8, 2015 · 0 comments · Fixed by #646

Comments

@renebock
Copy link
Contributor

renebock commented May 8, 2015

The core reason is, that ApplicationDidFinishLaunchingNotification does not fire under servlet deployment.

A possible fix would be too add the following lines to end of the ERXApplication() constructor:

    if(isDeployedAsServlet()) {
        NSNotificationCenter.defaultCenter().postNotification(WOApplication.ApplicationDidFinishLaunchingNotification, new NSNotification("", null));
    }
darkv added a commit to darkv/wonder that referenced this issue May 13, 2015
@darkv darkv closed this as completed May 13, 2015
renebock added a commit to renebock/wonder that referenced this issue May 13, 2015
elemgee added a commit to elemgee/wonder that referenced this issue May 21, 2015
* develop:
  Makes ERXPartial serializable. wocommunity#655
  Makes ERXDisplayGroup serializable. wocommunity#651
  Fix ERMoviesLogic migration bug, that caused the dependency on ERAttachment to be skipped due to an override returning null. With this change, migrations run fine on H2.
  A ApplicationDidFinishLaunchingNotification will be posted if the servlet has been initialized (Fix for wocommunity#642)
  reformatted source
  Replaced erxservletadaptor.jar by its source file ERXServletAdaptor.java
  * removed unnecessary imports * removed unnecessary casts * suppressed warning about potential null pointer exception
  Merged additional documentation and minor refactorings, courtesy of Miguel Arroz: http://sourceforge.net/p/wonder/code/11827/tree//branches/Wonder_2_0_0_WebObjects_5_4_Branch/Wonder/Frameworks/Core/ERExtensions/Sources/er/extensions/eof/ERXSQLQueryWithBindingsUtilities.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants