jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vikas bhatia" <vik...@gmail.com>
Subject create a new workspace using rmi
Date Mon, 15 May 2006 20:51:36 GMT
Can a new workspace be created using rmi?
====Client code
SimpleCredentials creds = new SimpleCredentials("admin",
                    "".toCharArray());
            Session session = repository.login(creds);
            WorkspaceImpl workspace = (WorkspaceImpl) session.getWorkspace
();
            workspace.createWorkspace("newWorkspace");
            session = repository.login(creds, "newWorkspace");
            Node root = session.getRootNode();

I get a
====
java.lang.ClassCastException:
org.apache.jackrabbit.rmi.client.ClientWorkspace
    at com.mantissa.cdirect.samples.FSImport.main(FSImport.java:56)

error on the client.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message