Since you didn't specify a JVM when registering the Email service, it will 
use whatever java executable it finds in the system PATH, so in this case 
it is finding the 32-bit Java 1.5.0.  You could install a 64-bit Java, and 
either make sure it is the first java in the PATH or use OPTION JVM= when 
registering the Email service.  If you wanted to use the 64-bit JVM that 
is bundled with STAF, you can do the following:

service email library JSTAF EXECUTE 
/export/home/xxxx/staf/email/STAFEmail.jar PARMS "MAILSERVER 
xxxx.xx.xxx.com"
OPTION JVM=/export/home/xxxx/staf/jre/jre/bin/java
 
Thanks, 
David 

David Bender 
STAF/STAX Development 
IBM Software Group, WPLC 
 
11501 Burnet Rd. 
Bldg. 903-5B002 
Austin, TX 78758-3400 
 
Phone (T/L): 1-512-286-5315 (363-5315) 
ITN: 23635315 
Email: bda...@us.ibm.com 
 





From:
"Uma Maheswar Chilukuri" <u...@mach.com>
To:
<staf-users@lists.sourceforge.net>
Date:
01/17/2010 04:02 AM
Subject:
[staf-users] Registering E-mail service - Java Problem



Hi,
I configured Email service in *.cfg file below line.
service email library JSTAF EXECUTE 
/export/home/xxxx/staf/email/STAFEmail.jar PARMS "MAILSERVER 
xxxx.xx.xxx.com"
When started the STAFProc getting the error
27:Error constructing service, JSTAF, Result: Unable to connect to JVM
After going through the previous mail list I did the following steps
Contents of JVMLog.1 file is 
/staf/data/STAF/lang/java/jvm/STAFJVM1> tail -f *
*** JVM Version   : java version "1.5.0_17"
Java(TM) Platform, Standard Edition for Business (build 1.5.0_17-b04)
Java HotSpot(TM) Server VM (build 1.5.0_17-b04, mixed mode)
Exception in thread "main" java.lang.UnsatisfiedLinkError: 
/global/home/xxxx/staf/lib/libJSTAFSH.so: ld.so.1: java: fatal: 
/global/home/xxxx/staf/lib/libJSTAFSH.so: wrong ELF class: ELFCLASS64 
(Possible cause: architecture word width mismatch)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:993)
        at 
com.ibm.staf.service.STAFServiceHelper.<clinit>(STAFServiceHelper.java:443)
Java version shows it is 32 bit
/global/home/xxxx/staf/lib> java -version
java version "1.5.0_17"
Java(TM) Platform, Standard Edition for Business (build 1.5.0_17-b04)
Java HotSpot(TM) Server VM (build 1.5.0_17-b04, mixed mode)
isainfo gives the following 
/global/home/xxxx/staf/lib> isainfo -b
64
/global/home/xxxx/staf/lib> isainfo -v
64-bit sparcv9 applications
        asi_blk_init vis2 vis
32-bit sparc applications
        asi_blk_init vis2 vis v8plus div32 mul32
/global/home/xxxx/staf/lib>isainfo -vb
64-bit sparcv9 applications
        asi_blk_init vis2 vis
IT seems hava is of 32 bit where as isanfo shows 64 bit.
Is  installing (as suggested in one of the previous thread) the below 
version is the only resolution for this?
Solaris 2.6+ (Sparc 32-bit)     32-bit  3.4.0   
STAF340-solaris-sparc.tar.gz 
How can this be resolved? How to make JVM 64 bit which is supplied with 
STAF while downloading?
Thanks
Uma.
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for 
Conference
attendees to learn about information security's most important issues 
through
interactions with peers, luminaries and emerging and established 
companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to