[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Minimum Sysdeo Tomcat Plugin Configuration
|
- From: Andy Pahne <ap@xxxxxxx>
- Date: Mon, 21 Jul 2003 01:33:05 +0200
- Newsgroups: eclipse.tools
- Organization: none
- User-agent: KNode/0.7.2
Yeah, I suffered from the same problems on every new install. After the
third installation or so I wrote everything down:
First: have a look at
http://www.purposesolutions.com/Resources/EclipseJ2EE.html
And here the notes I made for myself:
Patch Ant
There are a few custom Ant tasks for installing, reloading, removing Tomcat
applications that come bundled with Jakarta Tomcat.
Copy CATALINA_HOME/server/lib/catalina-ant.jar into the plugin folder of the
Eclipse integrated
After copying catalina-ant.jar, the jar must be set as additional jar under
Preferences ? Ant. Otherwise the Ant-integration for starting and stopping
Tomcat will not work.
Adjust Build Path
Configure Tomcat plugin.
Menu "Workbench" -> Item "Preferences" -> Option "Tomcat" -> "Tomcat
version", select "4.x" -> "Tomcat home", specify <Tomcat install dir> ->
Under Option "Tomcat", suboption "JVM Settings" -> "Classpath", add the
Jar/Zip for tools.jar. (If you use JDK 1.4 at C:\jdk1.4, it is
"C:\jdk1.4\lib\tools.jar"). This is for compiling JSP.
Set classpath variable TOMCAT_HOME for project classpath reference. (happend
automatocly in Eclipse 2.1.1), but here's how to do it manualy: Menu
"Workbench" -> Item "Preferences" -> option "Java" -> option "Classpath
Variables" -> New variable, name "TOMCAT_HOME", value <TOMCAT install dir>
(Then in .classpath of your project, you use TOMCAT_HOME for variable
references.)
Make sure Tomcat menu accessible:
Set to "Java" perspective, and make sure Tomcat menu and its 3 toolbar
buttons are available. (If not, Menu Perspective -> Item "Customize" ->
option "Other" -> option "Tomcat", check it.)
Use menu or toolbar to Start/Stop Tomcat
(The plugin will start/stop Tomcat as a debugging mode VM inside Eclipse, so
debugging into Servlets and JSP-generated-Servlets becomes possible.)
Adam Pelletier wrote:
> I've repeatedly struggled to get the Sysdeo Tomcat plugin working. I'm
> running Eclipse 2.1.0, Tomcat 4.1.24 on Windows XP. I've pointed the
> project JRE at the my j2sdk1.4.1_01 installation. I've never had this
> plugin work right out of the box per the install instructions on sysdeo.
> However, after adding all the jars under server and common in the
> TOMCAT_HOME directory to the Window->Preferences->Tomcat->JVM
> Settings->Classpath (Before generated classpath) box in eclipse I did get
> it
> to work. However, this was a pretty onerous configuration as I've got
> about 30 jars in that box.
>
> Given that I've never got this to work out of the box, and my current
> configuration is both not-working (used to work) and has tons on jars
> included, can anybody describe a minimal configuration that has a good
> chance of working?
>
> Thanks to any and all in advance,
> Adam