Thursday, November 21, 2013

'Service not available' error with webcenter services (Polling etc)

We have recently hit 'Service not available' error with polling service of webcenter. Solution we found is that we need to have correct jndi settings in weblogic.xml file

weblogic.xml file by default resides in /WEB-INF folder. Its has two jndi entries, which are used to connect with WebCenter and ActivityStream schema. 

Generally settings are 

 <resource-description>
    <res-ref-name>jdbc/ActivitiesDS</res-ref-name>
    <jndi-name>jdbc/ActivitiesDS</jndi-name>
  </resource-description>
  <resource-description>
    <res-ref-name>jdbc/WebCenterDS</res-ref-name>
    <jndi-name>jdbc/WebCenterDS</jndi-name>
  </resource-description>


We need to have two db connection settings in weblogic with jndi entries as jdbc/ActivitiesDS and
jdbc/WebCenterDS. 


jdbc/ActivitiesDS should point to activity shema and jdbc/WebCenterDS should point to webcenter schema. 

If we are creating different jndi connection in weblogic, we should change entry in weblogic.xml accordingly. 


Disclaimer: Any views or opinions presented in this blog are solely those of the author and do not necessarily represent those of the company.