This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes New totally to things like tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "New totally to things like tomcat" Watch "New totally to things like tomcat" New topic
Author

New totally to things like tomcat

ayesha malhotra
Greenhorn

Joined: Jul 11, 2010
Posts: 1
hello siva sir....
i knw this prob of mine mi8 be simple but i contributed whole day...am new to sucha stuff...so please encourage by helping...
so the prob is:

I have installed tomcat version 6.0.20 at my windows vista home basic operating system.
Tomcat home directory "Tomcat 6.0" is put under C: drive directly.Environment variable set by me are also the same as required:

CATALINA_HOME-C:\Tomcat 6.0;
path-C:\Program Files\Java\jdk1.6.0\jre\bin\server\jvm.dll
C:\Tomcat 6.0\bin;.;

I am running tomcat at port 8080.
When i configured tomcat,service "apache" started properly.but when i started server with command-C:\Tomcat 6.0\bin>tomcat6.exe it displays:-

tomcat do run but no localhost page.....i get something like this....

12 Jul, 2010 2:58:45 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.10.
12 Jul, 2010 2:58:45 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random
[true].
12 Jul, 2010 2:58:47 AM org.apache.coyote.http11.Http11AprProtocol init
SEVERE: Error initializing endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket addre
ss (protocol/network address/port) is normally permitted.
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:612)
at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107
)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:6
77)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795
)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
pl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
12 Jul, 2010 2:58:47 AM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: java.lang.Exception: Soc
ket bind failed: [730048] Only one usage of each socket address (protocol/network add
ress/port) is normally permitted.
at org.apache.catalina.connector.Connector.initialize(Connector.java:1060)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:6
77)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795
)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
pl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
12 Jul, 2010 2:58:47 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3568 ms
12 Jul, 2010 2:58:48 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
12 Jul, 2010 2:58:48 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
12 Jul, 2010 2:58:49 AM org.apache.catalina.core.StandardContext addApplicationListen
er
INFO: The listener "listeners.ContextListener" is already configured for this context
. The duplicate definition has been ignored.
12 Jul, 2010 2:58:49 AM org.apache.catalina.core.StandardContext addApplicationListen
er
INFO: The listener "listeners.SessionListener" is already configured for this context
. The duplicate definition has been ignored.
12 Jul, 2010 2:58:50 AM org.apache.coyote.http11.Http11AprProtocol start
SEVERE: Error starting endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket addre
ss (protocol/network address/port) is normally permitted.
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:612)
at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:717)
at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:13
7)
at org.apache.catalina.connector.Connector.start(Connector.java:1131)
at org.apache.catalina.core.StandardService.start(StandardService.java:531)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
pl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
12 Jul, 2010 2:58:50 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: j
ava.lang.Exception: Socket bind failed: [730048] Only one usage of each socket addres
s (protocol/network address/port) is normally permitted.
at org.apache.catalina.connector.Connector.start(Connector.java:1138)
at org.apache.catalina.core.StandardService.start(StandardService.java:531)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
pl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
12 Jul, 2010 2:58:50 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2314 ms
12 Jul, 2010 2:58:50 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
at org.apache.catalina.startup.Catalina.await(Catalina.java:642)
at org.apache.catalina.startup.Catalina.start(Catalina.java:602)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
pl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
12 Jul, 2010 2:58:50 AM org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
12 Jul, 2010 2:58:50 AM org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
12 Jul, 2010 2:58:51 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
12 Jul, 2010 2:58:51 AM org.apache.catalina.connector.MapperListener destroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:1
62)
at org.apache.catalina.connector.Connector.stop(Connector.java:1179)
at org.apache.catalina.core.StandardService.stop(StandardService.java:593)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.jav
a:671)
12 Jul, 2010 2:58:51 AM org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
12 Jul, 2010 2:58:51 AM org.apache.catalina.connector.Connector stop
SEVERE: Coyote connector has not been started


kindly help ASAP....
thanks in advance...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60791
    
  65

"ecstatic ssg", please check your private messages for an important administrative matter.

Also, please use real words when posting to the forums. Abbreviations such as "knw", "prob" and "mi8" in place of real words only serve to make your posts more difficult to read and less likely to generate useful responses.

Please click this link ⇒ UseRealWords for more information.

Thanks.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 507

Tomcat is already started i guess, or else check whether port 8080, is been used by other applications... Its is clearly evident, by Address already in use message.. You told, tomcat is starting when you run through apache service, did you stop that? just try giving, http://localhost:8080 and see, what is coming up..

P.S: As, Bear as pointed out, please use real words, don't use abbreviations.. It will be difficult for lot of javaranch users, since they are not native english speakers..


Regards, Prasad
SCJP 5 (93%)
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Prasad Krishnegowda wrote:since they are not native english speakers..

It was difficult for *me*, and I *am* a native English speaker. And "mi8" makes zero sense unless you pronounce "8" in some weird way
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 507

David Newton wrote:
It was difficult for *me*, and I *am* a native English speaker. And "mi8" makes zero sense unless you pronounce "8" in some weird way


Then, its highly recommended not to use abbreviations at all... These type of abbreviations are extensively used while messaging in India..some students tend to use these in exams too and lecturers have to evaluate their papers.. Just imagine their situation, David..
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Students use texting abbreviations in their schoolwork?!?!
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 507

Yes.. Students are getting used to these abbreviations, by more usage of mobiles..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New totally to things like tomcat
 
Similar Threads
how to start and stop tomcat 5.5 server
FIPS compliant Tomcat using JSSE
Socket bind failed
tomcat server Native library problem
java.net.BindException: Address already in use: JVM_Bind:8080