HTTP server and JAVA Serverpac question
Once again I crawl to the list for help, a broken and weary soul... I am working on a 1.4 to 1.7 conversion and trying to finish up the serverpac jobs. Job HIMW530M is to set up the HTTP Server. It says, "If your order includes JAVA it is recommended that you update the JAVA_HOME directory before running this job." I have spent since yesterday afternoon trying to figure out what that meant. I decided that it meant to update the SETUP.SH in /usr/lpp/internet/sbin/, which the HIMW530M job is going to run. I changed a line that read: JAVA_HOME=${JAVA_HOME:-} To JAVA_HOME='/usr/lpp/java/IBM/J1.3/bin' When I ran HIMW530M everything looks pretty good except for 1 message that I received - "JAVA_HOME is not pointing at the JDK; no JAVA setup has been done in httpd.envvars." Here is most of the output: *** (5697-D43) IBM HTTP Server 5.3 *** Processing: default server install path is /usr/lpp/internet actual server install path is /usr/lpp/internet JDK install path is /usr/lpp/java/IBM/J1.3/bin Processing: install English version of server Processing: symbolic link of translatable files Processing: symbolic link of files in ../server_root/Admin Processing: symbolic link of files in ../samples/config Processing: set file properties *** setuplns.sh HAS COMPLETED *** Processing: copying configuration and environment files Processing: backup, copy and customize configuration file (httpd.conf) Processing: backup, copy and customize configuration file (httpd.envvars) Processing: backup, copy and customize configuration file (mvsds.conf) JAVA_HOME is not pointing at the JDK; no Java setup has been done in httpd.envvars. Processing: backup, copy and customize configuration file (socks.conf) Install Process Information: - Language installed: English - Server install path is: /usr/lpp/internet - JDK install path is: - Server configuration files copied to: /etc and /usr/lpp/internet/etc - Server configuration files default path is: /etc *** setup.sh HAS COMPLETED *** Did I do the right thing by updating SETUP.SH or should I put it back like it was and rerun HIMW530M or do what? Thanks for any help. Obviously I am pretty weak in this area, but I hope we will make use of these new fangled things in the near future. Robert Johnston UAMS - Little Rock Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
HTTP server and JAVA Serverpac question
Robert, I ran my HIMW530M with the JDK install path is /usr/lpp/java/IBM/J1.3 I noticed you had '/bin' at the end of yours. Cliff McNeill _ From predictions to trailers, check out the MSN Entertainment Guide to the Academy Awards® http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: HTTP server and JAVA Serverpac question
Not sure about SETUP.SH but we set the JAVA_HOME in /etc/profile Roland -Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Johnston, Robert E Sent: Friday, January 26, 2007 9:58 PM To: IBM-MAIN@BAMA.UA.EDU Subject: HTTP server and JAVA Serverpac question Once again I crawl to the list for help, a broken and weary soul... I am working on a 1.4 to 1.7 conversion and trying to finish up the serverpac jobs. Job HIMW530M is to set up the HTTP Server. It says, "If your order includes JAVA it is recommended that you update the JAVA_HOME directory before running this job." I have spent since yesterday afternoon trying to figure out what that meant. I decided that it meant to update the SETUP.SH in /usr/lpp/internet/sbin/, which the HIMW530M job is going to run. I changed a line that read: JAVA_HOME=${JAVA_HOME:-} To JAVA_HOME='/usr/lpp/java/IBM/J1.3/bin' -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: HTTP server and JAVA Serverpac question
On Fri, 2007-01-26 at 22:02 +0100, Schiradin,Roland wrote: > Not sure about SETUP.SH but we set the JAVA_HOME in /etc/profile As do we. Useful for setting up the PATH if the Java version is also changing. Shane ... -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: HTTP server and JAVA Serverpac question
Use JAVA_HOME='/usr/lpp/java/IBM/J1.4/bin' (JAVA JRE 1.4 31 bit) or JAVA_HOME='/usr/lpp/jav64a/IBM/J1.4_64/bin' (JAVA JRE 1.4 64 bit) or JAVA_HOME='/usr/lpp/java/IBM/J5.0/bin' (JAVA JRE 1.5 31 bit) or JAVA_HOME='/usr/lpp/jav64a/IBM/J5.0_64/bin' (JAVA JRE 1.5 64 bit) Instead. JAVA_HOME='/usr/lpp/java/IBM/J1.3/bin' represents the Java 1.3 JRE environment. This came out w/OS/390 2.10 IIRC, And is no longer supported by IBM. HTH I have spent since yesterday afternoon trying to figure out what that meant. I decided that it meant to update the SETUP.SH in /usr/lpp/internet/sbin/, which the HIMW530M job is going to run. I changed a line that read: JAVA_HOME=${JAVA_HOME:-} To JAVA_HOME='/usr/lpp/java/IBM/J1.3/bin' -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: HTTP server and JAVA Serverpac question
I am running z/OS 1.6. There is a "free" HTTPD server. Is that the one that you are referring to? On my system, there is a UNIX file (/etc/httpd.envvars) that contains the following: PATH=/bin:/usr/sbin:/usr/lpp/internet/bin:/usr/lpp/internet/sbin:/usr/lp p/ldap/bin:/usr/lpp/java/IBM/J1.3/bin:/usr/local/bin SHELL=/bin/sh TZ=CST6CDT LANG=C LC_ALL=en_US.IBM-1047 NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lpp/internet/%L/%N:/usr/lpp/ldap/lib /nls/msg/%L/%N LIBPATH=/usr/lpp/internet/bin:/usr/lpp/internet/sbin:/usr/lpp/ldap/lib JAVA_HOME=/usr/lpp/jdk142/J1.4 CLASSPATH=/usr/lpp/internet/server_root/CAServlet STEPLIB=CURRENT these are the environment variables for things which run under the HTTPD server. When I look at the JCL for this STC, I see: //IMWPROC PROC LEPARM='ENVAR("_CEE_ENVFILE=/etc/httpd.envvars")', //* ICSPARM='-p 80 -r /etc/httpd.conf' // ICSPARM='-p 80 -r /etc/httpd.conf -vv' -vv is the trace fun. The LEPARM shows where the /etc/httpd.envvars comes from. Updating things such as /etc/profile and others only works for programs which will "source"(read) this member (like the /bin/sh program which is the default UNIX shell). Ref: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IMWZIU17/CCON TENTS -- John McKown Senior Systems Programmer HealthMarkets Keeping the Promise of Affordable Coverage Administrative Services Group Information Technology The information contained in this e-mail message may be privileged and/or confidential. It is for intended addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication is strictly prohibited and could, in certain circumstances, be a criminal offense. If you have received this e-mail in error, please notify the sender by reply and delete this message without copying or disclosing it. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: HTTP server and JAVA Serverpac question
1.Change SETUP.SH back to read JAVA_HOME=${JAVA_HOME:-} 2. In OMVS, type ECHO $JAVA_HOME to see if it is set; if it is then run SETUP.SH 3. If not set, use the command EXPORT JAVA_HOME = ' /usr/lpp/java/IBI/J5.0/bin' (or one of the other suggestions depending upon what Java you actually have), then run SETUP.SH Tim Hare Senior Systems Programmer Florida Department of Transportation (850) 414-4209 -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: HTTP server and JAVA Serverpac question
- Original Message - From: "Johnston, Robert E" <[EMAIL PROTECTED]> Newsgroups: bit.listserv.ibm-main Sent: Friday, January 26, 2007 3:58 PM Subject: HTTP server and JAVA Serverpac question Once again I crawl to the list for help, a broken and weary soul... I am working on a 1.4 to 1.7 conversion and trying to finish up the serverpac jobs. Job HIMW530M is to set up the HTTP Server. It says, "If your order includes JAVA it is recommended that you update the JAVA_HOME directory before running this job." I have spent since yesterday afternoon trying to figure out what that meant. I decided that it meant to update the SETUP.SH in /usr/lpp/internet/sbin/, which the HIMW530M job is going to run. I changed a line that read: JAVA_HOME=${JAVA_HOME:-} To JAVA_HOME='/usr/lpp/java/IBM/J1.3/bin' Robert, You need to upgrade your Java to at least V1R4M2. That's the minimum level for z/OS V1R4 and up. Without it you can't do any of the neat SMP/E stuff like RECEIVE ORDER, so don't waste your time with V1R3. http://www-03.ibm.com/servers/eserver/zseries/software/java/ Regards, Tom Conley -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: HTTP server and JAVA Serverpac question
Thanks everyone for the responses. Yes, I am talking about the free IBM HTTP server that comes with z/OS. I don't see a /etc/profile. This is pretty early on in the install process - little customization has been done. Maybe it will get created later? My /etc/httpd.envvars looks similar to John's, but I don't have JAVA_HOME in there. Is that where I am supposed to update the JAVA_HOME directory? My serverpac was created back in July 2006. Any ideas why didn't it come with a later Java installed? I got the path name from the JAVA SDK Program Directory. It had the /bin on the end of it. Beats me if it's right. I think I am going to proceed as Tim Hare suggested: 1.Change SETUP.SH back to read JAVA_HOME=${JAVA_HOME:-} 2. In OMVS, type ECHO $JAVA_HOME to see if it is set; if it is then run SETUP.SH 3. If not set, use the command EXPORT JAVA_HOME = ' /usr/lpp/java/IBI/J5.0/bin' (or one of the other suggestions depending upon what Java you actually have), then run SETUP.SH Again, thanks a bunch to everyone. Hope you have a good weekend... Robert Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: HTTP server and JAVA Serverpac question
On Fri, 2007-01-26 at 16:17 -0600, Johnston, Robert E wrote: > I don't see a /etc/profile. This is pretty early on in the install process - > little customization has been done. Maybe it will get created later? > > My /etc/httpd.envvars looks similar to John's, but I don't have JAVA_HOME in > there. Is that where I am supposed to update the JAVA_HOME directory? > > My serverpac was created back in July 2006. Any ideas why didn't it come with > a later Java installed? > > I got the path name from the JAVA SDK Program Directory. It had the /bin on > the end of it. Beats me if it's right. > > I think I am going to proceed as Tim Hare suggested: > > 1.Change SETUP.SH back to read JAVA_HOME=${JAVA_HOME:-} > 2. In OMVS, type ECHO $JAVA_HOME to see if it is set; if it is then run > SETUP.SH > 3. If not set, use the command EXPORT JAVA_HOME = ' > /usr/lpp/java/IBI/J5.0/bin' (or one of the other suggestions depending upon > what Java you actually have), then run SETUP.SH At home having just walked the mutts, and my 1.7 build was a few months back - so all that follows is from memory. Value it accordingly. Contrary to John, I prefer to have these things system-wide - i.e. in /etc/profile. Just like SYS1.PARMLIB - I look after it, and it's my responsibility to make it right. We have always set JAVA_HOME without the "/bin"; when constructing the $PATH, I then use $PATH:$JAVA_HOME/bin. That way it's always built correctly when versions change. As I was installing the 64 bit 1.5 with z/OS 1.7, and there was 31-bit 1.4 (Java) on my old (z/OS) 1.4 system, I wrapped some simple "if logic" around the assignment of JAVA_HOME so I could IPL either z/OS 1.4 or 1.7 without screwing up the Java environment. Well, not too much anyway. Java needs to be ordered - the 1.4 used to be freely downloadable, but (later ???) the SMP packaged version needed to be ordered. Too long ago to remember exactly I'm afraid. For us the 64-bit had to be specifically added to the 1.7 order. BTW, those "echo" and "export" (and similar) commands need tobe in lower case. Obvious I know, but ... Shane ... -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: HTTP server and JAVA Serverpac question
Shane, we follow your road to put as much as possible into /etc/profile even we never get in touch. Single point of control is always our prefered way. Roland -Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Shane Sent: Saturday, January 27, 2007 2:16 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: HTTP server and JAVA Serverpac question On Fri, 2007-01-26 at 16:17 -0600, Johnston, Robert E wrote: > I don't see a /etc/profile. This is pretty early on in the install > process - little customization has been done. Maybe it will get > created later? > > My /etc/httpd.envvars looks similar to John's, but I don't have > JAVA_HOME in there. Is that where I am supposed to update the > JAVA_HOME directory? > > My serverpac was created back in July 2006. Any ideas why didn't it > come with a later Java installed? > > I got the path name from the JAVA SDK Program Directory. It had the > /bin on the end of it. Beats me if it's right. > > I think I am going to proceed as Tim Hare suggested: > > 1.Change SETUP.SH back to read JAVA_HOME=${JAVA_HOME:-} > 2. In OMVS, type ECHO $JAVA_HOME to see if it is set; if it is then > run SETUP.SH 3. If not set, use the command EXPORT JAVA_HOME = ' > /usr/lpp/java/IBI/J5.0/bin' (or one of the other suggestions depending upon > what Java you actually have), then run SETUP.SH At home having just walked the mutts, and my 1.7 build was a few months back - so all that follows is from memory. Value it accordingly. Contrary to John, I prefer to have these things system-wide - i.e. in /etc/profile. Just like SYS1.PARMLIB - I look after it, and it's my responsibility to make it right. We have always set JAVA_HOME without the "/bin"; when constructing the $PATH, I then use $PATH:$JAVA_HOME/bin. That way it's always built correctly when versions change. As I was installing the 64 bit 1.5 with z/OS 1.7, and there was 31-bit 1.4 (Java) on my old (z/OS) 1.4 system, I wrapped some simple "if logic" around the assignment of JAVA_HOME so I could IPL either z/OS 1.4 or 1.7 without screwing up the Java environment. Well, not too much anyway. Java needs to be ordered - the 1.4 used to be freely downloadable, but (later ???) the SMP packaged version needed to be ordered. Too long ago to remember exactly I'm afraid. For us the 64-bit had to be specifically added to the 1.7 order. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: HTTP server and JAVA Serverpac question
Thanks Shane and Roland for the advice. I think I understand about /etc/profile and $PATH:$JAVA_HOME/bin. We are a pretty simple monoplex but I want to set things up the best way that I can. As I mentioned in a previous post for help, this is my first full base serverpac (with IBM's tcpip). And we have never done much with OMVS. I want to learn as much as I can about both of them but I have a long way to go. Much appreciated... Robert Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html