Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8798977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:12:52+00:00 2026-06-14T00:12:52+00:00

I would like to have a portable Jetty Server. The default jetty.home directory contains

  • 0

I would like to have a portable Jetty Server. The default jetty.home directory contains

    JettyHome
    │
    ├─etc
    │ ├─ jetty.xml
    │ ├─ jetty-logging.xml
    │ ├─ jetty-plus.xml
    │ └─ webdefault.xml
    ├─logs
    │
    ├─lib
    │  ├─ jetty-6.1.26.jar
    │  └─ other.jar
    ├─webapps
    │  └─MyWebApp.war 
    ├─ start.jar
    └─ start.ini

From the above, I would like to eliminate etc and lib directory and keep the following

    JettyHome
    │
    ├─logs
    ├─webapps
    │  └─MyWebApp.war 
    └─ start.jar

I packed all the lib folder jars into start.jar using OneJar along with start.ini. Is there any way to keep etc folder contents inside the jar so that I can simply run

java -Xmx640M -jar rw.jar 

instead of

java -Xmx640M -jar rw.jar etc/jetty.xml etc/jetty-annotations.xml etc/jetty-deploy.xml etc/jetty-logging.xml etc/jetty-webapps.xml 

So I can have a portable release and I never worry about changing configuration by someone in client place.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:12:53+00:00Added an answer on June 14, 2026 at 12:12 am

    Your best bet is to embed jetty into your application.

    http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty

    With this you simply need to have the jetty jars in the classpath and you should be good to go. You can even slurp everything into the one jar like you want and have a Main class in the manifest that starts everything off.

    The xml files are really just a thin layer of xml over java anyway. Take a look at some of the embedded examples here and that should clue you into the correct approach.

    http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/examples/embedded/src/main/java/org/eclipse/jetty/embedded

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have a portable android development environment that I could take
I would like to have a web server displaying the status of 2 of
I have features I would like to be portable between my own Rails applications.
I have a Data Access Layer library that I would like to make portable.
I would like to have a portable Ruby on Rails development env running on
I have heard about portable applications, and I would like to make some of
So in my project i would like have a nice treeview that has images.
I would like to have an AppWidget that designed like this one . Image:
I would like to have a more colorful Python prompt in the terminal, just
I would like to have the cursor in the JavaDoc area when creating interfaces,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.