AccessControlException reading XML-RPC client

Hi,
I developed an Applet, which runs nicely using the Appletviewer. When I try to run the Applet from a server I get the mentioned AccessControlException. I (self) signed the jar file of my Applet, but still the same Exception. It breaks when I try to read data from an XML-RPC client, which the whole world can read.
What do I need to do?
  java.security.AccessControlException: access denied (java.net.SocketPermission foo.bar.org:443 connect,resolve)
     at java.security.AccessControlContext.checkPermission(Unknown Source)
     at java.security.AccessController.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkConnect(Unknown Source)
     at sun.net.www.http.HttpClient.openServer(Unknown Source)
     at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
     at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
     at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
     at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
     at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
     at redstone.xmlrpc.XmlRpcClient.beginCall(Unknown Source)
     at redstone.xmlrpc.XmlRpcClient.invoke(Unknown Source)
        at org.bar.MyEmsreader.EmsReader.readEms(EmsReader.java:81)
     at org.bar.MyModel.readEms(MyModel.java:76)
     at org.bar.MyModel.<init>(MyModel.java:65)
     at org.bar.MyApplet.init(MyApplet.java:63)
     at sun.applet.AppletPanel.run(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)Abel

After some researched I signed my jar file, and changed my java.policy file. I added the following lines to my java.policy file:
grant CodeBase "http://123.45.67.89/myapplet/mypage.html/" {
     // Allows all SocketPermissions on the  network
     permission java.net.SocketPermission "*.bar.org:1-", "accept,connect,listen,resolve";
};But still the same error:
java.security.AccessControlException: access denied (java.net.SocketPermission foo.bar.org:443 connect,resolve)Can you tell me what I have forgotten?

