File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Configuring Tomcat5.5 in Eclipse3.6 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
Bookmark "Configuring Tomcat5.5 in Eclipse3.6" Watch "Configuring Tomcat5.5 in Eclipse3.6" New topic
Author

Configuring Tomcat5.5 in Eclipse3.6

Kv Payal
Greenhorn

Joined: Apr 17, 2011
Posts: 11
I have Eclipse3.6(Helios) Version in which I installed plugins for AppEngine and GWT. I also want to configure Tomcat5.5 but dont know what plugin to install. I have Tomcat already installed in my system and it is working fine outside eclipse. I also don't see a Server tab in Window->Show View. How can I get that. With that can I configure any other server like Weblogic, JBoss etc. Please help.

Thanks in advance.

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

I also don't see a Server tab in Window->Show View.

I suspect that you downloaded the wrong Eclipse package. You need "Eclipse IDE for Java EE Developers".


JBoss In Action
Kv Payal
Greenhorn

Joined: Apr 17, 2011
Posts: 11
Hi Peter,

I have downloaded eclipse from www.eclipse.org site. The Helios version(eclipse3.6). The link you've provided in your answer is giving error while downloading. Please let me know correctly where should I download eclipse from and from where should I get the plugins and also which version I can use with Tomcat. The link you've given is I think for MyEclipse.

Thanks
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10375
    
    8

You can get tomcat working with your existing eclipse with the sysdeo plugin http://www.eclipsetotale.com/tomcatPlugin.html
Else get the EE version Peter mentioned from
http://eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/heliossr2


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Kv Payal
Greenhorn

Joined: Apr 17, 2011
Posts: 11
Thanks Maneesh,

From the link you gave, I could download the plugins and Tomcat could be configured in my eclipse. Thank You very much. I could see three Tomcat icons in the toolbar after installing-Start Tomcat, Stop Tomcat and Restart Tomcat. Anyways, I still don't see any Servers tab in Show View. Is it only visible in MyEclipse? How can I deploy my files into Tomcat webapps folder automatically from eclipse?

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10375
    
    8

Kv Payal wrote: Anyways, I still don't see any Servers tab in Show View. Is it only visible in MyEclipse? How can I deploy my files into Tomcat webapps folder automatically from eclipse?


With the sysdeo plugin, the server tab doesnt come into the picture. Just configure your plugin for your tomcat installation (check the installation part in the link I provided). Then use the three icons to start/stop/restart. The output will be visible in your eclipse console.
To deploy your war you will need an ant script. You cannot do it with the plugin. It will only build the war for you.BUT, in dev environment, you need not deploy your war at all. The plugin hotlinks to Tomcat so your code is already being served from Tomcat. Check out the Hello World tutorial in the link
Kv Payal
Greenhorn

Joined: Apr 17, 2011
Posts: 11
As mentioned in the Hello World tutorial link to create Tomcat project, I dont see that option in my eclipse. I only have Java Project and Web Application project(which is only allowing me to create GWT project). When I created Java project, it is not creating all the WEB-INF etc folders. Do I have to do it manually? Or how can I get that link of Tomcat Project?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10375
    
    8

Huh? Why are you trying to create a new Tomcat project?
Your original question was how to configure tomcat with eclipse. Did you follow the link? Did you configure your tomcat after installing the plugin. If you click start tomcat button does your server start?

Kv Payal
Greenhorn

Joined: Apr 17, 2011
Posts: 11
My original question "how to configure tomcat with eclipse" is resolved by following the link you gave. Yes I configured the Tomcat version and Home directory and it is starting when I click on start Tomcat button.

Since you asked me to "Check out the Hello World tutorial in the link". When I was checking that link, there it asked to create Tomcat project and I don't have that option( That's why I asked that question)
Though I have an option to create Web Project in File Menu but it is only allowing me to create GWT projects. Thats why I am confused as to how to create a web project to run on tomcat server with all the folders WEB-INF etc created automatically. Do we have to to run ant scripts for getting them also? or do we need to do them manually?

I don't know how to get and run ant scripts. Probably that is why I am not getting any option for creating .war or .ear files in my eclipse menus.

The reason I am confused about that is because in my office, in eclipse3.3, they configured JBoss server and I could get options to create .war and .ear files and an option to create web applications, enterprise applications(which is not possible in Tomcat though) etc and it was automatically creating the tree structure needed while deploying.

Sorry if I am deviating from the original question and extending the same thread. However, Thanks for giving a resolution to my original question.
Kv Payal
Greenhorn

Joined: Apr 17, 2011
Posts: 11
Hi,

I am trying again to configure tomcat in another system with the same sysdeo plugin link provided by Manish. It worked well in my system but now it is giving error.

I clicked Help->Install New Software and in the Work with field, I pasted
http://www.eclipsetotale.com/tomcatPlugin.html
and clicked Add. It is asking to Add Repository Name and Location. What should I type there? It didn't ask that last time. If I type anything, it is giving the error, not a software location.

Can somebody help me with the steps to configure sysdeo plugin in eclipse3.6?

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuring Tomcat5.5 in Eclipse3.6