The error message you are getting:

Exception in thread "main" java.lang.UnsatisfiedLinkError: 
/usr/local/staf/lib/libJSTAFSH.so: ld.so.1: java: fatal: 
/usr/local/staf/lib/libJSTAFSH.so: wrong ELF class: ELFCLASS64 (Possible 
cause: architecture word width mismatch)
Indicates that there is a mismatch between the STAF Java library 
architecture and the architecture of the JVM you are using.  The 
STAF333-*-solaris-sparc64* files will only work with a 64-bit JVM.  Your 
"java -version" output shows:
Java HotSpot(TM) Server VM 

This means it is a 32-bit JVM.  If it was a 64-bit JVM, it would show 
something like: 
Java HotSpot(TM) 64-Bit Server VM 

So, you need to use the  STAF333-*-solaris-sparc* installer files, instead 
of the sparc64 files.

With regard to the question about the InstallAnywhere installers vs. the 
STAFInst (tar.gz) installer, yes they will install the same STAF files on 
the system.

Note that you can also compile/run a simple Java app to determine the 
JVM's architecture:

public class prop
{
    public static void main(String[] args)
    {
        System.out.println(System.getProperty("os.name"));
        System.out.println(System.getProperty("os.version"));
        System.out.println(System.getProperty("os.arch"));
    }
}

Running this class with a 64-bit JVM will show you:

# ./java prop
SunOS
5.10
sparcv9

While running it with a 32-bit JVM will show you:

# ./java prop
SunOS
5.10
sparc

The STAF Installation Guide 
(http://staf.sourceforge.net/current/STAFInstall.pdf) section 2.2 "Install 
properties for STAF Installers" provides a table listing each STAF 
installer type, and the "osarch" column indicates the JVM architecture 
that is required for that installer.

David Bender
STAF/STAX Development
(512-286-5315)
IBM Austin Bldg. 903-5B002
Internet: bda...@us.ibm.com




Pavel Tankov <ptan...@axway.com> 
06/09/2009 04:44 AM

To
Sharon Lucas/Austin/i...@ibmus
cc
staf-users@lists.sourceforge.net
Subject
Re: [staf-users]        Fw:  STAFProc unable to load any Java based 
service on      Solaris 10






By the way, I tried both STAF333-setup-solaris-sparc64-NoJVM.bin and 
STAF333-setup-solaris-sparc64.bin installers and I get:
./STAF333-setup-solaris-sparc64-NoJVM.bin
Preparing to install...
awk: insufficient memory for string storage Context is:
>>> <<<
./STAF333-setup-solaris-sparc64-NoJVM.bin: test: ) expected
[r...@blade6 install]# /bin/sh STAF333-setup-solaris-sparc64-NoJVM.bin
Preparing to install...
awk: insufficient memory for string storage Context is:
>>> <<<
STAF333-setup-solaris-sparc64-NoJVM.bin: test: ) expected
Thanks,
Pavel Tankov
OK, on the web site there are the following choices for installers:
Solaris 10+ (Sparc 64-bit) 64-bit 3.3.3 STAF333-setup-solaris-sparc64.bin 
InstallAnywhere (Bundled JVM) 99M
Solaris 10+ (Sparc 64-bit) 64-bit 3.3.3 
STAF333-setup-solaris-sparc64-NoJVM.bin InstallAnywhere (No JVM) 45M
Solaris 10+ (Sparc 64-bit) 64-bit 3.3.3 STAF333-solaris-sparc64.tar.gz GNU 
zipped tar 16M
Which one do I need? From what you said, I'm assuming that I need 
STAF333-setup-solaris-sparc64-NoJVM.bin, because I would like to be able 
to put my Java version. And I need to be able to easily switch between 
Java 5 and Java 6 quickly because I test different in-house developed STAF 
services and some of them require Java5, but others - Java6.
On the other hand, however, if I take 
STAF333-setup-solaris-sparc64-NoJVM.bin then it should be no different 
from STAF333-solaris-sparc64.tar.gz, except for the installer itself. 
Don't these two packages differ only in what the user experiences during 
installation, but provide the very same files after installation? Is there 
a reason why these two packages should differ in what files they provide, 
since they are both without JVM?
Thanks,
Pavel Tankov
On 08.June.2009 19:34:32 Sharon Lucas wrote:
> Note that the 64-bit version of STAF for Solaris Sparc 64 (installed via 

> the STAF333-solaris-sparc64.tar.gz file) provides STAF Java support only 

