System.out.println("XMLRPCServer:");
try
{
_server = new WebServer(PowerPakConfig.XMLRPC_PORT, InetAddress.getByName(PowerPakConfig.XMLRPC_HOST));
XmlRpcServer xmlServer = _server.getXmlRpcServer();
PropertyHandlerMapping phm = new PropertyHandlerMapping();
xmlServer.setHandlerMapping(phm);
int numServices = 0;
try
{
L2Properties p = new L2Properties("config/powerpak/xmlrpc.service");
for(Object s : p.keySet())
{
String service = p.getProperty(s.toString());
Class<?> clazz = Class.forName(service);
if(clazz != null)
{
numServices++;
phm.addHandler(s.toString(), clazz);
}
}
}
catch(Exception e)