Hello,
i have already tested these things which you are telling.When i put
some html or jsp files directly ubder my_apps folder i see the list of these
files when i type http://localhost:8080/my_apps but my problem is that
sometimes i am not able to see this also.it says /my_apps is not
available.coming back to your point ya a client can't see the WEB-INF
directory.It's kept secret from the client by the server itself.That's why when
we run our servlets which we put inside classes folder under WEB-INF we
generally call it through a url-pattern which we declare in the web.xml file.
Ayaskant
Mark Leone <[EMAIL PROTECTED]> wrote:
Try putting an html or jsp file in your my_apps folder. I'm not sure
what Tomcat does when you navigate to the web app with nothing other
than WEB-INF in the web app's folder. When I navigate to one of my web
apps the way you're trying, I get a directory listing of the files and
folders I have there, but I notice that that WEB-INF is not included in
that listing, even though it is present. So a better test of your web
app would be to try to hit an html or jsp page.
As someone else pointed out, the log files should give you a good clue
as to why Tomcat isn't starting up sometimes.
-Mark
ayaskant swain wrote:
>Dear Sir/Madam,
> I have been using tomcat 4.x/5.0.x version for web developmen
> (JSP/Servlets)but i am finding difficulties in starting the server itself
> many times.I have set the JAVA_HOME environmental variable to the directory
> where i have installed the j2sdk1.4.2. e.g. E:\j2sdk1.4.2. and under that
> folder all other subfolders like bin, jre are there.When i am trying to start
> the tomcat server by double clicking on the startup.bat inside bin folder the
> tomcat console comes only for 3-4 seconds and then disappears.I also tried to
> solve it by changing the port no 8080 which is inside server.xml file to any
> other port (e.g. 9020,8090 etc.),but still it's not working.
>
> Also sometimes even though the server starts and runs fine and i am able to
> see the index.html page(featuring the cat) i get a 404 error of resource not
> found while trying to access my own webapplication which i create inside the
> webapps folder.though it is there
>already.For an example i create a folder named my_apps/WEB-INF/classes inside
>webapps but i get a 404 error (resource not found) when i type
>http://localhost:8080/my_apps
>
>These two problems are really making me annoyed.I am fade of these
>problems.Please tell me the solution to these problems.
>
>Ayaskant
>
>
>
>---------------------------------
>Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.