tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Posner <cuco2...@gmail.com>
Subject Re: servlet unavailable
Date Tue, 06 Sep 2011 19:24:20 GMT
There seems to be no reason for the bind exception. There was no other app
running.

It still started up though




On Tue, Sep 6, 2011 at 3:22 PM, Adam Posner <cuco2772@gmail.com> wrote:

> ep 6, 2011 3:10:54 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
> Sep 6, 2011 3:10:54 PM org.apache.coyote.http11.Http11Protocol init
> SEVERE: Error initializing endpoint
> java.net.BindException: Address already in use <null>:8080
>     at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
>     at
> org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
>     at
> org.apache.catalina.connector.Connector.initialize(Connector.java:1014)
>     at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
>     at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
>     at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
>     at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Caused by: java.net.BindException: Address already in use
>     at java.net.PlainSocketImpl.socketBind(Native Method)
>     at
> java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353)
>     at java.net.ServerSocket.bind(ServerSocket.java:336)
>     at java.net.ServerSocket.<init>(ServerSocket.java:202)
>     at java.net.ServerSocket.<init>(ServerSocket.java:158)
>     at
> org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
>     at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
>     ... 12 more
> Sep 6, 2011 3:10:54 PM org.apache.catalina.startup.Catalina load
> SEVERE: Catalina.start
> LifecycleException:  Protocol handler initialization failed:
> java.net.BindException: Address already in use <null>:8080
>     at
> org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
>     at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
>     at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
>     at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
>     at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Sep 6, 2011 3:10:54 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 690 ms
> Sep 6, 2011 3:10:54 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Sep 6, 2011 3:10:54 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.28
> Sep 6, 2011 3:10:54 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor manager.xml
> Sep 6, 2011 3:10:55 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor host-manager.xml
> Sep 6, 2011 3:10:55 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor MyStrutsApp.xml
> Sep 6, 2011 3:10:56 PM org.apache.struts.action.ActionServlet initChain
> INFO: Loading chain catalog from
> jar:file:/home/cuco/NetBeansProjects/MyStrutsApp/build/web/WEB-INF/lib/struts-core-1.3.8.jar!/org/apache/struts/chain/chain-config.xml
> Sep 6, 2011 3:10:56 PM org.apache.struts.tiles.TilesPlugin
> initDefinitionsFactory
> INFO: Tiles definition factory loaded for module ''.
> Sep 6, 2011 3:10:56 PM org.apache.struts.validator.ValidatorPlugIn
> initResources
> INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
> Sep 6, 2011 3:10:56 PM org.apache.struts.validator.ValidatorPlugIn
> initResources
> INFO: Loading validation rules file from '/WEB-INF/validation.xml'
> Sep 6, 2011 3:10:56 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory ROOT
> Sep 6, 2011 3:10:56 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory docs
> Sep 6, 2011 3:10:56 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory examples
> Sep 6, 2011 3:10:56 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory dailyTamp-v1a
> Sep 6, 2011 3:10:57 PM org.apache.coyote.http11.Http11Protocol start
> SEVERE: Error starting endpoint
> java.net.BindException: Address already in use <null>:8080
>     at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
>     at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565)
>     at
> org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
>     at org.apache.catalina.connector.Connector.start(Connector.java:1087)
>     at
> org.apache.catalina.core.StandardService.start(StandardService.java:534)
>     at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>     at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> Caused by: java.net.BindException: Address already in use
>     at java.net.PlainSocketImpl.socketBind(Native Method)
>     at
> java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353)
>     at java.net.ServerSocket.bind(ServerSocket.java:336)
>     at java.net.ServerSocket.<init>(ServerSocket.java:202)
>     at java.net.ServerSocket.<init>(ServerSocket.java:158)
>     at
> org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
>     at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
>     ... 12 more
> Sep 6, 2011 3:10:57 PM org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> LifecycleException:  service.getName(): "Catalina";  Protocol handler start
> failed: java.net.BindException: Address already in use <null>:8080
>     at org.apache.catalina.connector.Connector.start(Connector.java:1094)
>     at
> org.apache.catalina.core.StandardService.start(StandardService.java:534)
>     at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>     at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> Sep 6, 2011 3:10:57 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 2407 ms
> Sep 6, 2011 3:10:57 PM org.apache.catalina.core.StandardServer await
> SEVERE: StandardServer.await: create[8005]:
> java.net.BindException: Address already in use
>     at java.net.PlainSocketImpl.socketBind(Native Method)
>     at
> java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353)
>     at java.net.ServerSocket.bind(ServerSocket.java:336)
>     at java.net.ServerSocket.<init>(ServerSocket.java:202)
>     at
> org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
>     at org.apache.catalina.startup.Catalina.await(Catalina.java:662)
>     at org.apache.catalina.startup.Catalina.start(Catalina.java:614)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> Sep 6, 2011 3:10:57 PM org.apache.coyote.http11.Http11Protocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8080
> Sep 6, 2011 3:10:58 PM org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> Sep 6, 2011 3:10:58 PM org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: The web application [/dailyTamp-v1a] appears to have started a
> thread named [MySQL Statement Cancellation Timer] but has failed to stop it.
> This is very likely to create a memory leak.
> Sep 6, 2011 3:10:58 PM org.apache.catalina.connector.MapperListener destroy
> WARNING: Error unregistering MBeanServerDelegate
> java.lang.NullPointerException
>     at
> org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:176)
>     at org.apache.catalina.connector.Connector.stop(Connector.java:1135)
>     at
> org.apache.catalina.core.StandardService.stop(StandardService.java:596)
>     at
> org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
>     at org.apache.catalina.startup.Catalina.stop(Catalina.java:648)
>     at
> org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:692)
> Sep 6, 2011 3:10:58 PM org.apache.coyote.http11.Http11Protocol destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8080
> Sep 6, 2011 3:10:58 PM org.apache.catalina.connector.Connector stop
> SEVERE: Coyote connector has not been started
> Sep 6, 2011 3:13:30 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
> Sep 6, 2011 3:13:30 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Sep 6, 2011 3:13:30 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 499 ms
> Sep 6, 2011 3:13:30 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Sep 6, 2011 3:13:30 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.28
> Sep 6, 2011 3:13:30 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor manager.xml
> Sep 6, 2011 3:13:30 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor host-manager.xml
> Sep 6, 2011 3:13:31 PM org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor MyStrutsApp.xml
> Sep 6, 2011 3:13:31 PM org.apache.struts.action.ActionServlet initChain
> INFO: Loading chain catalog from
> jar:file:/home/cuco/NetBeansProjects/MyStrutsApp/build/web/WEB-INF/lib/struts-core-1.3.8.jar!/org/apache/struts/chain/chain-config.xml
> Sep 6, 2011 3:13:31 PM org.apache.struts.tiles.TilesPlugin
> initDefinitionsFactory
> INFO: Tiles definition factory loaded for module ''.
> Here is a copy of my catalina log file for 9-6. As you can see it still
> started up ok but had these Bind exceptions.
> I didnt have another app runnub=ng at the time, so why I was getting that
> is confusing
>
>
> Sep 6, 2011 3:13:31 PM org.apache.struts.validator.ValidatorPlugIn
> initResources
> INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
> Sep 6, 2011 3:13:31 PM org.apache.struts.validator.ValidatorPlugIn
> initResources
> INFO: Loading validation rules file from '/WEB-INF/validation.xml'
> Sep 6, 2011 3:13:31 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory ROOT
> Sep 6, 2011 3:13:31 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory docs
> Sep 6, 2011 3:13:31 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory examples
> Sep 6, 2011 3:13:32 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory dailyTamp-v1a
> Sep 6, 2011 3:13:32 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Sep 6, 2011 3:13:32 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Sep 6, 2011 3:13:32 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/33  config=null
> Sep 6, 2011 3:13:32 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 1951 ms
>
>
> On Sun, Sep 4, 2011 at 4:48 PM, Pid <pid@pidster.com> wrote:
>
>> On 03/09/2011 22:36, Adam Posner wrote:
>> >  Posner to users
>> > show details 8:16 PM (2 minutes ago)
>> >
>> > Hello all:
>> >
>> >
>> > I am hoping someone can help with this.  Tomcat 6.0.28 keeps giving me,
>> > saying 'Servlet Front Controller is not available'
>> > I am using struts 1, the jar file is struts-core-1.3.10 located in
>> > install_dir/myapp/WEB-INF/lib
>> >
>> > Please help
>> >
>> >
>> >
>> > ?xml version="1.0" encoding="UTF-8"?>
>> > <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
>> >     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> >     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>> > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
>> >
>> >     <listener>
>> >     <listener-class>com.listeners.TrailsContextListener</listener-class>
>> >     </listener>
>> >
>> >      <context-param>
>> >             <param-name>
>> >             trailsDBConnName
>> >         </param-name>
>> >         <param-value>
>> >           jdbc:mysql://localhost:3306/trailsDB
>> >         </param-value>
>> >     </context-param>
>> >
>> >
>> >     <!--Define the controller servlet -->
>> >
>> >      <servlet>
>> >         <servlet-name>FrontController</servlet-name>
>> >
>> > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>> >
>> >
>> >         <!-- Name the Struts configuration file -->
>> >
>> >         <init-param>
>> >             <param-name>config</param-name>
>> >             <param-value>/WEB-INF/struts-config.xml</param-value>
>> >         </init-param>
>> >
>> >         <!-- Guarantees that this servlet is loaded on startup  I'm
>> hoping
>> > that this won't interfere with my -->
>> >         <!--    listener declaration above since that also needs to be
>> > initialized first before anything runs -->
>> >
>> >        <load-on-startup>2</load-on-startup>
>> >    </servlet>
>> >
>> >     <servlet-mapping>
>> >         <servlet-name>FrontController</servlet-name>
>> >         <url-pattern>*.do</url-pattern>
>> >    </servlet-mapping>
>> >
>> >     <!-- These other servlets will become Actions, and go in
>> > struts-config.xml file -->
>> >     <!-- I'll leave them here but commented out for now in case you need
>> to
>> > see them
>> >
>> >     <servlet>
>> >     <servlet-name>Show Bikes</servlet-name>
>> >
>> <servlet-class>com.bikes.controller.BikeModelsServlet</servlet-class>
>> >     </servlet>
>> >    <servlet-mapping>
>> >     <servlet-name>Show Bikes</servlet-name>
>> >     <url-pattern>/getBikes.do</url-pattern>
>> >    </servlet-mapping>
>> >
>> >
>> >     <servlet>
>> >     <servlet-name>Display Characteristics</servlet-name>
>> >
>> >
>> <servlet-class>com.bikes.controller.DisplayModelRatingsServlet</servlet-class>
>> >     </servlet>
>> >    <servlet-mapping>
>> >     <servlet-name>Display Characteristics</servlet-name>
>> >     <url-pattern>/getModelInfo.do</url-pattern>
>> >    </servlet-mapping>
>> >
>> >    -->
>> >
>> >    <!-- Leaving this as is for now -->
>> >
>> >       <welcome-file-list>
>> >         <welcome-file>index.jsp</welcome-file>
>> >     </welcome-file-list>
>> >
>> > </web-app>
>>
>> Are there any messages in the Tomcat logs which occur during application
>> startup?
>>
>>
>> p
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message