Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
315 views
in Technique[技术] by (71.8m points)

java - Jersey libraries 1.18 worked with Tomcat 7 but failing with Tomcat 9 : Root resource classes not getting scanned

We were using Tomcat 7 and the Jersey libraries 1.18 was able to scan the packages with the below two lines

com.sun.jersey.api.core.PackagesResourceConfig.init Scanning for root resource and provider classes in the packages:
    v1

com.sun.jersey.api.core.ScanningResourceConfig logClasses
    INFO: Root resource classes found:
    class v1.add

We migrated to Tomcat 9 (Note : We use the old server.xml which we used in Tomcat 7), we are getting only the below line but we don't get the message "Root resource classes found" and the REST API is failing

com.sun.jersey.api.core.PackagesResourceConfig.init Scanning for root resource and provider classes in the packages:
    v1

Please let me know how to troubleshoot and fix the issue?

question from:https://stackoverflow.com/questions/65919617/jersey-libraries-1-18-worked-with-tomcat-7-but-failing-with-tomcat-9-root-reso

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...