Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » XML-RPC problem with jetty9
icon5.gif  XML-RPC problem with jetty9 [message #1008638] Wed, 13 February 2013 06:37 Go to next message
Nasser Alshlwan is currently offline Nasser Alshlwan
Messages: 2
Registered: February 2013
Junior Member
Welcome

i have servlet and web.xml (show below) and i use jetty container to run it . but when i run jetty server dont read my project.

how can i solve this problem ?



servlet is ExampleService.java

//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() );
}
}


and the web.xml file in attahement

The final application like this in jetty:
/WEB-INF
web.xml
classes/
example/ExampleService.class
lib/
xmlrpc.jar
i wait to help queckly please . thanks

[Updated on: Sun, 17 February 2013 00:05]

Report message to a moderator

Re: XML-RPC problem with jetty9 [message #1013258 is a reply to message #1008638] Sat, 23 February 2013 01:16 Go to previous message
Nasser Alshlwan is currently offline Nasser Alshlwan
Messages: 2
Registered: February 2013
Junior Member
when i start jetty server i get this error

013-02-23 08:56:15.122:INFO:oejsh.ContextHandler:main: started o.e.j.s.h.ContextHandler@1001b77{/javadoc,file:/C:/Users/Nasser/jetty-distribution-9.0.0.RC0/javadoc,AVAILABLE}
2013-02-23 08:56:15.122:INFO:oejd.DeploymentManager:main: Deployable added: C:\Users\Nasser\jetty-distribution-9.0.0.RC0\webapps\redstone
2013-02-23 08:56:15.122:WARN:oejd.DeploymentManager:main: Unable to reach node goal: started
java.lang.NoClassDefFoundError: javax/servlet/HttpConstraintElement
at org.eclipse.jetty.deploy.providers.WebAppProvider.createContextHandler(WebAppProvider.java:298)
at org.eclipse.jetty.deploy.App.getContextHandler(App.java:100)
at org.eclipse.jetty.deploy.bindings.StandardDeployer.processBinding(StandardDeployer.java:36)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:186)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:495)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:146)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:175)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:64)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:600)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:528)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:391)
at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:313)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:145)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:557)
at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:232)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:108)
at org.eclipse.jetty.server.Server.start(Server.java:346)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:90)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58)
at org.eclipse.jetty.server.Server.doStart(Server.java:294)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1233)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:453)
Previous Topic:How can get the parameter from newWizards extension point?
Next Topic:How to make ejb project in eclipse
Goto Forum:
  


Current Time: Wed Aug 27 19:16:50 EDT 2014

Powered by FUDForum. Page generated in 0.02581 seconds