Re: XML-RPC problem with jetty9

Gombest Dark <[email protected]> Sun, 24 Feb 2013 12:41:16 -0800 (PST)
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
check class and=C2=A0package.=C2=A0you should be careful to check


________________________________
 From: nase25r <[email protected]>
To: [email protected]=20
Sent: Sunday, February 24, 2013 1:01 PM
Subject: [xml-rpc] XML-RPC problem with jetty9
=20

=C2=A0=20
Welcome=20

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 is:






ExampleService=20
ExampleService=20

streamMessages=20
1=20


contentType=20
text/xml; charset=3DISO-8859-1=20

1=20


ExampleService=20
/redstone=20




and the response from jetty server is:

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 n=
ode goal: started
java.lang.NoClassDefFoundError: javax/servlet/HttpConstraintElement
at org.eclipse.jetty.deploy.providers.WebAppProvider.createContextHandler(W=
ebAppProvider.java:298)
at org.eclipse.jetty.deploy.App.getContextHandler(App.java:100)
at org.eclipse.jetty.deploy.bindings.StandardDeployer.processBinding(Standa=
rdDeployer.java:36)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:186)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentMana=
ger.java:495)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java=
:146)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(Scannin=
gAppProvider.java:175)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(Scann=
ingAppProvider.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(AbstractLifeCyc=
le.java:69)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningA=
ppProvider.java:145)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCyc=
le.java:69)
at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentMa=
nager.java:557)
at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.jav=
a:232)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCyc=
le.java:69)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeC=
ycle.java:108)
at org.eclipse.jetty.server.Server.start(Server.java:346)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLif=
eCycle.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(AbstractLifeCyc=
le.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.jav=
a:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor=
Impl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:453)
at org.eclipse.jetty.start.Main.start(Main.java:595)
at org.eclipse.jetty.start.Main.main(Main.java:96)

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


=20

[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/xml-rpc/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected]=20
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/