Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

Tomcat, servlets & domain names

Thread view: 
Ike - 28 Sep 2006 19:45 GMT
In order to run a Tomcat server to run servlets, I must have a registered
domain name. However, if I only have an IP address, what servlet container
would people here recommend in lieu of Tomcat (and what are the drawbacks
compared to Tomcat) ?

Thanks, Ike
Manish Pandit - 29 Sep 2006 03:51 GMT
No you don't need a registered DNS unless you want to host it on the
web.

You need a machine that can run tomcat. For localhost, you dont even
need an internet connection. You access it via http://<IP or
FQDN>:<port>

-cheers,
Manish
Ike - 29 Sep 2006 13:43 GMT
but I do want to host it on the web, behind apache -Ike
Simon Brooke - 29 Sep 2006 13:32 GMT
> In order to run a Tomcat server to run servlets, I must have a registered
> domain name.

No you don't. You can use the IP address of the machine, or you can resolve
a name to the IP address of the machine in your hosts file. What version
of Tomcat, and what operating system?

Signature

simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/
       ;; Sending your money to someone just because they've erected
       ;; a barrier of obscurity and secrets around the tools you
       ;; need to use your data does not help the economy or spur
       ;; innovation. - Waffle Iron Slashdot, June 16th, 2002

Ike - 29 Sep 2006 17:28 GMT
Tomcat 5.0.28 and Windows XP
-Ike
Simon Brooke - 29 Sep 2006 19:40 GMT
> Tomcat 5.0.28 and Windows XP

I can't help you very much with Windows, but certainly older versions of
Windows had a hosts file in \Windows\System or somewhere like that. It's a
text file, where each line comprises an IP address followed by whitespace
followed by a space-separated list of one or more names. The names in the
list resolve to the address; simple as that.

The address 127.0.0.1 is special; it is always a valid address for 'this
machine' and conventionally the name 'localhost' resolves to 127.0.0.1; so
even if your IP address is dynamically allocated by  DHCP you can use
127.0.0.1 (or 'localhost', or another name you've set up for 127.0.0.1 in
your hosts file) for testing.

Signature

simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

       ;; If you're doing this for fun, do what seems fun.  If you're
       ;; doing it for money, stop now.
                                                       ;; Rainer Deyke

IchBin - 29 Sep 2006 21:30 GMT
>> Tomcat 5.0.28 and Windows XP
>
[quoted text clipped - 9 lines]
> 127.0.0.1 (or 'localhost', or another name you've set up for 127.0.0.1 in
> your hosts file) for testing.

That host file on windows XP SP 2 resides here:

C:\WINDOWS\SYSTEM32\DRIVERS\etc\hosts

Signature

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA              http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)

Mark Space - 30 Sep 2006 01:26 GMT
> That host file on windows XP SP 2 resides here:
>
> C:\WINDOWS\SYSTEM32\DRIVERS\etc\hosts

But that won't help outside of his own system.

To the OP: Where did you put the DNS entry for your domain?  Who is
doing DNS for you?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.