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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:53:28+00:00 2026-05-21T15:53:28+00:00

I am having trouble navigating to my restful service using resteasy 2.1 on localhost

  • 0

I am having trouble navigating to my restful service using resteasy 2.1 on localhost and was hoping someone here might be able to help me.

I have built an EAR file with a WAR inside and is seems to compile and deploy to JBoss5 ok.

My service simplified:

@Path("RequestReply")
public class Replier {

    @GET
    @Path("request")
    public String getReply(@QueryParam("id") @DefaultValue("") String id){
            if (id.length > 0){
                return "ACK";
            }
            return "NACK";
        }
}

My web.xml file is standard:

<?xml version="1.0" encoding="UTF-8"?>

<web-app>
    <display-name>Test service</display-name>

    <listener>
        <listener-class>
            org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
        </listener-class>
    </listener>

    <context-param>
        <param-name>resteasy.scan</param-name>
        <param-value>true</param-value>
    </context-param>

    <servlet>
        <servlet-name>Resteasy</servlet-name>

        <servlet-class>
            org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
        </servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>Resteasy</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>

</web-app>

So I try to access my API using

http://localhost:8080/RequestReply/request?id=1234

But I get 404 errors.

Can anyone tell me what I am doing wrong?

Application.xml:

<?xml version="1.0" encoding="UTF-8"?> 
    <application xmlns="java.sun.com/xml/ns/javaee"; xmlns:xsi="w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="java.sun.com/xml/ns/javaee java.sun.com/xml/ns/javaee/application_5.xsd"; version="5"> 

        <display-name>Reseasy</display-name> 

        <module> 
            <java>simple.jar</java> 
        </module> 

    </application>
  • 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-05-21T15:53:29+00:00Added an answer on May 21, 2026 at 3:53 pm

    Ok so I would suggest trying something like:

    <?xml version="1.0" encoding="UTF-8"?>
    <application 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/application_5.xsd"
                 version="5">
    
        <display-name>Reseasy</display-name>
    
        <module>
            <web>
                <web-uri>Replier.war</web-uri>
                <context-root>/api</context-root>
            </web>
        </module>
    
    </application>
    

    Here the Replier.war refers to the name of the WAR file you create and /api refers to the base of your request URL. So it should look like:

    http://localhost:8080/api/RequestReply/request?id=1234

    Give that a shot!

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

Sidebar

Related Questions

I'm having some trouble with navigation when using Facelets. I have my master template
I am navigating a site using python's mechanize module and having trouble clicking on
I have created some rounded navigation tabs using CSS and am having trouble when
So here's a problem I'm really having trouble with. I am using this code
I'm having trouble navigating to a different controller view from another controller action. e.g.
I'm using a Jquery fancydropdown menu for my navigation and am having trouble aligning
Having Trouble with Entity Framework. I have been populating EntityReferences with an EntityKey inorder
Having trouble finding an explanation in the docs, would someone be kind enough to
I'm having trouble merging the two concepts of using a SplitViewController in my main
I'm having trouble sending data to a different view using the prepareForSegue method… I

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.