It's all about the answers!

Ask a question

Using RTC PlainJavaClient in JFS Application(by JAFSDK) on Liberty, NoClassDefFoundError occured.


Hideaki Honda (111) | asked Feb 06 '18, 2:23 a.m.
edited Feb 06 '18, 2:28 a.m.

Who has had the same case or the experience as the following?

JFS enhanced application (RawRestService using JAF SDK) calls PlainJavaClient process(Plugin) of RTC to search attributes of RTC work items or Jazz users.

When the RTC process is run in an unit test, it is run without problem.
However the process is run with JFS applications, NoClassDefFoundError error is reported.

JazzFoundationServer is run in the Liberty server currently.

http://www-01.ibm.com/support/docview.wss?uid=swg21615569
Then, according to the information of the above site (Class in PlainJavaClient library must be prioritized by setting "parentLast" option, and Class in WAS side must be used for Javax.servlet.),
I performed the following. However the problem is not resolved.

・Adding required PlainJavaClient module for MANIFEST.MF > Runtime > classpath in plugin using PlainJavaClient.(without javax.servlet)
・Deploying PlainJavaClient module on the server (without javax.servlet), and adding referenced setting as application.xml of Liberty
・Adding parentLast in Library setting to ensure that PlainJavaClient module is prioritized for reference.

Details of the error are as follows:

[ command]
C:\Users\IBM_ADMIN>curl -k -L -b jts_cookie6.txt -H "Content-Type: application/xml" --data-binary @mailsend.xml -X POST https://localhost:9443/myservice/send

[result]
<H1>Error Page Exception</H1>
<H4>SRVE0260E: The server cannot use the error page specified for your application to handle the Original Exception printed below.</H4>
<BR><H3>Original Exception: </H3>
<B>Error Message: </B>java.lang.NoClassDefFoundError: com.ibm.team.repository.client.internal.ContributorManager &#40;initialization failure&#41;<BR>
<B>Error Code: </B>500<BR>
<B>Target Servlet: </B><BR>
<B>Error Stack: </B><BR>
java.lang.NoClassDefFoundError: com.ibm.team.repository.client.internal.ContributorManager &#40;initialization failure&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at java.lang.J9VMInternals.initializationAlreadyFailed&#40;J9VMInternals.java:91&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.client.internal.TeamRepository.&lt;init&gt;&#40;TeamRepository.java:447&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.client.internal.TeamRepositoryService.createSharedTeamRepository&#40;TeamRepositoryService.java:526&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository&#40;TeamRepositoryService.java:113&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository&#40;TeamRepositoryService.java:132&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.jfs.hgt.rtc.getuserinfo.GetUserInfoRTC.getUserInfo&#40;GetUserInfoRTC.java:240&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.jfs.hgt.mailservice.MailService.perform_POST&#40;MailService.java:211&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.service.TeamRawService.service&#40;TeamRawService.java:92&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at sun.reflect.NativeMethodAccessorImpl.invoke0&#40;Native Method&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at sun.reflect.NativeMethodAccessorImpl.invoke&#40;NativeMethodAccessorImpl.java:90&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java:55&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at java.lang.reflect.Method.invoke&#40;Method.java:508&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke&#40;ExportProxyServiceRecord.java:361&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0&#40;ExportProxyServiceRecord.java:347&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke&#40;ExportProxyServiceRecord.jav
a:56&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.sun.proxy.$Proxy1845.service&#40;Unknown Source&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doRestService&#40;AbstractTeamServerServlet.java:1107&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest2&#40;AbstractTeamServerServlet.java:2711&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest&#40;AbstractTeamServerServlet.java:2489&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.servlet.AbstractTeamServerServlet.access$0&#40;AbstractTeamServerServlet.java:2474&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.servlet.AbstractTeamServerServlet$1.service&#40;AbstractTeamServerServlet.java:257&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.service.internal.compatibility.auth.DelegatedAuthHandlerService$1.run&#40;DelegatedAuthHandlerService.java:264&#41;

<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleAuthentication&#40;AbstractTeamServerServlet.java:2161&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service&#40;AbstractTeamServerServlet.java:1898&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at javax.servlet.http.HttpServlet.service&#40;HttpServlet.java:668&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service&#40;ServletManager.java:180&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service&#40;ServletRegistration.java:61&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias&#40;ProxyServlet.java:128&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service&#40;ProxyServlet.java:76&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at javax.servlet.http.HttpServlet.service&#40;HttpServlet.java:668&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at org.eclipse.equinox.servletbridge.BridgeServlet.service&#40;BridgeServlet.java:152&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.server.servletbridge.JazzServlet.service&#40;JazzServlet.java:74&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at javax.servlet.http.HttpServlet.service&#40;HttpServlet.java:668&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.service&#40;ServletWrapper.java:1290&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest&#40;ServletWrapper.java:778&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest&#40;ServletWrapper.java:475&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget&#40;WebAppFilterChain.java:152&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter&#40;WebAppFilterChain.java:94&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.server.servletbridge.BridgeFilter.processDelegate&#40;BridgeFilter.java:165&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.server.servletbridge.BridgeFilter.doFilter&#40;BridgeFilter.java:198&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter&#40;FilterInstanceWrapper.java:207&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter&#40;WebAppFilterChain.java:91&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter&#40;WebAppFilterManager.java:1021&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters&#40;WebAppFilterManager.java:1143&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest&#40;WebApp.java:4983&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.handleRequest&#40;DynamicVirtualHost.java:315&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.webcontainer.WebContainer.handleRequest&#40;WebContainer.java:1025&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run&#40;DynamicVirtualHost.java:280&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run&#40;HttpDispatcherLink.java:967&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.wrapHandlerAndExecute&#40;HttpDispatcherLink.java:359&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready&#40;HttpDispatcherLink.java:318&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleDiscrimination&#40;HttpInboundLink.java:471&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleNewRequest&#40;HttpInboundLink.java:405&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.processRequest&#40;HttpInboundLink.java:285&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.ready&#40;HttpInboundLink.java:256&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.channel.ssl.internal.SSLConnectionLink.determineNextChannel&#40;SSLConnectionLink.java:1043&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.channel.ssl.internal.SSLConnectionLink$MyReadCompletedCallback.complete&#40;SSLConnectionLink.java:632&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.channel.ssl.internal.SSLReadServiceContext$SSLReadCompletedCallback.complete&#40;SSLReadServiceContext.java:1777&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.tcpchannel.internal.WorkQueueManager.requestComplete&#40;WorkQueueManager.java:504&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO&#40;WorkQueueManager.java:574&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.tcpchannel.internal.WorkQueueManager.workerRun&#40;WorkQueueManager.java:929&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.ws.tcpchannel.internal.WorkQueueManager$Worker.run&#40;WorkQueueManager.java:1018&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at java.util.concurrent.ThreadPoolExecutor.runWorker&#40;ThreadPoolExecutor.java:1160&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at java.util.concurrent.ThreadPoolExecutor$Worker.run&#40;ThreadPoolExecutor.java:635&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at java.lang.Thread.run&#40;Thread.java:785&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
Caused by: java.lang.IllegalArgumentException: The type name Contributor and the namespace URI com.ibm.team.repository do not resolve to an IItemType.

<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.common.internal.querypath.AbstractQueryPathModel$Implementation.getItemType&#40;AbstractQueryPathModel.java:197&#41
;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.common.query.IQuery$Factory.newInstance&#40;IQuery.java:93&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.client.internal.ContributorManager.createAllContributorsQuery&#40;ContributorManager.java:72&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.client.internal.ContributorManager.&lt;clinit&gt;&#40;ContributorManager.java:60&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.client.internal.TeamRepository.&lt;init&gt;&#40;TeamRepository.java:447&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.client.internal.TeamRepositoryService.createSharedTeamRepository&#40;TeamRepositoryService.java:526&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository&#40;TeamRepositoryService.java:113&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository&#40;TeamRepositoryService.java:132&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        at com.ibm.jfs.hgt.rtc.getuserinfo.GetUserInfoRTC.getUserInfo&#40;GetUserInfoRTC.java:239&#41;
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
        ... 59 more
<BR>&nbsp;&nbsp;&nbsp;&nbsp;
<BR>

Be the first one to answer this question!


Register or to post your answer.