-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 6/27/14, 4:40 PM, Mark Eggers wrote:
> Paul,
> 
> On 6/27/2014 1:25 PM, Paul Taylor wrote:
>> On 27/06/2014 19:59, Christopher Schultz wrote:
>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
>>> 
>>> Paul,
>>> 
>>> On 6/27/14, 8:34 AM, Paul Taylor wrote:
>>>> I have a simple WAR based web application that uses lucene 
>>>> created indexes to provide search results in a xml format,
>>>> the location of the indexes (outside of the war) are referred
>>>> in the web.xml.
>>>> 
>>>> It works fine locally but I want to deploy it using Elastic 
>>>> Beanstalk within Amazon Webservices but for it to work I need
>>>>  the data files within the war, then I can allow EB to create
>>>>  new instances when load balancing/scaling and it will work 
>>>> because the data fields are included in the war at deployment
>>>>  time. I have checked that EB does unjar the war so that when
>>>> my code comes to use the files they will be real files not
>>>> still contained within the War.
>>>> 
>>>> With that in mind where could i put the data files so they
>>>> not considered  by tomcat as java classes , and supplementary
>>>>  question how do I modify my pom file to do this with maven
>>> What?
>>> 
>>> Java won't try to load random files as .class files.
>> I tried putting the files into the resources directory of my
>> maven project, when I deployed the resulting war it would start
>> (did previously) and opening the war found the files were added
>> under WEB-INF/classes, that is what I meant. So I need to put
>> them somewhere else.
> 
> 
> It sounds like you're not building these within the deployed 
> application, but adding them at build time.
> 
> Why can't your application read the files from WEB-INF/classes
> with getResourceAsStream?

I think the issue is that Lucene reads a bunch of files to manage its
index, and there is not (currently) an implementation that can ready
them out of a ZIP archive.

So I think Paul needs to expand the assets to the disk and then use
the Lucene classes that do understand the disk.

I know you can use a RDBMS to back a Lucene index, so I'm surprised
there isn't anything (that I could see on my quick review) to support
loading from a ZIP resource.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTsbY6AAoJEBzwKT+lPKRY9s4QALkeQaIIcY0OYbFWROIn0dLf
XY6/vkIuoOgAb7oImcudHQ1/bNVgVSpK9czFXmx04nHCiunfn4FGLHYgQ1SBO8N/
b5AgGGOC6/IrNGsLz0B6VtwRUh+slD/3Rg9NN+vSVLzwPJxsDjsUspGVr8bg4zSJ
qg2Xz6MDWU41sbO1N1F/ZeGVLKeG+1/DgV6B/CVrJsj3Wg/L5J1e6EoxsNB95A4i
FNVJHgNXEJG/o16AmIqt2JTc46y4EzaT0cqN9Xd2X6ItZbnT9q+4nwKB2IsZd/J+
mirySTQhm2RHtt0aIv3lUEGxThTzXTm+UdwMbHdB37xY1ZsylSNuygnvYAb2iVNS
Ny2JT3+n5HRih1KngGM2+LcopRCuZEApWhujDPg9CGmRXF5B4D8iL0Sg4wSu28Os
UdQ8RPx6YcVish3k9LZLMOwVUvsXiETYq/LbeiSCJh7Pz8FILQHVTk4WjHwVB0FU
AhenfUtJ5OmBu7W0kAPD+6UqqK7xjdhslqkDp+d8QJagjwZ8KQvYDrucQHd4u3n0
RNzicmn/ziAf6yJ90zrsiMlQAzkNuZQNs71xVijkzCU7Rux27T9zx3j3IHnmcJ/r
ccs6eSskQ8DC7sN7nwVpKUugE1Hs2qjo3srqyAFBEtpgwGJ5EJNKQB/1RHdPARyd
cx2WfYCwUS+KDWXvvAtI
=0ubc
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to