NetWorker RESTAPI가 "Native Library /nsr/authc/webapps/nwrestapi/WEB-INF/lib/librestapi64.so already loaded in another classloader"로 로드되지 않습니다.

Summary: NetWorker RESTAPI에서 로드가 실패합니다. "java.lang.UnsatisfiedLinkError: 기본 라이브러리 /nsr/authc/webapps/nwrestapi/WEB-INF/lib/librestapi64.so 이미 다른 클래스로더에 로드됨"

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

  • NetWorker RESTAPI에서 로드가 실패합니다. "java.lang.UnsatisfiedLinkError: 기본 라이브러리 /nsr/authc/webapps/nwrestapi/WEB-INF/lib/librestapi64.so 이미 다른 클래스로더에 로드됨"
HTTP Status 500 - Servlet.init() for servlet nwrestapi threw exception

type Exception report

message Servlet.init() for servlet nwrestapi threw exception

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet nwrestapi threw exception
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1775)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1734)
	java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	java.lang.Thread.run(Unknown Source)

root cause

java.lang.UnsatisfiedLinkError: Native Library /nsr/authc/webapps/nwrestapi/WEB-INF/lib/librestapi64.so already loaded in another classloader
	java.lang.ClassLoader.loadLibrary0(Unknown Source)
	java.lang.ClassLoader.loadLibrary(Unknown Source)
	java.lang.Runtime.load0(Unknown Source)
	java.lang.System.load(Unknown Source)
	com.emc.nw.webapi.WebApiServlet.loadDbSessionModules(WebApiServlet.java:75)
	com.emc.nw.webapi.WebApiServlet.init(WebApiServlet.java:55)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1775)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1734)
	java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	java.lang.Thread.run(Unknown Source)

  • lsof 명령은 DEL 상태의 라이브러리를 표시합니다.
[root@nw_server ~]#  lsof | grep librestapi64
jsvc       4543 nsrtomcat  DEL       REG              253,2   14881546   67764661 /nsr/authc/webapps/nwrestapi/WEB-INF/lib/librestapi64.so

Cause

라이브러리가 DEL 상태(유효하지 않은 라이브러리 파일 설명자)에 있기 때문에 일반 라이브러리가 로드되지 않습니다. 오류가 "이미 다른 클래스로더에 로드됨"으로 표시됩니다.

Resolution

(1) 재부팅된 서버로 메모리 플러시/재로드: NetWorker RESTAPI가 "Native Library /nsr/authc/webapps/nwrestapi/WEB-INF/lib/librestapi64.so already loaded in another classloader"
로 로드되지 않습니다.(2) Java cacerts 키 저장소로 emcauthctomcat.cer를 가져온 경우: NetWorker: Cacerts 키 저장소에서 제거된 NetWorker REST API emcauthctomcat 인증서

Affected Products

NetWorker

Products

NetWorker
Article Properties
Article Number: 000037878
Article Type: Solution
Last Modified: 13 May 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.