• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

"Head First Servlets & JSP" tomcat instructions

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

In "Head First Servlets & JSP", Second edition, the instructions for installing tomcat 5.5 (on page xxvi) say to click the install .exe file.
I downloaded the Core ZIP file [1] and it has no exe file that is named "install" or similar.

Does it mean the "Windows Service Installer" [2] file ?

[1] http://www.apache.si/tomcat/tomcat-5/v5.5.28/bin/apache-tomcat-5.5.28.zip
[2] http://www.apache.si/tomcat/tomcat-5/v5.5.28/bin/apache-tomcat-5.5.28.exe
 
David Balažic
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same instructions also do not say for Java if the JDK is required or just the JRE: If you don’t already Java SE v1.5 or greater, you’ll need it.
(there ia also a grammatical error in the sentence)

I guess the JDK is a safe bet ?
 
David Balažic
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And the next thing: TOMCAT_HOME

According to the internet, TOMCAT v4 and above uses CATALINA_HOME instead of TOMCAT_HOME.

So what gives?

I installed from the ZIP file, so now I have D:\tomcat\bin\startup.bat.
So the correct action is to set TOMCAT_HOME to D:\tomcat ? Or rather CATALINA_HOME ? Both ? None ?


Thanks...
 
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

David Balažic wrote:... I guess the JDK is a safe bet ?



Yes. JRE is only the runtime environmet which does not contain the tools needed to compile and other tasks.
 
Vijitha Kumara
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

David Balažic wrote:According to the internet, TOMCAT v4 and above uses CATALINA_HOME instead of TOMCAT_HOME.
I installed from the ZIP file, so now I have D:\tomcat\bin\startup.bat.
So the correct action is to set TOMCAT_HOME to D:\tomcat ? Or rather CATALINA_HOME ? Both ? None ?



Use what the documentation says. Check the documentation all (4.1,5.x,6.x) uses CATALINA_HOME so you should use that.
 
David Balažic
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Vijitha Kumara wrote:
Use what the documentation says. Check the documentation all (4.1,5.x,6.x) uses CATALINA_HOME so you should use that.


So the book is wrong? Another errata?

PS: I know what JRE and JDK are. After all, I have SCJP5 if I started work on SCWCD ;)
 
Vijitha Kumara
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

PS: I know what JRE and JDK are. After all, I have SCJP5 if I started work on SCWCD ;)


If you don’t already Java SE v1.5 or greater, you’ll need it.


With this, book correctly says what is required.

So the book is wrong? Another errata?



I don't know what the book says about TOMCAT_HOME or anything but there can be typos etc.. so make sure you check the official errata of the book.



 
David Balažic
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Vijitha Kumara wrote:

PS: I know what JRE and JDK are. After all, I have SCJP5 if I started work on SCWCD ;)


If you don’t already Java SE v1.5 or greater, you’ll need it.


With this, book correctly says what is required.


java.sun.com download page has:
- Java SE Development Kit
- Java SE Runtime Environment
(both version 6 update 16)
The book does not say which. Unless it is written by invisible ink, that only some can see.
 
I am a man of mystery. Mostly because of this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic