This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"Head First Servlets & JSP" tomcat instructions

 
David Balažic
Ranch Hand
Posts: 96
  • 0
  • 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: 96
  • 0
  • 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: 96
  • 0
  • 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...
 
Vijitha Kumara
Bartender
Posts: 3908
9
Chrome Fedora Hibernate
  • 0
  • 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: 3908
9
Chrome Fedora Hibernate
  • 0
  • 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: 96
  • 0
  • 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: 3908
9
Chrome Fedora Hibernate
  • 0
  • 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: 96
  • 0
  • 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 agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic