访问Glassfish 4 payara服务器

时间:2017-12-28 09:30:07

标签: ejb glassfish-4 payara orb iiop

我在访问部署在GlassFish-A上的安全EJB(@RolesAllowed)时遇到错误, 我从部署在Glassfish-B上的Application访问此EJB。

  

引起:java.lang.RuntimeException:无法传播   使用run as identity at时目标所需的用户名/密码   com.sun.enterprise.iiop.security.SecurityContextUtil.getSecurityContext(SecurityContextUtil.java:141)     在   com.sun.enterprise.iiop.security.SecClientRequestInterceptor.send_request(SecClientRequestInterceptor.java:271)     在   com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeClientInterceptorStartingPoint(InterceptorInvoker.java:290)     在   com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeClientPIStartingPoint(PIHandlerImpl.java:378)     在   com.sun.corba.ee.impl.protocol.ClientRequestDispatcherImpl.beginRequest(ClientRequestDispatcherImpl.java:323)     在   com.sun.corba.ee.impl.protocol.ClientDelegateImpl.request(ClientDelegateImpl.java:220)     在   com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:192)     在   com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:150)     在   com.sun.corba.ee.impl.presentation.rmi.codegen.CodegenStubBase.invoke(CodegenStubBase.java:226)     在   com.sun.ejb.codegen._GenericEJBHome_Generated_DynamicStub.create(COM /阳光/ EJB /代码生成/ _GenericEJBHome_Generated_DynamicStub.java)     在sun.reflect.GeneratedMethodAccessor131.invoke(未知来源)at   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)at   com.sun.ejb.EJBUtils.lookupRemote30BusinessObject(EJBUtils.java:428)     ... 107更多

0 个答案:

没有答案