In development, I use Jetlet as servlet container.
Master project webpayments can be started in development mode because jetties are appropriate Now I want to start indexing a derivative project, assuming that when requested, I know that it overrides the It seems that using something like Unfortunately, the devod of GWT which I use is based on JT6, where resource protocol is unavailable. I have enhanced the Thanks for providing WebAppContext . WebAppContext #getResource () method It is possible, however, that we can be used in this project Six library automatically perform IO operations on wabapp directory. For example, reading files without using the ServletContext #getRealPath ("/") , and then using the ServletContext #getResource () method problem At the top of the file some virtual files may be resolved at the lower level of the system, but it does not appear to be supported in JDK 1.6, any suggestions? ResourceCollection is enough: resource class itself, and with its own GWT Jetty Launcher , and Resourcebase to set the defaultServlet Thanks for the little trick for Through Code> Reflection, I was able to serve the webpad with two directories simultaneously.
Protects zero doStart () throws exception {setClassLoader (new launcher webpackel loader ()); Super.doStart (); Service holder holder = getServletHandler (). GetServlet ("default"); Servlet servlet = holder. Gateservelet (); Field field = servlet.getClass (). GetDeclaredField ("_ _ _" resource); Field.setAccessible (true); Field.set (servlet, combined resource base); }
Comments
Post a Comment