Fwd: [greenstone-users] Ver 2.82 Remote GLI Login Error

From Anupama of Greenstone Team
DateThu Apr 22 16:13:51 2010
Subject Fwd: [greenstone-users] Ver 2.82 Remote GLI Login Error
In-Reply-To (w2v53f027731004210058hf934f964x6a567c7e0c6b1438-mail-gmail-com)
Hi Amos,

In your earlier e-mail to us (see below), you showed how you had set
Javahome on the server machine, in the Greenstone server's
cgi-bin/gsdlsite.cfg as follows:

>>> For #javahome /full/path/to/j2sdk1.4-or-higher I'd added the following:
>>> javahome "c:/program files/java/jre1.5.0_02"

Note that it says JRE 1.5. And this was on a machine where things worked.


The screen dump you just sent for the different machine you installed
2.83 on more recently, mentions a different version of Java:
c:program filesjavaj2re1.4.2_09

I don't know that this can cause the issues you mentioned, but it's
worth trying to find out whether it has had any impact.

There should be a JRE included in the 2.83 binary. It is in
<your-greenstone-installation>packagesjre

Perhaps you can try setting this as the value for the javahome property
in your gsdlsite.cfg and see if things respond better or worse.

You also wrote in an earlier e-mail:
>>>> The Java check ((gliserver.pl?cmd=check-installation) that
>>> you mention below) had been displaying "Installation OK!" at the
>>> bottom and showing no signs of the system failing to locate Java.

Could you tell me what version of Java and what path to Java the current
server machine you're working with is using now -- you can read these
values from the JAVA_HOME variable that is printed to the browser screen
upon doing the above.


I'm sorry it is so hard to work out what's going wrong. I don't have
access to your machine to fiddle with and have to go by the information
you give me and the results of tests you run. So far I'm unable to work
out why it gives "Java failed" messages when Java is being found.


I can think of some more suggestions for tests that you could try out,
if you have access to the remote Greenstone *server* machine.

1. On the remote Greenstone server machine, use a DOS prompt to go into
your Greenstone installation folder and run the following command on a
single line:

"C:Program FilesJavaj2re1.4.2_09binjava" -classpath
"E:Greenstone2binjavaGLIServer.jar"
org.greenstone.gatherer.remote.ZipCollectionConfigurations
"E:Greenstone2collectcollection-configurations-1270052814385.zip"
"E:Greenstone2collect" "amos" "all-collections-editor"

Note that you need to type the name of the zip file you currently have
(I used collection-configurations-1270052814385.zip of your screendump
which may or may not exist on your system anymore depending on whether
you deleted it).

2. Next try running the same command, but using the jre in your
Greenstone installation:

"E:Greenstone2packagesjrebinjava" -classpath
"E:Greenstone2binjavaGLIServer.jar"
org.greenstone.gatherer.remote.ZipCollectionConfigurations
"E:Greenstone2collectcollection-configurations-1270052814385.zip"
"E:Greenstone2collect" "amos" "all-collections-editor"

How does this work?

3. IMPORTANT: I note from your screendump that your Java is located on
your hard drive (C:) and your Greenstone2 is installed on a different
drive (E:). I have never tested installing Greenstone 2 on a different
drive and also not whether it can interact well with programs installed
elsewhere yet again. Perhaps this is something you can test out: try to
install Greenstone2 on the system hard drive?


Could you try the different suggestions mentioned in this e-mail out and
inform me of the results?

Thanks and regards,
Anupama


