So I updated to revision 1025 compiled and part of the log is shown as
attachment to2.txt. Note it is a Linux box. Then I packaged it
(removed test as depency) in the build file.
Now I fail to get anything on my browser for the following code...
Container container = new Container();
ServerList servers = container.getServers();
Protocol httpProtocol = Protocol.HTTP;
String ipAddress = "127.0.0.1";
int httpPort = 8184;
servers.add(httpProtocol, ipAddress, httpPort);
VirtualHost host = VirtualHost.createLocalHost(container.getContext());
host.attach("/something", new Restlet() {
protected void handleGet(Request request, Response response) {
response.setEntity("ManagedDelegatedRestletContainerFlavTwo says Hello
World!", MediaType.TEXT_PLAIN);
}
});
container.setDefaultHost(host);
container.start();
And the log doesn't show any exceptions etc. which is disturbing.
Cheers
Piyush
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:102:
warning: unmappable character for encoding UTF8
[javac] //Test n�1a : directory does not allow to GET its content
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:107:
warning: unmappable character for encoding UTF8
[javac] //Test n�1a : directory allows to GET its content
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:117:
warning: unmappable character for encoding UTF8
[javac] //Test n�2a : tests the HEAD method
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:121:
warning: unmappable character for encoding UTF8
[javac] //Test n�2b : try to GET a file that does not exist
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:125:
warning: unmappable character for encoding UTF8
[javac] //Test n�3a : try to put a new representation, but the
directory is by default read only
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:130:
warning: unmappable character for encoding UTF8
[javac] //Test n�3b : try to put a new representation, the
directory is no more read only
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:136:
warning: unmappable character for encoding UTF8
[javac] //Test n�4 : Try to get the representation of the new file
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:145:
warning: unmappable character for encoding UTF8
[javac] //Test n�5 : add a new representation of the same base file
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:154:
warning: unmappable character for encoding UTF8
[javac] //Test n�6a : delete a file
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:161:
warning: unmappable character for encoding UTF8
[javac] //Test n�6b : delete a file that does not exist
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:165:
warning: unmappable character for encoding UTF8
[javac] //Test n�6c : delete a directory
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:169:
warning: unmappable character for encoding UTF8
[javac] //Test n�7a : put one representation of the base file (in
french language)
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:174:
warning: unmappable character for encoding UTF8
[javac] //Test n�7b : put another representation of the base file
(in french language) but the extensions are mixed
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:186:
warning: unmappable character for encoding UTF8
[javac] //Test n�7c : delete the file representation of the
resources with no content negotiation
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:196:
warning: unmappable character for encoding UTF8
[javac] //Test n�7d : put another representation of the base file
(in french language) but the extensions are mixed
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:218:
warning: unmappable character for encoding UTF8
[javac] //Test n�7e : delete the file representation of the
resources with content negotiation
[javac] ^
[javac]
/development/prj/restlet/plugins/internal/com.noelios.restlet.test/src/com/noelios/restlet/test/DirectoryTestCase.java:227:
warning: unmappable character for encoding UTF8
[javac] //Test n�8 : should not delete the english representation
[javac] ^
[javac] 17 warnings