From: Anupama of Greenstone Team
Date: Tue Nov 18 12:19:44 2008
Subject: [greenstone-users] Problem white GLi Client Login
In reply to: 4105c9810811162241r3c8b9dafkedb3b95b0b701379-mail-gmail-com

Hi Amin,

1. > what did you ment by
> >I see you're using an older version of GS3, since some source code
> updates in the last >months meant that gliserver4gs3.pl is no longer
> used by the current GS3 code.
> i Downlaoded the GS3.03 from the greenstone site
> what do you guyes use now ?
> and give me the linke in the tracs so i could see it for my self
> is it all java ?
> which one is better to use for now until its compleate?

The latest version of Greenstone 3 needs lots of changes to catch up and
work well again, because our focus in the recent weeks was all on
Greenstone 2 for its release.

Therefore, for now, use the version of Greenstone 3 you have. In a
little while, GS3 will be sufficiently updated for you to work with the
latest from SVN. The SVN url (from TRAC) for GS3 is
svn co http://svn.greenstone.org/greenstone3/trunk greenstone3

2. About your language translation questions, I've forwarded them to the
person who knows a lot about the language interface for GS and GLI.
Though the developer in question is out of the country at the moment, I
am hopeful they may respond when they find the time.


3. > how ever the error had changed since whit out the javahome varible
> tests previosly it was like bellow
Probably this is because the error output code has changed.

The old error message you encountered said:
> Content-type:text/plain ERROR: Java failed -- do you have the Java
> run-time installed? JAVA\_HOME environment variable not set. Might not
> be able to find Java unless in PATH
Therefore, will you try again after adding Java's bin library to your path.

For instance my PATH starts with:
/opt/jdk1.5.0\_10/bin:/opt/jdk1.5.0\_10/bin/javac:/path/to/apache-ant-1.6.5:
/path/to/fedora3/server/bin:/path/to/fedora3/client/bin:/opt/jdk1.5.0\_10/jre:<more>

As you see in the above, I have the PATH to the JRE at the end. Try that
first. Otherwise (and I hope this is not necessary), you can try to add
your JDK's bin folder and javac to the PATH, similar to how my PATH
contains them both.

Tell me how you get on,
Anupama


Amin Hedjazi wrote:
> thanx Anupama and Quan , i realy appreciate you guyes answering my
> questions .
> but this all dident work again
> i downloaded the latest files from the trac site and worked whit them ,
> first whit only the downloaded files and then inserted the javahome home
> and done all that my 3 varibles in the cfg file are like bellow :
>
> gsdl3srchome "C:\\Program Files\\Greenstone3"
> gsdlhome "C:\\Program Files\\Greenstone3\\gs2build"
> javahome "C:\\Program Files\\Java\\jdk1.6.0"
>
> and i uncomented the two lines in the .pm file (line 287 and 292)
> but im steel geting the error
>
> Content-type:text/plain ERROR: Java failed -- do you have the Java
> run-time installed? GSDL3SRCHOME: C:\\Program Files\\Greenstone3
> GSDLHOME: C:\\Program Files\\Greenstone3\\gs2build GSDLOS: windows PATH:
> ;C:\\Program Files\\Greenstone3\\gs2build\\bin\\script;C:\\Program
> Files\\Greenstone3\\gs2build\\bin\\windows;C:\\Program
> Files\\Greenstone3\\gs2build\\bin\\windows\\perl\\bin (cmd=check-installation)
>
> how ever the error had changed since whit out the javahome varible tests
> previosly it was like bellow
>
> Content-type:text/plain ERROR: Java failed -- do you have the Java
> run-time installed? JAVA\_HOME environment variable not set. Might not be
> able to find Java unless in PATH (;C:\\Program
> Files\\Greenstone3\\gs2build\\bin\\script;C:\\Program
> Files\\Greenstone3\\gs2build\\bin\\windows;C:\\Program
> Files\\Greenstone3\\gs2build\\bin\\windows\\perl\\bin) GSDL3SRCHOME:
> C:\\Program Files\\Greenstone3 GSDLHOME: C:\\Program
> Files\\Greenstone3\\gs2build GSDLOS: windows PATH: ;C:\\Program
> Files\\Greenstone3\\gs2build\\bin\\script;C:\\Program
> Files\\Greenstone3\\gs2build\\bin\\windows;C:\\Program
> Files\\Greenstone3\\gs2build\\bin\\windows\\perl\\bin (cmd=check-installation)
>
>
> the JAVA\_HOME instance is in my enviromental varibles and i get it in
> the command line whit echo %JAVA\_HOME%
>
> and Anupama what did you ment by
> >I see you're using an older version of GS3, since some source code
> updates in the last >months meant that gliserver4gs3.pl is no longer
> used by the current GS3 code.
> i Downlaoded the GS3.03 from the greenstone site
> what do you guyes use now ?
> and give me the linke in the tracs so i could see it for my self
> is it all java ?
> which one is better to use for now until its compleate?
>
> and somthing else to , i wanted to localize greenstone for persian language
> ive been working on that for some time now and transelated the gli and
> the online demo intefaces to Persian but previosly your gli interface
> dident worked whit right to left languages
> so ive changed some gui codes of the gli and made some component
> orientation corections for right to left languages to take affect when
> in a language whit and espetial line in its "dictionary\_fa.properties"
> and so on ...
>
> does the gli support right to left languages now ?
> is there a Persian Language traslation ?
> if not can i some how submite my work or can i some how contribute?
>
> On Mon, Nov 17, 2008 at 2:28 AM, Anupama of Greenstone Team
> <greenstone\_team@cs.waikato.ac.nz
> <mailto:greenstone\[email protected]>> wrote:
>
> Hi Amin,
>
> I see you're using an older version of GS3, since some source code
> updates in the last months meant that gliserver4gs3.pl is no longer
> used by the current GS3 code.
>
> If you are indeed using Greenstone 3.03, instead of updating all of
> your GS3 code:
>
> 1) There may be a problem with the way JAVA\_HOME is set on the
> server machine. If you have access to the server machine, do you see
> that JAVA\_HOME is set correctly when doing
> echo $JAVA\_HOME
> on Linux, or
> echo %JAVA\_HOME%
> on Windows? You need to do this in an entirely fresh x-term, without
> running any extra scripts that set special environment variables for
> you.
>
> You wrote that
>
> > ive tested the perl code in command line and it works out fine
> telling
> > me "java found" and "installation is ok" when i execute some
> thing like
> > this :
> >
> > Perl gliserver4gs3.pl check-installation
> Could this have something to do with JAVA\_HOME being set by a
> start-up script (like bash.rc or a bat script) that's run on opening
> an x-terminal/dos-prompt? That could explain how JAVA\_HOME is then
> undefined when running GLI.
>
>
> 2) You may want to try the following that worked for someone else
> previously:
> > 1. Follow all the steps on the wiki page (from a previous email, I
> > think you have done this step already).
>
> > 2. Make back-up copies of your gsdlCGI4gs3.pm and gliserver4gs3.pl
>
> > 3. Download the slightly modified versions of these two files from
> > SVN:
> >
> http://trac.greenstone.org/browser/greenstone3/trunk/web/WEB-INF/cgi/gsdlCGI4gs3.pm
> >
> http://trac.greenstone.org/browser/greenstone3/trunk/web/WEB-INF/cgi/gliserver4gs3.pl
>
> > 4. Maybe you want to go and check that the new gliserver4gs3.pl
> still > works as before by pointing your browser to
> >
> http://yourhost:yourport/greenstone3/cgi-bin/gliserver4gs3.pl?cmd=check-installation
>
> Finally, if it still gives you trouble about JAVA\_HOME not being
> set, you can also try the following.
> 5. Additionally, make a backup copy of the file
> <your GS3 installation folder>/web/WEB-INF/cgi/gsdl3site.cfg
> 6. Download the updated file
> http://trac.greenstone.org/browser/greenstone3/trunk/web/WEB-INF/cgi/gsdl3site.cfg
> and put this file into your GS3 installation folder's
> web/WEB-INF/cgi folder.
> 7. In a text editor, open up the just downloaded gsdl3site.cfg file
> and uncomment the following line by removing the hash in front of it:
> javahome /full/path/to/j2sdk1.4/or/higher
> Then edit the above line to set the path to your JAVA\_HOME.
> 8. In a text editor, open up the updated gsdlCGI4gs3.pm you
> downloaded in step 3 above.
> 9. Look for the following lines (line 287 and 292) and uncomment
> them by removing the # sign in front of them:
> my $javahome = $self->get\_java\_home();
> $ENV{'JAVA\_HOME'} = $javahome;
> 10. Now try pointing your browser to
> http://yourhost:yourport/greenstone3/cgi-bin/gliserver4gs3.pl?cmd=check-installation
> Does this help fix the missing JAVA\_HOME problem?
>
> Regards,
> Anupama
>
>
> Amin Hedjazi wrote:
>
> Hello its me again
> i got some question on the Client\_gli Login
> i am using GS3
> first i read the link below and done compleately what it said
>
>
> http://wiki.greenstone.org/wiki/index.php/Remote\_Greenstone3
>
> and it was very use full thx Quan
> but in the part were i get to test my installation whit this :
>
>
> http://localhost:8080/greenstone3/cgi-bin/gliserver4gs3.pl?cmd=check-installation
>
> i get this error :
>
> Content-type:text/plain ERROR: Java failed -- do you have the
> Java run-time installed? JAVA\_HOME environment variable not set.
> Might not be able to find Java unless in PATH (;c:\\Program
> Files\\greenstone3\\gs2build\\bin\\script;c:\\Program
> Files\\greenstone3\\gs2build\\bin\\windows;c:\\Program
> Files\\greenstone3\\gs2build\\bin\\windows\\perl\\bin) GSDL3SRCHOME:
> c:\\Program Files\\greenstone3 GSDLHOME: c:\\Program
> Files\\greenstone3\\gs2build GSDLOS: windows PATH: ;c:\\Program
> Files\\greenstone3\\gs2build\\bin\\script;c:\\Program
> Files\\greenstone3\\gs2build\\bin\\windows;c:\\Program
> Files\\greenstone3\\gs2build\\bin\\windows\\perl\\bin
> (cmd=check-installation)
>
> ive tested the perl code in command line and it works out fine
> telling me "java found" and "installation is ok" when i execute
> some thing like this :
>
> Perl gliserver4gs3.pl check-installation
>
> ill start the client\_gli4gs3.bat and go on until it askes me for
> the user name and password but when entering my pass it gives
> and error telling me this user does not exist (i entere the same
> password which a coulde Authenthicate my selfe in the online
> interface
> , and i made a new user whit the privliges but no chance to log
> in via the GLI !!)
> hear is the exact error i get :
>
> An error has occurred on the remote GreenStone server while
> performing this operation:Authentication failed:no account for
> user 'admin'.
>
> sombody help please
> and pardon the bad english please
>
>
> ------------------------------------------------------------------------
>
>
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
> greenstone-users mailing list
> [email protected]
> <mailto:[email protected]>
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>
>