Upgrade from 4.5 to 5 : Failed to destroy end point associated with ProtocolHandler ["ajp-nio-8009"]

I have a 4.5 Lucee installation that is working just fine.

I followed the instructions to upgrade.

  1. Download the lucee-5.x.x.xxx.jar from Download Lucee.
  2. sudo service stop lucee_ctl.
  3. Add the lucee-5.x.x.xxx.jar you downloaded to the “lib” directory in
    your existing Lucee install.
  4. Remove all other JARs in the same directory, however do not remove
    the directory “lucee-server” (or “railo-server”)
  5. Start the servlet engine. (Ubuntu: sudo service start lucee_ctl.
    Windows: net start Lucee.)

my /opt/lucee/lib
drwxr-xr-x 2 railo railo 4096 Sep 7 2015 license
-rw-rw-r-- 1 railo railo 65706046 Jul 12 14:37 lucee.jar
drwxr-xr-x 4 railo railo 4096 Jul 12 14:52 lucee-server
drwxr-xr-x 2 root root 4096 Jul 12 14:54 oldjarsthatwereinlib
-rw-r–r-- 1 railo railo 7705 Jun 25 2015 versions

Is there a step missing? Should lucee-5.x.x.xxx.jar be renamed lucee.jar?
tried renaming , no difference.

Whenever I /opt/lucee/lucee_ctl start I get this

12-Jul-2016 14:56:48.861 SEVERE [main] org.apache.coyote.AbstractProtocol.destroy
Failed to destroy end point associated with ProtocolHandler [“http-nio-8888”
]
java.lang.NullPointerException
at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(NioEndpoint.
java:304)
at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:
480)
at org.apache.tomcat.util.net.AbstractEndpoint.destroy(
AbstractEndpoint.java:818)
at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.java:
532)
at org.apache.catalina.connector.Connector.destroyInternal(Connector
.java:1023)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java
:305)
at org.apache.catalina.core.StandardService.destroyInternal(
StandardService.java:588)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java
:305)
at org.apache.catalina.core.StandardServer.destroyInternal(
StandardServer.java:859)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java
:305)
at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

12-Jul-2016 14:56:48.861 INFO [main] org.apache.coyote.AbstractProtocol.destroy
Destroying ProtocolHandler [“ajp-nio-8009”]
12-Jul-2016 14:56:48.861 SEVERE [main] org.apache.coyote.AbstractProtocol.destroy
Failed to destroy end point associated with ProtocolHandler [“ajp-nio-8009”]
java.lang.NullPointerException
at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(NioEndpoint.
java:304)
at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:
480)
at org.apache.tomcat.util.net.AbstractEndpoint.destroy(
AbstractEndpoint.java:818)
at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.java:
532)
at org.apache.catalina.connector.Connector.destroyInternal(Connector
.java:1023)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java
:305)
at org.apache.catalina.core.StandardService.destroyInternal(
StandardService.java:588)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java
:305)
at org.apache.catalina.core.StandardServer.destroyInternal(
StandardServer.java:859)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java
:305)
at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)

I’m guessing TomCat wants port 8009 but it can’t have it?

netstat -tulpn | grep 8009
comes back with nothing. :frowning:

I shut down apache but that made no difference.

Any ideas appreciated. thanks in advance.

Just a hunch, but try moving the ‘oldjarsthatwereinlib’ directory out of /
opt/lucee/lib and see if that makes any difference. Not sure if OSGI would
try to load the old lucee.jar in v5 from there or not

– DennyOn Tuesday, July 12, 2016 at 9:03:25 AM UTC-4, Dan wrote:

I have a 4.5 Lucee installation that is working just fine.

I followed the instructions to upgrade.

  1. Download the lucee-5.x.x.xxx.jar from
    Download Lucee.
  2. sudo service stop lucee_ctl.
  3. Add the lucee-5.x.x.xxx.jar you downloaded to the “lib” directory
    in your existing Lucee install.
  4. Remove all other JARs in the same directory, however do not
    remove the directory “lucee-server” (or “railo-server”)
  5. Start the servlet engine. (Ubuntu: sudo service start lucee_ctl.
    Windows: net start Lucee.)

