IBM Support

Composer error: Error 500: javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet

Troubleshooting


Problem

Error encountered below when using composer:

AWSBIA389E Composer was not able to obtain a valid default workstation from the value "MDMPRD". The error is: "Error 500: javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet".

The error message also appears in Liberty logs:

SRVE0271E: Uncaught init() exception created by servlet [com.ibm.tws.twsd.rest.application.ModelApplication] in application [TWSEngineModel]: java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlElement

Symptom

The error usually comes out after a Linux patching. Executing composer or any composer commands results in error below:

AWSBIA389E Composer was not able to obtain a valid default workstation from the value "MDMPRD". The error is: "Error 500: javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet".

These error messages appear in messages.log:

[4/9/23 3:35:56:789 CDT] 00000288 com.ibm.ws.webcontainer.servlet               E SRVE0271E: Uncaught init() exception created by servlet [com.ibm.tws.twsd.rest.application.ModelApplication] in application [TWSEngineModel]: java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlElement
    at org.codehaus.jackson.xc.JaxbAnnotationIntrospector.<init>(JaxbAnnotationIntrospector.java:80)
    at org.apache.cxf.jaxrs.provider.ProviderFactory.createJsonBindingProvider(ProviderFactory.java:315)
    at org.apache.cxf.jaxrs.provider.ProviderFactory.initFactory(ProviderFactory.java:192)
    at org.apache.cxf.jaxrs.provider.ServerProviderFactory.createInstance(ServerProviderFactory.java:123)
    at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setupFactory(JAXRSServerFactoryBean.java:234)
    at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:182)
    at com.ibm.ws.jaxrs20.server.JaxRsWebEndpointImpl.init(JaxRsWebEndpointImpl.java:70)
    at com.ibm.websphere.jaxrs.server.IBMRestServlet.init(IBMRestServlet.java:64)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:299)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:601)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:193)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:98)
    at com.ibm.tws.twsd.rest.util.RequestFilter.doFilter(RequestFilter.java:66)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:201)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
    at com.ibm.ws.security.jaspi.JaspiServletFilter.doFilter(JaspiServletFilter.java:56)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:201)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:1002)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1140)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1011)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:75)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:938)
    at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:279)
    at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:1159)
    at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.wrapHandlerAndExecute(HttpDispatcherLink.java:428)
    at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready(HttpDispatcherLink.java:387)
    at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:566)
    at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleNewRequest(HttpInboundLink.java:500)

Document Location

Worldwide


[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGSPN","label":"IBM Workload Scheduler"},"ARM Category":[{"code":"a8m0z000000XarXAAS","label":"Components-\u003EJAVA"}],"ARM Case Number":"TS012644194","Platform":[{"code":"PF016","label":"Linux"}],"Version":"10.1.0;9.5.0"}]

To view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use the link to actual document below to access the full document. You will be asked to log on if you are not already logged in. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
IBM Workload Scheduler

Component:
Components->JAVA

Software version:
10.1.0, 9.5.0

Operating system(s):
Linux

Document number:
6983266

Modified date:
14 April 2023

UID

ibm16983266

Manage My Notification Subscriptions