Win a copy of Kotlin for Android App Development this week in the Kotlin 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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
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.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!