jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sushil Vegad <vsus...@serebrum.com>
Subject Re: Jackrabbit 1.4.1 PathNotFoundException
Date Thu, 05 Jun 2008 20:45:35 GMT

Hello Alex,
I have attached the  http://www.nabble.com/file/p17679143/repository.xml
repository.xml  file.

One more thing I tried is:


> for(Iterator<Node> itr = spaceFolder.getNodes(); itr.hasNext();) {
>     Node tempNode = itr.next();
>     System.out.println("Node name = " + tempNode.getName());
> }
> 
This too doesnt show the topic folder below the spaceFolder.

Regards,
Sushil


Alexander Klimetschek wrote:
> 
> Sounds weird. Could you post your repository.xml configuration?
> 
> Regards,
> Alex
> 
> On Thu, Jun 5, 2008 at 8:17 PM, Sushil Vegad <vsushil@serebrum.com> wrote:
>>
>> Hello,
>> Our web application uses custom nodes as follows: [nt:myFolder] >
>> nt:folder
>> and [nt:myFile] > nt:file
>>
>> We have a top level folder (called spaceFolder) which is a nt:myFolder
>> under
>> root; under spaceFolder we add other nodes as follows:
>> spaceFolder.addNode("topicName",nt:myFolder);
>> session.save();
>> session.logout();
>>
>> We retrieve the topic folder as:
>> Node root = session.getRootNode();
>> Node spaceFolder = root.getNode(spaceName);
>> Node topic = spaceFolder.getNode(topicName);
>>
>> If I shutdown the server and start it the next day:
>> 1. spaceFolder.getNode(topicName) throws PathNotFoundException.
>> spaceFolder
>> is found always, the topic folder is not found
>> 2. Also, spaceFolder.addNode(topicName) throws ItemExistsException
>>
>> If I restart the server immediately no exception is thrown. Also, if the
>> server is not restarted, no exception is thrown.
>>
>> On server startup, we create the repository and bind it:
>> InitialContext jndiContext = new InitialContext(props);
>> RepositoryConfig repoConfig = RepositoryConfig.create(repositoryConfig,
>> repoHome);
>> Repository repository = RepositoryImpl.create(repoConfig);
>> jndiContext.bind(repositoryName, repository);
>>
>> Can anyone please point out what could be going wrong?
>>
>> Thanks a lot for any help that you could offer.
>> Sushil
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Jackrabbit-1.4.1-PathNotFoundException-tp17676426p17676426.html
>> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Alexander Klimetschek
> alexander.klimetschek@day.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Jackrabbit-1.4.1-PathNotFoundException-tp17676426p17679143.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message