After battling various strange things with latest Restlet milestone
(without OSGi support incorporated), I tried Restlet snapshot and wow...
I need no more Engine.setInstance() hack... and Component actually calls
Application.createRoot(). (For some strange reason, it didn't, and left
my Restlet server in a "blank" state. I have to update my restlet app
bundle on every launch to make it work)
Latest snapshot is working fine.
(plus, thanks for mentioning me in the Changelog) ^)^
No workarounds needed now, except...
Why ext.fileupload requires 'javax.servlet' and 'javax.servlet.http' (in
OSGi manifest)? There has to be a good reason for this, because in my
experience it works fine without (i.e. just using the built-in Restlet
HTTP server component)
If it's not always required then should be marked as
resolution:=optional in MANIFEST.MF (or maybe other way). Thanks.
--
Best regards,
Hendy Irawan