| I’ve found when using maven, in eclipse (doesn’t appear to happen in production, but the fix isn’t harmful either), that one must do something in Application.java like: @Override public void installPatches() { super.installPatches(); // component classes ERXPatcher.setClassForName(Main.class, Main.class.getSimpleName()); _NSUtilities.registerPackage(Main.class.getPackage().getName()); // action classes ERXPatcher.setClassForName(DirectAction.class, DirectAction.class.getSimpleName()); _NSUtilities.registerPackage(DirectAction.class.getPackage().getName()); } Otherwise, the components aren’t found properly. Also direct actions. And for the session class /** * Determines the WOSession class to instantiate. * * @see com.webobjects.appserver.WOApplication#_sessionClass() */ @Override protected Class<? extends WOSession> _sessionClass() { return Session.class; } And for resource request handling @Override public void finishInitialization() { super.finishInitialization(); if (isDirectConnectEnabled()) { registerRequestHandler(new JarResourceRequestHandler(), "_wr_"); if (ERXApplication.isWO54()) { registerRequestHandler(new JarResourceRequestHandler(), "wr"); } } } That request handler class is special sauce only available on the list AFAIK, so here’s a copy |
JarResourceRequestHandler.java
Description: Binary data
On May 19, 2016, at 5:21 AM, Ress, David A <[email protected]> wrote: All, |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]
