I am trying to track down the cause of an annoying message in glassfish that is polluting our log files.
To simplify our set up, we have 2 glassfish servers running 3.1.2.2.
Server A has a web service deployed on it, using Certificate based security defined using roles in the web service and the mappings in the sun-ejb-jar.xml and sun-application.xml.
Server B has a remote EJB deployed on it, with no security configured.
When calling the remote EJB on server B, from the web service on server A using code like:
Properties props = new Properties();
props.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory");
props.setProperty("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
props.setProperty("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
props.setProperty("org.omg.CORBA.ORBInitialHost", server.getServer());
props.setProperty("org.omg.CORBA.ORBInitialPort", Integer.toString(server.getEjb3Port()));
InitialContext ic = new InitialContext(props);
return ((MyIF)ic.lookup(MyIF.class.getName())).doWork();
The log on server A gets the following logged to it, but the EJB call works as expected.
[#|2012-09-20T08:43:42.141+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.iiop.security|_ThreadID=26;_ThreadName=Thread-2;|IIOP1002: Principal propagation: Cannot find principal information in subject|#]
Has anyone had any experience of this error and know how to resolve this issue?
The Oracle Documentation on the message is not very helpful.
IIOP1002 Principal propagation: Cannot find principal information in subject
Cause: The principal information is not found in the subject
Action: Please check the config settings for identity propagation