Skip to main content

XML-RPC problem with jetty 9

No replies
nasr25
Offline
Joined: 2013-02-13
Points: 0

Welcome

i have servlet file and web.xml but when i run server dont read it ...

My servlet :

//package example;

import java.util.Random;
import java.util.HashMap;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import redstone.xmlrpc.XmlRpcServlet;

public class ExampleService extends XmlRpcServlet
{
public void init( ServletConfig servletConfig ) throws ServletException
{
super.init( servletConfig );

getXmlRpcServer().addInvocationHandler( "SimpleDatabase", new HashMap() );
getXmlRpcServer().addInvocationHandler( "RandomNumberGenerator", new Random() );
}
}

web.xml file and snapshot from error in attachement

The final application like this in jetty:
/WEB-INF
web.xml
classes/
example/ExampleService.class
lib/
xmlrpc.jar

AttachmentSize
web.txt707 bytes
wrong.jpg156.57 KB