Skip to main content

1st Web Deployment in Jsp

3 replies [Last post]
tobimichigan
Offline
Joined: 2011-09-03
Points: 0

I have my jsp project structure set..

_tomcat5.0

webapps

hello-world

hello.jsp

goodbye.jsp

-web-inf

--lib

--classes

but when I run on tomcat 5.0 it gives

HTTP Status 404 - /hello-world/hello.jsp

The requested resource (/hello-world/hello.jsp) is not available.

with the following logs:

2011-09-03 21:10:09 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom
2011-09-03 21:10:09 StandardManager[/manager]: Seeding of random number generator has been completed
2011-09-03 21:10:09 StandardWrapper[/manager:default]: Loading container servlet default
2011-09-03 21:10:09 default: init
2011-09-03 21:10:09 StandardWrapper[/manager:invoker]: Loading container servlet invoker
2011-09-03 21:10:09 invoker: init
2011-09-03 21:10:09 jsp: init
2011-09-03 21:10:09 StandardHost[localhost]: Installing web application at context path /jsp-examples from URL file:C:/_5tomcat/bin/../webapps/jsp-examples
2011-09-03 21:10:09 StandardManager[/jsp-examples]: Seeding random number generator class java.security.SecureRandom
2011-09-03 21:10:09 StandardManager[/jsp-examples]: Seeding of random number generator has been completed
2011-09-03 21:10:09 ContextListener: contextInitialized()
2011-09-03 21:10:09 SessionListener: contextInitialized()
2011-09-03 21:10:09 StandardWrapper[/jsp-examples:default]: Loading container servlet default
2011-09-03 21:10:09 default: init
2011-09-03 21:10:09 StandardWrapper[/jsp-examples:invoker]: Loading container servlet invoker
2011-09-03 21:10:09 invoker: init
2011-09-03 21:10:09 jsp: init
2011-09-03 21:10:09 StandardHost[localhost]: Installing web application at context path /servlets-examples from URL file:C:/_5tomcat/bin/../webapps/servlets-examples
2011-09-03 21:10:09 StandardManager[/servlets-examples]: Seeding random number generator class java.security.SecureRandom
2011-09-03 21:10:09 StandardManager[/servlets-examples]: Seeding of random number generator has been completed
2011-09-03 21:10:09 ContextListener: contextInitialized()
2011-09-03 21:10:09 SessionListener: contextInitialized()
2011-09-03 21:10:09 StandardWrapper[/servlets-examples:default]: Loading container servlet default
2011-09-03 21:10:09 default: init
2011-09-03 21:10:09 StandardWrapper[/servlets-examples:invoker]: Loading container servlet invoker
2011-09-03 21:10:09 invoker: init
2011-09-03 21:10:09 jsp: init
2011-09-03 21:10:09 StandardHost[localhost]: Installing web application at context path /hello-world from URL file:C:\_5tomcat\webapps\hello-world
2011-09-03 21:10:10 StandardManager[/hello-world]: Seeding random number generator class java.security.SecureRandom
2011-09-03 21:10:10 StandardManager[/hello-world]: Seeding of random number generator has been completed
2011-09-03 21:10:10 StandardContext[/hello-world]: Context startup failed due to previous errors
2011-09-03 21:10:10 StandardHost[localhost]: Installing web application at context path from URL file:C:\_5tomcat\webapps\ROOT
2011-09-03 21:10:10 StandardManager[]: Seeding random number generator class java.security.SecureRandom
2011-09-03 21:10:10 StandardManager[]: Seeding of random number generator has been completed
2011-09-03 21:10:10 StandardWrapper[:default]: Loading container servlet default
2011-09-03 21:10:10 default: init
2011-09-03 21:10:10 StandardWrapper[:invoker]: Loading container servlet invoker
2011-09-03 21:10:10 invoker: init
2011-09-03 21:10:10 jsp: init
2011-09-03 21:10:10 StandardHost[localhost]: Installing web application at context path /tomcat-docs from URL file:C:\_5tomcat\webapps\tomcat-docs
2011-09-03 21:10:10 StandardManager[/tomcat-docs]: Seeding random number generator class java.security.SecureRandom
2011-09-03 21:10:10 StandardManager[/tomcat-docs]: Seeding of random number generator has been completed
2011-09-03 21:10:10 StandardWrapper[/tomcat-docs:default]: Loading container servlet default
2011-09-03 21:10:10 default: init
2011-09-03 21:10:10 StandardWrapper[/tomcat-docs:invoker]: Loading container servlet invoker
2011-09-03 21:10:10 invoker: init
2011-09-03 21:10:10 jsp: init

While under tomcat 6.0 with the same following folderr structure above;

it seems as if the same results....but, the examples in the directory of each tomcat runs unfettered.

Please some1 kindly tell me what I'm doing wrong here...

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
deepthi
Offline
Joined: 2006-05-05
Points: 0

directiry structure of webapplication........

ROOT

all html,jsp files are placed here.

--WEB-INF

classes

all .class files are placed in classes folder.

lib

all jar files are placed at lib folder.

web.xml

deepthi
Offline
Joined: 2006-05-05
Points: 0

I think,deployment descriptor file is missed.

tobimichigan
Offline
Joined: 2011-09-03
Points: 0

deepthi, thanks for your response...I did get the code to run after integrating with the eclipse ide interface...and configuring it with tomcat web container. .but I must confess that reponse to help posts is pretty slow..I guess its cos Java programmers are scarce to find cos the language itself is very hard to learn..I did extensive research on my own and got the answer long before I remembered I posted here for help..thanks anyway.