Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Differences in resource loading between Jetty 9.2 and 9.4
  • From: James Sanderson <James.Sanderson@xxxxxxxxxx>
  • Date: Wed, 18 Dec 2019 15:54:32 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=zellis.com; dmarc=pass action=none header.from=zellis.com; dkim=pass header.d=zellis.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=Gkx7z//EB9bdIhvztW5+mLcGLDmjX30vac0YBE3tDQk=; b=mswV/LFMbA89SAXQsLXynbWeV+s5n7oJsc73KU6QWOEzdXX6sEkUN2r3WUcQpyZwoCoA4G4KSoaIq9MMi59NigyuzQ6rNIt3I68yyEnkuAh4p5Xym13TfBAm1fJznSGvCPBJEibnrWAXBPaxeqN1rkBaBHY14qLXTA3SInngbIbar2l/n8wEddR5WMDXzRa6iOIHghEg7yoIVgUVRvc82A/cR56+IbPPNx/wb9NEOFIy6SYAPy3HayNwSvngCuGgMLgctO+wX1erJLQjR4IhD15RD1bjmXDbrQ98RJQnJ4qigTriqnzU+Ok6mlJYqzl/FC+BZU27bf14JjFNxH4mEg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lYZerj81DHhKrw9Pz+axkBHUsbDue8TEnDsRME3S++ohocw3shAoAflVkqgT58lMavbsTx2As2Vyd1myGT26bDJd8Htso/Bz4iKFN7OI++q44vT6NVLR/NSTiDRDAAX/qiUfLzjxnzID2loN1OVzhikb4D3gt5zYTT/hbupekLlzV+5WdOCEKSPcfQ4xNvgvvbl8XHJ6/Q8xPk7tML5gi5HRHRB9AaEk5WIEdtVc1jwR8T2kSB1DbLa6TiVOf3lutnHJTEwW3dfxHR95NUMGEW/itbn6gu0qi6pIk7wr2devOvAHGi3IJJ7gp/a9hfa4zzLzJzZu+Ry6uyXmqjH17A==
  • Delivered-to: jetty-users@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jetty-users>
  • List-help: <mailto:jetty-users-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jetty-users>, <mailto:jetty-users-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jetty-users>, <mailto:jetty-users-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdW1ueyELpuk/manTh+wiAMQH+HmbA==
  • Thread-topic: Differences in resource loading between Jetty 9.2 and 9.4

 

We’re in the process of updating our app to move from jetty 9.2 to 9.4 and are having some weird things happen with resource loading.

 

We’ve got a couple of web apps that are auto deployed; but we’re finding that one seems to be affecting the other when it comes to loading resources using ServletContext.getResourceAsStream()

 

We have two apps A and B deployed under /A and /B, they have a common jar files (about 50mb) which we add into the base jetty class loader rather than having it in each of the web apps; parts of this jar will do resource loading using classes which have singletons – yes I know its horrid but its been working ok for 15 years… (I know they need reworking… but its not practical now)

 

What we seem to be finding is that depending on the speed of system we get the apps instantiating in different orders – and as a consequence one app could do a getResourceAsStream on the context from the other app because the class was loaded by the other app first – hopefully that makes sense.

 

Have their been any changes in the class loading / resource loading mechanism between jetty 9.2 and 9.4 ?

 

Cheers

james

 



Zellis is the trading name for Zellis Holdings Ltd and its associated companies “Zellis”.

The contents of this email are confidential to Zellis and are solely for the use of the intended recipient. If you received this email in error, please inform the sender immediately and delete the email from your system. Unless Zellis have given you express permission to do so, please do not disclose, distribute or copy the contents of this email.

Unless this email expressly states that it is a contractual offer or acceptance, it is not sent with the intention of creating a legal relationship and does not constitute an offer or acceptance which could give rise to a contract.

Any views expressed in this email are those of the individual sender unless the email specifically states them to be the views of Zellis.

Zellis Holdings Ltd - registered in England and Wales - Company No: 10975623 - Registered Office: Peoplebuilding 2, Peoplebuilding Estate, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 4NW, UK.

Back to the top