Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I just wanted to say THANKS for the forum. The knowledge I gain from your site is invaluable..."

Geography

Where in the world do Tek-Tips members come from?

Tomcat works but my webapps not reachable!

josepco (Programmer)
30 Jan 07 18:03
Hi,
I installed jakarta.Tomcat/5.0.28. It works well. The examples work also.
I put my wep application in /usr/local/tomcat/webapps/myApp,
and when I try http://localhost:8080/myApp/index.htm
I have this message:

HTTP Status 404 - /myApp
type Status report
message /myApp
description The requested resource (/myApp) is not available.

So I can't understand why I can access to the tomcat's examples but not my web application.

Any idea?
Thanks for helping.

--------
my WEB-INF/web.xml:
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
    <servlet>
        <servlet-name>myApp</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>myApp</servlet-name>
        <url-pattern>*.html</url-pattern>
    </servlet-mapping>

    <welcome-file-list>
        <welcome-file>
            index.htm
        </welcome-file>
    </welcome-file-list>

    <security-constraint>
    <web-resource-collection>
      <web-resource-name>myApp Collection</web-resource-name>
      <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
      <role-name>testing</role-name>
  </security-constraint>
  <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>myApp Collection</realm-name>
  </login-config>

  <security-role>
    <description>Testing employees</description>
    <role-name>testing</role-name>
  </security-role>

</web-app>

-----------
my META-INF/context.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/">
</Context>

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close