Similar Messages

  • How to develope a XML-RPC client with PL/SQL

    Anyone know how to develop a XML-RPC client with PL/SQL?
    I've oracle 8i.
    Have you some example of code?
    Thanks
    Paolo

    So, you actually want to create the physical directory using JAVA?
    Then see:
    http://www.oracle-base.com/articles/8i/shell-commands-from-plsql.php

  • Provider com.sun.xml.rpc.client.ServiceFactoryImpl not found

    I'm working on a Java Aplication and when I run the Application with Jdeveloper 11 I get this error
    javax.xml.rpc.ServiceException: Provider com.sun.xml.rpc.client.ServiceFactoryImpl not found
    When I run the Application with Jdeveloper 10.1.3 and it's works fine.
    What is the cause?
    thanks

    You may wish to compare the jar files referenced in both versions of JDeveloper, I did a quick Google search and found the following page which lists the .jar files that contain this class:
    http://javacio.us/search?q=com%2Fsun%2Fxml%2Frpc%2Fclient%2FServiceFactoryImpl+more%3Ajar_files&inline=true
    Hope this helps,
    Sean

  • Java.lang.ClassNotFoundException: com.sun.xml.rpc.client.ServiceFactoryImpl

    Hi Forum:
    i want to explain you my problem i created a webservice with JDeveloper 10.1.3, and run perfectly but when i want to run it in another IDE i copied the codes to a another IDE and run perfectly in a simple java project in my different IDE but when i putted the code in a web application in another web server differente to the oracle i got this error message
    vax.xml.rpc.ServiceException: java.lang.ClassNotFoundException: com.sun.xml.rpc.client.ServiceFactoryImpl ------------------------- Loader Info ------------------------- ClassLoader name:
    i don�t know what�s happening and is so strange because i make one simple java project in eclipse and i copied the codes and works fine, but in a web application i can�t run it.
    I also founded it the jar to this class com.sun.xml.rpc.client.ServiceFactoryImpl
    but doesn�t work
    Can somebody help me, please?.. i really need it..
    thnks
    joshua

    It usually means that a JAR in which the class file resides is not included in the web-app or is not on the classpath. Had the same problem with the last Eclipse/WebLogic project where JAR files, in which class files resided on which other class files were dependent, were missing.
    Ronald

  • Question about building xml-rpc client in swing

    Hi all,
    I'm going to build swing client for simple xml-rpc server, but I've little experience in swing.
    My application should create kind of XmlRpcClient object. It was no problem in console application, there was one client object and that's all. Now in swing I've no idea how to do it when I have more than one frame. Is it ok to create client object in base frame and then pass its reference to other frames in constructor? Maybe there is another/better way to do this?
    Thanks

    First, Dreamweaver is much more than a glorified FTP client! Dreamweaver is a Web site authoring and management application. That is the program you should use to build your HTML, not Fireworks.
    Fireworks is a Web layout/design and graphics production application. Fireworks can export HTML or HTML and CSS, but that export ability is intended to create mockups and prototypes, not live sites. The code Fireworks creates is...well...awful. You need to learn how to write HTML from scratch, not let a graphics program write it for you.
    The single .png file is also not going to work for you. The page you link to has several separate images. You need to create slices on your Fireworks document and export them as individual images, which you then reference in the HTML.
    Here are a couple of good tutorials for beginners:
    http://www.sitepoint.com/article/html-css-beginners-guide/
    http://net.tutsplus.com/tutorials/html-css-techniques/design-and-code-your-first-website-i n-easy-to-understand-steps/
    This tutorial is on the general theory of slicing. As such, it's helpful: http://www.slicingguide.com/
    In Fireworks, you use the slicing tool (looks like a green rectangle), to draw slices over the areas you want to export as individual images. These green rectangles appear in the Web layer. You can set the export properties of each slice separately. When you export, you can export all your images, or just the images from selected slices. And I really haven't said anything, so start with the help files, then post back with specific qustions.
    As to your 403 error problem, it's something with the configuration of the server, it has nothing to do with Fireworks or Dreamweaver. Read these articles:
    http://www.checkupdown.com/status/E403.html
    http://en.wikipedia.org/wiki/HTTP_403

  • Javax.xml.rpc.soap.SOAPFaultException: JAXRPC.TIE.01

    Hi,
    I have a wsdl file from which i generated stubs and ties. I wrote my own interface and implementation class and depoyed it as web service. Now instead of using stubs generated from the deployed service wsdl, I am tring to use the client stubs that i generated using the existing wsdl file. But it is throwing an error
    javax.xml.rpc.soap.SOAPFaultException: JAXRPC.TIE.01: caught exception while han
    dling request: unrecognized operation: {http://www.telstra.com/WSAccount.wsdl}WS
    AccGetAccountRequest
    at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.ja
    va:385)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:224
    at getAccount.WSAccountPortType_Stub.WSAccGetAccount(WSAccountPortType_S
    tub.java:475)
    at getAccount.WSAccGetAccountClient.main(WSAccGetAccountClient.java:14)
    However, if i use interfaces and implementation classes, generated from existing wsdl instead of writing on my own, to deploy the service, the service is getting deployed perfectly but while invoking it throws the following error:
    java.rmi.ServerException: JAXRPC.JAXRPCSERVLET.30: Internal server error (JAXRPC
    .JAXRPCSERVLET.43: failed to instantiate service implementor for port "WSAccGetA
    ccount")
    at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.ja
    va:372)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:224
    at getAccount.WSAccountPortType_Stub.WSAccGetAccount(WSAccountPortType_S
    tub.java:475)
    at getAccount.WSAccGetAccountClient.main(WSAccGetAccountClient.java:14)
    Please help.
    Thanks,
    Vivek

    try checking if you have the right privileges to send a message or a SOAP request to the target location.

  • JAX-RPC client access a JAX-WS services

    Hello all,
    There is a little problem I had with webservices and googling for a solution has not help so far.
    I am accessing a JAX-WS webservice from a J2SE 1.4.2 JAX-RPC client application and getting a NoSuchMethodError error from one of the stubs at runtime. The method call is rather a HelloWorld concept but it has not been possible.
    This are the step I took (I am using netbeans 6.0).
    1. I downloaded the JAX-RPC plugin on netbeans
    2. Download the stubs using the wsdl url. I am using the netbeans wizard for this process.
    3. Write my code for get a handle to the endpoint. Using the ServiceFactory.loadClass().
    4. Call the method on the
    Can anyone please help me.

    To make things a little more clearer, this is a post of the error gotten at runtime...
            java.lang.NoSuchMethodError: java.util.Collections.emptyList()Ljava/util/List;
            at com.sun.xml.messaging.saaj.soap.MessageImpl.<clinit>(MessageImpl.java:755)
            at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:47)
            at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMessageContext.java:137)
            at com.sun.xml.rpc.client.StreamingSenderState.<init>(StreamingSenderState.java:30)
            at com.sun.xml.rpc.client.StubBase._start(StubBase.java:92)
            at mck.practise.oracle.plsql.PlsqlService_Stub.sayHello(PlsqlService_Stub.java:54)
            at mck.practise.oracle.plsql.HelloWorld.sayRPCHello(HelloWorld.java:34)
            at mck.practise.oracle.plsql.HelloWorld.main(HelloWorld.java:22)The suprising thing is that if I change the application's java platform from JDK 1.4 to Java 5 using the netbeans projects property window, everything works fine.
    Can anyone still suggest on this.
    Regards,

  • Code alteration - Basic problem or XML-RPC?

    I'm trying to alter the following client/server code to create an XML-RPC such that when the client offers an argument eg ?John? then the result of the method call returned to the client would be ?John*John? rather than the result of the equation currently shown.
    I'm not sure if it's just my lack of knowledge or something in the basic data types in XML-RPC
    Any help much appreciated.
    Client
    [ code ]
    import java.util.*;
    import org.apache.xmlrpc.*;
    //simple XML-RPC client that makes an XML-RPC request to a Server
    public class XMLRPCClient {
    public static void main(String args[]) {
    try {
    // Specify the server
    XmlRpcClient server = new XmlRpcClient("http://localhost/RPC2");
    // Create request
    Vector params = new Vector();
    params.addElement(new Integer(17));
    params.addElement(new Integer(13));
    // Make a request and print the result
    Object result = server.execute("sample.sum", params);
    int sum = ((Integer ) result).intValue();
    System.out.println("Response from server: " + sum);
    } catch (Exception exception) {
    System.err.println("JavaClient: " + exception);
    [ /code ]
    Server
    [ code ]
    import org.apache.xmlrpc.*;
    //XMLRPCServer is a simple XML-RPC server
    public class XMLRPCServer {
    //Start up the XMLRPC server and register a handler.
    public Integer sum(int x, int y) {
    return new Integer(x+y);
    public static void main (String [] args) {
    try {
    System.out.println("Attempting to start XML-RPC Server...");
    WebServer server = new WebServer(80);
    server.addHandler("sample", new XMLRPCServer());
    server.start();
    System.out.println("Started successfully.");
    System.out.println("Accepting requests. (Halt program to stop.)");
    } catch (Exception exception) {
    System.err.println("JavaServer: " + exception);
    [ /code ]

    cause of the error:
    After some extensive research on the web, it is found that that you are using an UTF-8 encoded file with byte-order mark (BOM). Java doesn't handle BOMs on UTF-8 files properly, making the three header bytes appear as being part of the document. UTF-8 files with BOMs are commonly generated by tools such as Window's Notepad. This is a known bug in Java, but it still needs fixing after almost 8 years...
    There are some hexadecimal character at the begining of the file, which is giving error"content not allowed in prolog". No solution is provided for this till now.
    Example: suppose your file start with <?xml version="1.0" encoding="utf-8"?>. you will see this in a editor. But if you open this file with any hexadecimal editor you will find some junk character in the start of the file.that is causing the problem
    solution:
    1) convert your file into a string and then read the file from the forst character that in my case the first character will be "<".so the junk character will not be there in the string and then again convert it into a file.
    2) some people are able to solve this problem by changing the "utf-8" to "utf-16". remember only in some case. some times this problem also exits in "utf-16" file.
    3) some are able to solve this problem by changing the LANG to US.en.
    4) If the first three bytes of the file have hexadecimal values EF BB BF then the file contains a BOM.so you can also handle by your own.
    5)Download a hexadecimal editor and remove the BOM.
    6) In case you are not able to think furthe then please to more research in internet may be you find some other solution to this problem. But These solution are some type of hack not exactly a solution.

  • JAX-RPC client generation with existing packages

    I am creating web services and need to create a client for them for distribution to other projects. Normally I would say to pull it into NB and create a WS client from the wsdl but I have a problem with the data model it creates also.
    1. Not all developers are using NB.
    2. They presently use AXIS on some projects and these projects provide a client to use for development and I will get push back if I don't also.
    3. I want them to be able to use the enterprise data models directly instead of having to develop a mapper to convert from the client packages to the enterprise packages.
    Point 3 is important but not as important as getting the client jar developed.
    So what I need is a way to build a client from a wsdl using the data models for the enterprise, avoiding object mapping if I can. If I can't have that I need to be able to generate client code and be able to go in and extend it to provide a object mapper to the enterprise objects from the generated objects.
    Thanks

    To make things a little more clearer, this is a post of the error gotten at runtime...
            java.lang.NoSuchMethodError: java.util.Collections.emptyList()Ljava/util/List;
            at com.sun.xml.messaging.saaj.soap.MessageImpl.<clinit>(MessageImpl.java:755)
            at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:47)
            at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMessageContext.java:137)
            at com.sun.xml.rpc.client.StreamingSenderState.<init>(StreamingSenderState.java:30)
            at com.sun.xml.rpc.client.StubBase._start(StubBase.java:92)
            at mck.practise.oracle.plsql.PlsqlService_Stub.sayHello(PlsqlService_Stub.java:54)
            at mck.practise.oracle.plsql.HelloWorld.sayRPCHello(HelloWorld.java:34)
            at mck.practise.oracle.plsql.HelloWorld.main(HelloWorld.java:22)The suprising thing is that if I change the application's java platform from JDK 1.4 to Java 5 using the netbeans projects property window, everything works fine.
    Can anyone still suggest on this.
    Regards,

  • JAX-RPC client with JDeveloper 12c

    Hello,
    It's the first time I use jax-rpc (I'm used to jax-ws) and looking for help.
    I need to create a client for a JAX-RPC web service using JDeveloper 12c.
    The customer provided to me a WSDL file (I don't have access to the webservice yet). In JDeveloper I created as usual a "Web Service Client and Proxy" providing that wsdl file, but I think the generated code is for a JAX-WS (since there are @WebMethod, @WebServiceClient and @WebService notations that I understood should not be present in JAX-RPC clients.
    Can anyone point me to some documentation about JAX-RPC client developing in JDeveloper 12?
    Thank you,
    Marco

    To make things a little more clearer, this is a post of the error gotten at runtime...
            java.lang.NoSuchMethodError: java.util.Collections.emptyList()Ljava/util/List;
            at com.sun.xml.messaging.saaj.soap.MessageImpl.<clinit>(MessageImpl.java:755)
            at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:47)
            at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMessageContext.java:137)
            at com.sun.xml.rpc.client.StreamingSenderState.<init>(StreamingSenderState.java:30)
            at com.sun.xml.rpc.client.StubBase._start(StubBase.java:92)
            at mck.practise.oracle.plsql.PlsqlService_Stub.sayHello(PlsqlService_Stub.java:54)
            at mck.practise.oracle.plsql.HelloWorld.sayRPCHello(HelloWorld.java:34)
            at mck.practise.oracle.plsql.HelloWorld.main(HelloWorld.java:22)The suprising thing is that if I change the application's java platform from JDK 1.4 to Java 5 using the netbeans projects property window, everything works fine.
    Can anyone still suggest on this.
    Regards,

  • XML-RPC in WLS 8.1

    Hello,
    Currently I am trying to write an application to accept XML-RPC communication
    in BEA WebLogic 8.1 from an XML RPC Client. But I am stuck with the implementation
    of Server module, which I am trying to do with Web Logic 8.1 Workshop. Is there
    any direct support of XML RPC (JAX_RPC) in WLS 8.1 other than basic HTTP-XML?
    I have implemented a stand alone Server and Client XML RPC communication using
    APACHE's(old helma) XML-RPC implementation and it is working fine. Now I am trying
    to do the same Server side functionalities in WLS.
    Suppose WLS 8.1 doesn't have any direct support for XML-RPC, Did you come across
    any method to use any other third party implementation (Eg. Apache) along with
    WLS8.1?
    It will be very very helpful, if you could guide me to sort out this messy situation.
    Thank you in advance.
    warm regards,
    Sankaran

    Hello,
    You might try your question in the workshop newsgroup:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.workshop
    No SOAP?
    Bruce
    SANKARAN wrote:
    >
    Hello,
    Currently I am trying to write an application to accept XML-RPC communication
    in BEA WebLogic 8.1 from an XML RPC Client. But I am stuck with the implementation
    of Server module, which I am trying to do with Web Logic 8.1 Workshop. Is there
    any direct support of XML RPC (JAX_RPC) in WLS 8.1 other than basic HTTP-XML?
    I have implemented a stand alone Server and Client XML RPC communication using
    APACHE's(old helma) XML-RPC implementation and it is working fine. Now I am trying
    to do the same Server side functionalities in WLS.
    Suppose WLS 8.1 doesn't have any direct support for XML-RPC, Did you come across
    any method to use any other third party implementation (Eg. Apache) along with
    WLS8.1?
    It will be very very helpful, if you could guide me to sort out this messy situation.
    Thank you in advance.
    warm regards,
    Sankaran

  • Returning XML to client from web service

    Hi,
    I am new to developing web services using JAX_RPC. I am trying to return a xml document to the client from the web service.
    My Server implementation is as follows:
    Interface:
    public interface OntoIF extends Remote
    public DataHandler ontoCompare (String targetUrl,String sourceUrl ) throws RemoteException;
    Implementaion:
    public class OntoImpl implements OntoIF
    public DataHandler ontoCompare (String targetUrl,String sourceUrl ) throws RemoteException
    DataHandler dataHandler = new DataHandler( new StreamSource( new File ("status.xml")), "text/xml");
    return dataHandler;
    Client Implementation:
    Stub stb = (Stub) (new OntoService_Impl().getOntoIFPort());
    stb._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,
         "http://localhost:8080/onto-service/onto");
    OntoIF onto = (OntoIF) stb;
    DataHandler retDHandler = onto.ontoCompare(targetOntoUrl, sourceOntoUrl);
    When I compile and run my client, it throws the following error -
    java.rmi.ServerException: JAXRPCSERVLET28: Missing port information
    at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.ja
    va:497)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:294
    at sstub.OntoIF_Stub.echoDataHandler(OntoIF_Stub.java:122)
    at sstub.OntoClient.main(OntoClient.java:63)
    Can you please let me know what I am doing wrong? I have no problems in sending a DataHandler but receiving the DataHandler from the web service throws errors.
    Thanks!

    Hi I'm having the same problem. I try to set up a Web Service using JAX_RPC. My WS should invoke a native Method implemented in C++. Did you got a solution for this issue? My Error Message is as follows:
    java.rmi.ServerException: JAXRPCSERVLET28: Missing port information
         at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:497)
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:294)
         at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:80)
         at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:489)
         at com.sun.xml.rpc.client.dii.CallInvocationHandler.doCall(CallInvocationHandler.java:122)
         at com.sun.xml.rpc.client.dii.CallInvocationHandler.invoke(CallInvocationHandler.java:86)
    at $Proxy0.getHello(Unknown Source)
         at com.neuhaus.test.ws.client.NativeInvokeClient.main(NativeInvokeClient.java:44)
    Exception in thread "main"
    greetings, JAN

  • XML RPC with LabVIEW

    Has anyone written VIs or similair to handle XML-RPC communciation over HTTP? I don't want to reinvent the wheel. Thanks!

    I'm starting a thread on NI Community to build a XML-RPC client for LabVIEW. Please contribute your feature requests and feedback there.
    http://decibel.ni.com/content/docs/DOC-13287
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Problems with XML-RPC

    Hi everybody.
    Sorry, I've got a french accent, then if you don't understand, dont' be worry ^^
    I try using the apache's xmpl-rpc package, and I have got some problems with the xml-rpc client.
    Here my source :
    public interface ICalculator {
         public int add(int i1, int i2);
         public int subtract(int i1, int i2);
    public class Calculator implements ICalculator {
         public int add(int i1, int i2) {
              return i1 + i2;
         public int subtract(int i1, int i2) {
              return i1 - i2;
    import org.apache.xmlrpc.server.PropertyHandlerMapping;
    import org.apache.xmlrpc.server.XmlRpcServer;
    import org.apache.xmlrpc.server.XmlRpcServerConfigImpl;
    import org.apache.xmlrpc.webserver.WebServer;
    public class Server {
    private static final int port = 8080;
    public static void main(String[] args) throws Exception {
    WebServer webServer = new WebServer(port);
    XmlRpcServer xmlRpcServer = webServer.getXmlRpcServer();
    PropertyHandlerMapping phm = new PropertyHandlerMapping();
    phm.addHandler(Calculator.class.getName(), Calculator.class);
    phm.addHandler(ICalculator.class.getName(), ICalculator.class);
    xmlRpcServer.setHandlerMapping(phm);
    XmlRpcServerConfigImpl serverConfig =
    (XmlRpcServerConfigImpl) xmlRpcServer.getConfig();
    serverConfig.setEnabledForExtensions(true);
    serverConfig.setContentLengthOptional(false);
    webServer.start();
    System.out.println("Serveur XML-RPC is ready");
    import org.apache.xmlrpc.client.XmlRpcClient;
    import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
    import org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory;
    import org.apache.xmlrpc.client.util.ClientFactory;
    public class Client {
    public static void main(String[] args) throws Exception {
    // create configuration
    XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
    config.setServerURL(new URL("http://127.0.0.1:8080/xmlrpc"));
    config.setEnabledForExtensions(true);
    config.setConnectionTimeout(60 * 1000);
    config.setReplyTimeout(60 * 1000);
    XmlRpcClient client = new XmlRpcClient();
    System.out.println("Connection");
    // use Commons HttpClient as transport
    client.setTransportFactory(
    new XmlRpcCommonsTransportFactory(client));
    // set configuration
    client.setConfig(config);
    ClientFactory factory = new ClientFactory(client);
    ICalculator calc = (ICalculator)factory.newInstance(ICalculator.class); //Problems here !!!
    System.out.println("Calculing");
    System.out.println("Result : " + calc.add(2, 3));
    And the error is:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpException
         at org.apache.xmlrpc.client.XmlRpcCommonsTransportFactory.getTransport(XmlRpcCommonsTransportFactory.java:31)
         at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
         at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
         at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
         at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
         at org.apache.xmlrpc.client.util.ClientFactory$1.invoke(ClientFactory.java:104)
         at $Proxy0.add(Unknown Source)
         at projet.Client.main(Client.java:45)
    Can you help please ?

    The problem is not related to your code, but it seems that there is a missing jar which contains the class org.apache.commons.httpclient.HttpException or perhaps the jar isn't included in your CLASSPATH.
    The jar seems to be commons-httpclient.jar you can found at http://jakarta.apache.org/commons/httpclient

  • SUN 7410 - CLI - RAW XML-RPC DOCUMENTATION / HELP / API USAGE GUIDE

    hi,
    I saw the RAW section in the CLI of Sun Storage 7410 console. There a lot of parameters/functions are available.
    But was not able to find any kind of documentation , as to how can i use them either from within the CLI or from outside using XML-RPC.
    If anyone has the documentation or any knowledge for the above , then please inform me.

    Do you have any XML-RPC server side API for Sun 7410 which has to be invoked from the client side.
    I used the apache provided xml-rpc client jar in java but did not get the server side api to invoke.
    Could please provide the link or doc location. I appriciate your help.
    Thanks & Regds,
    Taranisen

Maybe you are looking for

  • I bought life on earth iBook and I can't download it? I have enough space

    I would like to know why I cannot download it I paid for it weeks ago and it still hasn't downloaded it just comes up with the loading sign and doesn't do anything and it won't let me select download because it already says downloading but it has Bee

  • Adobe is exporting frozen clips

    I posted about this the other day and thought I'd figured it out. Every time I try to export this Offset animation to QT in full quality, parts of the video are still. It's not a matter of the file being too big, it's not even animating during the re

  • Java comliper error

    Im running Weblogic 5.1 and Java jdk1.2.2_007 My app compiles and runs the first jsp page then when it tryes to load and compile the next i get a server error.Generated java file: E:\weblogic\myserver\public_html\escorecard\_tmp_war\jsp_servlet\_dfss

  • Using htmldb_goSubmit()

    The builtin function htmldb_goSubmit is defined as function htmldb_goSubmit(r){       if(htmldb_ch){           if (!htmldb_ch_message || htmldb_ch_message == null){             htmldb_ch_message='Are you sure you want to leave this page without savin

  • Formatting tags in xml data set used for spry region

    I am trying to put <p>,,,</p> tags in my xml data set but they cause the field to not load. For example I would like to create an xml file as follows: <blog>       <blogentry>           <blogdate>Jan 2009</blogdate>           <blogtitle>January Blog<