my /opt/lucee/lib
drwxr-xr-x 2 railo railo 4096 Sep 7 2015 license
-rw-rw-r-- 1 railo railo 65706046 Jul 12 14:37 lucee.jar
drwxr-xr-x 4 railo railo 4096 Jul 12 14:52 lucee-server
drwxr-xr-x 2 root root 4096 Jul 12 14:54 oldjarsthatwereinlib
-rw-r–r-- 1 railo railo 7705 Jun 25 2015 versions

Is there a step missing? Should lucee-5.x.x.xxx.jar be renamed lucee.jar?
tried renaming , no difference.

Whenever I /opt/lucee/lucee_ctl start I get this

12-Jul-2016 14:56:48.861 SEVERE [main] org.apache.coyote.AbstractProtocol.destroy
Failed to destroy end point associated with ProtocolHandler [
“http-nio-8888”]
java.lang.NullPointerException
at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(
NioEndpoint.java:304)
at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:
480)
at org.apache.tomcat.util.net.AbstractEndpoint.destroy(
AbstractEndpoint.java:818)
at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.
java:532)
at org.apache.catalina.connector.Connector.destroyInternal(
Connector.java:1023)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.core.StandardService.destroyInternal(
StandardService.java:588)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.core.StandardServer.destroyInternal(
StandardServer.java:859)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

12-Jul-2016 14:56:48.861 INFO [main] org.apache.coyote.AbstractProtocol.destroy
Destroying ProtocolHandler [“ajp-nio-8009”]
12-Jul-2016 14:56:48.861 SEVERE [main] org.apache.coyote.AbstractProtocol.destroy
Failed to destroy end point associated with ProtocolHandler [
“ajp-nio-8009”]
java.lang.NullPointerException
at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(
NioEndpoint.java:304)
at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:
480)
at org.apache.tomcat.util.net.AbstractEndpoint.destroy(
AbstractEndpoint.java:818)
at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.
java:532)
at org.apache.catalina.connector.Connector.destroyInternal(
Connector.java:1023)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.core.StandardService.destroyInternal(
StandardService.java:588)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.core.StandardServer.destroyInternal(
StandardServer.java:859)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)

I’m guessing TomCat wants port 8009 but it can’t have it?

netstat -tulpn | grep 8009
comes back with nothing. :frowning:

I shut down apache but that made no difference.

Any ideas appreciated. thanks in advance.

Any ideas ?On Tuesday, July 12, 2016 at 2:03:25 PM UTC+1, Dan wrote:

I have a 4.5 Lucee installation that is working just fine.

I followed the instructions to upgrade.

  1. Download the lucee-5.x.x.xxx.jar from
    Download Lucee.
  2. sudo service stop lucee_ctl.
  3. Add the lucee-5.x.x.xxx.jar you downloaded to the “lib” directory
    in your existing Lucee install.
  4. Remove all other JARs in the same directory, however do not
    remove the directory “lucee-server” (or “railo-server”)
  5. Start the servlet engine. (Ubuntu: sudo service start lucee_ctl.
    Windows: net start Lucee.)

my /opt/lucee/lib
drwxr-xr-x 2 railo railo 4096 Sep 7 2015 license
-rw-rw-r-- 1 railo railo 65706046 Jul 12 14:37 lucee.jar
drwxr-xr-x 4 railo railo 4096 Jul 12 14:52 lucee-server
drwxr-xr-x 2 root root 4096 Jul 12 14:54 oldjarsthatwereinlib
-rw-r–r-- 1 railo railo 7705 Jun 25 2015 versions

Is there a step missing? Should lucee-5.x.x.xxx.jar be renamed lucee.jar?
tried renaming , no difference.

Whenever I /opt/lucee/lucee_ctl start I get this

12-Jul-2016 14:56:48.861 SEVERE [main] org.apache.coyote.AbstractProtocol.destroy
Failed to destroy end point associated with ProtocolHandler [
“http-nio-8888”]
java.lang.NullPointerException
at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(
NioEndpoint.java:304)
at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:
480)
at org.apache.tomcat.util.net.AbstractEndpoint.destroy(
AbstractEndpoint.java:818)
at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.
java:532)
at org.apache.catalina.connector.Connector.destroyInternal(
Connector.java:1023)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.core.StandardService.destroyInternal(
StandardService.java:588)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.core.StandardServer.destroyInternal(
StandardServer.java:859)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

