i tested what you're describing with the following code fragment:
Session sA = r.login(new SimpleCredentials("johndoe",
"".toCharArray()), "A");
Session sB = r.login(new SimpleCredentials("johndoe",
"".toCharArray()), "B");
Node nA = sA.getRootNode().addNode("foo");
sA.save();
Workspace wB = sB.getWorkspace();
wB.copy("A", nA.getPath(), "/bar");
everything worked as expected.
are you sure you're logging in on the same Repository instance?
cheers
stefan
On Apr 8, 2005 9:51 PM, Felix R�thenbacher
<[EMAIL PROTECTED]> wrote:
> Hi
>
> as mentioned before, I get a PathNotfoundException
> when I try to copy a node from one workspace to
> another. Here is the programme excecution:
>
> 1. Open session sA with workspace wA
> 2. Create a new node nA in workspace wA
> 3. Call sA.save() (afterwards it reports no pending changes)
> 4. Open session sB with workspace wB
> 5. Call wB.copy(wA, nA, [dstPath])
> 6. A PathNotFoundException is thrown
>
> Funny thing is, that when I restart the repository
> instance after node creation, this procedure works.
>
> Thanks for sheding light on this
>
> - Felix
>