Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty-11.0.11 embedded - 404 for all static html files or .jsp's in JAR under Linux JDK 17
  • From: Stefan Viljoen <viljoens@xxxxxxxxxxxxxxx>
  • Date: Mon, 5 Sep 2022 08:52:43 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=verishare.co.za; dmarc=pass action=none header.from=verishare.co.za; dkim=pass header.d=verishare.co.za; 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Zd8fQpIvgHv3hw0ozfaY4WEfMD6605cNoU3dfQW/LbA=; b=ZvwEyCuCSOWvy1Y8pYP1INVDoVBgj58JQNY1amX5CK9qbEgRBzcPhoURnIWQo/C6SyQ3ON3GQb6HrqbN1txKEL4zM3i40SQz80/qEMaRbcAVBi5QPfosyPEGDscorSyHWTfqkuYgWf7P0grYDMHRqAN/NX10i0f+gcrNyI4Ytk5NS4FKrOgXLx+ApddIOaJucgChemd4ILQ0NB0cScqedLCXW7zsglvmVRBzQz1CQeXw5vLQqldD8jA8+y5dXTHjrP8Mmya5f3x2l4J8RP5dCpDBBT+jYwUiYIiOojP8qSHts0Ub3oJTyoKqHvMkiKf57HfIA0FViJ4nPrS97LH68A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BP9R5DyMJQuLyYEPuGxaBYtvCQoZ1L/OYh5xPkY3YYwfghsWj9W0Js7jehqolnIXUQrqJv5S81M0yeoB4xlergbnrfbxAY6BpFb1f6kZd/Jy5JdibPKUxx6Lg44iJz0I/WL7jH3yMHteVB/X9+G3V04MDlS8VfmbrO1k5VD76Yh1IJ/3gp7d07FeLDMlf3rOkV4dm/wEiRGTVhCqjeVJaVW9LmzDc2zb7Aki5eIcarBfCmxVOLOtqsFHT+xlEf0oucfqebMTL1aFjCIXcEaBAyOfu2+5ILs00A+FlZaWjbz1k8dhAcrsAXqxVUQ8G7EMcloxBhDbTHO7iBr60Y6k/Q==
  • 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: AdjBBPn48tAObugeS5ihljnxw01qzQ==
  • Thread-topic: Jetty-11.0.11 embedded - 404 for all static html files or .jsp's in JAR under Linux JDK 17

Hi guys

 

Desperately looking for some help or pointers – been at this issue for two weeks solid now:

 

I have a Maven-based embedded Jetty-11.0.11 project in an “uber JAR” (jar-with-all-dependencies) in JDK17 that I  inherited from a dev that left the company.

 

I got it from him at Jetty-9 under JDK1.8, and have successfully upgraded it to Jetty-11.0.11 under JDK17 (at least, it works, but only -inside- Netbeans14…!) by changing the maven pom.xml to refer to newer versions of apache-jsp, apache-jstl, and jetty itself (for Maven.)

 

I have no web.xml or WEB-INF folder at all in the project.

 

The static content (.html, .css and .js files) for the webpages it contains, are hosted in the project .JAR at src\main\webapp\static

 

After upgrading to Jetty-11.0.11 and JDK17, I could run the project in Netbeans 14 debug mode in Windows 10 and visit the “Netbeans 14”-ed Jetty instance in a browser which rendered the static .html and .jsp content correctly.

 

If I copy the Jetty-11.0.11-using JAR to a Linux host and run it under JDK17 there, NONE of the static .html and .jsp content inside the JAR can be found anymore. When running in JDK17 under Linux in the embedded JAR, Jetty responds:

--

HTTP ERROR 404 Not Found

URI:

/

STATUS:

404

MESSAGE:

Not Found

SERVLET:

org.eclipse.jetty.servlet.ServletHandler$Default404Servlet-726a17c4

--

 

for any and all .html and .jsp files inside the JAR.

 

Where can I start to look to get Jetty-11.0-11 embedded in an uber-JAR to render .html and .jsp files inside the JAR when run in a Linux-based JDK 17 instance?

 

No exceptions or any errors is emitted by Jetty.

 

I run Jetty in Ubuntu 20.04-LTS with official Oracle JDK17 as

 

/usr/lib/jvm/jdk-17/bin/java -Djavax.net.ssl.trustStore=/usr/lib/jvm/jdk-17/lib/security/cacerts -cp /usr/src/verdi/verdi-12-JDK17-jar-with-dependencies.jar verishare.App

 

Anybody got ANY idea why Jetty-11.0.11 only works inside Netbeans 14 debug mode in Windows under Oracle JDK 17, but not in a Linux-based Oracle JDK 17 (where it WAS working in Linux with JDK 1.8 and Jetty-9)?

 

Where do I even start?

 

More than willing to provide more info such as the POM and the server setup code if anybody wants to help…

 

Thanks!

 

Kind regards,

 

Stefan

 

Description: signature

 

CONFIDENTIALITY NOTICE AND DISCLAIMER: This e-mail transmission contains confidential Information which is the property of the sender and which is subject to legal privilege and/or copyright and intended only for the above-mentioned addressee. If you are not the intended recipient, you are hereby notified that any unauthorized use, disclosure, copying or distribution of the content of the e-mail transmission or the taking of any action in reliance thereon or pursuant thereto, is strictly prohibited and may be unlawful and may lead to prosecution. Should you have received this e-mail in error, please immediately notify us. The views, policies and comments contained in this e-mail are those of the sender thereof and should not be construed as the views, policies and/or comments of the organization. We cannot assure that the integrity of this e-mail communication has been maintained nor that it is free of errors, interference or interception and will not accept any liability or responsibility in this regard. By opening our emails, you indemnify us of any liability.

 


Back to the top