Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jersey-dev] [External] : Jersey libraries 1.18 worked with Tomcat 7 but failing with Tomcat 9 : Root resource classes not getting scanned
  • From: Jan Supol <jan.supol@xxxxxxxxxx>
  • Date: Sat, 30 Jan 2021 09:51:51 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=70FKtqT59wj8QgNFWWtmg0O5p8bcom3SNjEgxw9lTUc=; b=OIEux1j9TngW8s1JJrvR0YLXzsSFVVZIledqhCMBmytJCvd0dRsV6SGVZw/gGX1G4DiZ141KxTyU16ljbH8P6ILNQ8HRrn4ugi4ilUpoqZh5qogJEB6e0Nco9xBYVmw/LpF4r8Hjtr2yWdqVqWQKoLEVHWmjcNSNBn+1eFMtgglfz3qAe9Oq0DAjw7hpWkPDMxd8OHuPvPkLLMZuov3oPsjihuUqIUbRfbapU4SIhGJu1QzO1EFPVfrw/C8WuaHHY9AvkoRbg7LXi9kp3v40RM5r6mRKKAsGcRnz/ZK/+nkBsguLJYQvpYSo94e6/L7lUTyeyoBiXUCAm8eSGCnQuQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mkGofMV8XcCrYWU7m6zULGTQwU7VbaL4SwyA0H2KdDfNLwcimoJnqBSe65+oGlgU1OFoypyDEHmnNqf3T9ryuS/xm9v6Pw6ny0pzMUkHzPxBSiloLFs/56CEsJXZG7BNloGpSBiCOucX51zwX+n6e1yBD4opkAZLWZQwfkisRBB9IlVg0xRjTq5KXxMHmMV7M3oTh6ugrg9kzaMM83EGYgGfVowecpD1lYCf4BGzNazNe4PvV72VlPxqnKTeZKAYpgJIy+HDt2GPUpDFvAU+60w0e3cul9Y3Udofzms9WnYx82umpgVMys7/pnEKG2i1eGS6pEkqB7RTS/wudiPvVQ==
  • Delivered-to: jersey-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jersey-dev/>
  • List-help: <mailto:jersey-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHW9nGh48A0+s0e3kq1GC6z+m9qk6o/7Tf+
  • Thread-topic: [External] : [jersey-dev] Jersey libraries 1.18 worked with Tomcat 7 but failing with Tomcat 9 : Root resource classes not getting scanned

Hi, 
what comes to my mind, Jersey 1.18 repackaged ASM 3, which was not able to handle JDK 8 properly. Perhaps you can try the latest Jersey 1.19.4 which repackaged ASM 5.0.3 if I remember correctly and it is JDK 8 compatible. I assume Tomcat 9 won't be JDK 7 compatible the way Tomcat 7 was.
Thanks,
Jan

From: jersey-dev-bounces@xxxxxxxxxxx <jersey-dev-bounces@xxxxxxxxxxx> on behalf of Yogish Anand <yogishanand@xxxxxxxxx>
Sent: Friday, January 29, 2021 8:03 PM
To: jersey-dev@xxxxxxxxxxx <jersey-dev@xxxxxxxxxxx>
Subject: [External] : [jersey-dev] Jersey libraries 1.18 worked with Tomcat 7 but failing with Tomcat 9 : Root resource classes not getting scanned
 
Hi,

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?


Thanks,

Yogish


Back to the top