• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Please help for Configuring Tomcat with Eclipse

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic