Re: [railo] POIFSFileSystem class clash with POI

122 views
Skip to first unread message

Denny

unread,
May 18, 2013, 4:19:18 PM5/18/13
to ra...@googlegroups.com
On 5/16/13 3:58 AM, Caroline Espley-Jones wrote:
...
> My main question is: what would be affected, if anything, if I was to
> delete the tm-extractors jar on my servers?

I'm not 100% certain, but IIRC from a recent discussion here, that
library is used for Lucene document searching.

So theoretically, as long as you're not having cfsearch index the
contents of PDFs and whatnot, you could just remove it-- but as always,
one should have test coverage of things so one is less likely to be
surprised, and so as to feel more confident when making modifications.
(Seems like more work initially but it pays for itself in short order.)

:Denny

--
Railo Technologies: getrailo.com Professional Open Source
Skype: valliantster (505)510.1336 de...@getrailo.com
GnuPG-FP: DDEB 16E1 EF43 DCFD 0AEE 5CD0 964B B7B0 1C22 CB62

Caroline Espley-Jones

unread,
May 29, 2013, 6:03:20 AM5/29/13
to ra...@googlegroups.com
Hi Denny,
Thanks for answering. I figured deleting the file wouldn't really solve much because when there's an update release, the file will most likely be re-added and I'd be back to square one.
This might be an issue that needs to be solved in the future on the official Railo side of things. I found a number of people having the same issue after the upgrade.

I fixed it using Mark Mandel's Javaloader to specify which jar folder I wanted the cfc to find. Works fine now.
Thanks again!
Caroline 

Igal @ getRailo.org

unread,
May 29, 2013, 11:41:58 AM5/29/13
to ra...@googlegroups.com
in Railo you have a 3rd parameter for creating a Java object, which specifies a list (csv) of JAR files to look at.

so if you place your jars in a folder named "lib" for example, you can do the following:

    classpath = directoryList( "lib", false, "path", "*.jar" ).toList();
    javaObject = createObject( 'java', className, classpath );

where className is the full qualified name of the class.

of course if you only need that "classpath" once you can inline it like so:

    javaObject = createObject( 'java', className, directoryList( "lib", false, "path", "*.jar" ).toList() );


Igal
--
Did you find this reply useful? Help the Railo community and add it to the Railo Server wiki at https://github.com/getrailo/railo/wiki
 
 
If you don't have time, add a request to the Railo Server wiki to-do page at https://github.com/getrailo/railo/wiki/Todo
---
You received this message because you are subscribed to the Google Groups "Railo" group.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
Igal Sapir
Railo Core Developer
http://getRailo.org/

Bart B

unread,
Aug 20, 2013, 4:33:40 PM8/20/13
to ra...@googlegroups.com, caroline.e...@lovehoney.co.uk
Hi Caroline,

I'm having exact the same problem. I also looked at the Javaloader, but am not sure how to proceed.
Did you alter the POiUtitlity.cfc? Can you bij any chance provide me with your additions?

thanks very much!
Bart

Reply all
Reply to author
Forward
0 new messages