views:

10

answers:

0

Hello Everybody,

I am making a server connection from my plugin using XML-RPC but it is not working from the plugin.When i use the class in a normal Java Application and run it as a normal Java Application, it works fine and makes the connection to the server. But when i compile my plugin and get a new instance and click on a button to make the connection, everything works until it reaches the line before the class that makes the connection and all other lines of the code don't execute including the class that makes the connection.

The class looks like:

publc class ServerCon{

publc ServerCon{

XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); try { config.setServerURL(new URL("http://localhost:8008/optel/servlet/Service")); } catch (MalformedURLException e) { e.printStackTrace(); }

XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);

... //other code here ...

result = (Object[]) client.execute(this.methodKeyOnServer,this.arguments);

... //other code here ...

} }

Do i have to include certain libraries in the plugin libraries. I have imported all the necessary XML-RPC libraries in the build path. Do i have to do something special?

It cannot make the server connection when am running the application as a plugin.

Thanks for all your help.

regards, Eddy.