Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 18-02-07, 05:03 PM   #1 (permalink)
Junior Member
 
kris_121's Avatar
 
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 kris_121 is on a distinguished road
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
kris_121 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-02-07, 12:17 AM   #2 (permalink)
Super Moderator
 
sk_kireeti's Avatar
 
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 sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute
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.
sk_kireeti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-02-07, 02:04 AM   #3 (permalink)
Junior Member
 
kris_121's Avatar
 
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 kris_121 is on a distinguished road
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
kris_121 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-02-07, 04:25 PM   #4 (permalink)
Moderator
 
t_mohan's Avatar
 
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 t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold
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
t_mohan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-02-07, 12:53 AM   #5 (permalink)
Junior Member
 
kris_121's Avatar
 
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 kris_121 is on a distinguished road
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
kris_121 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-02-07, 12:19 PM   #6 (permalink)
Moderator
 
t_mohan's Avatar
 
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 t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold
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
t_mohan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23-02-07, 04:13 PM   #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 Laxminarayanak will become famous soon enough
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
Laxminarayanak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-03-07, 01:20 AM   #8 (permalink)
Junior Member
 
kris_121's Avatar
 
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 kris_121 is on a distinguished road
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
kris_121 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-03-07, 11:13 AM   #9 (permalink)
Moderator
 
t_mohan's Avatar
 
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 t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold
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
t_mohan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-05-07, 11:56 PM   #10 (permalink)
Senior Member
 
nandhini_7's Avatar
 
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 nandhini_7 is on a distinguished road nandhini_7 is on a distinguished road
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
nandhini_7 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-07, 03:09 PM   #11 (permalink)
Junior Member
 
chinnuchowdary's Avatar
 
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 chinnuchowdary is on a distinguished road
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>



web-app>
chinnuchowdary is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-07, 03:11 PM   #12 (permalink)
Junior Member
 
chinnuchowdary's Avatar
 
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 chinnuchowdary is on a distinguished road
Re: problem in deploying the webapplication on a web server

U dont worry about Spring Framework n all .....just add a tag...

giv ur servlet name........

instead of the one given here..


Bye
chinnuchowdary is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-07, 03:11 PM   #13 (permalink)
Junior Member
 
chinnuchowdary's Avatar
 
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 chinnuchowdary is on a distinguished road
Re: problem in deploying the webapplication on a web server

<welcome-file-list>


<welcome-file>


/include.jsp
welcome-file>



welcome-file-list>

chinnuchowdary is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-07, 03:12 PM   #14 (permalink)
Junior Member
 
chinnuchowdary's Avatar
 
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 chinnuchowdary is on a distinguished road
Re: problem in deploying the webapplication on a web server

thats da tag u hav 2 add......
chinnuchowdary is offline  
Digg this Post!Add Post to del.icio.us