aspose file tools*
The moose likes Tomcat and the fly likes Installing tomcat on Fedora 18 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Installing tomcat on Fedora 18" Watch "Installing tomcat on Fedora 18" New topic
Author

Installing tomcat on Fedora 18

Patanjali Hardikar
Greenhorn

Joined: Dec 25, 2012
Posts: 2

I am trying to install tomcat on fedora 18 for someone. i am not a java programmer, nor do i know tomcat. After looking up some tutorials, i decided to do the following.

On my machine:



This is how it has installed:



My problem: I can confirm tomcat itself has installed properly, but i am unable to get the home page (the one with tomcat ..cat image)

when i type in 127.0.0.1:8080, i get 404 error

Error 404 - Not Found.

No context on this server matched or handled this request. Contexts known to this server are: /javadoc ---> o.e.j.s.h.ContextHandler{/javadoc,file:/usr/share/jetty/javadoc}



I am not sure what i am expected to do from this point.

Thanks.
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

Look at the logs ( $TOMCAT_DIR$/logs/catalina.out ) to see whether tomcat has started without any problem or not ? Also share the directory listing of webapps here. I want to see what files are present inside here.


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16055
    
  21

Do a "netstat -lnp | grep 8080" and check to see if the process ID that gets printed belongs to Tomcat. There are disturbing signs that something else - either a webcache component or even a Jetty server - may actually own the port that Tomcat should own.

If Jetty is running, you're probably going to have to fight the "alternatives" subsystem to persuade Fedora to let Tomcat do the serving.

I install almost everything from RPMs, even my webapps. The one notable exception is that I don't use the OS-supplied Tomcat RPM. I use a ZIP copy straight from tomcat.apache.org.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Installing tomcat on Fedora 18