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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:54:36+00:00 2026-06-13T06:54:36+00:00

I wanted to make a simple Jersey-based REST app without using Maven in NetBeans.

  • 0

I wanted to make a simple Jersey-based REST app without using Maven in NetBeans. I followed the following steps and now I am stuck:

  1. Created a simple web app using NetBeans (or any other development IDE).
  2. Added JAX-RS libraries to my project.
  3. I don’t have web.xml present since I am using org.netbeans.rest.application.config.

I am stuck now. I want to use web.xml. Is there any alternative?

P.S. – I am trying to use JSON as input without using Maven.

  • 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-13T06:54:37+00:00Added an answer on June 13, 2026 at 6:54 am

    Since in your third step you’ve created the configuration class to expose your JAX-RS Resource classes, you don’t need the functionality in web.xml. Your application should be ready to run, at least on Glassfish or another Java server.

    The whole idea of Java EE 6 is to get rid of XML configuration files like the web.xml. New annotations like @javax.servlet.annotation.WebServlet and @javax.ws.rs.ApplicationPath are used to configure Servlets and REST applications.

    But if you want to have a web.xml, you can create one in the directory web/WEB-INF. A minimal web.xml looks like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="3.0"
             xmlns="http://java.sun.com/xml/ns/javaee" 
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    </web-app>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working in NetBeans. I wanted to make a simple 3-2-1 count down after
I wanted to make simple form, without awesome div's and CSS - it structure
i wanted to make a simple data entry application. So i did the following
I wanted to very quickly to make a simple drawing app for iOS, but
Im trying to make a simple app, I wanted to add a new Activity
Assuming that I wanted to make a simple dos-based game and I wanted to
I wanted to make some simple file recovery software, where I want to try
I wanted to make a simple parser, for a pseudo code like language(kept rigid),
I wanted to make a Java based web crawler for an experiment. I heard
I'm making an in webpage cache system. I wanted to make a simple page

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.