1846437 Members
3087 Online
110256 Solutions
New Discussion

java + dst

 
joseph wholey
Regular Advisor

java + dst

Is there a definiitive java command I can issue to ensure that my servers are java/dst compliant? I have a bunch of servers that need to be checked but I am getting conflicting information as to the status. We are running IBM's java on some servers and Sun's java on other servers. Just recently, the oracle dba's sent us a procedure to upgrade java for oracle. I'm having a problem getting a handle on this. So if there is a command/procedure that anyone is aware of, it would be greatly appreciated if you could pass it along. thx.
10 REPLIES 10
DCE
Honored Contributor

Re: java + dst



There is a test routine included with the Tzupdater program

http://www.hp.com/products1/unix/java/DST-US.html#tzupdater

Ther also is a perl script under another thread in this forum - I cannot seem to locate it right now - just do a search for dst
Dennis Handly
Acclaimed Contributor

Re: java + dst

>DCE: There also is a perl script under another thread in this forum

Clay's perl script is in this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1007176
joseph wholey
Regular Advisor

Re: java + dst

Gents,

Maybe I should have been more specific. Checking for TZDATA is rather trivial. It's java I'm concerned with. The *.pl script doesn't do it. I need to check all flavors of Java (IBM's, Sun's) and whoever else has a version, and ensure it's patched.
Again, I've yet to see the definitive "fix" for Java... I've read IBM's and I've read Sun's... but then a note came from the Oracle DBA group indicating we also had a patch that needed to be applied. Does anyone have a handle on this? To re-iterate, I have a lot of servers that need to be checked... does anyone have a procedure, or a simple command to check for the many versions of Java? Any help would be appreciated. The clock is ticking.
DCE
Honored Contributor

Re: java + dst



