Hi All,
I have an issue with login, creating user, creating space and adding user
to group in xwiki.
We are using our own sso and implemented in xwiki. its working fine.
Now i want to create user and add the user to group through xml rpc client.
i m using a sample code.. before that i want to login as admin. when i try
to login as admin in my remote machine it throws this exception. I
implemented this xwiki in jboss 4.2.2GA server. The main thing i noticed is
the exception coming in this line mainly * "rpc.login(user, pass);"*
import java.net.MalformedURLException;
import org.apache.xmlrpc.XmlRpcException;
import org.xwiki.xmlrpc.XWikiXmlRpcClient;
public class XmlRpcLogin {
public static void main(String[] args) throws MalformedURLException{
//URL of the xwiki instance
String url="http://testisp.css.com:8081/xwiki/xmlrpc/confluence";
//Replace user & pass with desired xwiki username & password
String user="Admin";
String pass="admin";
//Perform Login & Authentication using above url address
try{
XWikiXmlRpcClient rpc = new XWikiXmlRpcClient(url);
rpc.login(user, pass);
}
catch(XmlRpcException e){
System.out.println("invalid username/password was specified or
communication problem");
}
}
}
Exception :
17:55:28,313 ERROR [STDERR] org.apache.xmlrpc.client.XmlRpcClientException:
Fail
ed to parse servers response: Expected methodResponse element, got
{http://www.w
3.org/1999/xhtml}html
I really not aware why this happening. i hv all jars and things properly
placed n same code worked well before 1 year. now its causing this problem.
Any help greatly appreciated.
Thanks in advance.
Regards,
Nithya.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Exception-while-login-creating-user-addin…
Sent from the XWiki- Dev mailing list archive at Nabble.com.