jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astra123 <sandhya.jayachand...@tcs.com>
Subject Getting "filenotfound" exception in importing an xml file using JCR API
Date Fri, 24 Apr 2009 09:52:57 GMT

When im trying to import an xml file usinf JCR API following the code 


File inputFile = new File("view.xml");
            in = new FileInputStream(inputFile);
            session.importXML("/", in,
ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW);
            session.save();

Im getting file not found exception.

Where do i need to place the XML file (with in IDE or? anywhere)
How to specify the path in this code.
Noraml xml format can be imported or do i need to need to change anything in
XML format.

Please help me.

Thanks,
-- 
View this message in context: http://www.nabble.com/Getting-%22filenotfound%22-exception-in-importing-an-xml-file-using-JCR-API-tp23213290p23213290.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message