Win a copy of Spark in Action this week in the Open Source Projects forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

how to setup a webserver to learn and test java servlets

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.. i am new to this web world (being a hardware guy) and I request you to guide me step by step how to set up a webserver and run java servlets on it.

i am on the last chapter of Head First Java and am learning about servlets.. to run them i need a server setup and running... so please help me with setting up one...

dinesh

 
author & internet detective
Posts: 40035
809
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dinesh,
The basic (simplest) free web server is Tomcat. When I googled "tomcat tutorial", the first link looked good.
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using any IDE, it might be a good idea to integrate Tomcat with it. That way, you can run your server code in a debugger, set breakpoints and in general figure out what's going on.
The actual integration would depend on the type of IDE. You can ask google for the details.
 
Dinesh Kumar Tadepalli
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your suggestions... i have netbeans 6.7 IDE... i am not able to find proper site/tutorial where they gave details of using tomcat server on netbeans IDE and running a servlet.. i am pretty confused, as there are many but not one matching netbeans 6.7... and any time i try.. i cannot set up the catalina home address... can someone please provide me a link to a tutorial to set up webserver and use it?

thanks

 
Ranch Hand
Posts: 62
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Dinesh,
What distribution of Netbeans are you using? I think it comes with a Glassfish Application Server ready to go.

Have you looked at the tutorials at netbeans.org? Try this: http://www.netbeans.org/kb/docs/web/quickstart-webapps.html

Here you have more: http://www.netbeans.org/kb/trails/web.html

Best regards,
Marcos.
 
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you can use Eclipse! If you do, get Eclipse Ganymede package, Galileo package is still in the bug filled stage and also consumes a lot of memory! Very nice IDE with lots of plug-ins and customizations!
 
Do Re Mi Fa So La Tiny Ad
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic