* Java Problems @ 2004-01-19 16:12 John Allgood 2004-01-19 17:59 ` Patrick Macdonald 0 siblings, 1 reply; 17+ messages in thread From: John Allgood @ 2004-01-19 16:12 UTC (permalink / raw) To: rhdb I am having a problem running admin tool. Here is the error I get. I have set my JAVA_HOME in /etc/profile. A error occured while attempting to load required JDBC classes. Please ensure that all of the postgresql JDBC classes (including org.postgresql.jdbc3.*) exist in you class path and are being seen by the Java Virtual Machine. Admin cannot run until this is fixed. I believe there might be a link or something that I need to correct. Thanks John Allgood - Sys Admin Enhanced Solutions Computing 770.535.5049 ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-19 16:12 Java Problems John Allgood @ 2004-01-19 17:59 ` Patrick Macdonald 2004-01-19 19:17 ` John Allgood 0 siblings, 1 reply; 17+ messages in thread From: Patrick Macdonald @ 2004-01-19 17:59 UTC (permalink / raw) To: John Allgood; +Cc: rhdb John Allgood wrote: > I am having a problem running admin tool. Here is the error I get. I > have set my JAVA_HOME in /etc/profile. > > A error occured while attempting to load required JDBC classes. > Please ensure that all of the postgresql JDBC classes (including > org.postgresql.jdbc3.*) exist in you class path and are being seen by > the Java Virtual Machine. Admin cannot run until this is fixed. > > I believe there might be a link or something that I need to correct. The content of the message is probably correct... the jdbc driver (rh-postgresql3.jar) needs to be in the CLASSPATH. Cheers, Patrick ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-19 17:59 ` Patrick Macdonald @ 2004-01-19 19:17 ` John Allgood 2004-01-19 19:25 ` Patrick Macdonald 0 siblings, 1 reply; 17+ messages in thread From: John Allgood @ 2004-01-19 19:17 UTC (permalink / raw) To: Patrick Macdonald, rhdb Patrick Macdonald wrote: > John Allgood wrote: > >> I am having a problem running admin tool. Here is the error I get. I >> have set my JAVA_HOME in /etc/profile. >> >> A error occured while attempting to load required JDBC classes. >> Please ensure that all of the postgresql JDBC classes (including >> org.postgresql.jdbc3.*) exist in you class path and are being seen by >> the Java Virtual Machine. Admin cannot run until this is fixed. >> >> I believe there might be a link or something that I need to correct. > > > The content of the message is probably correct... the jdbc driver > (rh-postgresql3.jar) needs to be in the CLASSPATH. > > Cheers, > Patrick > > Where is the rh-postgresql3.jar file. I can't locate this on my system. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-19 19:17 ` John Allgood @ 2004-01-19 19:25 ` Patrick Macdonald 2004-01-19 20:17 ` John Allgood 0 siblings, 1 reply; 17+ messages in thread From: Patrick Macdonald @ 2004-01-19 19:25 UTC (permalink / raw) To: John Allgood; +Cc: rhdb John Allgood wrote: > Patrick Macdonald wrote: > >> John Allgood wrote: >> >>> I am having a problem running admin tool. Here is the error I get. I >>> have set my JAVA_HOME in /etc/profile. >>> >>> A error occured while attempting to load required JDBC classes. >>> Please ensure that all of the postgresql JDBC classes (including >>> org.postgresql.jdbc3.*) exist in you class path and are being seen by >>> the Java Virtual Machine. Admin cannot run until this is fixed. >>> >>> I believe there might be a link or something that I need to correct. >> >> >> >> The content of the message is probably correct... the jdbc driver >> (rh-postgresql3.jar) needs to be in the CLASSPATH. >> >> Cheers, >> Patrick >> >> > Where is the rh-postgresql3.jar file. I can't locate this on my system. The rh-postgresql-jdbc rpm installs the jar file in /usr/share/java. Cheers, Patrick ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-19 19:25 ` Patrick Macdonald @ 2004-01-19 20:17 ` John Allgood 2004-01-19 20:27 ` David Jee 0 siblings, 1 reply; 17+ messages in thread From: John Allgood @ 2004-01-19 20:17 UTC (permalink / raw) To: Patrick Macdonald, rhdb Patrick Macdonald wrote: > John Allgood wrote: > >> Patrick Macdonald wrote: >> >>> John Allgood wrote: >>> >>>> I am having a problem running admin tool. Here is the error I get. >>>> I have set my JAVA_HOME in /etc/profile. >>>> >>>> A error occured while attempting to load required JDBC classes. >>>> Please ensure that all of the postgresql JDBC classes (including >>>> org.postgresql.jdbc3.*) exist in you class path and are being seen >>>> by the Java Virtual Machine. Admin cannot run until this is fixed. >>>> >>>> I believe there might be a link or something that I need to correct. >>> >>> >>> >>> >>> The content of the message is probably correct... the jdbc driver >>> (rh-postgresql3.jar) needs to be in the CLASSPATH. >>> >>> Cheers, >>> Patrick >>> >>> >> Where is the rh-postgresql3.jar file. I can't locate this on my system. > > > The rh-postgresql-jdbc rpm installs the jar file in /usr/share/java. > > Cheers, > Patrick > > Here is the files in this directory. Is this the only files I need. db.jar libgcj-3.3.2.jar postgresql.jar Thanks ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-19 20:17 ` John Allgood @ 2004-01-19 20:27 ` David Jee 2004-01-19 21:17 ` John Allgood 0 siblings, 1 reply; 17+ messages in thread From: David Jee @ 2004-01-19 20:27 UTC (permalink / raw) To: John Allgood; +Cc: Patrick Macdonald, rhdb On Mon, 2004-01-19 at 14:47, John Allgood wrote: > Here is the files in this directory. Is this the only files I need. > > db.jar > libgcj-3.3.2.jar > postgresql.jar If you're using the rhdb packages for Fedora Core 1, then the JDBC driver will be called postgresql.jar. You should include this in your CLASSPATH. -David Jee ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-19 20:27 ` David Jee @ 2004-01-19 21:17 ` John Allgood 2004-01-19 21:28 ` David Jee 0 siblings, 1 reply; 17+ messages in thread From: John Allgood @ 2004-01-19 21:17 UTC (permalink / raw) To: David Jee, rhdb David Jee wrote: >On Mon, 2004-01-19 at 14:47, John Allgood wrote: > > >>Here is the files in this directory. Is this the only files I need. >> >>db.jar >>libgcj-3.3.2.jar >>postgresql.jar >> >> > >If you're using the rhdb packages for Fedora Core 1, then the JDBC >driver will be called postgresql.jar. You should include this in your >CLASSPATH. > >-David Jee > > > > Ok where is the $CLASSPATH defined and what does it need to say. Is this the /usr/bin/rhdb-admin script or does this go into the /etc/profile. or /etc/bashrc. Thanks. John Allgood ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-19 21:17 ` John Allgood @ 2004-01-19 21:28 ` David Jee [not found] ` <400C4F35.7000307@turbocorp.com> 0 siblings, 1 reply; 17+ messages in thread From: David Jee @ 2004-01-19 21:28 UTC (permalink / raw) To: John Allgood; +Cc: rhdb On Mon, 2004-01-19 at 15:39, John Allgood wrote: > Ok where is the $CLASSPATH defined and what does it need to say. Is > this the /usr/bin/rhdb-admin script or does this go into the > /etc/profile. or /etc/bashrc. If you do not have CLASSPATH defined anywhere yet, you can add the following lines in /etc/profile: CLASSPATH=/usr/share/java/postgresql.jar export CLASSPATH -David Jee ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <400C4F35.7000307@turbocorp.com>]
* Re: Java Problems [not found] ` <400C4F35.7000307@turbocorp.com> @ 2004-01-20 14:54 ` David Jee 2004-01-20 15:33 ` John Allgood 0 siblings, 1 reply; 17+ messages in thread From: David Jee @ 2004-01-20 14:54 UTC (permalink / raw) To: John Allgood; +Cc: rhdb On Mon, 2004-01-19 at 16:42, John Allgood wrote: > Thanks that worked great. I am also trying to get the Control Center to > work. When I run the rhdb-cc. I get the error unable to find java > executable. You need to set your JAVA_HOME and PATH variables properly. For example, if you've installed your JRE in /usr/java/j2sdk1.4.2_01, you need to do: JAVA_HOME=/usr/java/j2sdk1.4.2_01 PATH=$JAVA_HOME/bin:$PATH export JAVA_HOME PATH -David Jee ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-20 14:54 ` David Jee @ 2004-01-20 15:33 ` John Allgood 2004-01-20 18:23 ` David Jee 0 siblings, 1 reply; 17+ messages in thread From: John Allgood @ 2004-01-20 15:33 UTC (permalink / raw) To: David Jee, rhdb David Jee wrote: >On Mon, 2004-01-19 at 16:42, John Allgood wrote: > > >>Thanks that worked great. I am also trying to get the Control Center to >>work. When I run the rhdb-cc. I get the error unable to find java >>executable. >> >> > >You need to set your JAVA_HOME and PATH variables properly. For >example, if you've installed your JRE in /usr/java/j2sdk1.4.2_01, you >need to do: > >JAVA_HOME=/usr/java/j2sdk1.4.2_01 >PATH=$JAVA_HOME/bin:$PATH >export JAVA_HOME PATH > >-David Jee > > > > All these paths are set. It still doesn't work. I noticed that rhdb-cc was link to consolehelper. When I run rhdb-cc from the command line I get java exe not found. When I launch from the menu I get a password box which won't except any password. Here is env below. PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/java/j2re1.4.1_06/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin INPUTRC=/etc/inputrc PWD=/root JAVA_HOME=/usr/java/j2re1.4.1_06 LANG=en_US.UTF-8 LAMHELPFILE=/etc/lam/lam-helpfile SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass SHLVL=1 HOME=/root XPVM_ROOT=/usr/share/pvm3/xpvm BASH_ENV=/root/.bashrc LOGNAME=root CLASSPATH=/usr/share/java/postgresql.jar LESSOPEN=|/usr/bin/lesspipe.sh %s ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-20 15:33 ` John Allgood @ 2004-01-20 18:23 ` David Jee 2004-01-20 18:45 ` Fernando Nasser 0 siblings, 1 reply; 17+ messages in thread From: David Jee @ 2004-01-20 18:23 UTC (permalink / raw) To: John Allgood; +Cc: rhdb On Tue, 2004-01-20 at 10:33, John Allgood wrote: > David Jee wrote: > >You need to set your JAVA_HOME and PATH variables properly. For > >example, if you've installed your JRE in /usr/java/j2sdk1.4.2_01, you > >need to do: > > > >JAVA_HOME=/usr/java/j2sdk1.4.2_01 > >PATH=$JAVA_HOME/bin:$PATH > >export JAVA_HOME PATH > > > >-David Jee > > > > > > > > > All these paths are set. It still doesn't work. I noticed that rhdb-cc > was link to consolehelper. When I run rhdb-cc from the command line I > get java exe not found. When I launch from the menu I get a password box > which won't except any password. Here is env below. > > PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/java/j2re1.4.1_06/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin > INPUTRC=/etc/inputrc > PWD=/root > JAVA_HOME=/usr/java/j2re1.4.1_06 > LANG=en_US.UTF-8 > LAMHELPFILE=/etc/lam/lam-helpfile > SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass > SHLVL=1 > HOME=/root > XPVM_ROOT=/usr/share/pvm3/xpvm > BASH_ENV=/root/.bashrc > LOGNAME=root > CLASSPATH=/usr/share/java/postgresql.jar > LESSOPEN=|/usr/bin/lesspipe.sh %s As which user are you trying to run rhdb-cc? Perhaps the file permissions are not set correctly for your JAVA_HOME directory? Login and do `which java`. Assuming that your PATH is set correctly, if you still don't see /usr/java/j2re1.4.1_06/bin/java, then you might need to change the permissions on that directory. -David Jee ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-20 18:23 ` David Jee @ 2004-01-20 18:45 ` Fernando Nasser 2004-01-20 21:05 ` John Allgood 0 siblings, 1 reply; 17+ messages in thread From: Fernando Nasser @ 2004-01-20 18:45 UTC (permalink / raw) To: David Jee; +Cc: John Allgood, rhdb rhdb-cc requires the 'postgres' user password (it should accept the root password as well). You must 'su -' to become root and then assign a password to the postgres user with 'passwd postgres'. ^ permalink raw reply [flat|nested] 17+ messages in thread
* RE: Java Problems 2004-01-20 18:45 ` Fernando Nasser @ 2004-01-20 21:05 ` John Allgood 2004-01-20 21:26 ` Fernando Nasser 0 siblings, 1 reply; 17+ messages in thread From: John Allgood @ 2004-01-20 21:05 UTC (permalink / raw) To: 'Fernando Nasser'; +Cc: rhdb -----Original Message----- From: rhdb-owner@sources.redhat.com [mailto:rhdb-owner@sources.redhat.com] On Behalf Of Fernando Nasser Sent: Tuesday, January 20, 2004 1:46 PM To: David Jee Cc: John Allgood; rhdb@sources.redhat.com Subject: Re: Java Problems rhdb-cc requires the 'postgres' user password (it should accept the root password as well). You must 'su -' to become root and then assign a password to the postgres user with 'passwd postgres'. I tried that still reports unable to find java executable. I already checked permission When I run which java it gives me /usr/java/j2re1.4.1_06/bin/java -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Mailscanner thanks Turbo Logistics for their support. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-20 21:05 ` John Allgood @ 2004-01-20 21:26 ` Fernando Nasser 2004-01-20 21:30 ` John Allgood 0 siblings, 1 reply; 17+ messages in thread From: Fernando Nasser @ 2004-01-20 21:26 UTC (permalink / raw) To: John Allgood; +Cc: rhdb John, The Control Center tool will be running as root (under PAM, of course) so your 'root' user must have the JAVA_HOME variable set (and to its PATH as well). Some JVMs set that when they are installed (IBM's used to) other don't (like Sun's). We have been talking of ways to make our tools smarter in locating Java JVMs by looking at usual places for the most common JVM providers, but there are issues like what to do if there are more than one etc. Eventually Java will be added to the 'alternatives' configuration and all these problems will go away. In the meanwhile, set your root users JAVA_HOME and PATH and you should be able to start rhdb-cc. Regards, Fernando John Allgood wrote: > > > -----Original Message----- > From: rhdb-owner@sources.redhat.com [mailto:rhdb-owner@sources.redhat.com] > On Behalf Of Fernando Nasser > Sent: Tuesday, January 20, 2004 1:46 PM > To: David Jee > Cc: John Allgood; rhdb@sources.redhat.com > Subject: Re: Java Problems > > rhdb-cc requires the 'postgres' user password (it should accept the root > password as well). > > You must 'su -' to become root and then assign a password to the postgres > user > with 'passwd postgres'. > > I tried that still reports unable to find java executable. I already checked > permission > > When I run which java it gives me > > /usr/java/j2re1.4.1_06/bin/java > > ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-20 21:26 ` Fernando Nasser @ 2004-01-20 21:30 ` John Allgood 2004-01-20 21:53 ` Kim Ho 0 siblings, 1 reply; 17+ messages in thread From: John Allgood @ 2004-01-20 21:30 UTC (permalink / raw) To: Fernando Nasser, rhdb Fernando Nasser wrote: > John, > > The Control Center tool will be running as root (under PAM, of course) > so your 'root' user must have the JAVA_HOME variable set (and to its > PATH as well). Some JVMs set that when they are installed (IBM's used > to) other don't (like Sun's). > > We have been talking of ways to make our tools smarter in locating > Java JVMs by looking at usual places for the most common JVM > providers, but there are issues like what to do if there are more than > one etc. Eventually Java will be added to the 'alternatives' > configuration and all these problems will go away. > > In the meanwhile, set your root users JAVA_HOME and PATH and you > should be able to start rhdb-cc. > > Regards, > Fernando > > John Allgood wrote: > >> >> >> -----Original Message----- >> From: rhdb-owner@sources.redhat.com >> [mailto:rhdb-owner@sources.redhat.com] >> On Behalf Of Fernando Nasser >> Sent: Tuesday, January 20, 2004 1:46 PM >> To: David Jee >> Cc: John Allgood; rhdb@sources.redhat.com >> Subject: Re: Java Problems >> >> rhdb-cc requires the 'postgres' user password (it should accept the >> root password as well). >> >> You must 'su -' to become root and then assign a password to the >> postgres >> user with 'passwd postgres'. >> >> I tried that still reports unable to find java executable. I already >> checked >> permission >> >> When I run which java it gives me >> >> /usr/java/j2re1.4.1_06/bin/java >> >> > > > Thats exactly what I have done. Here is my env for root. As you can see JAVA_HOME is set and the path and CLASSPATH is set. Any Ideas. PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/java/j2re1.4.1_06/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin INPUTRC=/etc/inputrc PWD=/root JAVA_HOME=/usr/java/j2re1.4.1_06 LANG=en_US.UTF-8 LAMHELPFILE=/etc/lam/lam-helpfile SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass SHLVL=1 HOME=/root XPVM_ROOT=/usr/share/pvm3/xpvm BASH_ENV=/root/.bashrc LOGNAME=root CLASSPATH=/usr/share/java/postgresql.jar LESSOPEN=|/usr/bin/lesspipe.sh %s DISPLAY=:0 ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-20 21:30 ` John Allgood @ 2004-01-20 21:53 ` Kim Ho 2004-01-20 22:01 ` John Allgood 0 siblings, 1 reply; 17+ messages in thread From: Kim Ho @ 2004-01-20 21:53 UTC (permalink / raw) To: John Allgood; +Cc: Fernando Nasser, rhdb On Tue, 2004-01-20 at 16:30, John Allgood wrote: > Thats exactly what I have done. Here is my env for root. As you can see > JAVA_HOME is set and the path and CLASSPATH is set. > > Any Ideas. > > PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/java/j2re1.4.1_06/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin > INPUTRC=/etc/inputrc > PWD=/root > JAVA_HOME=/usr/java/j2re1.4.1_06 > LANG=en_US.UTF-8 > LAMHELPFILE=/etc/lam/lam-helpfile > SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass > SHLVL=1 > HOME=/root > XPVM_ROOT=/usr/share/pvm3/xpvm > BASH_ENV=/root/.bashrc > LOGNAME=root > CLASSPATH=/usr/share/java/postgresql.jar > LESSOPEN=|/usr/bin/lesspipe.sh %s > DISPLAY=:0 > Try this: su - cd /usr/java mkdir j2sdk1.4.2_01 cd j2sdk1.4.2_01 mkdir bin cd bin (make a link to your java executable here) I believe that this will work. It's probably the pam auth modules not letting your JAVA_HOME/JAVA_CMD variables through. Cheers, Kim ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Java Problems 2004-01-20 21:53 ` Kim Ho @ 2004-01-20 22:01 ` John Allgood 0 siblings, 0 replies; 17+ messages in thread From: John Allgood @ 2004-01-20 22:01 UTC (permalink / raw) To: Kim Ho, rhdb Kim Ho wrote: >On Tue, 2004-01-20 at 16:30, John Allgood wrote: > > >>Thats exactly what I have done. Here is my env for root. As you can see >>JAVA_HOME is set and the path and CLASSPATH is set. >> >>Any Ideas. >> >>PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/java/j2re1.4.1_06/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin >>INPUTRC=/etc/inputrc >>PWD=/root >>JAVA_HOME=/usr/java/j2re1.4.1_06 >>LANG=en_US.UTF-8 >>LAMHELPFILE=/etc/lam/lam-helpfile >>SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass >>SHLVL=1 >>HOME=/root >>XPVM_ROOT=/usr/share/pvm3/xpvm >>BASH_ENV=/root/.bashrc >>LOGNAME=root >>CLASSPATH=/usr/share/java/postgresql.jar >>LESSOPEN=|/usr/bin/lesspipe.sh %s >>DISPLAY=:0 >> >> >> > >Try this: > >su - >cd /usr/java >mkdir j2sdk1.4.2_01 >cd j2sdk1.4.2_01 >mkdir bin >cd bin >(make a link to your java executable here) > >I believe that this will work. It's probably the pam auth modules not >letting your JAVA_HOME/JAVA_CMD variables through. > >Cheers, > >Kim > > > > Thanks That did it. Thanks for all the help from everyone. We are currently porting our entire database platform to Postgresql and We are going to use the Redhat Edition. Later ^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2004-01-20 22:01 UTC | newest] Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-01-19 16:12 Java Problems John Allgood 2004-01-19 17:59 ` Patrick Macdonald 2004-01-19 19:17 ` John Allgood 2004-01-19 19:25 ` Patrick Macdonald 2004-01-19 20:17 ` John Allgood 2004-01-19 20:27 ` David Jee 2004-01-19 21:17 ` John Allgood 2004-01-19 21:28 ` David Jee [not found] ` <400C4F35.7000307@turbocorp.com> 2004-01-20 14:54 ` David Jee 2004-01-20 15:33 ` John Allgood 2004-01-20 18:23 ` David Jee 2004-01-20 18:45 ` Fernando Nasser 2004-01-20 21:05 ` John Allgood 2004-01-20 21:26 ` Fernando Nasser 2004-01-20 21:30 ` John Allgood 2004-01-20 21:53 ` Kim Ho 2004-01-20 22:01 ` John Allgood
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).