Home > front end >  Ubuntu AJP tomcat8.5 carried out under the failure/1.3 protocol port 8009, 8080 port is normal
Ubuntu AJP tomcat8.5 carried out under the failure/1.3 protocol port 8009, 8080 port is normal

Time:01-31

Tomcat startup log is as follows:
30 - Jan - 2021 07:27:19. 759 SEVERE [main] org. Apache. Catalina. Core. StandardService. InitInternal Failed to initialize the connector [connector [AJP
/1.3-8009]]
Org. Apache. Catalina. LifecycleException: Protocol handler initialization failed
The at org. Apache. Catalina. Connector. The initInternal (Java: the 1077)
The at org. Apache. Catalina. Util. LifecycleBase. Init (LifecycleBase. Java: 136)
The at org. Apache. Catalina. Core. StandardService. InitInternal (StandardService. Java: 552)
The at org. Apache. Catalina. Util. LifecycleBase. Init (LifecycleBase. Java: 136)
The at org. Apache. Catalina. Core. StandardServer. InitInternal (StandardServer. Java: 848)
The at org. Apache. Catalina. Util. LifecycleBase. Init (LifecycleBase. Java: 136)
At org. Apache. Catalina. Startup. Catalina. Load (639) catalina. Java:
At org. Apache. Catalina. Startup. Catalina. Load (662) catalina. Java:
At sun. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
At sun. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 62)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. Lang. Reflect. Method. Invoke (498) Method. The Java:
The at org. Apache. Catalina. Startup. The Bootstrap. Load (302) the Bootstrap. Java:
At org. Apache. Catalina. Startup. The Bootstrap. Main (472) the Bootstrap. Java:
Under Caused by: java.net.BindException: always assign a requested address
The at sun.nio.ch.Net.bind0 (Native Method)
The at sun.nio.ch.Net.bind (.net, Java: 433)
The at sun.nio.ch.Net.bind (.net, Java: 425)
At sun. Nio. Ch. ServerSocketChannelImpl. Bind (ServerSocketChannelImpl. Java: 223)
At sun. Nio. Ch. ServerSocketAdaptor. Bind (ServerSocketAdaptor. Java: 74)
At org.apache.tomcat.util.net.NioEndpoint.bind NioEndpoint. Java: (223)
At org.apache.tomcat.util.net.AbstractEndpoint.init AbstractEndpoint. Java: (1118)
At org.apache.tomcat.util.net.AbstractJsseEndpoint.init AbstractJsseEndpoint. Java: (222)
The at org. Apache. Coyote. AbstractProtocol. Init (AbstractProtocol. Java: 599)
The at org. Apache. Catalina. Connector. The initInternal (Java: the 1075)
. 13 more

Before the start of check 8080800 port has not been occupied, startup log shows 8009 port fails, 8080 normal, HTTP access, don't understand, ask for help!

CodePudding user response:

Under Caused by: java.net.BindException: always assign a requested address
There are a few examples? Server.xml put see,
Not only to see the start, also want to check whether the 8009 after the start, may have be instance or application itself takes up the port,

CodePudding user response:

Before the start of 8009 is occupied, start and then did not occupy, host is this a tomcat

CodePudding user response:

The server.xml content:

<? The XML version="1.0" encoding="utf-8"?>
Licensed to the Apache Software Foundation (ASF) under one or more
Contributor license agreements. See the NOTICE file distributed with
This work for additional information regarding copyright ownership.
The ASF licenses this file to You under The Apache License, Version 2.0
(the "License"); You may not use this file except in the compliance with
The License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
Distributed under the License is distributed on an "AS is" BASIS,
WITHOUT WARRANTIES OR the CONDITIONS OF ANY KIND, either express OR implied.
See the License for the specific language governing permissions and
Limitations under the License.
- & gt;
Define subcomponents to as "Valves" at this level.
Documentation at/docs/config/server. The HTML
- & gt;
- & gt;

Documentation at/docs/jndi resources - howto. The HTML
- & gt;

UserDatabaseRealm to authenticate users
- & gt;
Type="org. Apache. Catalina. UserDatabase"
Description="User database that can be updated and saved"
The factory="org. Apache. Catalina. Users. MemoryUserDatabaseFactory"
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull