An error occurred while retrieving the list of Projects during portal login and VSE servers

book

Article ID: 74980

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder)

Issue/Introduction

When logging to the Portal we are getting the error "An error occurred while retrieving the list of VSE servers".
We are not able to see the list of deployed VSMs under Monitor, Virtual Service Environments, VSE or look at the Server Health tab.

Error while retrieving list of Projects. (500 No JSON Formated Retrofit Error <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 503 </title> </head> <body> <h2>HTTP ERROR: 503</h2> <p>Problem accessing /res-hub/v1/projects. Reason: <pre> Service Unavailable</pre></p> <hr /><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.3.z-SNAPSHOT</a><hr/> </body> </html> )

Registry startup logs may show below error:
ERROR org.springframework.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'undertowEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedUndertow.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainerFactory]: Factory method 'undertowEmbeddedServletContainerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: io/undertow/servlet/api/InstanceFactory
 at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)

Cause

This issue happened when:
  • activemq -all-5.15.2.jar was being used and was not the correct jar to use for creating Active MQ virtual services.
 
  • the content of the $DEVTEST_HOME/hotdeploy folder or custom extensions were duplicated in the $DEVTEST_HOME/lib folder.
 
  • com.ibm.mq.allclient.9.1.1.0.jar and all the other MQ jar files were under the $DEVEST_HOME/lib folder. 
  •  If the registry log shows the error for " 'undertowEmbeddedServletContainerFactory' then it is because of jboss client JAR missing from hotDeploy and(or) placed into /lib/shared. It could also be due to unsupported version of that JAR.

Environment

DevTest 10.x

Resolution

The following actions were take to resolve this issue.
The list below follows the order for the root causes above:
  • adding the jars files listed below in $DEVTEST_HOME/hotDeploy folder on VSE server and restarting VSE:

. activemq-client-5.15.2.jar


. hawtbuf-1.11.jar



  • When using custom extensions, place them under $DEVTEST_HOME/hotdeploy folder and it should be enough. No need to place the custom jar files under $DEVTEST_HOME/lib.

  • All the MQ jar files were removed and only com.ibm.mq.allclient.jar and com.ibm.mq.commonservices.jar. were maintained.


When configuring DevTest with WebSphere MQ 8 and 9 the following JAR files are required:


com.ibm.mq.allclient.jar
com.ibm.mq.commonservices.jar


Alternately, you can use the following JAR files:


com.ibm.mq.commonservices.jar
com.ibm.mq.headers.jar
com.ibm.mq.jar
com.ibm.mq.jmqi.jar
com.ibm.mq.pcf.jar
com.ibm.mqjms.jar


Additional Information

activemq jars are available in apache-activemq-5.15.2-bin.zip, which can be downloaded from http://activemq.apache.org/activemq-5152-release.html