Configuring Eclipse to use Tomcat and the Spring Framework
38 comments
Comment from: Anil Singh Bist [Visitor]
Comment from: Raju R [Visitor]
Comment from: Tirumala [Visitor]
Comment from: John [Visitor]
Comment from: davidnewcomb [Member]
Yes, you are correct. The JEE version of Eclipse comes with support for several versions of application servlet container and application server e.g. JBoss, WebSphere, JOnAS, Oracle OC4J and Apache Tomcat. I found there was no need to load any “extra” plugins.
You still need installed copies of those applications but if you follow my instructions, just substitute Tomcat with your application.
Comment from: Sam Russell [Visitor]
Comment from: Atul [Visitor]
It’s really simple short and nice article helped a lot in setting up the env.
Would appreciate if any one can give me some sample projects ref of spring webservice. thanks in advance!!
Comment from: juni [Visitor]
Hi,
i have to work struts2.0 with tomcat6.0 in Eclipse Ganymede..
i configured tomcat6.0 like u said here… but i couldnt get the output when i tried http://localhost:8080/ in the browser… it should show tomcat home page na..
since its not worked i havent try struts2.0 .. can u please tell me the solution for this
Comment from: davidnewcomb [Member]
Sorry Juni, but this article is Tomcat and Spring not Tomcat and Strut. The answer to your problem could literally be anything!
Try asking in the Spring Forum.
Comment from: Nikhil Lanjewar [Visitor]
Comment from: davidnewcomb [Member]
I’m afraid that I don’t know how to get Tomcat webapps to run from the Eclipse workspace directly. The publish process copies the required files and libraries into .metadata/.plugins/org.eclipse.wst.server.core/tmp0
before tomcat is launched from inside Eclipse.
Eclipse runs tomcat by explicitly setting catalina.base
, catalina.home
, wtp.deploy
and java.endorsed.dirs
to point to your .metadata
directories.
In order to do the publish you must associate the dynamic web project with the Tomcat server in the Server view.
Comment from: Nikhil Lanjewar [Visitor]
Comment from: David Erichsen [Visitor]
Hey! Thanks for the great article!
Do you visit any informative spring or JSF websites you could share as well?
Comment from: davidnewcomb [Member]
Comment from: Ashish [Visitor]
Comment from: lr [Visitor]
Thanks, explanation is clear and detailed.
lr
Comment from: KLR [Visitor]
Comment from: davidnewcomb [Member]
Comment from: Jens Weber [Visitor]
Comment from: srikanth [Visitor]
Comment from: x [Visitor]
Very nice howto. Even better then the incomplete and frustrating installation instructions I read in ebooks like Spring 2 from novice to professional or Spring in action.
Thumbs up
Comment from: Diego [Visitor]
Comment from: Samhitha [Visitor]
Comment from: Dilip [Visitor]
Comment from: Addy [Visitor]
Thanks for the clear article. Instead of tomcat can we configure Websphere Application server. If yes, can someone provide me with the details or URL to find help or any tips, i mean anything will help…
thanks in Advance :)
Comment from: Vicky Gupta [Visitor]
Comment from: Prashant [Visitor]
Comment from: Evgenia [Visitor]
Comment from: Swati [Visitor]
Comment from: bird [Visitor]
Comment from: Vivek [Visitor]
Hi,
I have OS as windows vista,
I have configured with the steps as given above.
Now i receive an error “Several ports (8005, 8080, 8009) required by Tomcat v6.0 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).” when i am trying to start the server.
Thanks, Vivek
Comment from: Rajan [Visitor]
Hi Vivek,
Check in the processes tab under the windows task manager, there will be two java processes. You need to kill the java process which is consuming lesser memory. This will resolve the problem of the several ports already in use
Thanks Rajan
Comment from: Jinju [Visitor]
When try to install by this way(From Help->Software Updates give link to eclipse to download springide which is “http://springide.org/updatesite“), it shows below message.i can’t move to next step ,what i can do?
Cannot complete the install because one or more required items could not be found. Software being installed: SpringSource Tool Suite (required) 2.5.2.201101081000-RELEASE (com.springsource.sts.feature.group 2.5.2.201101081000-RELEASE) Missing requirement: com.springsource.sts.ide.ui 2.5.2.201101081000-RELEASE requires ‘bundle org.eclipse.ajdt.ui 0.0.0′ but it could not be found Cannot satisfy dependency:
From: SpringSource Tool Suite (required) 2.5.2.201101081000-RELEASE (com.springsource.sts.feature.group 2.5.2.201101081000-RELEASE)
To: com.springsource.sts.ide.ui [2.5.2.201101081000-RELEASE]
Comment from: Habib [Visitor]
Comment from: Priyanka Sabnani [Visitor]
Comment from: sandeep [Visitor]
Comment from: freebird [Visitor]
Form is loading...