Joseph to find all the Java on a system ( and it's version) try the following comand

find -fstype nfs -prune -o -fstype autofs -prune -o -name java -print -exec {} -version \;

joseph wholey
Regular Advisor

Re: java + dst

DCE... thx. I'm getting closer... so that will give me the versions... However, the versions don't tell you if your java is dst compliant. Anyone?????
DCE
Honored Contributor

Re: java + dst

Joseph,

JDK 5.0.03 or later, SDK 1.4.2.11 or later, and SDK 1.3.1.18 support the US Daylight Saving Time (DST) change

JDK 5.0.05 or later, SDK 1.4.2.12 or later, and SDK 1.3.1.19 or later support the Canada DST changes

If your Java veresion meets or exceeds the one above - you are compliant.

Hopefully you know which of the older java apps have already been patched - if not, then you will to run the test program against them to verify..........
Rick Garland
Honored Contributor

Re: java + dst

There is a program called dstivp.sh that was put out by HP. It is unsupported. But it does provide a tool that you can run on a system, find the javas, report the version, is it DST compliant or not.

Using the TZUPDATER in the test mode will allow you to view the java.vendor entry as well. So if the Oracle javas are not from "Hewlett Packard" the the TZUPDATER (as supplied by HP) will not update these java instances.

HP says the java.vendor must be Hewlett Packard for the TZ to be updated.

Attached is the dstivp.sh in a tar ball

praveen..
Super Advisor

Re: java + dst

I also tried with DCE command:

# find -fstype nfs -prune -o -fstype autofs -prune -o -name java -print -exec {} -version \;
Usage: find path-list [predicate-list]
#

Please suggest, I also need to update the java.

I have already updated the OS DST Patchs but now I have to update it for java

Thanks
praveen..
Super Advisor

Re: java + dst

# find / -fstype nfs -prune -o -fstype autofs -prune -o -name java -print -exec {} -version \;
/opt/hpservices/jre/opt/java1.4/jre/bin/java
java version "1.4.2.03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.03-040401-16:07)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.03-040402-00:47-IA64N IA64, mixed mode)
/opt/hpservices/jre/opt/java1.4/jre/bin/IA64N/java
/usr/lib/hpux32/dld.so: Unable to find library 'libjvm.so'.
/opt/hpservices/jre/opt/java1.4/jre/bin/IA64W/java
/usr/lib/hpux64/dld.so: Unable to find library 'libjvm.so'.
/opt/hpservices/jre/opt/java1.4/jre/bin/PA_RISC/java
/usr/lib/dld.sl: Can't open shared library: /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC/server/libjvm.sl
/usr/lib/dld.sl: No such file or directory
ARIES32: Core file for PA32 application saved to /tmp/core.java
/opt/java1.3/bin/java
java version "1.3.1.13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.13-040210-15:41)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.13-_10_feb_2004_19_02 IA64, mixed mode)
/opt/java1.3/bin/IA64/native_threads/java
/usr/lib/hpux32/dld.so: Unable to find library 'libjvm.so'.
/opt/java1.3/jre/bin/IA64/native_threads/java
/usr/lib/hpux32/dld.so: Unable to find library 'libjvm.so'.
/opt/java1.3/jre/bin/java
java version "1.3.1.13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.13-040210-15:41)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.13-_10_feb_2004_19_02 IA64, mixed mode)
/opt/java1.4/bin/java
java version "1.4.2.03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.03-040401-16:07)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.03-040402-00:47-IA64N IA64, mixed mode)
/opt/java1.4/bin/IA64N/java
/usr/lib/hpux32/dld.so: Unable to find library 'libjvm.so'.
/opt/java1.4/bin/IA64W/java
/usr/lib/hpux64/dld.so: Unable to find library 'libjvm.so'.
/opt/java1.4/bin/PA_RISC/java
/usr/lib/dld.sl: Can't open shared library: /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC/server/libjvm.sl
/usr/lib/dld.sl: No such file or directory
ARIES32: Core file for PA32 application saved to /tmp/core.java
/opt/java1.4/jre/bin/IA64N/java
/usr/lib/hpux32/dld.so: Unable to find library 'libjvm.so'.
/opt/java1.4/jre/bin/java
java version "1.4.2.03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.03-040401-16:07)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.03-040402-00:47-IA64N IA64, mixed mode)
/opt/java1.4/jre/bin/IA64W/java
/usr/lib/hpux64/dld.so: Unable to find library 'libjvm.so'.
/opt/java1.4/jre/bin/PA_RISC/java
/usr/lib/dld.sl: Can't open shared library: /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC/server/libjvm.sl
/usr/lib/dld.sl: No such file or directory
ARIES32: Core file for PA32 application saved to /tmp/core.java
/opt/mx/j2re/bin/IA64N/java
/usr/lib/hpux32/dld.so: Unable to find library 'libjvm.so'.
/opt/mx/j2re/bin/IA64W/java
/usr/lib/hpux64/dld.so: Unable to find library 'libjvm.so'.
/opt/mx/j2re/bin/PA_RISC/java
/usr/lib/dld.sl: Can't open shared library: /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC/server/libjvm.sl
/usr/lib/dld.sl: No such file or directory
ARIES32: Core file for PA32 application saved to /tmp/core.java
/opt/mx/j2re/bin/PA_RISC2.0/java
/usr/lib/dld.sl: Can't open shared library: /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC2.0/server/libjvm.sl
/usr/lib/dld.sl: No such file or directory
ARIES32: Core file for PA32 application saved to /tmp/core.java
/opt/mx/j2re/bin/PA_RISC2.0W/java
/usr/lib/pa20_64/dld.sl: Unable to find library 'libjvm.sl'.
/opt/mx/j2re/bin/java
java version "1.4.1.04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1.04-030801-11:26)
Java HotSpot(TM) Server VM (build 1.4.1 1.4.1.04-030801-17:56-IA64N IA64, mixed mode)
/opt/VRTSob/extensions/AdvancedPrint/IsisSkin/java
/opt/VRTSob/extensions/GlobalObject/IsisSkin/java
/opt/VRTSob/extensions/ObguiGraphics/IsisSkin/java
/opt/VRTSob/extensions/ObguiPrint/IsisSkin/java
/opt/VRTSob/extensions/PrintController/IsisSkin/java
/opt/VRTSob/extensions/System/IsisSkin/java
/opt/VRTSob/extensions/alertlog/IsisSkin/java
/opt/VRTSob/extensions/controlPanel/IsisSkin/java
/opt/VRTSob/extensions/genericlogger/IsisSkin/java
/opt/VRTSob/extensions/umi/IsisSkin/java
/opt/VRTSob/extensions/VxSearch/IsisSkin/java
/opt/VRTSob/msgcats/system/IsisSkin/java
/opt/VRTSob/jre/bin/java
java version "1.4.1.03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1.03-030630-19:37)
Java HotSpot(TM) Server VM (build 1.4.1 1.4.1.03-030701-03:26-IA64N IA64, mixed mode)
/opt/VRTSob/jre/bin/IA64N/java
/usr/lib/hpux32/dld.so: Unable to find library 'libjvm.so'.
/opt/VRTSob/jre/bin/IA64W/java
/usr/lib/hpux64/dld.so: Unable to find library 'libjvm.so'.
/opt/VRTSob/jre/bin/PA_RISC/java
/usr/lib/dld.sl: Can't open shared library: /CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC/server/libjvm.sl
/usr/lib/dld.sl: No such file or directory
ARIES32: Core file for PA32 application saved to /tmp/core.java
/opt/VRTSfspro/msgcats/system/IsisSkin/java
/opt/hpws/xmltools/batik/samples/tests/resources/java
/opt/hpws/xmltools/cocoon/docs/apidocs/org/apache/cocoon/components/language/programming/java
/opt/hpws/xmltools/fop/examples/embedding/java
/opt/oracle/oracle_install/Disk1/stage/Components/oracle.apache.jserv/1.1.0.0.0g/1/DataFiles/Expanded/docs_unix/api/org/apache/java
/opt/oracle/oracle_install/Disk1/stage/Components/oracle.swd.jre/1.3.1.0.0a/1/DataFiles/Expanded/bin/IA64/native_threads/java
/usr/lib/hpux32/dld.so: Unable to find library 'libjvm.so'.
/opt/oracle/oracle_install/Disk1/stage/Components/oracle.swd.jre/1.3.1.0.0a/1/DataFiles/Expanded/bin/java
java version "1.3.1.06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.06-020625-14:20)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.06-JPSE_1.3.1.06_20020625 IA64, mixed mode)
/opt/oracle/product/9.2.0.2/inventory/filemap/rdbms/demo/lobs/java
/opt/oracle/product/9.2.0.2/inventory/filemap/xdk/demo/java
/opt/oracle/product/9.2.0.2/inventory/filemap/xdk/doc/java
/opt/oracle/product/9.2.0.2/inventory/filemap/ord/aud/demo/java
/opt/oracle/product/9.2.0.2/inventory/filemap/ord/doc/demo/java
/opt/oracle/product/9.2.0.2/inventory/filemap/ord/img/demo/java
/opt/oracle/product/9.2.0.2/inventory/filemap/ord/vid/demo/java
/opt/oracle/product/9.2.0.2/inventory/filemap/md/demo/geocoder/java
/opt/oracle/product/9.2.0.2/jre/1.3.1/bin/IA64/native_threads/java
/usr/lib/hpux32/dld.so: Unable to find library 'libjvm.so'.
/opt/oracle/product/9.2.0.2/jre/1.3.1/bin/java
java version "1.3.1.06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.06-020625-14:20)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.06-JPSE_1.3.1.06_20020625 IA64, mixed mode)
/opt/oracle/product/9.2.0.2/Apache/Jserv/docs/api/org/apache/java
/opt/oracle/product/9.2.0.2/jdk/bin/java
java version "1.3.1.13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.13-040210-15:41)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.13-_10_feb_2004_19_02 IA64, mixed mode)
/opt/oracle/product/9.2.0.2/jdk/bin/IA64/native_threads/java
/usr/lib/hpux32/dld.so: Unable to find library 'libjvm.so'.
/opt/oracle/product/9.2.0.2/jdk/jre/bin/IA64/native_threads/java
/usr/lib/hpux32/dld.so: Unable to find library 'libjvm.so'.
/opt/oracle/product/9.2.0.2/jdk/jre/bin/java
java version "1.3.1.13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1.13-040210-15:41)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.13-_10_feb_2004_19_02 IA64, mixed mode)
/opt/oracle/product/9.2.0.2/xdk/doc/java
/opt/oracle/product/9.2.0.2/xdk/demo/java
/opt/oracle/product/9.2.0.2/rdbms/demo/lobs/java
/opt/oracle/product/9.2.0.2/ord/doc/demo/java
/opt/oracle/product/9.2.0.2/ord/img/demo/java
/opt/oracle/product/9.2.0.2/ord/aud/demo/java
/opt/oracle/product/9.2.0.2/ord/vid/demo/java
/opt/oracle/product/9.2.0.2/md/demo/geocoder/java
/opt/OV/java
Dennis Handly
Acclaimed Contributor

Re: java + dst

I was talking to the java engineer today and she said there are some recent java patches that updates the tztab to java mapping. So check the java web page and make sure you have the latest. This would have been in the last few weeks. And probably only important for any new tztab entries, like #Mexico or #Canada.