| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Rate Thread | Display Modes |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Feb 2007
Age: 26
Posts: 21
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
|
problem in deploying the webapplication on a web server
Hi friends,
Iam trying to deploy a simple java web application(servlet)..it gives me the following error in the browser: type Status report message /hello description The requested resource (/hello) is not available. I tried deploying on tomcat and java web server...it is able to open html files..Kindly help me out.. Thanks, Kris |
|
|
|
|
|
#2 (permalink) |
|
Super Moderator
Join Date: Feb 2006
Location: Hyderabad
Posts: 2,355
Thanks: 117 Thanked 241 Times in 198 Posts Thanks: 117
Thanked 241 Times in 198 Posts
Blog Entries: 4
Rep Power: 51
|
Re: problem in deploying the webapplication on a web server
Please cross check the directory in which you are placing your servlet. Generally both HTML and Servlets don't sit in same directory in servers.
Thanks, Krishna
__________________
Give 1 cup rice to a hungry Indian just by a mouse click. No money, no form filling, no hassle... Click here for the donation. |
|
|
|
|
|
#3 (permalink) |
|
Junior Member
Join Date: Feb 2007
Age: 26
Posts: 21
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
|
Re: problem in deploying the webapplication on a web server
Hi,
I have placed the servlet application in WEB-INF/classes directory...also i have uncommented the servlet invoker....but no use Thanks, Kris |
|
|
|
|
|
#4 (permalink) |
|
Moderator
Join Date: Apr 2006
Location: India
Posts: 636
Thanks: 57 Thanked 78 Times in 63 Posts Thanks: 57
Thanked 78 Times in 63 Posts
Rep Power: 17
|
Re: problem in deploying the webapplication on a web server
Hi Kris,
Did u specify the Servlet name and Servlets mapping in the web.xml file in the WEB-INF folder. If not you have to specify, that is why it is giving that error message "requested resource is not available". for HTML and JSPs you dont need to specify them in the web.xml, the web container automatically takes the pages in the web appn folder when you give the context root. Please let me know your questions Thank You
__________________
M0h@n |
|
|
|
|
|
#5 (permalink) |
|
Junior Member
Join Date: Feb 2007
Age: 26
Posts: 21
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
|
Re: problem in deploying the webapplication on a web server
Hi,
I have configured web.xml correctly in my web application .....also i tried to configure conf/web.xml to uncomment servlet invoker..but no use...When I start tomcat it give the following message: org.apache.catlina.core.StandardContext start SEVERE:Error listenerStart org.apache.catlina.core.StandardContext start SEVERE:Context [/myapp] startup failed due to previous errors |
|
|
|
|
|
#6 (permalink) |
|
Moderator
Join Date: Apr 2006
Location: India
Posts: 636
Thanks: 57 Thanked 78 Times in 63 Posts Thanks: 57
Thanked 78 Times in 63 Posts
Rep Power: 17
|
Re: problem in deploying the webapplication on a web server
Hi Kris,
Pls get the log the and paste it over here, I 'll examine it and let u know the problem. To get the logs ,go to your tomcat folder/logs and get the jakarta_service.log and localhost_latestdate.log and paste it over here or attache the log files over here, I'll tell u what the problem is Let me know your questions Thank You
__________________
M0h@n |
|
|
|
|
|
#7 (permalink) |
|
Member
Join Date: Jan 2007
Posts: 32
Thanks: 3 Thanked 3 Times in 3 Posts Thanks: 3
Thanked 3 Times in 3 Posts
Rep Power: 2
|
Re: problem in deploying the webapplication on a web server
The problem is of the Context creation. Please do the following
First uncomment the context which you are currently working. second start your web server check whether it is starting properly or not if it started properly then un comment the context and again restart the app server For commenting and un commenting the context of your application see server.xml file in tomcat-home/config folder do this and one more thing i observed from the discussion is the context is not created properly in your app server try to do resolve the context problem.
__________________
Cheers, Laxmi |
|
|
|
|
|
#8 (permalink) |
|
Junior Member
Join Date: Feb 2007
Age: 26
Posts: 21
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
|
Re: problem in deploying the webapplication on a web server
It went well starting up the web application. When I start the servlet the problem arises.I tsimply gives the following message:
HTTP Status 404 - /KrisWApp/ -------------------------------------------------------------------------------- type Status report message /KrisWApp/ description The requested resource (/KrisWApp/) is not available. -------------------------------------------------------------------------------- Apache Tomcat/5.5.16 I even uncommented the servlet invoker in TomcatHome/conf/web.xml.but of no use.other sample servlet applications,which come along with Tomcat, are also not running, they are alos giving me the same error.Please help me out. Thanks, Kris |
|
|
|
|
|
#9 (permalink) |
|
Moderator
Join Date: Apr 2006
Location: India
Posts: 636
Thanks: 57 Thanked 78 Times in 63 Posts Thanks: 57
Thanked 78 Times in 63 Posts
Rep Power: 17
|
Re: problem in deploying the webapplication on a web server
Hi Kris,
If the example web applications are also not working ,then it not a problem in deploying the webapplication. it is the problem of the tomcat, some thing has gone wrong with the server itself. Re-install your tomcat web server again, make sure that sample web applications are also working and then deploy your web application. Let me know your questions Thank You
__________________
M0h@n |
|
|
|
|
|
#10 (permalink) |
|
Senior Member
Join Date: Apr 2007
Location: chennai
Age: 24
Posts: 231
Thanks: 82 Thanked 11 Times in 9 Posts Thanks: 82
Thanked 11 Times in 9 Posts
Rep Power: 5
|
Re: problem in deploying the webapplication on a web server
Friends
Tell me what is the purpose of deploying in web servers, as kris encountered the problem i also faced so many times,but my small programs are working without deploying itself,so u please tell me the real purpose of deployment for me also it is not coming |
|
|
|
|
|
#11 (permalink) |
|
Junior Member
Join Date: May 2007
Age: 27
Posts: 17
Thanks: 0 Thanked 3 Times in 3 Posts Thanks: 0
Thanked 3 Times in 3 Posts
Rep Power: 2
|
Re: problem in deploying the webapplication on a web server
heyy just write a tag called
ohh k leave it....i will just giv u a sample web.xml file.... 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>TestspringAppservlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServletservlet-class> <load-on-startup>1load-on-startup> servlet> <servlet-mapping> <servlet-name>TestspringAppservlet-name> <url-pattern>*.htmurl-pattern> servlet-mapping> <welcome-file-list> <welcome-file> /include.jsp welcome-file> welcome-file-list> <taglib> <taglib-uri>/coretaglib-uri> <taglib-location>/WEB-INF/c-rt.tldtaglib-location> taglib> |
|
|
|
|
|
#12 (permalink) |
|
Junior Member
Join Date: May 2007
Age: 27
Posts: 17
Thanks: 0 Thanked 3 Times in 3 Posts Thanks: 0
Thanked 3 Times in 3 Posts
Rep Power: 2
|
Re: problem in deploying the webapplication on a web server
U dont worry about Spring Framework n all .....just add a
giv ur servlet name........ instead of the one given here.. Bye |
|
|
|
|
|
#13 (permalink) |
|
Junior Member
Join Date: May 2007
Age: 27
Posts: 17
Thanks: 0 Thanked 3 Times in 3 Posts Thanks: 0
Thanked 3 Times in 3 Posts
Rep Power: 2
|
Re: problem in deploying the webapplication on a web server
<welcome-file-list> <welcome-file> /include.jsp < font>welcome-file> < font>welcome-file-list> |
|
|
|