• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem connecting to Server

 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not how Tom works.And i don't where to look for mistakes.
It's driving me Crazy...

I was writing the application for BeerSelect mentioned in HSFJ pg 77.
I had no problem getting the Html page in my browser.

Mapping it to a servlet took quite sometime and I finally got it right!

Then i just wanted to change the display text from "Got beer color " to something else.
Nothing special in it.. Just like that...for the heck of it.

It sounded pretty simple ...recompiling it and running it again like any regular java file...
However that never happened.
I compiled and recompiled the java file copied it into the com.example.web directory of Tomcat - but some how it never displayed the changes I made.

And then I restarted the computer to freshen things up..
to find, even the html page was not getting displayed in browser.
ie. http://localhost:8080/Beer-v1/form.html

Kept getting "page cannot be displayed."

Yes,I did start Tomcat via startup menu and keep getting "Instance of Tomcatw is already running"
I did not close (Don't know how to that via start up option)

I know this must be something really petty and small.. I just can't figure it out.
Specially when everything was working fine once.

Can some body help me which part to look into ..to get this!
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes,I did start Tomcat via startup menu and keep getting "Instance of Tomcatw is already running"

Which startup menu ? Monitor Tomcat ?
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah Monitor Tomcat
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There must be a small icon in your tray bar. Right-click on it and select Start Service.
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Christophe...

That was a BIG help..
Got my sanity back on track!!

I don't get one thing..
Why doesn't it display the changes I made after i recompile and run it.
Why do i have to stop the service and then start it again , for the changes to be reflected...
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Changes to html files or jsp files will be reflected, how ever you'll need to reboot the server for class files. If you want Tomcat to look for changes in your class files too, you'll have to set a property called "reloadable" to true in the Context. Check this document.
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks , I ll check it out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic