WOInject failure with WOMonitor
Steffan Westcott <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <CAMEBF6udDt335Ggz=Sx-fW7VMDgd+4cyB_1paNaJt852n1S5ug@mail.gmail.com> |
This question is probably best for Henrique, but I welcome any help on this. I am attempting to introduce WOInject to an existing large Wonder application. Launching the application locally in WoLips works perfectly, injection of some @Singletons works well. My problems begin when the application is launched with WOMonitor. I get the following exception trace : Caused by: java.lang.Error: Cannot initialize the application to take advantage of WOInject features. at com.woinject.WOInject.init(WOInject.java:89) at com.clicktravel.travelmanager2.app.Application.main(Application.java:23) ... 5 more Caused by: javassist.NotFoundException: com.webobjects.foundation._NSUtilities at javassist.ClassPool.get(ClassPool.java:450) at com.woinject.WOInject.init(WOInject.java:66) Googling for some answers turned up this message which is probably related to my issue : http://lists.apple.com/archives/webobjects-dev/2012/Jun/msg00242.html I do not quite understand the advice given in the message, so am unclear if I am doing something wrong. I am using 1.1-SNAPSHOT of WOInject. I am also using an AppRunner class equivalent (which does not extend ERXApplication) which calls WOInject.init with the classname of my real Application class (which does extend ERXApplication). I note there is a branch hotfix-classloading on WOInject. Should I be using this version instead? Is it correct to change the WOMonitor configuration to point at the AppRunner class instead of my real Application class? Any help would be gratefully received! Thanks, Steffan -- ------------------------------ Click Travel Ltd Taking business travel and expenses one step further http://www.clicktravel.com Winner of "Best Business Travel Management Company" at the Business Travel Awards (2012 & 2009) and the Travel Trade Gazette Awards (2011). We're also ranked 22nd in the 2012 Sunday Times Hiscox Tech Track 100. For all the latest Click news please visit our blog: http://clicktravel.com/blog Think: Do you really need to print this email? ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb