Kevin,

Is there a chance of the file getting corrupt for some reasons ?

-- Kedar

____________________Reply Separator____________________
Subject:    Re: Small question on Struts !
Author: "Struts Developers List" <[EMAIL PROTECTED]>
Date:       5/29/02 12:39 PM




Kedar -

Welcome to Struts!

>From the info you've sent, I'm going to assume the following:

 - That your Web Application file is named "PROTO"
 - You're using Tomcat
 - This applicaiton works on some other platform , but you're having a
challange as you get it to work on your own machine.

Here's how to deploy the application on your local machine:

First, acquire the applicatoin in a .war file format. (If you have
questions on this, please respond and I'll try to provide more direction).

The application is archived in the .war file. It is archived in the
standard directory structure for J2EE web applications, that is:

 top
   |
  + index.jsp
   |
   + (other jsp files and sub-directories)
   |
   + WEB-INF    (required!)
     |
     + classes/com/company/path/to/packages      (all java .class files)
     |
     + lib  (store .jar files here)
     |
     + web.xml   - the Web Application deployment descriptor (just an xml
file with info on this application)
     |
     + struts-info.xml  - The Struts application config file

If you "jar" this directory structure and name it "myApp.war", then Tomcat
will automatically deploy it if you stop & start the server (try this!).

Once the app is deployed, you can find it in the directory (I believe),
webapps/myApp/... under Tomcat.


So - looking at your info, it looks like things should be:

 -- Since you're trying to fetch the url "/PROTO", this should mean tyour
webapp is in a file named "PROTO.war"
 -- Since you're fatching only "/PROTO" (as opposed to "/PROTO/file1.jsp",
you're fetching a default document.
 - My guess is that your webapp may be named something other than
"PROTO.war" - though I could be wrong...

so I'd try this:

 -- Verify the name of the .war file containing the application
 -- Open the .war file in Winzip to look at the files (and directory
structure)
 -- Verify that the structure of the .war file is as it should be (i.e.,
you have a WEB-INF directory with a web.xml file in it, etc.).
 -- restart Tomcat and type in the URL for the index page of the web app
again (http://localhost/PROTO - assuming the war file is "PROTO.war").

Also, after startup check to make sure the .war file was expanded correctly
and look at the directory structure. Make sure you have a "WEB-INF/web.xml"
file.

For more info on this, you may want to review the latest Java Servlet/JSP
specs from Sun or a good basic book on JSP development.


Best of luck!

FWIW -
Kevin







[EMAIL PROTECTED] on 05/29/2002 07:05:59 PM

Please respond to "Struts Developers List" <[EMAIL PROTECTED]>

To:   "Struts Developers List" <[EMAIL PROTECTED]>
cc:    (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  Small question on Struts !


Hi All,

I am a beginner in the Struts world and as such losing my way in this new
thing.
Hope to find some help in this mailing list.

My problem is like this:

I am trying to build and deploy an small , introductory application, which
is
working on some other machine, on my computer.

All the XML files are in order and in the correct path. However when I
build and
deploy this application the browser shows the following error:

Apache Tomcat/4.0.3 - HTTP Status 404 - /PROTO

type Status report
message /PROTO
description The requested resource (/PROTO) is not available.

When I went into more details I found that the Tomcat log shows the error :

Internal Error: File /WEB-INF/web.xml not found


Can anyone tell me what's the cause of this error ? Any hints or guesses
are
welcome.

warm regards
-- Kedar

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]
>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]
>







---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to