• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem connecting to Server

 
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah Monitor Tomcat
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks , I ll check it out.
reply
    Bookmark Topic Watch Topic
  • New Topic