Attaching WebCenter Portal Policies Using AttachWebServicePolicy in a Domain Configured With Domain-Wide Administration Port or Administration Channel Results in Error: SEVERE: WSM-02054 Failure in looking up EJB component (Doc ID 1668386.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.6.0 to 11.1.1.8.3 [Release 11g]
Information in this document applies to any platform.

Symptoms


When attempting to attach the default web service policies for Webcenter Portal on a domain configured with domain-wide administration port or administration channel,
the following error occurs.

ERROR

SEVERE: WSM-02054 Failure in looking up EJB component.
The EJB JNDI name is "QueryService#oracle.wsm.policymanager.ejb.IStringQueryServiceRemote", the provider URL is "t3://adminhost:adminport/wsm-pm".
The wsm-pm is not installed or not available for OWSM policy query.

 
Where:

 

 

STEPS

The issue can be reproduced with the following steps:

 

Attaching a Webcenter Portal Policy:

 

  1. Run wlst under WEBCENTER_HOME/common/bin.

  2. Connect to the administration server using the Administration Port.
     
    e.g.:
     
    connect('weblogic','pwd','t3s://adminhost:7001')
     

  3. Attach WebCenter Policies.
     
    e.g.:
     
    attachWebServicePolicy(application='/WCPDomain/WC_Spaces1/webcenter', moduleName='webcenter', moduleType='web', serviceName='SpacesWebService', subjectName='SpacesWebServiceSoapHttpPort', policyURI='oracle/wss10_saml_token_service_policy')
     
    This should return the error.
    Note it shows it is trying to connect using "t3" (non-ssl) protocol to the Administration Server with the non-ssl Port which is restricted when having a domain configured with domain-wide administration port or administration channel:
     
    SEVERE: WSM-02054 Failure in looking up EJB component.
    The EJB JNDI name is "QueryService#oracle.wsm.policymanager.ejb.IStringQueryServiceRemote", the provider URL is "t3://adminhost:adminport/wsm-pm".
    The wsm-pm is not installed or not available for OWSM policy query.
     
     

 

Testing wsm-pm QueryService:

  1. Access WLS Console.
     
  2. Click on deployments
     
  3. Click on wsm-pm.
     
  4. Click on QueryService
     
  5. Click on Testing.
     
  6. Expandn QueryService.
     
  7. Click on any managed server.
    e.g. WC_Spaces1
     
    Here it shows the following error:

    Failure using JNDI to lookup the EJB home ejb/policymanager/IQueryService on the server WC_Spaces1.
    While trying to lookup 'ejb.policymanager/IQueryService' didn't find subcontext 'ejb'. Resolved ''

    Same error is displayed with other managed servers (not exclusive to Webcenter Portal managed servers).
     


 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms