Hi, This question might have been asked and answered. If so, please excuse. I have been using Restlet-1.1-SNAPSHOT and the following piece of Code on the Server Servlet:
protected Component createComponent() { Component component = null; // Look for the Component XML configuration file. final String configPath = getServletContext().getRealPath( "/WEB-INF/restlet.xml"); final File configFile = new File(configPath); ..... throws a NullPointerException when the web app is deployed in a non-exploded mode. The exception is: 19:01:16 ERROR - org.apache.catalina.core.ApplicationContext.log(675) | StandardWrapper.Throwable java.lang.NullPointerException at java.io.File.(Unknown Source) at com.noelios.restlet.ext.servlet.ServerServlet.createComponent(ServerServlet.java:372) at com.noelios.restlet.ext.servlet.ServerServlet.getComponent(ServerServlet.java:636) at com.noelios.restlet.ext.servlet.ServerServlet.init(ServerServlet.java:715) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:13 I see that 1.1RC1 has the following though: @SuppressWarnings("unchecked") protected Component createComponent() { Component component = null; // Look for the Component XML configuration file. ServletWarClient client = new ServletWarClient(new Context(), getServletContext()); Response response = client.get("war:///WEB-INF/restlet.xml"); if (response.getStatus().isSuccess() && response.isEntityAvailable()) { component = new Component(response.getEntity()); } if (component == null) { final String configPath = getServletContext().getRealPath( "/WEB-INF/restlet.xml"); if (configPath != null) { final File configFile = new File(configPath); if (configFile.exists()) { component = new Component(LocalReference .createFileReference(configPath)); } } } Has RC1 fixed the solution mentioned. I apologize for not trying the rc1.1 yet. Will try to get to the same today. Just curious if the same has been addressed? Thanks, Sanjay _________________________________________________________________ Be the filmmaker you always wanted to be—learn how to burn a DVD with Windows®. http://clk.atdmt.com/MRT/go/108588797/direct/01/