Thanks for getting back to me on this Sharon. JSTAF.jar does exists and is
specified in the CLASSPATH:
-bash-4.1# ls -al /usr/local/staf/lib/JSTAF.jar
-rwxrwxr-x. 1 root root 89542 Mar 28 20:01 /usr/local/staf/lib/JSTAF.jar
-bash-4.1# echo $CLASSPATH
/usr/local/staf/lib/JSTAF.jar:/usr/local/staf/samples/demo/STAFDemo.jar
But for some reason, the CLASSPATH variable was not recognized. When I re-
exported it, STAFProc started working again.
Thank you very much again!!!
Anna
On Mon, Jul 2, 2012 at 1:58 PM, Sharon Lucas <luc...@us.ibm.com> wrote:
> The error message in the STAX JVM Log says it can't find class
> com/ibm/staf/service/STAFServiceHelper.
> This class is provided in the JSTAF.jar file so my guess is that you
> don't have the JSTAF.jar file in your CLASSPATH when starting STAFProc.
> Check your CLASSPATH and make sure that it contains the JSTAF.jar file
> (located in the STAF lib directory, e.g. /usr/local/staf/lib/JSTAF.jar).
>
> See the STAF Installation Guide at
> http://staf.sourceforge.net/current/STAFInstall.pdf, section "7.
> Environment Variable Settings" for more information on the required STAF
> environment variables. Note that if you used a STAF InstallAnywhere
> installer and used the default setting to have the install update the
> environment variables on your system for STAF, then the JSTAF.jar file
> would have been set for your by the install.
>
> Or, if you use startSTAFProc.sh (in /usr/local/staf) to start STAFProc,
> then it runs STAFEnv.sh before starting STAFProc and it sets the
> environment variables for STAF, including adding the JSTAF.jar file to the
> CLASSPATH).
>
> --------------------------------------------------------------
> Sharon Lucas
> IBM Austin, luc...@us.ibm.com
> (512) 286-7313 or Tieline 363-7313
>
>
>
>
> From: Anna Pereira <annazpere...@gmail.com>
> To: staf-users@lists.sourceforge.net,
> Date: 07/02/2012 03:53 PM
> Subject: [staf-users] STAF fails to start when STAX is added to
> the configuration file
> ------------------------------
>
>
>
> Hi,
>
> I have used the 64-bit installer to install STAF:
> -bash-4.1# cat /usr/local/staf/install.properties
> version=3.4.9
> platform=linux-amd64
> architecture=64-bit
> installer=IA
> file=staf.bin
> osname=Linux
> osversion=*
> osarch=amd64
>
>
> I also have 64-bit java installed:
> bash-4.1# java -version
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>
> When I add the following line to STAF.cfg, STAF fails to start:
> SERVICE STAX LIBRARY JSTAF EXECUTE /data/STAF/src/stax/STAX.jar OPTION
> J2=-Xmx512m
> SERVICE EVENT LIBRARY JSTAF EXECUTE /data/STAF/src/stax/STAFEvent.jar
> SET MAXQUEUESIZE 10000
>
> I get the following error message:
> Error on Service definition line:
> SERVICE STAX LIBRARY JSTAF EXECUTE /data/STAF/src/stax/STAX.jar OPTION
> J2=-Xmx512m
> Error code: 27
> Reason : Error constructing service, JSTAF, Result: Unable to connect
> to JVM
> Error in configuration file: /usr/local/staf/bin/STAF.cfg
>
>
> JVMLog shows the following:
> *** 20120702-12:58:38 - Start of Log for JVMName: STAFJVM1
> *** JVM Executable: java
> *** JVM Options : -Xmx512m
> *** JVM Version : java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/ibm/staf/service/STAFServiceHelper
> Caused by: java.lang.ClassNotFoundException:
> com.ibm.staf.service.STAFServiceHelper
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: com.ibm.staf.service.STAFServiceHelper.
> Program will exit.
>
> This happens on a system running Rhel6.2. It seems to work on another
> system running Rhel 5.6.
>
> Any ideas on what is preventing STAF from starting ?
>
> Thanks
> Anna
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> staf-users mailing list
> staf-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/staf-users
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users