Re: [ginp-users] Setup Wizard fails with war v0.23 - configuration files
Brought to you by:
burchbri,
dougculnane
From: Justin <ju...@sq...> - 2006-03-19 17:13:27
|
GINP uses the little known and underutilized jdk1.4 preferences api of the user running the web server. It checks for a preference that has a path to the config file. These files are located in the webserver user's home directory under .java on unix and in the registry on windows. If a pref is there it uses it, otherwise it starts the wizard. I really wanted the thing to work out of the box without having to think which is like most php apps and totally unlike most java apps which IMHO are way to difficult to setup. Most of the PHP stuff works with File I/O to detect a file in the app directory. The servlet spec is not very accomodative to file i/o. I was looking for a good crossplatform way to bootstrap the location of the config file and used the Prefs API. That's why it comes with all the dependencies. Anyway, I thought JDK 1.5 comes with xalan? On 3/19/06, Brian Burch <Br...@pi...> wrote: > On Sat, 18 Mar 2006 20:18:59 +0100, Doug Culnane wrote: > >Dear Brian, > >Sorry you are getting frustrated with the set up. > > Doug, thanks very much for the quick response. > > No, not frustrated. I was just running out of ideas and time. I wanted th= e system to work easily "out of the box" and was lulled by the home page in= to suspending my usual suspicious and cynical attitude to any new > software (including, by the way, anything I've written myself). > > You'll see I've talked about xalan in the other post, so please take that= as read. I wonder whether the missing xalan was my only problem, but there= were several different symptoms and my knowledge of ginp was > minimal. > > >I have only ever used the ginp with a public collection first but maybe = there > >is a problem if there is password protection on all the collections. > > > >The set up wizard in the latest stable version builds a config file and = sets > >its location. In the development version this has been changed to be a = known > >location which will maybe make this more reliable. Unfortunately I have= not > >finished programming this. It would however let you configure the ginp > >manually, so I will try to tidy this up and publish a new version. > > > >I have not got round to working on the ginp for a while but if there are= users > >out their with problems then this is encouraging. Let me or the list kn= ow if > >you need help, or have any comments, they will help me WTFM ;-). > > I copied the sample ginp.xml from ../../test to the default home/ginp/con= fig directory and edited the contents. I wasn't sure how much to take out, = so I left it intact and added another collection for my own photo > directory. I left the <users> list as null, guessing that was how a publi= c collection would be recognised. > > After I successfully ran the configuration wizard, I went back to /home/g= inp/config/ginp.xml. My own collection was there, but all the sample collec= tions had been removed. Clearly this was the "live" copy. Clearly a > public collection is one with an empty users list. > > Do you think I needed to put that sample ginp.xml in the config directror= y to get the wizard to run successfully, or was that a red herring? > > I also tried uploading the same file from my browser, but couldn't tell w= hether it worked or not... would it have simply been written to my selected= config path? > > How does the wizard know whether it needs to run or stay quiet? In other = words, is the wizard looking at anything else - properties, files, servlet = parameters, etc? > > I realise I could read the code to find out, but it would take quite an e= ffort for me and I guess you know the answers without having to do any rese= arch. Just getting the Q&A on the mailing list will hopefully help the next > person avoid wasting your time. > > > Regards, > > Brian > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > ginp-users mailing list > gin...@li... > https://lists.sourceforge.net/lists/listinfo/ginp-users > > |