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 Please help for  Configuring Tomcat with Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Please help for  Configuring Tomcat with Eclipse" Watch "Please help for  Configuring Tomcat with Eclipse" New topic
Author

Please help for Configuring Tomcat with Eclipse

Ami Ambre
Ranch Hand

Joined: Dec 26, 2007
Posts: 58
I have Configuered Tomcat in Eclipse.
By unzipping tomcatplugin for Eclipse in Eclipse\Plugin.

I have set up it Environmental Veriable

CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 5.0

Classpath=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar;
C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\jsp-api.jar;
C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\struts.jar

JAVA_HOME=C:\j2sdk1.4

PATH=C:\j2sdk1.4\bin



My plugin is working that's why i have got it 3 new icons in the Eclipse toolbar.These icons are for starting, stopping and restarting Tomcat.Then I configure the plugin Windows -> Preference. And the select the Tomcat tab.Here i select the Tomcat version to 5.x and enter the <TOMCAT_HOME> folder.I had leave Context decleration mode to Server.xml.
I had Leave the advanced tab as default. JVM Settings should have a JRE selected.
And the source path should have ticked automatically compute source path.start by creating a new project. Select File > New > Project and examine the new project wizards contents. There is a new entry available in the Java section of this project wizard. Tomcat Project & then I had added 1 jsp file which displaying current date & time.
Then I start Tomcat with the help of start Tomcat icon available on the Toolbar My Tomcat is starting with showing message in Eclipse Console View INFO: Server startup in 9031 ms
I start a Tomcat from start menu.And then i open a browser by giving http://localhost:8080/Name of the project/jsp file name
But i got a error is page can not be displayed.


So please any body help me & give me proper solution for running jsp.
Adam Brundrett
Greenhorn

Joined: Jul 18, 2008
Posts: 14
Check that Tomcat 5 is using port 8080 by default. A simple check would be to put http://localhost:8080 into your browser and see if it goes to the Tomcat welcome page. If you just get an error page, try that url with port 8180 instead.

I use MyEclipse so I setup my app servers slightly differently to you but it sounds like you have your plugin for tomcat configured OK.
Nickolas Case
Ranch Hand

Joined: Apr 26, 2008
Posts: 98
So are you saying that when you start Tomcat using the quick button and navigate to .../Name it work fine but when you use the menu button you get an error?
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12953
    
    3

Posted by Ami Ambre in a different topic:
-----------------------------------------

Adam Brundrett
I have reinstall it every thing & then change it port noumber of Tomcat to 8182.And i started to Configure JRE(Java RunTime Env) for Eclipse at that time i have got this error.

Unable to create the selected preference page.(Time of error:july 18,2008
11:24:53 PM GMT+05:30)
Reason: An error occured while automatically activating bundle org.eclipse.jdt.debug.ui(72)
An error has occured when creating this preference page.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please help for Configuring Tomcat with Eclipse
 
Similar Threads
compiling and deploying into Tomcat
an eclipse problem
Not able to import SimpleTagSupport class!!!
please help! classpath not working
Setting classpath