Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Configure Eclipse for Tomcat5.0
Configure Eclipse for Tomcat5.0 [message #76180] Wed, 23 February 2005 07:19 Go to next message
Eclipse UserFriend
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 #76198 is a reply to message #76180] Wed, 23 February 2005 07:41 Go to previous messageGo to next message
Eclipse UserFriend
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."

The vanilla Eclipse distribution does not support Tomcat. You are
trying to add Tomcat as a Java runtime environment which it isn't.

Several plugins exist for this, some commercial.

If you need Tomcat support from your IDE out of the box and you are
looking for such an IDE, you might want to consider Netbeans.

--
Thorbjørn
Re: Configure Eclipse for Tomcat5.0 [message #76214 is a reply to message #76198] Wed, 23 February 2005 09:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.li.omii.ac.uk

Thorbjørn Ravn Andersen wrote:

> 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."

> The vanilla Eclipse distribution does not support Tomcat. You are
> trying to add Tomcat as a Java runtime environment which it isn't.

> Several plugins exist for this, some commercial.

> If you need Tomcat support from your IDE out of the box and you are
> looking for such an IDE, you might want to consider Netbeans.

Thank you Thorbjørn.
I have installed all the pre-requirments according to
http://www.eclipse.org/webtools/initial-contribution/IBM/eva lGuides/WebServicesToolsEval.html?p=1#tour-bu

I am not adding Tomcat as a Java runtime environment. I cealrly trying to
add server installed running environment.

>> 2. select Server>installed Runtimes
>> 3. select Add...
>> 4. select Apache>Apeche Tomcat 5.0, then click next.

regards,
Re: Configure Eclipse for Tomcat5.0 [message #76247 is a reply to message #76214] Wed, 23 February 2005 10:42 Go to previous messageGo to next message
Eclipse UserFriend
Gary wrote:
>>> my Eclipse is Version: 3.1.0 M2.
> Thank you Thorbjørn. I have installed all the pre-requirments according
> to
> http://www.eclipse.org/webtools/initial-contribution/IBM/eva lGuides/WebServicesToolsEval.html?p=1#tour-bu

Gary,
As that URL implies the evaluation guide was meant only for the
initial IBM contribution to the WTP project. It was designed for
use with Eclipse 3.0 only. Web Services support is slated to be in
WTP 1.0M3 which is due out very soon. You should either downgrade
to Eclipse 3.0.1 or upgrade to Eclipse 3.1M5a and keep an eye on
http://download.eclipse.org/webtools/downloads/.

--
- Nitin
Re: Configure Eclipse for Tomcat5.0 [message #76280 is a reply to message #76180] Wed, 23 February 2005 12:55 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Configure Eclipse for Tomcat5.0 [message #76360 is a reply to message #76280] Thu, 24 February 2005 04:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.li.omii.ac.uk

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 #76376 is a reply to message #76280] Thu, 24 February 2005 04:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.li.omii.ac.uk

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
Hi Lawrence,

Is there anyway I can manually configure Eclipse to add my jsdk and tomcat?

Gary
Re: Configure Eclipse for Tomcat5.0 [message #76419 is a reply to message #76360] Thu, 24 February 2005 08:24 Go to previous messageGo to next message
Eclipse UserFriend
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 #76529 is a reply to message #76376] Thu, 24 February 2005 11:42 Go to previous messageGo to next message
Eclipse UserFriend
Hi Gary,

The instructions in the tutorial below show how to manually configure
Eclipse to add an SDK and Tomcat.

Lawrence

>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
>Hi Lawrence,
>
>Is there anyway I can manually configure Eclipse to add my jsdk and
tomcat?
>
>Gary
Re: Configure Eclipse for Tomcat5.0 [message #76655 is a reply to message #76529] Thu, 24 February 2005 14:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.li.omii.ac.uk

Hi Lawrence,

I did read the tutorial. I upgraded my eclipse to 3.1m5 now.

The problem is that on the step 7: Click on Add... Select Apache -> Apache
Tomcat v5.0 and click Next. Click Browse and select the location where you
installed Tomcat. Select the Sun JDK 1.4.2 that you just installed and
click Finish.

I cannot click "finish". It always says the tomcat path is wrong!

I tried Jboss. It is same.

the both have been installed and run fine with j2sdk1.4.2_04.

Gary

Lawrence Mandel wrote:

> Hi Gary,

> The instructions in the tutorial below show how to manually configure
> Eclipse to add an SDK and Tomcat.

> Lawrence

>>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
>>Hi Lawrence,
>>
>>Is there anyway I can manually configure Eclipse to add my jsdk and
> tomcat?
>>
>>Gary
Re: Configure Eclipse for Tomcat5.0 [message #77083 is a reply to message #76655] Fri, 25 February 2005 15:43 Go to previous messageGo to next message
Eclipse UserFriend
Please take a look at Larry Issacs' post above. If you still have a
problem please open a defect against the jst.server component in the Web
Tools project at http://bugs.eclipse.org/bugzilla and the relevant
developers will pick it up from there.


Lawrence
Re: Configure Eclipse for Tomcat5.0 [message #77566 is a reply to message #76180] Sun, 27 February 2005 03:02 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Imports in include files
Next Topic:Error J2EE Perspective
Goto Forum:
  


Current Time: Tue Jul 22 15:14:32 EDT 2025

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

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

Back to the top