jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gandhirajan.Natara...@igate.com
Subject RE: Regarding Webdav issue :(
Date Wed, 14 May 2008 13:22:05 GMT

Thanks for your suggestion. Will try out the same with the latest
version and get back to you. And I jus want to confirm whether the below
code through which I am adding the tiff file to repository is right?

Session session = null;

        InitialContext ctx = new InitialContext();

        Repository repository = (Repository) ctx

        System.out.println("jackrabbit repository found!"
                + repository);

        Credentials cred = new SimpleCredentials("user",
                new char[] { 'p', 'w', 'd' });

        session = repository.login(cred);

        System.out.println("Login Successful!"
                + session.getUserID());
        File file = new File(
        MimeTable mt = MimeTable.getDefaultTable();
        String mimeType = mt.getContentTypeFor(file

        System.out.println("MIME Type - " + mimeType);
        if (mimeType == null)
            mimeType = "application/octet-stream";

        Node root = session.getRootNode();
        Node tiffNode = root.addNode("HHProcess",

        Node fileNode = tiffNode.addNode(file.getName(),
        Node resNode = fileNode.addNode("jcr:content",
        resNode.setProperty("jcr:mimeType", mimeType);
                new FileInputStream(file));
        Calendar lastModified = Calendar.getInstance();


Once again thanks for your help.

Thanks & Regards,
Gandhi Rajan.N

| iSIGHT Development Team | iGATE Global Solutions| T: +91-80-4104 1312|
M: +91 9886834626 | gandhirajan.natarajan@igate.com |
| 158-162 & 165-170 EPIP Phase II Whitefield Bangalore - 560 066 India |
www.igate.com |

-----Original Message-----
From: Angela Schreiber [mailto:anchela@day.com] 
Sent: Wednesday, May 14, 2008 6:25 PM
To: users@jackrabbit.apache.org
Subject: Re: Regarding Webdav issue :(

hi gandhirajan

first of all: please post your questions to
users@jackrabbit.apache.org. thanks in advance.

> Actually I tried out commenting "DirListingExportHandler" as you said.

> Also did the basic checking's as you said. But still I couldn't figure

> out the problem L In fact I tried using the "config.xml" of jlibrary
> still getting the same problem. Still the server console shows "Result

> for IOHandler (DirListing Export): OK" I am attaching u the cofig.xml 
> for your reference.

the jlibrary_config.xml seems to be old version of jackrabbits
config.xml (without the apache licence header).

i was referring to a more recent version of the config.xml
version 1.3 or 1.4 of the jackrabbit-webapp project, where
it is possible to configure the IOHandlers to be used
directly in the configuration.

probably i don't really understand what kind of setup
you have. can you please download the most recent release
of the apache jackrabbit webapp and test if you experience
your problem with the DirListingExportHandler?

with jlibrary i can't help you.

> And I din understand how to proceed the last step you mentioned in the

> previous mail.( in order to provide feedback to the list, it would be 
> cool if you had time to step through the IOHandler processing and find

> out, why DirListingExportHandler wants to be responsible for an
> node. this should not be the case.)

hmmm... what i meant: if you have time to step through
the code.... that would maybe help...

iGATE is Ranked No. 3 in DQ-IDC best IT employer survey and Ranked No.6 
by Business Today-Mercer Human Resource Consulting-TNS  in a cross industry survey of Best
Companies to work for in India
Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended
for use only by the individual 
or entity to whom it is addressed and may contain information that is privileged, confidential,
or exempt from disclosure under 
applicable law. If you are not the intended recipient of this EMAIL immediately notify the
sender at iGATE or mailadmin@igate.com 
and delete this EMAIL including any attachments

View raw message