Configure Eclipse for Tomcat5.0 [message #76180] |
Wed, 23 February 2005 07:19  |
Eclipse User |
|
|
|
Originally posted by: g.li.omii.ac.uk
I have installed Tomcat 5.0.5 on my machine and it is working fine. I have
problem to configure Eclipse for it.
my Eclipse is Version: 3.1.0 M2.
Following instruction in Eclipse:
1. select Window>Preference
2. select Server>installed Runtimes
3. select Add...
4. select Apache>Apeche Tomcat 5.0, then click next.
5. Specify properties as:
Name: Apache Tomcat v5.0
Tomcat installation directory: c:\jakarta-tomcat-bin-5.0.25 (by browse)
JRE:j2sdk1.4.2_04 (picked up automatically)
the window top popup "The Tomcat installation directory is not correct."
and I can not click finish.
it appears whatever I select from browsing hte directory, it always shows
the " The Tomcat installation directory is not correct."
Any one have similar experiecne? or any idea please?
|
|
|
|
|
|
|
|
|
Re: Configure Eclipse for Tomcat5.0 [message #76419 is a reply to message #76360] |
Thu, 24 February 2005 08:24   |
Eclipse User |
|
|
|
Gary,
I believe the wizard code currently makes an attempt to ensure the
chosen Tomcat directory matches the version of Tomcat server you are
trying to create. It checks the name of the directory and if it starts
with "jakarta-tomcat", it is expected to match "jakarata-tomcat-X.X",
where "X.X" matches the version of server you are trying to create (3.2,
4.1, 5.0, or 5.5). If your Tomcat directory is just called
"jakarata-tomcat", it won't pass this aspect of validation.
Perhaps the code should be checking for "jakarata-tomcat-", rather than
just "jakarta-tomcat". If this is your problem, you might want to enter
a bug for this.
HTH
Larry
Gary wrote:
> Lawrence Mandel wrote:
>
>> Hi Gary,
>
>
>> The Building a School Schedule Web Application tutorial found at
>
> http://www.eclipse.org/webtools/testtutorials/M2/webapptutor ial/BuildingAScheduleWebApp.html
>
>
>> contains instructions on installing Tomcat using M2.
>
>
>> You need to select the tomcat directory that contains the bin
>> directory and not the bin directory itself. For example, if your
>> directory structure looks like
>
>
>> C:Tomcat
>> bin
>> common
>> conf
>> logs
>> server
>> shared
>> temp
>> webapps
>> work
>
>
>> you would select C:Tomcat.
>
>
>
>> Lawrence
>
>
> Thank you very much Lawrence. Yes I saw the tutorial and tried it. I did
> browse to c:\jacata_tomcat, not the bin. The problem, I assume, is
> assoicate with the tool. It seems not check at all, any directory will
> deactive button "next" and "finish" in the same time, the error message
> appears on the top. I went to IBM website (which is the older version).
> I have got the same instruction. and the same problem.
>
> I don't think it related with my jsdk. I am using j2sdk1.4.2_04 and
> tomcat is uprunning.
>
> regards,
>
>
|
|
|
|
|
|
Re: Configure Eclipse for Tomcat5.0 [message #77566 is a reply to message #76180] |
Sun, 27 February 2005 03:02  |
Eclipse User |
|
|
|
Originally posted by: jmordax.terra.es
Gary wrote:
> I have installed Tomcat 5.0.5 on my machine and it is working fine. I
> have problem to configure Eclipse for it.
>
> my Eclipse is Version: 3.1.0 M2.
> Following instruction in Eclipse:
> 1. select Window>Preference
> 2. select Server>installed Runtimes
> 3. select Add...
> 4. select Apache>Apeche Tomcat 5.0, then click next.
> 5. Specify properties as:
> Name: Apache Tomcat v5.0
> Tomcat installation directory: c:\jakarta-tomcat-bin-5.0.25 (by browse)
> JRE:j2sdk1.4.2_04 (picked up automatically)
>
> the window top popup "The Tomcat installation directory is not correct."
>
> and I can not click finish.
>
> it appears whatever I select from browsing hte directory, it always
> shows the " The Tomcat installation directory is not correct."
>
> Any one have similar experiecne? or any idea please?
Gary, in my case I have these two directories and everything works fine:
- E:\jakarta-tomcat-5.0.28
- E:\j2sdk1.4.2_06
I think the main difference with yours is the "bin" word within Tomcat
directory. I don't know how WTP checks which version of tomcat is
installed there, but if it uses the directory name.... try to remove
"bin" word. I suspect it does a more sophisticated process but....
Also, I am using Eclipse 3.1M4 with WTP 1.0M2 (I will migrate today to
Eclipse 3.1M5a with WTP 1.0M3).
Hope this helps,
Chemi.
|
|
|
Powered by
FUDForum. Page generated in 0.05086 seconds