aspose file tools*
The moose likes Beginning Java and the fly likes Tomcat is not running at local Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Tomcat is not running at local" Watch "Tomcat is not running at local" New topic
Author

Tomcat is not running at local

Jdinesh Tiwari
Ranch Hand

Joined: Jan 13, 2013
Posts: 35
Hi
I have installed tomcat version 7
when i run the server runs
but when i type http://localhost:8080/
It doesnt display anything.

What might be the issue ?
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

Jdinesh Tiwari wrote:Hi
I have installed tomcat version 7
when i run the server runs
but when i type http://localhost:8080/
It doesnt display anything.

What might be the issue ?


It depends on what 'it doesn't display anything' means. Possible problems are:
1) You never started the server
2) Your server is started on a different port
3) You have a blank index html file at your root
4) You have no index html file at your root
5) You have some other error in the code deployed to the server
6) Software on your computer is preventing the server from running on that port
-- such as an anti-virus app, or an app that already uses port 8080 for something

Steve
Niraj Jha
Ranch Hand

Joined: Feb 20, 2013
Posts: 63

Jdinesh Tiwari wrote:Hi
I have installed tomcat version 7
when i run the server runs
but when i type http://localhost:8080/
It doesnt display anything.

What might be the issue ?


If you run the server using monitor tomcat make sure "Start service" get disable after you run the server.
Jdinesh Tiwari
Ranch Hand

Joined: Jan 13, 2013
Posts: 35
The browser is processing the request of http://localhost:8080 and a message
down on left side being displayed as
waiting for localhost

but its just waiting and waiting no result as such even of any error message
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

Jdinesh Tiwari wrote:The browser is processing the request of http://localhost:8080 and a message
down on left side being displayed as
waiting for localhost

but its just waiting and waiting no result as such even of any error message


The that limits the likely problems to:
1) You never started the server
2) Your server is started on a different port
5) You have some other error in the code deployed to the server
6) Software on your computer is preventing the server from running on that port
-- such as an anti-virus app, or an app that already uses port 8080 for something

1) and 2) should show up with a connection error pretty quickly, so they aren't likely the problem. But there could be some other confusion/configuration with the browser allowing really long timeouts.

Do you have any of your own code deployed to the server?
Mansukhdeep Thind
Ranch Hand

Joined: Jul 27, 2010
Posts: 1157

Are you getting any error messages on the server console when you start the server? Could you paste the snapshot of the server start-up console? I would like to have a look at that.


~ Mansukh
Jdinesh Tiwari
Ranch Hand

Joined: Jan 13, 2013
Posts: 35
Dear Thind Server on startup exihibts the output as follows


Mar 14, 2013 11:02:50 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.23.
Mar 14, 2013 11:02:50 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], ra
ndom [true].
Mar 14, 2013 11:02:50 PM org.apache.tomcat.util.digester.SetPropertiesRule begin

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting propert
y 'source' to 'org.eclipse.jst.jee.server:SimpleServletProject' did not find a m
atching property.
Mar 14, 2013 11:02:50 PM org.apache.tomcat.util.digester.SetPropertiesRule begin

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting propert
y 'source' to 'org.eclipse.jst.jee.server:TestingServlet' did not find a matchin
g property.
Mar 14, 2013 11:02:52 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
Mar 14, 2013 11:02:52 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
Mar 14, 2013 11:02:52 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2461 ms
Mar 14, 2013 11:02:52 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 14, 2013 11:02:52 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.27
Mar 14, 2013 11:02:52 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException:
Failed to start component [StandardEngine[Catalina].StandardHost[localhost].Sta
ndardContext[/TestingServlet]]
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1128)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java
:782)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.
java:1566)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.
java:1556)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [St
andardEngine[Catalina].StandardHost[localhost].StandardContext[/TestingServlet]]

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 7 more
Caused by: java.lang.UnsupportedClassVersionError: org/dkt/javabrains/TestingSer
vlet : Unsupported major.minor version 51.0 (unable to load class org.dkt.javabr
ains.TestingServlet)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
ClassLoader.java:2893)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
der.java:1170)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1678)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1556)
at org.apache.catalina.startup.WebAnnotationSet.loadClass(WebAnnotationS
et.java:480)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAn
notations(WebAnnotationSet.java:130)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotatio
ns(WebAnnotationSet.java:66)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfi
g(ContextConfig.java:381)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfi
g.java:858)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:345)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5161)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Mar 14, 2013 11:02:52 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException:
Failed to start component [StandardEngine[Catalina].StandardHost[localhost].Sta
ndardContext[/SimpleServletProject]]
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1128)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java
:782)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.
java:1566)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.
java:1556)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [St
andardEngine[Catalina].StandardHost[localhost].StandardContext[/SimpleServletPro
ject]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 7 more
Caused by: java.lang.UnsupportedClassVersionError: org/dinesh/javaexpert/SimpleS
ervelet : Unsupported major.minor version 51.0 (unable to load class org.dinesh.
javaexpert.SimpleServelet)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
ClassLoader.java:2893)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
der.java:1170)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1678)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1556)
at org.apache.catalina.startup.WebAnnotationSet.loadClass(WebAnnotationS
et.java:480)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAn
notations(WebAnnotationSet.java:130)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotatio
ns(WebAnnotationSet.java:66)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfi
g(ContextConfig.java:381)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfi
g.java:858)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:345)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContex
t.java:5161)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Mar 14, 2013 11:02:52 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException:
Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1128)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.
java:302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal(StandardServic
e.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.
java:732)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalina.java:675)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [St
andardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.
java:1566)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.
java:1556)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.catalina.LifecycleException: A child container failed duri
ng start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1136)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java
:782)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Mar 14, 2013 11:02:52 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
org.apache.catalina.LifecycleException: Failed to start component [StandardServe
r[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.startup.Catalina.start(Catalina.java:675)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [St
andardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.
java:732)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [St
andardEngine[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardService.startInternal(StandardServic
e.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed duri
ng start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja
va:1136)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.
java:302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
Mar 14, 2013 11:02:52 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 732 ms
Mansukhdeep Thind
Ranch Hand

Joined: Jul 27, 2010
Posts: 1157

SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException:
Failed to start component [StandardEngine[Catalina].StandardHost[localhost].Sta
ndardContext[/TestingServlet]] ........ Caused by: java.lang.UnsupportedClassVersionError: org/dkt/javabrains/TestingSer
vlet : Unsupported major.minor version 51.0 (unable to load class org.dkt.javabr
ains.TestingServlet)


SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException:
Failed to start component [StandardEngine[Catalina].StandardHost[localhost].Sta
ndardContext[/SimpleServletProject]]


Caused by: java.lang.UnsupportedClassVersionError: org/dinesh/javaexpert/SimpleS
ervelet : Unsupported major.minor version 51.0 (unable to load class org.dinesh.
javaexpert.SimpleServelet)


SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException:
Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]



Caused by: org.apache.catalina.LifecycleException: Failed to start component [St
andardEngine[Catalina]]


These exceptions / messages are indicators that your container did not start up properly at all. Is this the console snapshot after a server restart or after you tried accessing localhost?
Jdinesh Tiwari
Ranch Hand

Joined: Jan 13, 2013
Posts: 35
Dear Mansukhdeep Thind

Thanks a lot . many many thanks to you

Now its running thank you very much
Mansukhdeep Thind
Ranch Hand

Joined: Jul 27, 2010
Posts: 1157

Always look for such error messages when such a scenario comes up. You are most welcome anytime.
 
wood burning stoves
 
subject: Tomcat is not running at local