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 7877867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:29:58+00:00 2026-06-03T03:29:58+00:00

I have a multi-module Maven web app, and I want to run it in

  • 0

I have a multi-module Maven web app, and I want to run it in Eclipse with Jetty. I read several tutorials (here is one I tried to follow).

I thought that everything that is need to be done is adding plugins and dependencies in the pom.xml of my Spring web module of the project and then with a help of mvn jetty:run (again, in the web Spring Maven module) run the app and be able to see the results in the browser. So, the first question is: do I have to do something else (e.g. in the web.xml file)?

EDIT:
I also had to add <pluginGroup>org.mortbay.jetty</pluginGroup> in Maven’s settings.xml to start server without errors.

And I get HTTP ERROR: 503 SERVICE_UNAVAILABLE. What are the probable reasons? Do I need some more dependencies or to add something else? Thanks in advance.

  • 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-03T03:30:00+00:00Added an answer on June 3, 2026 at 3:30 am

    According to what was written when Jetty tried to start, I had to add MySql dependency. With it HTTP ERROR: 503 SERVICE_UNAVAILABLE disappeared.

    Here is the part of the pom.xml of the Spring web module of my project I added to use Jetty (Just in case someone needs it. Maybe, I could delete something from this pom.xml‘s part, I haven’t check that yet.):

      <build>
    
          <plugins>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-site-plugin</artifactId>
              <!-- Lock down plugin version for build reproducibility -->
              <version>3.0</version>
            </plugin>  
    
            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>6.1.14</version>
                <configuration>
                    <connectors>
                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                            <port>9090</port>
                            <maxIdleTime>60000</maxIdleTime>
                        </connector>
                    </connectors>
                </configuration>
            </plugin>
    
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.1</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
         </plugins>
    
      </build>
    
      <properties>
          <org.springframework.version>3.1.0.RELEASE</org.springframework.version>
          <jetty.version>6.1.14</jetty.version>
      </properties>
    
      <dependencies>
        <!-- In my case Jetty needs this one to run -->   
        <dependency>
          <groupId>mysql</groupId>
          <artifactId>mysql-connector-java</artifactId>
          <version>5.1.6</version>
        </dependency>        
        <!-- Jetty dependencies -->
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty</artifactId>
            <version>${jetty.version}</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-util</artifactId>
            <version>${jetty.version}</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-plus</artifactId>
            <version>${jetty.version}</version>
            <type>jar</type>
        </dependency>
        <!--The 2 following are the jsp support for jetty -->
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jsp-2.1</artifactId>
            <version>${jetty.version}</version>
            <type>jar</type>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jsp-api-2.1</artifactId>
            <version>${jetty.version}</version>
            <type>jar</type>
        </dependency> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to run a multi-module Maven web app in Eclipse (EE Helios SR
We have a non-trivial multi-module maven project, then have a single module maven web-app
I have a multi module maven web application, which uses hibernate. I use the
I use eclipse and the maven plugin. I have a big multi-module project (~6
I have a multi-module maven project made up of three sub-modules: web , service
I have a multi-module maven project (several levels of nesting). Normally, when I execute
I have a Java multi-module Maven project that I want to build an MVN
I have a multi-module Maven setup with Java code. My unit tests, in one
I have a multi-module Maven project that is a Java web application. I am
I have a multi-module maven project. To build the parent alone, I run mvn

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.