Hi Stefan, The WAR pseudo-protocol is currently only supported when deploying your Restlet in a Servlet container.
Your solution looks good. Sometimes, people leverage the CLAP pseudo protocol which is based on the classpath resources which can work consistently in both Servlet and standalone environments. Best regards, Jerome Louvel -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -----Message d'origine----- De : Stefan Ukena [mailto:] Envoyé : jeudi 4 février 2010 13:42 À : [email protected] Objet : [SOLVED] Problem with missing connector for WAR running gwt example as stand alone Java application Hi everyone, I found a solution that works for me. It doesn't add support for WARs but at least it enables me to run the example in stand alone mode. In the org.restlet.example.gwt.server.TestServerApplication class change the line router.attach("/", new Directory(getContext(), "war:///")); to something like //router.attach("/", new Directory(getContext(), "file:///PATH/TO/YOUR/STATIC/FILES")); where "PATH/TO/YOUR/STATIC/FILES" should point to the directory where the TestGwtRestlet_2_0.html file is located (i.e. the war-directory of the project). Note the three slashes in the beginning. I haven't figured out if one can supply a relative path here. Maybe someone can comment on that. Best regards, Stefan ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24448 27 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2452472

