Rosa Valcarcel 21.Dec.09 06:28 AM a Web browser Application development6.2All platforms
Hello,
I am using Eclipse 3.4. I have a Java program that logons sucessfully via JAAS. It runs successfully in the
development environment, and I use the following VM argument:
-Djava.security.auth.login.config=C:\jaas.conf
I also created a plugin with the same behavior, and it runs successfully.
However, when I run the plugin with Lotus Expeditor (in the Eclipse development Environment), I get the following error:
2009/12/21 12:02:13.734 WARNING jndiUnavailCommErr ::class.method=unknown ::thread=P=332281:O=0:CT ::loggername=com.ibm.ws.naming.util.WsnInitCtxFactory
2009/12/21 12:02:14.937 WARNING jndiUnavailCommErr ::class.method=unknown ::thread=P=332281:O=0:CT ::loggername=com.ibm.ws.naming.util.WsnInitCtxFactory
SEVERE CWPST0013E: Could not locate JAAS Configuration with name "FileNetP8", verify that the configuration exists and is non-empty ::class.method=com.ibm.rcp.internal.security.auth.ConfigurationFederator.getAppConfigurationEntry() ::thread=P=373453:O=0:CT ::loggername=com.ibm.rcp.internal.security.auth
SEVERE CWPST0013E: Could not locate JAAS Configuration with name "other", verify that the configuration exists and is non-empty ::class.method=com.ibm.rcp.internal.security.auth.ConfigurationFederator.getAppConfigurationEntry() ::thread=P=373453:O=0:CT ::loggername=com.ibm.rcp.internal.security.auth
I tried several things:
1- Specify VM property in the launch VM arguments section ("Arguments" tab)
2- Set the VM property by code:
System.setProperty("java.security.auth.login.config", "c:\\jaas.conf");
3- Copy jaas.conf in the plugin and do the following:
URL url = FileLocator.find(Activator.getDefault().getBundle(), new Path("jaas.conf"), null);
System.setProperty("java.security.auth.login.config", url.toExternalForm());
4- Add in rcpinstall.properties file the following sentence:
-Djava.security.auth.login.config=C:\jaas.conf
5- Any of the above. In that case, my Java program still works fine (because then a default jaas file is
used, that is in one of the required JARs for my application). However, my plugin with Lotus Expeditor neither works in that case.
I am not sure what the problem is:
- if the VM property (java.security.auth.login.config) is not taken into a account, or
- VM property has the right value but the file is not found / cannot be read.
What I am sure is that this wrong behavior just happens in Lotus Expeditor.
Please, help.