For your delectation and delight:
http://nxg.me.uk/temp/qsac-standalone-r471.jar
http://nxg.me.uk/temp/quaestor-lib-r466.jar (which the qsac HEAD now
requires)
The quaestorlib jar has seen substantial reworking to make persistence
more sensible (and so that qsac now has less to do and get wrong).
The persistence is now more consistent (it wasn't actually
inconsistent before, but had too many features, so was effectively
overcomplicated, so it felt inconsistent).
Kona: I believe this fixes the too-persistent problem you were having,
and that the problem you had is now represented in the quaestor tests
-- can you check, though.
The reconstructing-uris issue is still marked as open <http://code.google.com/p/skua/issues/detail?id=6
> -- that's fixed, now, isn't it (I remember you said you were going
to have a last try at getting the virtual server working, and vaguely
remember you mentioning that it was OK now).
Tony: these use the 'random claim number' stuff that I added as a fix,
so they should work for you. I'll make another iteration release
shortly.
I'm working on getting simple authentication support into quaestorlib
(HTTP digest authentication), and I've got the hard bit done, I
think. I'll work on that next. Would it be a dreadful thing if that
worked only in the standalone version of the server and not the .war
version (this bit isn't quite common to both of them, so it'd have to
be slightly reimplemented)?
See yez,
Norman
--
Norman Gray : http://nxg.me.uk
Dept Physics and Astronomy, University of Leicester
> The quaestorlib jar has seen substantial reworking to make persistence
> more sensible (and so that qsac now has less to do and get wrong).
> The persistence is now more consistent (it wasn't actually
> inconsistent before, but had too many features, so was effectively
> overcomplicated, so it felt inconsistent).
And the true mark of the improvement? There's now less code, less
functionality and less documentation!
On 2009 May 6, at 10:33, Linde, A.E. wrote:
Ah, all wonderfully consistent, though
> qsac-standalone-0.3.jar
Point release
> qsac-standalone-20081103.jar
Iteration release
> qsac-standalone-r471.jar
Under-the-counter subversion snapshot.
Perhaps a little more Planning is in order -- after all the point of
agile iterations is that the under-the-counter releases shouldn't be
necessary. Sorry: I'm just a Bad Person.
See you,
On 2009 May 6, at 16:58, Linde, A.E. wrote:
> Just tried this out and it did not pick up the existing SACs. Is
> this because of the new release or has the feature got lost?
Ah, it probably wouldn't pick up SACs produced by an earlier version,
since the metadata that I save in order to resurrect them has
changed. I haven't been worrying too much about backward compatibility.
It _should_ be that if you create and populate a SAC, and don't delete
it, then that SAC will survive server restarts without further
action. Is that not happening? It's slightly tricky to include tests
for this persistence in the (generally stateless) regression tests, so
I'm actually testing for various proxies for this, and so it's quite
possible I'm failing to test the actual functionality.
See you,
Lovely - the persistent-persistence problem is gone, and the
reconstructing-uris issue is fixed too (and I have marked it
as such in google code).
I've tested using the standalone version; I haven't yet tested in
tomcat, but will do so today.
K.
--
Kona Andrews k...@roe.ac.uk
AstroGrid Project http://www.astrogrid.org
IfA, Royal Observatory, Blackford Hill, Edinburgh EH9 3HJ
Are you running this under Windows? Norman, is it possible that the
qsac is trying to write its persistent data to a directory that
doesn't exist on Windows, or summat?
> Are you running this under Windows? Norman, is it possible that the
> qsac is trying to write its persistent data to a directory that
> doesn't exist on Windows, or summat?
I've managed to get back to this now. I've reproduced it now.
It's odd. All the relevant functionality seems to be tested in bits,
but not all together....
A fix shouldn't be hard; coming soon.
On 2009 May 11, at 11:59, Linde, A.E. wrote:
> I'm on a Mac, same as Norman. But it all worked okay in the 0.3
> release. And it worked the first time I ran it. Well, it didn't pick
> up the SACs but when I'd created the SAC, it picked up the contents
> of that SAC, albeit with the identifiers for each claim being
> unreadable characters rather than the actual values. But these were
> not saved back into wherever they are saved. Next time I ran qsac,
> not only did it not pick up the previously saved SAC but when I
> added that SAC, the container was empty.
I think I've improved my tests to the point where I believe this is
working again. I didn't reproduce specifically the problem you were
having with the garbled claim URLs, but I managed to find a couple of
things that were amiss.
See <http://nxg.me.uk/temp/qsac-standalone-r474.jar> for the
standalone QSAC, and <http://nxg.me.uk/temp/quaestor-lib-r473.jar> for
the Quaestor snapshot which is now required to build it.
All the best,
On 2009 May 14, at 16:38, Norman Gray wrote:
> See <http://nxg.me.uk/temp/qsac-standalone-r474.jar> for the
> standalone QSAC, and <http://nxg.me.uk/temp/quaestor-lib-r473.jar> for
> the Quaestor snapshot which is now required to build it.
I should mention that you should clear out the persistence directory
and start adding claims from scratch -- I've changed the bookkeeping
information maintained in the persistence directory.
See you,
On 2009 May 14, at 17:09, Linde, A.E. wrote:
> Where is that directory, Norman?
It's set by the java persistence-directory property, which should be
settable when you start the server
% java -Dpersistence-directory=/path/to/directory -jar qsac-standalone-
r474.jar
The default is 'qsac-persistence' which will be relative to the
directory you're in when you give the above command.
On 2009 May 17, at 20:20, Linde, A.E. wrote:
> Started new quaestor (after deleting whole persistence directory),
> created new SAC and added two claims to it. Killed the jar file and
> restarted it and it said there were no SACs available.
Grrr: I seem to be making quite a meal of this. Yup -- something else
is wrong, and I'm a bit puzzle about exactly what.
More soon...
On 2009 May 17, at 20:20, Linde, A.E. wrote:
> Started new quaestor (after deleting whole persistence directory),
> created new SAC and added two claims to it. Killed the jar file and
> restarted it and it said there were no SACs available.
This time, perhaps....
The standalone server is at <http://nxg.me.uk/temp/qsac-standalone-r476.jar
>, and the quaestor-lib required to build it from source is at <http://nxg.me.uk/temp/quaestor-lib-r480.jar
>
Lessons learned:
* Tomcat is somewhat keener on caching than seems strictly helpful.
Ahem.
* Make sure that the tests fail before they work!
I have highish hopes for this one. Do your worst!
See you,