From: Andersen, J. <jan...@in...> - 2011-11-22 16:06:55
|
I am developing a web application that needs to call into STAF; the application server is GlassFish 3, the java is version 6, and I have included a reference to the JSTAF.jar in the server configuration. I try to create a new STAFHandle like this: @ManagedBean public class StafSession { public StafSession() { try { Handle=new STAFHandle("session"); } catch (STAFException ex) { Logger.getLogger(StafSession.class.getName()).log(Level.SEVERE, null, ex); } name=""; cmd=""; } ... - but I get an error, saying: Could not initialize class com.ibm.staf.STAFHandle What have I done wrong? Is it the wrong version of java? Something in the server setup? |