Bookmark Topic Watch Topic
  • New Topic

How to add tomcat 5.5.27 server in eclipse europa 3.3.2

 
sasank manohar
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Report post to moderator
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\.*;





*\common\i18n exists in my system
 
Onkar Joshi
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
sasank manohar
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am asking how to add through eclipse, so i don't think class path matters at this point
 
sasank manohar
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Report post to moderator
somebody help me,
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
sasank manohar
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Report post to moderator
ok , i will try this and comeback to you. thank you, hopefully this works
 
sasank manohar
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 116
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 186
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 116
  • Mark post as helpful
  • send pies
  • Report post to moderator
Before starting Tomcat via Eclipse, you need to STOP it from Start Menu.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 186
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thank you so much !!
 
Rajibul islam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 16
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
sulabh, welcome to Java Ranch , but please do not wake the zombies. Please ask your question in a new topic.
 
    Bookmark Topic Watch Topic
  • New Topic