See which of your colleagues or former colleagues are already on Java Link: Check out the Contact Finder
Java Web Servers » Apache » executing servlet prg.

210 Views
  8 Replies

+1
Vote Vote
executing servlet prg.
Share  
 Type: Professional, Report if fun topic
Suresh
Suresh Picture
14 Posts
back to top
Posted 31-03-2009Reply

while executing servlet prg. in tomcat server it shows the status of running is false.how can we solve this.........

ATUL
ATUL Picture
67 Posts
back to top
  Rated 0 | Posted 31-03-2009

Are you getting tomcat homepage at first...
have ypu configured your servlet properly... recheck for simple mistakes.

Isha
Isha Picture
1 Posts
back to top
  Rated 0 | Posted 14-04-2009

check ur web.xml
it might have some syntax errors, see dat u have spelled ur tags perfectly

Satish
Satish Picture
46 Posts
back to top
  Rated 0 | Posted 14-04-2009

Hi Suresh,
your question is not clear.. I hope you are not able to start the tomcat.

1. Check which port the tomcat is running... I am a linux user can not tell how exactly it happens in windows. Probably you can get that in services of windows.

2. Depending on the port give a request to the server in the browser. like "http://localhost:8080/" or "http://IPaddress:port/". You should get the default page. That confirms tomcat is fine. Now check your servlet program and deployment descriptor id web.xml. Follow the proper documentation for configuration. The configurations are passed by the web container to servlet.init(servletConfig servletConfig) method at the statup time.

now hit the URL, same as you specified in the web.xml.

Cheers

Satish

Laxman
Laxman Picture
6 Posts
back to top
  Rated 0 | Posted 14-04-2009

Hi Suresh,
i think u r not configured the server properly check once and also check in web.xml file any spelled the tags and just some symple mistakes..check once it will work..

cheers
laxman

Suresh
Suresh Picture
14 Posts
back to top
  Rated 0 | Posted 21-04-2009

check ur web.xml

it might have some syntax ... See Isha's complete reply


Hi thank U Isha for ur reply ....Ok fine now am getting that program..But one problem is there.., that is when i type http://localhost:8080 in browser it shows UNAUTHORIZED . I dont know y am getting this ...if u know any solution reply me... waiting for ur reply.

Suresh
Suresh Picture
14 Posts
back to top
  Rated 0 | Posted 21-04-2009

Hi Suresh,

your question is not clear.. I h... See Satish's complete reply


Hi thank U Satish for ur reply ....Ok fine now am getting that program..But one problem is there.., that is when i type http://localhost:8080 in browser it shows UNAUTHORIZED . I dont know y am getting this ...if u know any solution reply me... waiting for ur reply.

Suresh
Suresh Picture
14 Posts
back to top
  Rated 0 | Posted 21-04-2009

Are you getting tomcat homepage at first...

... See ATUL's complete reply


Hi Atul..yes am getting tomcat home..but from yesterday onwords that page also not opend.. it showing unauthorized what can I do now.

Ravindra
Ravindra Picture
54 Posts
back to top
  Rated 0 | Posted 21-04-2009

try changing the port 8080 to something else in conf/server.xml. It could be in use.

+1
Vote Vote
Share  
 Type: Professional, please report if fun topic

Recent Activity in Forums

05-04-2012.
05-04-2012.
Kanchana posted a new forum topic in
27-02-2012.
11-02-2012.
Kanchana posted a new forum topic in
11-02-2012.