Forum Stats

  • 3,757,482 Users
  • 2,251,236 Discussions
  • 7,869,841 Comments

Discussions

Unable to call Webservice in Standalone Weblogic 12.2.1.3

User_XAARK
User_XAARK Member Posts: 5 Employee

Hi,

I created a webserivce data control from a WSDL in my application. While trying to call any method it throws the error

"WSM-06303 : The method "getRepositoryAccessor" was not called with required permission "oracle.wsm.policymanager.accessor.IRepositoryAccessor"

access denied ("java.lang.RuntimePermission" "oracle.wsm.policymanager.accessor.IRepositoryAccessor")

Here's what I know

  1. The application is built using JDev 12.2.1.3 and I' trying to deploy on Weblogic Server 12.2.1.3
  2. The webservice is up and I'm able to test in the EM console. The webservice has no security.
  3. It's working in my Integrated Weblogic Server. This error only comes up when I deploy the application on a standalone weblogic server.
  4. When I try to execute the webservice it throws the below exception :-

## Detail 1 ##

javax.xml.ws.WebServiceException: java.lang.SecurityException: WSM-06303 : The method "getRepositoryAccessor" was not called with required permission "oracle.wsm.policymanager.accessor.IRepositoryAccessor" 

at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:1450)

at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:238)

at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:109)

at oracle.adf.model.connection.webservice.impl.SaajInteractionImpl.execute(SaajInteractionImpl.java:77)

at oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider.execute(SOAPProvider.java:407)

at oracle.adfinternal.model.adapter.webservice.WSDataControl.invokeOperation(WSDataControl.java:357)

at oracle.adf.model.bean.DCBeanDataControl.invokeMethod(DCBeanDataControl.java:512)

at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:269)

at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1742)

at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2371)

at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:628)

at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:316)

at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:803)

at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.invokeMethodAction(JUMethodIteratorDef.java:175)

at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.executeQuery(JUMethodIteratorDef.java:422)

at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.executeQueryIfNeeded(JUMethodIteratorDef.java:363)

at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3385)

at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:3037)

at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:3023)

at oracle.adfinternal.controller.util.model.DataBindingActivityImpl.beforeExecute(DataBindingActivityImpl.java:143)

at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1214)

at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:1079)

at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:970)

at oracle.adfinternal.controller.engine.ControlFlowEngine.invokeTaskFlow(ControlFlowEngine.java:248)

at oracle.adfinternal.controller.state.ChildViewPortContextImpl.invokeTaskFlow(ChildViewPortContextImpl.java:110)

at oracle.adfinternal.controller.state.ControllerState.createChildViewPort(ControllerState.java:1568)

at oracle.adfinternal.controller.ControllerContextImpl.createChildViewPort(ControllerContextImpl.java:105)

at oracle.adf.controller.internal.binding.TaskFlowRegionModelViewPort.createRegionViewPortContext(TaskFlowRegionModelViewPort.java:886)

at oracle.adf.controller.internal.binding.TaskFlowRegionModelViewPort.getViewPort(TaskFlowRegionModelViewPort.java:674)

at oracle.adf.controller.internal.binding.TaskFlowRegionModelViewPort.doProcessBeginRegion(TaskFlowRegionModelViewPort.java:242)

at oracle.adf.controller.internal.binding.TaskFlowRegionModelViewPort.processBeginRegion(TaskFlowRegionModelViewPort.java:162)

at oracle.adf.controller.internal.binding.TaskFlowRegionModelLocal.processBeginRegion(TaskFlowRegionModelLocal.java:12)

at oracle.adf.view.rich.component.fragment.UIXRegion$RegionContextChange.doChangeImpl(UIXRegion.java:1565)

at oracle.adf.view.rich.context.DoableContextChange.doChange(DoableContextChange.java:91)

at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:816)

at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:346)

at oracle.adfinternal.view.faces.taglib.region.AbstractRegionTag.doStartTag(AbstractRegionTag.java:76)

at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:92)

at jsp_servlet.__view1_jspx._jspx___tag635(__view1_jspx.java:30255)

at jsp_servlet.__view1_jspx._jspx___tag634(__view1_jspx.java:30218)

at jsp_servlet.__view1_jspx._jspx___tag620(__view1_jspx.java:29539)

at jsp_servlet.__view1_jspx._jspx___tag619(__view1_jspx.java:29480)

at jsp_servlet.__view1_jspx._jspx___tag91(__view1_jspx.java:4569)

at jsp_servlet.__view1_jspx._jspx___tag90(__view1_jspx.java:4490)

at jsp_servlet.__view1_jspx._jspx___tag36(__view1_jspx.java:1955)

at jsp_servlet.__view1_jspx._jspx___tag35(__view1_jspx.java:1903)

at jsp_servlet.__view1_jspx._jspx___tag7(__view1_jspx.java:474)

