Hello Christian,
by default, no WAR client connector was available, and it was quite
difficult to add such behaviour.
We've decided to change this and to add automatically a WAR client on
the Component (the default one, or the one you provide yourself). This
fix is available in the svn repository and will be available in the
snapshot delivered tomorrow ([1]).
This delivery will also contains some other changes :
- the ability to add a component via an XML configuration file (see
[2]) called "restlet.xml" and located under the "WEB-INF" directory.
- the ability to take automatically into account the context path of
the Servlet application, that is to say, a new parameter lets the system
add automatically (or not) the context path at the beginning of the uri
pattern of all "attach" instructions.
best regards,
Thierry Boileau
[1] http://www.restlet.org/downloads
[2] http://www.restlet.org/documentation/1.1/api/org/restlet/Component.html
Hi,
I would like to publish files from a special folder within my web applications
WAR file. After installing the Restlet web application within Tomcat this
folder gets expanded to "/{context-path}/meta". It contains some XML files
describing the RESTful web service like WADL files, XML schema files and so on.
What is the recommended way of achieving this using Restlet 1.1 M4? I think I
should use a Directory component but it seems the required LocalReference does
support absolute file names only. Using a WAR URL wasn't not successful; but I
found some message "WARNUNG: No available client connector supports the
required protocols: 'WAR' . Please add the JAR of a matching connector to your
classpath." in the log file, so there might be missing something I don't know.
Thanks
Christian