This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Eclipse with Tomcat 7 on Ubuntu v11.10  RSS feed

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I have installed Ubuntu 11.10 on my system. I have installed eclipse indigo,eclipse Ganymede on the same. Problem lies with tomcat execution on eclipse indigo. I followed below steps from a blog which help me configure tomcat7 on eclipse indigo. The problem occurs when i execute http://localhost:8080/ in browser. It displays

Error displayed in browser:

http://localhost:8080/

HTTP Status 404 - /
type Status report
message /
description The requested resource (/) is not available.
Apache Tomcat/7.0.21





Below Steps followed for tomcat installation:

Eclipse with Tomcat V7.0 in Ubuntu 11.10
1. Download Eclipse from the Eclipse web site. (J2EE version)
2. Download Tomcat version 7 or install it via apt-get
apt-get install tomcat7 tomcat7-admin tomcat7-common tomcat7-docs tomcat7-examples
3. Set the following configuration:
cd /usr/share/tomcat7
sudo ln -s /var/lib/tomcat7/conf conf
sudo ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy
sudo ln -s /var/log/tomcat7 logs
sudo chmod -R 777 /usr/share/tomcat7/conf

3. Run eclipse
4. Add a view ( Windows -> Show View -> Other -> Server -> Servers -> OK )
5. Go to the view
6. Add a Tomcat v7 (consider /user/share/tomcat7 as your path)
7. Enjoy Tomcat 7 in Eclipse.

In the logs it shows as below:
abc@abc-G41MT-S2P:/usr/share/tomcat7/logs$ cat localhost.2012-04-10.log
Apr 10, 2012 1:40:51 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 10, 2012 1:40:51 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Apr 10, 2012 1:40:51 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@b52a28')
Apr 10, 2012 1:47:25 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Apr 10, 2012 1:47:25 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()

abc@abc-G41MT-S2P:/usr/share/tomcat7/logs$ cat catalina.2012-04-10.log
Apr 10, 2012 1:36:49 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Apr 10, 2012 1:36:49 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1357 ms
Apr 10, 2012 1:36:49 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 10, 2012 1:36:49 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.21
Apr 10, 2012 1:36:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Apr 10, 2012 1:36:50 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Apr 10, 2012 1:36:50 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1722 ms
Apr 10, 2012 1:38:40 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml from /etc/tomcat7/Catalina/localhost
Apr 10, 2012 1:38:41 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml from /etc/tomcat7/Catalina/localhost
Apr 10, 2012 1:40:11 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor docs.xml from /etc/tomcat7/Catalina/localhost
Apr 10, 2012 1:40:51 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor examples.xml from /etc/tomcat7/Catalina/localhost
Apr 10, 2012 1:47:24 AM org.apache.catalina.core.StandardServer await
INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
Apr 10, 2012 1:47:24 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Apr 10, 2012 1:47:25 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Apr 10, 2012 1:47:25 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Apr 10, 2012 1:47:25 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]



Please help me resolve this issue.


Thanks,
 
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your error message shows that Tomcat is running - the error message came from Tomcat! You won't get a result page back until you access a page for one of your web apps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!