Amos Kujenga wrote:
> Dear Colleagues,
>
> Just checking if you received my message below that I sent on Good
> Friday eve. The problem remains unresolved.
>
> I decided to send the message straight to you since I never got any
> solution from the mailing list the last time.
>
> I've attached a screen dump of the error message to assist you
> understand the problem.
>
> Your assistance would be greatly appreciated.
>
> Thanks
>
> Amos
>
> On 3/31/10, Amos Kujenga <akujenga@gmail.com> wrote:
>> Dear Colleagues,
>>
>> I never got to solve the problem below. Unfortunately, I've just
>> bumped into exactly the same problem again. This time I'm 600 kms away
>> from home and am at one of the peer institutions involved in
>> Greenstone activities in Zimbabwe. I'm only here for today and am
>> helping them with a few GSDL issues. The problem has come up again
>> while I tried to install 2.83 on their Win 2003 server. I've even
>> tried to use the Remote Login feature while on the server but it gives
>> the same error. The GLI is working fine on the server.
>>
>> Your urgent assistance would be GREATLY appreciated.
>>
>> Regards
>>
>>
>> Amos
>> Zimbabwe
>>
>>
>> On 10/6/09, Amos Kujenga <akujenga@gmail.com> wrote:
>>> Hi Anupama,
>>>
>>> Thanks for your response.
>>>
>>> I posted the message below after facing the problem during a workshop
>>> in Mauritus. Funny enough, the problem on my laptop (running Vista
>>> Home Basic) just disappeared when I got back home and I'm not sure how
>>> and why. The Java check ((gliserver.pl?cmd=check-installation) that
>>> you mention below) had been displaying "Installation OK!" at the
>>> bottom and showing no signs of the system failing to locate Java.
>>>
>>> Note also that I'd already changed the first line in cgi-bin/gliserver.pl
>>> to:
>>> #!C:Greenstone2binwindowsperlbinperl.exe -w
>>> The above is step 5 under the "Server" section on
>>> http://wiki.greenstone.org/wiki/index.php/Remote_Greenstone
>>>
>>> For #javahome /full/path/to/j2sdk1.4-or-higher I'd added the following:
>>> javahome "c:/program files/java/jre1.5.0_02"
>>>
>>> I do not know if the problem is still persisting on the Windows 2003
>>> Server machine in question. I'm, therefore, kindly asking the guys in
>>> Mauritius to implement your suggestions and get back to the list with
>>> the results.
>>>
>>> Regards
>>>
>>>
>>> Amos
>>>
>>> On 10/6/09, Anupama of Greenstone Team <greenstone_team@cs.waikato.ac.nz>
>>> wrote:
>>>> Hi Amos,
>>>>
>>>> It looks like your Remote Greenstone installation is not finding Java.
>>>>
>>>> 1. What is the output of doing step 6 of
>>>> http://wiki.greenstone.org/wiki/index.php/Remote_Greenstone?
>>>> (gliserver.pl?cmd=check-installation)
>>>>
>>>> Does it look like Java is found? What does it print out for JAVA HOME?
>>>>
>>>>
>>>> 2. IF it does not seem to find your java, can you open the file
>>>> cgi-bin/gsdlsite.cfg and edit it in a texteditor:
>>>>
>>>> Near the bottom is the line
>>>> #javahome /full/path/to/j2sdk1.4-or-higher
>>>>
>>>> Remove the # from the front and set its value to the full path to your
>>>> Java installation.
>>>>
>>>> Try running step 6 of
>>>> http://wiki.greenstone.org/wiki/index.php/Remote_Greenstone again and
>>>> see if the JAVA_HOME value appears alright now. If it does work, then
>>>> try to see if the rest works.
>>>>
>>>>
>>>> 3. One more thing. Recently it came to our attention that there needs to
>>>> be a minor correction to the way the Greenstone 2.82 installer sets up
>>>> its gliserver.pl file. Could you make the following correction to your
>>>> file cgi-bin/gliserver.pl, since I see you are running it on Windows:
>>>>
>>>> Open cgi-bin/gliserver.pl in a text editor and change the first line to:
>>>> #!C:<fullpath oyourgreenstone>binwindowsperlbinperl -w
>>>>
>>>> Note the # at the start and the "bin" folder near the end.
>>>>
>>>> (Perhaps it should be:
>>>> #!C:<fullpath oyourgreenstone>binwindowsperlbinperl.exe -w
>>>> Try the above if the previous one did not work.)
>>>>
>>>>
>>>> Tell us if the problems persist. In particular, could you then send us
>>>> the output for step 1 above?
>>>>
>>>> Regards,
>>>> Anupama
>>>>
>>>>
>>>>
>>>>>> From: Amos Kujenga <akujenga@gmail.com>
>>>>>> To: "Discussion list for the Southern African Greenstone Support
>>>>>> Network."
>>>>>> <sagreenstone@lists.eifl.net>,
>>>>>> greenstone user list
>>>>>> <greenstone-users@list.scms.waikato.ac.nz>
>>>>>> Date: Fri, 11 Sep 2009 10:07:19 +0200
>>>>>> Subject: [greenstone-users] Ver 2.82 Remote GLI Login Error
>>>>>>
>>>>>> Dear All,
>>>>>>
>>>>>> I'm running Greenstone 2.82 on Windows Vista & also on Windows Server
>>>>>> 2003, using Apache as the webserver and running Java RE1.5.0_02.
>>>>>>
>>>>>> I've religiously followed the instructions on how to install Apache on
>>>>>> Windows as given on the page (
>>>>>> http://wiki.greenstone.org/wiki/index.php/Setting_up_an_Apache_Web_Server_for_Greenstone_2_Walkthrough
>>>>>>
>>>>>> ) & the Remote installation procedure as on
>>>>>> http://wiki.greenstone.org/wiki/index.php/Remote_Greenstone.
>>>>>>
>>>>>> However, when trying to login, I'm getting an error:
>>>>>>
>>>>>> "An error has occurred on the remote Greenstone Server while
>>>>>> performing this operation:
>>>>>> Java failed: java -classpath .../bin/java/GLIServer.jar" ......
>>>>>> org.greenstone.gatherer.remote.ZipCollectionConfigurations ..... "
>>>>>>
>>>>>> Upon searching the archives, I've noted that this is not a new problem
>>>>>> but, unfortunately I could not get any posting that seemed to give an
>>>>>> answer and so conclude the matter.
>>>>>>
>>>>>> Any help would be most appreciated.
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>>
>>>>>> Amos
>>>>>
>>>>> John B. Rose
>>>>> 1 Bis, Rue des Ch?tre-Sacs
>>>>> 92310 S?vres
>>>>> France
>>>>> Email: <john.rose1@free.fr>
>>>>> (in case of bounce then send to
>>>>> <johnrose@alumni.caltech.edu>)
>>>>>
>>>>
>>
>> ------------------------------------------------------------------------
>>