at jsp_servlet.__view1_jspx._jspx___tag6(__view1_jspx.java:414)

at jsp_servlet.__view1_jspx._jspx___tag1(__view1_jspx.java:191)

at jsp_servlet.__view1_jspx._jspx___tag0(__view1_jspx.java:124)

at jsp_servlet.__view1_jspx._jspService(__view1_jspx.java:82)

at weblogic.servlet.jsp.JspBase.service(JspBase.java:35)

at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:286)

at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)

at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:350)

at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:92)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:631)

at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:287)

at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:643)

at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:96)

at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:96)

at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:96)

at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)

at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:96)

at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:96)

at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:167)

at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:363)

at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:153)

at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.buildView(ViewDeclarationLanguageWrapper.java:94)

at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.buildView(ViewDeclarationLanguageWrapper.java:94)

at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.buildView(ViewDeclarationLanguageFactoryImpl.java:322)

at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager._processViewDefinitionLanguage(ResponseRenderManager.java:105)

at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:41)

at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1264)

at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeRenderResponse(LifecycleImpl.java:1107)

at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:348)

at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:258)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:651)

at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:286)

at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)

at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:350)

at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:207)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)

at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:529)

at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:529)

at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:354)

at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:232)

at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:92)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:248)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:32)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3701)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3667)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)

at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197)

at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)

at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)

at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2443)

at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2291)

at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2269)

at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1703)

at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1663)

at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:272)

at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)

at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)

at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)

at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)

at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)

Caused by: java.lang.SecurityException: WSM-06303 : The method "getRepositoryAccessor" was not called with required permission "oracle.wsm.policymanager.accessor.IRepositoryAccessor" 

at oracle.wsm.config.ConfigurationManager.checkPermission(ConfigurationManager.java:1732)

at oracle.wsm.config.ConfigurationManager.getRepositoryAccessor(ConfigurationManager.java:2100)

at oracle.wsm.policyaccess.PolicyAccessPoint$1.run(PolicyAccessPoint.java:411)

at oracle.wsm.policyaccess.PolicyAccessPoint$1.run(PolicyAccessPoint.java:407)

at java.security.AccessController.doPrivileged(Native Method)

at oracle.wsm.policyaccess.PolicyAccessPoint.getInstance(PolicyAccessPoint.java:407)

at oracle.wsm.policyaccess.PolicyAccessPoint.getInstance(PolicyAccessPoint.java:319)

at oracle.j2ee.ws.common.wsm.WSMPolicyHelper.registerJseWsmAssemblyDescriptor(WSMPolicyHelper.java:678)

at oracle.j2ee.ws.client.jaxws.DispatchImpl$3.run(DispatchImpl.java:2669)

at oracle.j2ee.ws.client.jaxws.DispatchImpl$3.run(DispatchImpl.java:2666)

at java.security.AccessController.doPrivileged(Native Method)

at oracle.j2ee.ws.client.jaxws.DispatchImpl.registerWsmAssemblyIfAvailable(DispatchImpl.java:2666)

at oracle.j2ee.ws.client.jaxws.DispatchImpl.getPolicySubject(DispatchImpl.java:605)

at oracle.j2ee.ws.client.jaxws.DispatchImpl.initInterceptorPipeline(DispatchImpl.java:508)

at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:1347)

... 122 more

Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "oracle.wsm.policymanager.accessor.IRepositoryAccessor")

at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)

at java.security.AccessController.checkPermission(AccessController.java:886)

at oracle.security.jps.util.JpsAuth$AuthorizationMechanism$3.checkPermission(JpsAuth.java:527)

at oracle.security.jps.util.JpsAuth.checkPermission(JpsAuth.java:587)

at oracle.security.jps.util.JpsAuth.checkPermission(JpsAuth.java:626)

at oracle.security.jps.util.JpsAuth.checkPermission(JpsAuth.java:606)

at oracle.wsm.config.ConfigurationManager.checkPermission(ConfigurationManager.java:1728)

... 136 more

I will be grateful for your help.

Thanks & Regards,

Aniruddh Mishra

Tagged:

Answers

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,543 Red Diamond

    Have you tested the web service in the EM on the stand-alone server?

    Maybe the server has a security-enabled you have not on your embedded sever. Have you talked to an admin about this?


    Timo


  • User_XAARK
    User_XAARK Member Posts: 5 Employee
    edited Aug 31, 2021 7:33PM

    I have tested the webservice in EM on the stand alone server. It's working.

    If I test the webservice directly through the webservice endpoint url in the EM then it's working. I'm able to trigger the webservice and receive the result. However, when I try to consume the web service through Web Service data control it throws the above mentioned error.

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,543 Red Diamond

    Have you tried the web service with any other tool e.g. soapui?

    The error you get points to a missing authorization or if you don't use security to a wrong configuration when you created the part of the app that should consume the web service.


    Timo