SM 9.30: SRC does not start

  • KM00205292
  • 08-Oct-2012
  • 30-Aug-2013

Summary

After deploying SRC war file, the web is not running (not possible to see the log in page)

Error

ERROR [Thread-2] (ContextLoader.java:220) - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'com.hp.service.catalog.connector.sm.ServiceManagerConnector#0' defined in ServletContext resource [/WEB-INF/spring/applicationContext-service.xml]: Could not resolve placeholder 'serviceManager.port'
 at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:272)
 at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)
 at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663)
 at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:638)
 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
 at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
 at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
 at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
 at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)

Cause

Port is not running or has not been correctly set.

Note: SRC cannot connect to Load Balancer port, it has to be a port in debugnode

Fix

Make sure there is a port in debugnode running. If there isn't any, use the following line from the sm.cfg file as an example on how to start a new servlet in debugnode:

sm -httpPort:14090 -httpsPort:14091 -ssl:0 -sslConnector:0 -trustedsignon:0 -debugnode:1

And configure SRC (file applicationContext.properties) to point to that port with the following line:

serviceManager.port=14090