You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Samuel Hofer <ho...@xymedia.ch> on 2010/10/06 18:20:05 UTC

Tomcat 6.0.29: Failed to initialize the SSLEngine

Hi,

 

I'm trying to install Apache Tomcat 6.0.29 on a Debian GNU/Linux 5.0.4
32bit with kernel release 2.6.26-2-686 with APR and SSL.

 

JDK 1.6.0_21

APR 1.2.9

OpenSSL 0.9.8

 

There seems to be a problem with the Tomcat Native library 1.1.20:

 

06.10.2010 15:02:51 org.apache.catalina.core.AprLifecycleListener init

FEIN: Loaded APR based Apache Tomcat Native library 1.1.20.

06.10.2010 15:02:51 org.apache.catalina.core.AprLifecycleListener init

INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].

06.10.2010 15:02:51 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent

FEIN: Failed to initialize the SSLEngine.

java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at
org.apache.catalina.core.AprLifecycleListener.initializeSSL(AprLifecycleList
ener.java:238)

        at
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent(AprLifecycleLis
tener.java:97)

        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)

        at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:770)

        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:39
)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: org.apache.tomcat.jni.Error: This function has not been
implemented on this platform

        at org.apache.tomcat.jni.SSL.initialize(Native Method)

        ... 16 more

06.10.2010 15:02:51 org.apache.coyote.http11.Http11AprProtocol init

INFO: Initializing Coyote HTTP/1.1 on http-8443

06.10.2010 15:02:51 org.apache.coyote.ajp.AjpAprProtocol init

INFO: Initializing Coyote AJP/1.3 on ajp-6009

06.10.2010 15:02:51 org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 1219 ms

06.10.2010 15:02:51 org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

06.10.2010 15:02:51 org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/6.0.29

06.10.2010 15:02:51 org.apache.catalina.startup.HostConfig deployDescriptor

INFO: Deploying configuration descriptor host-manager.xml

06.10.2010 15:02:52 org.apache.catalina.startup.HostConfig deployDescriptor

INFO: Deploying configuration descriptor manager.xml

06.10.2010 15:02:52 org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory ROOT

06.10.2010 15:02:52 org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory docs

06.10.2010 15:02:52 org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory examples

06.10.2010 15:02:52 org.apache.coyote.http11.Http11AprProtocol start

INFO: Starting Coyote HTTP/1.1 on http-8443

06.10.2010 15:02:53 org.apache.coyote.ajp.AjpAprProtocol start

INFO: Starting Coyote AJP/1.3 on ajp-6009

06.10.2010 15:02:53 org.apache.catalina.startup.Catalina start

INFO: Server startup in 1405 ms

 

I've searched the whole Internet but didn't find somthing similar like this:


 

Caused by: org.apache.tomcat.jni.Error: This function has not been
implemented on this platform

        at org.apache.tomcat.jni.SSL.initialize(Native Method)

 

How can I solve this problem?

 

Samuel Hofer


Re: Tomcat 6.0.29: Failed to initialize the SSLEngine

Posted by Mladen Turk <mt...@apache.org>.
On 30/10/2010 11:49, Pid wrote:
>>
>> How can I solve this problem?
>
> If your APR really is 1.2.9, then I suspect that you need to upgrade
> your APR to a newer version.  Version 1.4.2 was released 2010-04-04.
>

APR is not the problem here. If it were then it wouldn't load at all.

> I would also recommend that you check that you are using the best
> available version of OpenSSL, and then recompile Tomcat Native.
>

The point is to use the system provided OpenSSL.
O.9.8 will work just fine.

However how he get the Tomcat Native binaries is the real question.


Regards
-- 
^TM

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 6.0.29: Failed to initialize the SSLEngine

Posted by Pid <pi...@pidster.com>.
On 06/10/2010 17:20, Samuel Hofer wrote:
> Hi,
> 
> I'm trying to install Apache Tomcat 6.0.29 on a Debian GNU/Linux 5.0.4
> 32bit with kernel release 2.6.26-2-686 with APR and SSL.
> 
> JDK 1.6.0_21
> APR 1.2.9
> OpenSSL 0.9.8
> 
> There seems to be a problem with the Tomcat Native library 1.1.20:
> 
> 06.10.2010 15:02:51 org.apache.catalina.core.AprLifecycleListener init
> 
> FEIN: Loaded APR based Apache Tomcat Native library 1.1.20.
> 06.10.2010 15:02:51 org.apache.catalina.core.AprLifecycleListener init
> INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
> [false], random [true].
> 
> 06.10.2010 15:02:51 org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> 
> FEIN: Failed to initialize the SSLEngine.
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.catalina.core.AprLifecycleListener.initializeSSL(AprLifecycleList
> ener.java:238)
>         at
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent(AprLifecycleLis
> tener.java:97)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
> t.java:119)
>         at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.java:770)
>         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:39
> )
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Caused by: org.apache.tomcat.jni.Error: This function has not been
> implemented on this platform
>         at org.apache.tomcat.jni.SSL.initialize(Native Method)
>         ... 16 more
> 06.10.2010 15:02:51 org.apache.coyote.http11.Http11AprProtocol init
>
> How can I solve this problem?

If your APR really is 1.2.9, then I suspect that you need to upgrade
your APR to a newer version.  Version 1.4.2 was released 2010-04-04.

I would also recommend that you check that you are using the best
available version of OpenSSL, and then recompile Tomcat Native.


p