Wenn Sie von Java 8 nach Java 11 umziehen, gibt IIOP CORBA "CORBA NO PERMINTER" [Duplikat]Java

Java-Forum
Anonymous
 Wenn Sie von Java 8 nach Java 11 umziehen, gibt IIOP CORBA "CORBA NO PERMINTER" [Duplikat]

Post by Anonymous »

Ziel ist: < /p>

Codes (Portlet) von Java 8 bis Java 11 - siehe Testcase unten. /> oben sind Einschränkungen, die ich nicht ersetzen kann.Context ctx = new InitialContext();
String jndiName = "corbaname:iiop:127.0.0.1:3700#java:global/Portal/Portalejb/PortalService!se.services.portal.PortalServiceHome";
PortalServiceHome home = (PortalServiceHome)ctx.lookup(jndiName);
PortalService ps = home.create();
< /code>
Testcode mit Java 11, der fehlschlägt (gegen Payara, das auf Java 11 läuft): < /p>
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", "localhost");
props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
props.setProperty("org.omg.CORBA.ORBClass", "com.sun.corba.ee.impl.orb.ORBImpl");
Context ctx = new InitialContext(props);
String jndiName = "java:global/Portal/Portalejb/PortalService!se.services.portal.PortalServiceHome";
PortalServiceHome home = (PortalServiceHome)ctx.lookup(jndiName);
PortalService ps = home.create();
< /code>
Home-Schnittstellen funktionieren funktioniert, aber es scheitert mit: < /p>
java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No
at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.handle_null_service_context(SecServerRequestInterceptor.java:441)
at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerRequestInterceptor.java:460)
< /code>
In beiden Fällen gleiche Sitzungsbean und gleiche Payara 5. Seitdem in Java 11 mehrere Javax -Funktionen geworden sind, wurden im Kunden neue Libs eingeführt. Neue Artefakte: Glassfish-Corba-OMGAPI, Javaee-API und GF-Client.>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post