RESTEasy "Hello World" Tutorial
I'm having some difficulty figuring out RESTEasy. The basic, high-level ideas of REST aren't hard to grasp. However, the details of implementing even a "Hello World" RESTEasy web app are proving more difficult. 

I've searched the internet far and wide, and although some tutorials exist, they're all missing key information for me. Every single one had one or more of the following roadblocks:

1) They toss code at you without stating what to name the file the code belongs to or where it goes in the WAR structure.

2) They have a hideously complex web.xml file but never explain anything about it, and the complexity ensures that unless you're following all of what they're doing to the letter the web.xml file they're using won't work for you. 

3) They never mention the web.xml file.

4) They only give you part of the web.xml file.

5) They assume you already know lots about web development and never explain anything beyond giving you code and telling you to go build it.

6) They use tons of random software (maven, spring, soa-p, random specialized eclipse version) and they never explain any of it and assume you know all that already.

7) They start not with hello world but with a much more complex example without explaining enough so that people without J2EE experience can follow.

8) They sell you a whole freaking book that has at least one, if not more than one, of the above flaws and then break the link to download the source code examples and work book

9) They aren't using RESTEasy (not really a fault or flaw but I need to use RESTEasy here).

10) Anything I missed.

What I'm looking for is a "hello world" tutorial for RESTEasy and JBoss AS-7, but I don't want to mess with maven or spring or soa-p or anything else. I'm looking for bare-bones-basic simple. Java and JBoss.

However, I don't have J2EE experience (yet, hence my efforts to learn). So I want something that explains the web.xml file, and something that not only shows and explains the source code but explains what to name the file and where it should go when building the WAR. Something that shows the directory of the WAR after building (so I know I did it right) would be great. Finally, something with a screenshot of what "working" looks like would also be amazingly helpful.

For instance, let's say I have the following code from one of the tutorials...

http://www.mastertheboss.com/web-interfaces/273-resteasy-tutorial-.html?start=1

----

    package sample;

    import javax.ws.rs.*;

    @Path("tutorial")

    public class HelloWorld
    {

    @GET
    @Path("helloworld")
    	public String helloworld() 
    	{
           return "Hello World!";
    	}
    }

----

I'm guessing that should be HelloWorld.java, but it clearly isn't working. Did I place it in the right location? No idea, they didn't mention it. Also, this is all they mention about the web.xml file - 

-----


    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>

----

This mismash is never explained, so I don't know what it means. And looking at other files I'm fairly certain that's not all that needs to be in the web.xml file. (This is for JBoss 6-M4 or higher, I'm using JBoss AS 7.) But if anything else needs to be included, it's never mentioned.

The example also does not offer a download link. If a confirmed working version was offered for download, I could simply download it and investigate. But no such luck. This has been maddeningly frustrating. 

So if there's anyone out there in the great wild internet that can help, for this example I need at least the following:

What should be the name of the file with the java code, and where should it go in the folder?

Does the code need to be fixed in any way, and if so, how and what should it look like in the end?

What should the web.xml file ACTUALLY look like and include.

What command in a Linux terminal should I use to create the war file (just in case I'm screwing up there too).

What should it look like in a browser if it's working?

What else do I need to know to get this working?

I need to get this to a state where I can put it in the JBoss 7 standalone deployments file and have it freaking work. At that point I might be able to build things, piece by piece, and figure this all out. But the tutorials that are out there are driving me insane. Please, is there anyone out there that can help?
RESTEasy "Hello World" Tutorial
===

I'm having some difficulty figuring out RESTEasy. The basic, high-level ideas of REST aren't hard to grasp. However, the details of implementing even a "Hello World" RESTEasy web app are proving more difficult. 

I've searched the internet far and wide, and although some tutorials exist, they're all missing key information for me. Every single one had one or more of the following roadblocks:

1) They toss code at you without stating what to name the file the code belongs to or where it goes in the WAR structure.

2) They have a hideously complex web.xml file but never explain anything about it, and the complexity ensures that unless you're following all of what they're doing to the letter the web.xml file they're using won't work for you. 

3) They never mention the web.xml file.

4) They only give you part of the web.xml file.

5) They assume you already know lots about web development and never explain anything beyond giving you code and telling you to go build it.

6) They use tons of random software (maven, spring, soa-p, random specialized eclipse version) and they never explain any of it and assume you know all that already.

7) They start not with hello world but with a much more complex example without explaining enough so that people without J2EE experience can follow.

8) They sell you a whole freaking book that has at least one, if not more than one, of the above flaws and then break the link to download the source code examples and work book

9) They aren't using RESTEasy (not really a fault or flaw but I need to use RESTEasy here).

10) Anything I missed.

What I'm looking for is a "hello world" tutorial for RESTEasy and JBoss AS-7, but I don't want to mess with maven or spring or soa-p or anything else. I'm looking for bare-bones-basic simple. Java and JBoss.

However, I don't have J2EE experience (yet, hence my efforts to learn). So I want something that explains the web.xml file, and something that not only shows and explains the source code but explains what to name the file and where it should go when building the WAR. Something that shows the directory of the WAR after building (so I know I did it right) would be great. Finally, something with a screenshot of what "working" looks like would also be amazingly helpful.

For instance, let's say I have the following code from one of the tutorials...

http://www.mastertheboss.com/web-interfaces/273-resteasy-tutorial-.html?start=1

----

    package sample;

    import javax.ws.rs.*;

    @Path("tutorial")

    public class HelloWorld
    {

    @GET
    @Path("helloworld")
    	public String helloworld() 
    	{
           return "Hello World!";
    	}
    }

----

I'm guessing that should be HelloWorld.java, but it clearly isn't working. Did I place it in the right location? No idea, they didn't mention it. Also, this is all they mention about the web.xml file - 

-----


    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>

----

This mismash is never explained, so I don't know what it means. And looking at other files I'm fairly certain that's not all that needs to be in the web.xml file. (This is for JBoss 6-M4 or higher, I'm using JBoss AS 7.) But if anything else needs to be included, it's never mentioned.

The example also does not offer a download link. If a confirmed working version was offered for download, I could simply download it and investigate. But no such luck. This has been maddeningly frustrating. 

So if there's anyone out there in the great wild internet that can help, for this example I need at least the following:

What should be the name of the file with the java code, and where should it go in the folder?

Does the code need to be fixed in any way, and if so, how and what should it look like in the end?

What should the web.xml file ACTUALLY look like and include.

What command in a Linux terminal should I use to create the war file (just in case I'm screwing up there too).

What should it look like in a browser if it's working?

What else do I need to know to get this working?

I need to get this to a state where I can put it in the JBoss 7 standalone deployments file and have it freaking work. At that point I might be able to build things, piece by piece, and figure this all out. But the tutorials that are out there are driving me insane. Please, is there anyone out there that can help?