aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes How to add tomcat 5.5.27 server in eclipse europa 3.3.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply locked New topic
Author

How to add tomcat 5.5.27 server in eclipse europa 3.3.2

sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186
well i installed eclipse Europa 3.3.2 ,i have also installed tomcat 5.5.27 which i have downloaded from eclipse.org and it is a windows installer. after installing i could able to start by clicking start up/program file/monitor tomcat . i got an icon at system Tray,where i could start and stop the service and could successfully see the index page .so far so good...now the story starts

i went to eclipse and servers tab\new\server\Apache\tomcat5.5 and then given path to C:\Program Files\Apache SoftwareFoundation\Tomcat 5.5\common\i18n where i have installed it but i am getting the error msg as


The Tomcat installation directory is not valid. It is missing expected file or folder common/i18n.


so the question is where i have gone wrong. i even given the classpath as

C:\Program Files\Java\jdk1.5.0_16\lib\dt.jar;C:\Program Files\Java\jdk1.5.0_16\lib\tools.jar;.;C:\Program Files\Java\jsdk;C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\.*;


" border="0" />


*\common\i18n exists in my system


"SCJP5 | SCWCD5| DEVELOPER"
Onkar Joshi
Ranch Hand

Joined: Mar 01, 2007
Posts: 116
You probably want to use "C:\Program Files\Apache SoftwareFoundation\Tomcat 5.5" as your installation path.

If that doesn't work, try to have tomcat home in simply "c:\apache-tomcat-5.5.23" since spaces in the path tend to get several Java tools confused.


SCJP 5 - 95% | SCWCD 1.4 - 88% | SCBCD 5 - 93%
Onkar Joshi's blog | LinkedIn profile
sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186
I am asking how to add through eclipse, so i don't think class path matters at this point
sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186
somebody help me,
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Did you try what Onkar suggested:

You probably want to use "C:\Program Files\Apache Software Foundation\Tomcat 5.5" as your installation path.


I also agree with Onkar's comments about spaces - I would move Tomcat elsewhere. I have mine at c:\apps\java\tomcat-5.5. And then use that as the installation path.


JBoss In Action
sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186
ok , i will try this and comeback to you. thank you, hopefully this works
sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186
First of all, my thanks to onkar and peter....your suggestions worked.

i installed in C:\Apache\Tomcat 5.5 after which the server is able to add and start in the eclipse but the tomcat default home page is not coming.its only coming when i start in system tray.(Are you getting me ?)

but the problem is that in system tray if start then eclipse is not able to start and the following error is coming

Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

and if i am starting in eclipse i am unable to start in system tray, because of which the home page is not coming.
i repeat if i start in system tray then only the tomcat home page is coming , but if in eclipse i am starting then , well, the home page is not coming.

ok now where is the problem.

also , what is the use of starting tomcat ,in eclipse(i am just a starter to servlets and jsp).
is it enough if i start tomcat in system tray and write programs in eclipse then will i be able to deploy it. or is it a must that if i write programs in eclipse then i must start tomcat server in eclipse only?

i am opening home page by using " http:\\localhost:8080\ "
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

but the problem is that in system tray if start then eclipse is not able to start and the following error is coming
Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use.


This suggests to me that Tomcat is already running. Did you, by any chance, attempt to start Tomcat in Eclipse, and after that attempt to run it from a command prompt? If so, it would appear that Tomcat started successfully from within Eclipse. Of course another possibility is that there is another version of Tomcat already running on your system and it is using the ports. The best way to check what apps have ports open is the TCPView app from sysinternals.

When you attempt to start Tomcat in Eclipse, the console window should show some logging output as Tomcat starts. Are you seeing that?
Onkar Joshi
Ranch Hand

Joined: Mar 01, 2007
Posts: 116
It is likely that Tomcat is being started by default on your system. You will probably see a shortcut to "Stop Tomcat" in your start menu. Use that. Then start Tomcat from within Eclipse.
sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186
yeah onkar i started tomcat in start menu of my windows xp o.s. and trying to start in eclipse.is it sufficient that i start in any one of them ie., either in start menu or in eclipse ?

also, peter,

The best way to check what apps have ports open is the TCPView app from sysinternals
.

how to do in windows xp operating system. Frankly speaking i did not understand how to do what you have said.

Thank you for your valuable inputs.
Onkar Joshi
Ranch Hand

Joined: Mar 01, 2007
Posts: 116
Before starting Tomcat via Eclipse, you need to STOP it from Start Menu.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

also, peter,
The best way to check what apps have ports open is the TCPView app from sysinternals
how to do in windows xp operating system. Frankly speaking i did not understand how to do what you have said.


tcpview sysinternals
sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186
Thank you so much !!
Rajibul islam
Greenhorn

Joined: Jan 06, 2009
Posts: 3
I can give you some tips for configure tomcat in your eclipse -

use tomcat plugs in - you will found this information and set up - http://www.easyeclipse.org/site/plugins/tomcat-launcher.html.
others are describe at - http://rajibinfo.wordpress.com/category/tech/how-to/
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Just get "Eclipse for Java EE" then you donĀ“t need to install the plugin and ant separately.

Just within three or four clicks you can integrate Tomcat in it.
sulabh kapoor
Greenhorn

Joined: Oct 10, 2009
Posts: 16
I have added "tomcat 5.5.28 - deployer" in my F drive at location "F:\apache-tomcat-5.5.28-deployer" but i am getting the error
"The Tomcat installation directory is not valid. It is missing expected file or folder common/i18n."

As suggested i have set the classpath also but it stills give me the same error.
I have installed eclipse europa.

Please help me.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

sulabh, welcome to Java Ranch , but please do not wake the zombies. Please ask your question in a new topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to add tomcat 5.5.27 server in eclipse europa 3.3.2