> for a 64-bit JVM. So, a 64-bit JVM is required to use it. So, is the 
> JVM provided in /usr/local/staf/jre1.6.0_14 a 32-bit JVM or a 64-bit 
JVM. 
> If it's a 32-bit JVM, then that's the problem. You either need to 
> configure it to use a 64-bit JVM or you can install the 32-bit version 
of 
> STAF for Solaris Sparc which provides STAF Java support for 32-bit JVMs.
> 
> --------------------------------------------------------------
> Sharon Lucas
> IBM Austin, luc...@us.ibm.com
> (512) 286-7313 or Tieline 363-7313
> 
> ----- Forwarded by Sharon Lucas/Austin/IBM on 06/08/2009 11:25 AM -----
> 
> Sharon Lucas/Austin/IBM
> 06/08/2009 11:24 AM
> 
> To
> Pavel Tankov <ptan...@axway.com>
> cc
> staf-users@lists.sourceforge.net
> Subject
> Re: [staf-users] STAFProc unable to load any Java based service on 
Solaris 
> 10
> 
> 
> 
> 
> 
> Are there any errors in the JVM Log for the STAF Java service (e.g. post 

> the contents of /usr/local/staf/lang/java/jvm/STAFJVM1/JVMLog.1)?
> 
> Also, post the complete result from running the following on your 
Solaris 
> 10 machine:
> /usr/local/staf/jre1.6.0_14/bin/java -version
> 
> --------------------------------------------------------------
> Sharon Lucas
> IBM Austin, luc...@us.ibm.com
> (512) 286-7313 or Tieline 363-7313
> 
> 
> 
> 
> Pavel Tankov <ptan...@axway.com> 
> 06/08/2009 11:18 AM
> 
> To
> staf-users@lists.sourceforge.net
> cc
> 
> Subject
> [staf-users] STAFProc unable to load any Java based service on Solaris 
10
> 
> 
> 
> 
> 
> 
> Hello,
> I have installed STAF333-solaris-sparc64.tar.gz on a Solaris 10 machine. 

> That is the command-line installer - STAFInst. The command that I used 
to 
> install it was this:
> ./STAFInst -noreg -verbose -acceptlicense -bin /usr/bin -lib /usr/lib
> Here's some info about the machine:
> uname -a
> SunOS t1000-1 5.10 Generic_118833-33 sun4v sparc SUNW,Sun-Fire-T1000
> STAFProc starts normally with it's default configuration. Then I tried 
to 
> add a Java service and put the following line in bin/STAF.cfg file:
> SERVICE http LIBRARY JSTAF EXECUTE /usr/local/staf/services/STAFHTTP.jar
> Staf doesn't start anymore. The error I get is this:
> Error on Service definition, SERVICE http LIBRARY JSTAF EXECUTE 
> /usr/local/staf/services/STAFHTTP.jar
> 27:Error constructing service, JSTAF, Result: Unable to connect to JVM
> Error reading config file
> I have a JRE on the machine, its in /usr/local/staf/jre1.6.0_14. Here is 

> the contents of my STAFEnv.sh:
> #!/bin/sh
> # STAF environment variables
> PATH=/usr/local/staf/bin:/usr/local/staf/jre1.6.0_14/bin:${PATH:-}
> 
LD_LIBRARY_PATH=/lib:/usr/lib:/opt/csw/lib:/usr/local/staf/lib:${LD_LIBRARY_PATH:-}
> 
CLASSPATH=/usr/local/staf/lib/JSTAF.jar:/usr/local/staf/samples/demo/STAFDemo.jar:${CLASSPATH:-}
> STAFCONVDIR=/usr/local/staf/codepage
> if [ $# = 0 ]
> then
> STAF_INSTANCE_NAME=STAF
> else
> if [ $1 != "start" ]
> then
> STAF_INSTANCE_NAME=$1
> else
> # Ignore "start" STAF Instance name
> STAF_INSTANCE_NAME=STAF
> fi
> fi
> export PATH LD_LIBRARY_PATH CLASSPATH STAFCONVDIR STAF_INSTANCE_NAME
> Can anyone tell me what the problem might be?
> Thanks,
> Pavel Tankov
> 
------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> staf-users mailing list
> staf-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/staf-users
> 
> 
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to