Hi, Thank you for your quick reply. I was really confused about the structure and useage of XmlRpcServlet before. After some more reading and digging in the source code I now understand how the Servlet API calls init etc.
> An NPE at line 120 means, that the "server" variable is null. However, > that can only be the case, if > a) The method init(ServletConfig) wasn't successfully invoked before > doPost. > This would mean, that the servlet engine violates the Servlet API, > which > I doubt. > b) You have overriden the methods init(ServletConfig) > or newXmlRpcServer(ServletConfig) in an invalid manner, that prevents > the > variable from being initialized. > It is up to you to determine, which one is the case. Well, if it is not a) then it must be b)... However, I've only overriden the method newXmlRpcHandlerMapping() which you can verify in my 2nd post. So, I added some breakpoints to XmlRpcServlet to verify that init(ServletConfig) was called prior - execution never stopped at the breakpoint. So, instead I used the regular XmlRpcServlet (not my TestServlet that extends it) to eliminate b) for sure and added breakpoints to init, newXmlRpcServer, new XmlRpcHandlerMapping and doPost. Execution only stops at the "server.execute(pRequest, pResponse)" in the doPost method! The init method doesn't seem to be invoked at all. Any ideas or should I talk to the Jetty folks? >> However, the server instance variable is an XmlRpcServletServer not a >> generic WebServer. > Forget the WebServer. It isn't related to the XmlRpcServletServer. I meant a generic web server (Tomcat, Jetty whatever) and looking at the class hierchy I see that there are no dependencies on org.xmlrpc.server.webserver.WebServer. >> I need to use the following XMLRPC features: >> 1. PropertyHandlerMapping >> 2. Proxy-based, i.e. ProperyHandlerMapping with >> addHandler(TestRPC.class.getName(), TestRPCImpl.class); >> 3. Extension enabled >> 4. Optional content length enabled >I still can't see any problems. Great. I knew you had it all under control :) Jimisola -- View this message in context: http://www.nabble.com/How-to-setup-and-configure-a-Servlet-solution-programmatically-tf2300489.html#a6397394 Sent from the Apache Xml-RPC - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]