AD User account 404 error in Tomcat

I am encountering HTTP Status 404 - Not Found  accessing a http://localhost:8080/sample/ application.
Description: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

I can only assume it is caused by my Apache Tomcat configuration, because I am yet to get it working. I am running version Apache Tomcat/7.0.91 on Redhat 7 in AWS. I have installed and integrated Winbind and the OS is happily talking to my AD domain It can see groups and users and I have masked the domain format 'example/user1' so it appears as 'user1'.

I have downloaded and installed sample.war from into my tomcat installation /usr/local.tomcat7/webapps/ directory.

My  /usr/local/tomcat7/conf/server.xml configuration looks like this:
<!-- <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
<Realm className="org.apache.catalina.realm.JNDIRealm"

Open in new window

My /usr/local/tomcat7/webapps/sample/WEB-INF/web.xml file looks like this:

<web-app xmlns=""

    <display-name>Hello, World Application</display-name>
        This is a simple web application with a source code organization
        based on the recommendations of the Application Developer's Guide.



     <web-resource-name>Entire Application</web-resource-name>
   <realm-name>Tomcat Manager Application</realm-name>

        <display-name>All Users</display-name>
            <web-resource-name>All Users</web-resource-name>

        <display-name>Admin Users</display-name>
            <web-resource-name>Admin Users</web-resource-name>

        <description>Webapp Admins</description>
        <group-name>Domain Admins</group-name>

        <description>Webapp Users</description>
        <group-name>Domain Users</group-name>


Open in new window

I have reviewed the tomcat logs and see no SEVERE error logs, just INFO/WARNING level information. Could someone shed any light on where I am going wrong?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPRetiredCommented:
a 404 error is a file not found error, it is not an authentication error which is a 401 error. in your server logs you should see the 404 error and the link that it is trying to load

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gskTechnology consultantCommented:
Hi Effin,

First of all please  note that 404 error occurs because tomcat is not able to find war of the project.Please delete work folder from tomcat
server. Tomcat folder provides default jsp examples and servlets. please run those.also check whether your port is 8080 or 8000.

proper mapping for servlets should be there in web.xml

please check these first,we will see other things later.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.