12-Jul-2016 14:56:48.861 INFO [main] org.apache.coyote.AbstractProtocol.destroy
Destroying ProtocolHandler [“ajp-nio-8009”]
12-Jul-2016 14:56:48.861 SEVERE [main] org.apache.coyote.AbstractProtocol.destroy
Failed to destroy end point associated with ProtocolHandler [
“ajp-nio-8009”]
java.lang.NullPointerException
at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(
NioEndpoint.java:304)
at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:
480)
at org.apache.tomcat.util.net.AbstractEndpoint.destroy(
AbstractEndpoint.java:818)
at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.
java:532)
at org.apache.catalina.connector.Connector.destroyInternal(
Connector.java:1023)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.core.StandardService.destroyInternal(
StandardService.java:588)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.core.StandardServer.destroyInternal(
StandardServer.java:859)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)

I’m guessing TomCat wants port 8009 but it can’t have it?

netstat -tulpn | grep 8009
comes back with nothing. :frowning:

I shut down apache but that made no difference.

Any ideas appreciated. thanks in advance.

Any more feedback on this? I am getting the same issue.

I followed the instrucations and boom lucee is now dead.

I had a working Lucee 4.5 install but after following the instructions
Lucee falls over on startup.

Tailing the catalina.out log gives tons of errors starting with

A child container failed during start java.util.concurrent.
ExecutionException: org.apache.catalina.LifecycleException: Failed to start
component [StandardEngine[Catalina].StandardHost[my.test.host].
StandardContex
t[]]

I cant move forward with the upgrade without resolving this :(On Tuesday, July 12, 2016 at 2:03:25 PM UTC+1, Dan wrote:

I have a 4.5 Lucee installation that is working just fine.

I followed the instructions to upgrade.

  1. Download the lucee-5.x.x.xxx.jar from
    Download Lucee.
  2. sudo service stop lucee_ctl.
  3. Add the lucee-5.x.x.xxx.jar you downloaded to the “lib” directory
    in your existing Lucee install.
  4. Remove all other JARs in the same directory, however do not
    remove the directory “lucee-server” (or “railo-server”)
  5. Start the servlet engine. (Ubuntu: sudo service start lucee_ctl.
    Windows: net start Lucee.)

my /opt/lucee/lib
drwxr-xr-x 2 railo railo 4096 Sep 7 2015 license
-rw-rw-r-- 1 railo railo 65706046 Jul 12 14:37 lucee.jar
drwxr-xr-x 4 railo railo 4096 Jul 12 14:52 lucee-server
drwxr-xr-x 2 root root 4096 Jul 12 14:54 oldjarsthatwereinlib
-rw-r–r-- 1 railo railo 7705 Jun 25 2015 versions

Is there a step missing? Should lucee-5.x.x.xxx.jar be renamed lucee.jar?
tried renaming , no difference.

Whenever I /opt/lucee/lucee_ctl start I get this

12-Jul-2016 14:56:48.861 SEVERE [main] org.apache.coyote.AbstractProtocol.destroy
Failed to destroy end point associated with ProtocolHandler [
“http-nio-8888”]
java.lang.NullPointerException
at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(
NioEndpoint.java:304)
at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:
480)
at org.apache.tomcat.util.net.AbstractEndpoint.destroy(
AbstractEndpoint.java:818)
at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.
java:532)
at org.apache.catalina.connector.Connector.destroyInternal(
Connector.java:1023)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.core.StandardService.destroyInternal(
StandardService.java:588)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.core.StandardServer.destroyInternal(
StandardServer.java:859)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

12-Jul-2016 14:56:48.861 INFO [main] org.apache.coyote.AbstractProtocol.destroy
Destroying ProtocolHandler [“ajp-nio-8009”]
12-Jul-2016 14:56:48.861 SEVERE [main] org.apache.coyote.AbstractProtocol.destroy
Failed to destroy end point associated with ProtocolHandler [
“ajp-nio-8009”]
java.lang.NullPointerException
at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(
NioEndpoint.java:304)
at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:
480)
at org.apache.tomcat.util.net.AbstractEndpoint.destroy(
AbstractEndpoint.java:818)
at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.
java:532)
at org.apache.catalina.connector.Connector.destroyInternal(
Connector.java:1023)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.core.StandardService.destroyInternal(
StandardService.java:588)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.core.StandardServer.destroyInternal(
StandardServer.java:859)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.
java:305)
at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)

I’m guessing TomCat wants port 8009 but it can’t have it?

netstat -tulpn | grep 8009
comes back with nothing. :frowning:

I shut down apache but that made no difference.

Any ideas appreciated. thanks in advance.