Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Setting up Tomcat with eclipse anf CATALINA_HOME setup (Can not setup eclipse with tomcat and CATALINA_HOME issue )
Setting up Tomcat with eclipse anf CATALINA_HOME setup [message #1694157] Fri, 01 May 2015 05:34 Go to next message
jignesh soni is currently offline jignesh soniFriend
Messages: 7
Registered: February 2014
Junior Member
1) I have downloaded Apache Tomcat zip file in "C:\Users\sonij3\Desktop\Apache Tomcat\" When I extracted files from it , new dir structure where binary and lib files are is
"C:\Users\sonij3\Desktop\Apache Tomcat\apache-tomcat-6.0.43-windows-x64\apache-tomcat-6.0.43\lib"

Then I clicked on WIndows Service Installer and Tomcat got installed in "C:\Program Files\Apache Software Foundation\". what should be CATALINA_HOME ?

2) Is it required to download Apache Tomcat zip file (8 MB size) OR can I directly use Windows Service Installer from ''https://tomcat.apache.org/download-60.cgi" website to install Tomcat without downloading it ?

When I am trying to setup eclipse wuth Tomcat Installation Dir as "C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib" OR "C:\Users\sonij3\Desktop\Apache Tomcat\apache-tomcat-6.0.43-windows-x64\apache-tomcat-6.0.43\lib", I ma getting error message "The Tomcat installation directory is not valid. It is missing expected file or folder lib/jasper-el.jar" While jasper~el jar is available in both locations.

Why am I getting such an error ? How do I set up correct path here ?

3) I have setup CATALINA_HOME as "C:\Program Files\Apache Software Foundation"
Then I am trying to check version of Tomcat as

Quote:
"C:\Users\nirjari>"Desktop\Apache Tomcat\apache-tomcat-6.0.43-windows-x64\apache-tomcat-6.0.43\bin\version.bat"
The CATALINA_HOME environment variable is not defined correctlyThis environment variable is needed to run this program

I don't see version.bat in Tomcat Installation path "C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin"

Then I also tried setting CATALINA_HOME as "C:\Users\nirjari\Desktop\Apache Tomcat\apache-tomcat-6.0.43-windows-x64\apache-tomcat-6.0.4", "C:\Users\nirjari\Desktop\Apache Tomcat\apache-tomcat-6.0.43-windows-x64" AND "C:\Users\nirjari\Desktop\Apache Tomcat", But I am getting same error.

So whats wrong with CATALINA_HOME in here ? What should be correct CATlALINA_HOME ?
Re: Setting up Tomcat with eclipse anf CATALINA_HOME setup [message #1694174 is a reply to message #1694157] Fri, 01 May 2015 14:52 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

You've got two different things going on: installing Tomcat on the system and setting it up for Eclipse.

Installing it as a service is not necessary for its use in Eclipse. CATALINA_HOME should point to the root directory ("apache-tomcat-6.0.43-windows-x64" not "apache-tomcat-6.0.43-windows-x64\lib"), and I'd avoid using one where there are spaces involved.

That same directory should also work for Eclipse. The error message mentioned that it couldn't find "lib/jasper-el.jar"--which means it expects you to point it at a directory that's the parent of "lib."


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Setting up Tomcat with eclipse anf CATALINA_HOME setup [message #1694202 is a reply to message #1694157] Sat, 02 May 2015 02:31 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 04/30/2015 11:34 PM, jignesh soni wrote:
> 1) I have downloaded Apache Tomcat zip file in
> "C:\Users\sonij3\Desktop\Apache Tomcat\" When I extracted files from it
> , new dir structure where binary and lib files are is
> "C:\Users\sonij3\Desktop\Apache
> Tomcat\apache-tomcat-6.0.43-windows-x64\apache-tomcat-6.0.43\lib"
> Then I clicked on WIndows Service Installer and Tomcat got installed in
> "C:\Program Files\Apache Software Foundation\". what should be
> CATALINA_HOME ?
> 2) Is it required to download Apache Tomcat zip file (8 MB size) OR can
> I directly use Windows Service Installer from
> ''https://tomcat.apache.org/download-60.cgi" website to install Tomcat
> without downloading it ?
> When I am trying to setup eclipse wuth Tomcat Installation Dir as
> "C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib" OR
> "C:\Users\sonij3\Desktop\Apache
> Tomcat\apache-tomcat-6.0.43-windows-x64\apache-tomcat-6.0.43\lib", I ma
> getting error message "The Tomcat installation directory is not valid.
> It is missing expected file or folder lib/jasper-el.jar" While jasper~el
> jar is available in both locations.
> Why am I getting such an error ? How do I set up correct path here ?
> 3) I have setup CATALINA_HOME as "C:\Program Files\Apache Software
> Foundation" Then I am trying to check version of Tomcat as
> Quote:
>> "C:\Users\nirjari>"Desktop\Apache
>> Tomcat\apache-tomcat-6.0.43-windows-x64\apache-tomcat-6.0.43\bin\version.bat"
>> The CATALINA_HOME environment variable is not defined correctlyThis
>> environment variable is needed to run this program
>
> I don't see version.bat in Tomcat Installation path "C:\Program
> Files\Apache Software Foundation\Tomcat 6.0\bin"
> Then I also tried setting CATALINA_HOME as
> "C:\Users\nirjari\Desktop\Apache
> Tomcat\apache-tomcat-6.0.43-windows-x64\apache-tomcat-6.0.4",
> "C:\Users\nirjari\Desktop\Apache
> Tomcat\apache-tomcat-6.0.43-windows-x64" AND
> "C:\Users\nirjari\Desktop\Apache Tomcat", But I am getting same error.
> So whats wrong with CATALINA_HOME in here ? What should be correct
> CATlALINA_HOME ?

Unless you're planning on really serving up Java pages from your Windows
desktop, you don't need to install Tomcat. Just point Eclipse at it
(Window -> Preferences -> Server -> Runtime Environment -> Add -> Apache
Tomcat v6.0 -> Next -> Browse to
C:\Users\sonij3\wherever-you-decide-to-keep-it.

Then just launch your web application, to run or to debug, and Eclipse
will launch Tomcat for you.

You do not need to touch CATALINA_HOME.
Previous Topic:Modifying Eclipse Communication Framework (ECF) Contacts View
Next Topic:Eclipse/Ant ftp tracing?
Goto Forum:
  


Current Time: Tue Apr 16 13:51:45 GMT 2024

Powered by FUDForum. Page generated in 0.36220 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top