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 how to run j2ee application (on tomcat server) by eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "how to run j2ee application (on tomcat server) by eclipse " Watch "how to run j2ee application (on tomcat server) by eclipse " New topic
Author

how to run j2ee application (on tomcat server) by eclipse

samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
i have installed Eclipse Java IDE 3.1 now i m able to
run the applications of j2se
i want to run my j2ee applications servlets and jsp
in tomcat server

now what files should i downlaod in eclipse for running my application
of j2ee on tomcat server
please help
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30894
    
158

Sandeep,
See Sysdeo's Tomcat plugin. It suports Eclipse 3.1.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
thanks
according to u i add that file in pluggins
and now i can see tomcat icon
but on clicking that icon
i get the error
now what should i do

java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Main
[ August 22, 2005: Message edited by: sandeep mittal ]
Rick O'Shay
Ranch Hand

Joined: Sep 19, 2004
Posts: 531
First, uninstall the plug-in. You don't need it. All you need to do is enable remote debuging in Tomcat and connect from Eclipse through the Debug view.

http://jakarta.apache.org/tomcat/faq/development.html
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30894
    
158

Just to clarify:
You don't need the plugin for remote debugging. You do need the plugin to launch Tomcat from within Eclipse.
samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
hi

if anyone has time
please tell me step wise
i tried both options given above in both option it gives error
i m not able to rectify it

please help
or give good link which shows step wise
Ost. Ken
Greenhorn

Joined: Aug 24, 2005
Posts: 4
hi,
from link that Jeanne given , there is an installation section.
i tried it and it work!


Installation

*

This plugin does not contain Tomcat.
(Download and install Tomcat before using this plugin).
This is a desing choice not to include Tomcat in the plugin distribution, this way everyone can choose a Tomcat version, it is easy to switch from one Tomcat version to another
*

Download tomcatPluginVxxx.zip
*

Unzip it in /plugins
*

Plugin activation for Eclipse 2.1 :
select menu 'Window->Customize Perspective...', expand 'Others' and check 'Tomcat'
*

Plugin activation for Eclipse 3.0 :
select menu 'Window->Customize Perspective...->Commands', and check 'Tomcat' in 'Available command groups'
*

Set Tomcat home : Window -> Preferences, select Tomcat and set Tomcat home
*

This plugin launches Tomcat using the default JRE checked in Eclipe preferences window.
To set a JDK as default JRE for Eclipse open the preference window : Window -> Preferences -> Java -> Installed JREs.
This JRE must be a JDK (This is a Tomcat prerequisite).
*

The plugin sets itself Tomcat classpath and bootclasspath. Use Preferences -> Tomcat ->JVM Settings, only if you need specific settings.


maybe this help
samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
Ost. Ken
Jeanne Boyarsky
Rick O'Shay

thanks to all of u for helping me out
Ost. Ken i want to say thanks to u thousand times for giving me right answer step wise

actually my problem was sorted out by giving jdk base directory jre
and it works
Ost. Ken
Greenhorn

Joined: Aug 24, 2005
Posts: 4
Congratulation !! ^^
farooq
Greenhorn

Joined: Apr 26, 2005
Posts: 7
try my eclipse(plug in) its koool i am using it from past 2 years.


best regds
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to run j2ee application (on tomcat server) by eclipse