ant run fails on SSLImpl.java:70 :ERROR

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ant run fails on SSLImpl.java:70 :ERROR

bigbee_us
Spent a couple of days on this now.  Trying to do production build using self signed cert.  I believe that the error has something to do with the keystore file.

Thanks in advance for any suggestions.

When I execute ./ant run this is the output

[java] 2008-11-04 15:57:23,839 (main) [  GenericDispatcher.java:128:INFO ] [LocalDispatcher] : Created Dispatcher for: entity-default
     [java] 2008-11-04 15:57:24,253 (main) [            UtilXml.java:243:DEBUG] XML Read 0.012s: file:/srv/ofbiz.4.0/framework/catalina/config/mime-type.xml
     [java] 2008-11-04 15:57:24,667 (main) [            SSLImpl.java:70 :ERROR]
     [java] ---- runtime exception report --------------------------------------------------
     [java] Exception: java.lang.NullPointerException
     [java] Message: null
     [java] ---- stack trace ---------------------------------------------------------------
     [java] java.lang.NullPointerException
     [java] java.io.Reader.<init>(Reader.java:78)
     [java] java.io.InputStreamReader.<init>(InputStreamReader.java:72)
     [java] sun.security.provider.CertBundleKeyStoreImpl.engineLoad(CertBundleKeyStoreImpl.java:142)
     [java] java.security.KeyStore.load(KeyStore.java:1201)
     [java] sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore(TrustManagerFactoryImpl.java:221)
     [java] sun.security.ssl.TrustManagerFactoryImpl.engineInit(TrustManagerFactoryImpl.java:51)
     [java] javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:247)
     [java] org.ofbiz.base.util.SSLUtil.getTrustManagers(SSLUtil.java:141)
     [java] org.ofbiz.base.util.SSLUtil.getTrustManagers(SSLUtil.java:107)
     [java] org.ofbiz.catalina.container.SSLImpl$AllowTrustManager.<init>(SSLImpl.java:68)
     [java] org.ofbiz.catalina.container.SSLImpl.<init>(SSLImpl.java:48)
     [java] sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     [java] sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
     [java] sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
     [java] java.lang.reflect.Constructor.newInstance(Constructor.java:532)
     [java] java.lang.Class.newInstance0(Class.java:372)
     [java] java.lang.Class.newInstance(Class.java:325)
     [java] org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:73)
     [java] org.apache.coyote.http11.Http11BaseProtocol.checkSocketFactory(Http11BaseProtocol.java:729)
     [java] org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:120)
     [java] org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
     [java] org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
     [java] org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
     [java] org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
     [java] org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
     [java] org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java] org.ofbiz.base.start.Start.init(Start.java:87)
     [java] org.ofbiz.base.start.Start.main(Start.java:403)
     [java] --------------------------------------------------------------------------------
     [java]
     [java] 2008-11-04 15:57:24,678 (main) [ Http11BaseProtocol.java:122:ERROR] Error initializing socket factory
     [java] java.lang.ClassNotFoundException: Error loading SSL Implementation org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
     [java]     at org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:78)
     [java]     at org.apache.coyote.http11.Http11BaseProtocol.checkSocketFactory(Http11BaseProtocol.java:729)
     [java]     at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:120)
     [java]     at org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
     [java]     at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
     [java]     at org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
     [java]     at org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
     [java]     at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
     [java]     at org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
     [java] org.ofbiz.base.start.StartupException: Cannot init() catalina-container (Protocol handler initialization failed: java.lang.ClassNotFoundException: Error loading SSL Implementation org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException)
     [java]     at org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:143)
     [java]     at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
     [java]     at org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
     [java] org.ofbiz.base.container.ContainerException: Protocol handler initialization failed: java.lang.ClassNotFoundException: Error loading SSL Implementation org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
     [java]     at org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:215)
     [java]     at org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
     [java]     at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
     [java]     at org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
     [java] LifecycleException:  Protocol handler initialization failed: java.lang.ClassNotFoundException: Error loading SSL Implementation org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
     [java]     at org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
     [java]     at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
     [java]     at org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
     [java]     at org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
     [java]     at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
     [java]     at org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
     [java] org.ofbiz.base.container.ContainerException: Protocol handler initialization failed: java.lang.ClassNotFoundException: Error loading SSL Implementation org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
     [java]     at org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:215)
     [java]     at org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
     [java]     at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
     [java]     at org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
     [java] LifecycleException:  Protocol handler initialization failed: java.lang.ClassNotFoundException: Error loading SSL Implementation org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
     [java]     at org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
     [java]     at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
     [java]     at org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
     [java]     at org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
     [java]     at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
     [java]     at org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
     [java] LifecycleException:  Protocol handler initialization failed: java.lang.ClassNotFoundException: Error loading SSL Implementation org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
     [java]     at org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
     [java]     at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
     [java]     at org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
     [java]     at org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
     [java]     at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
     [java]     at org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
     [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
     [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
     [java] Java Result: 99

BUILD SUCCESSFUL
Total time: 23 seconds
Reply | Threaded
Open this post in threaded view
|

Re: ant run fails on SSLImpl.java:70 :ERROR

BJ Freeman
did you do
ant clean
ant run-install

bigbee_us sent the following on 11/4/2008 5:00 PM:

> Spent a couple of days on this now.  Trying to do production build using self
> signed cert.  I believe that the error has something to do with the keystore
> file.
>
> Thanks in advance for any suggestions.
>
> When I execute ./ant run this is the output
>
> [java] 2008-11-04 15:57:23,839 (main) [  GenericDispatcher.java:128:INFO ]
> [LocalDispatcher] : Created Dispatcher for: entity-default
>      [java] 2008-11-04 15:57:24,253 (main) [          
> UtilXml.java:243:DEBUG] XML Read 0.012s:
> file:/srv/ofbiz.4.0/framework/catalina/config/mime-type.xml
>      [java] 2008-11-04 15:57:24,667 (main) [            SSLImpl.java:70
> :ERROR]
>      [java] ---- runtime exception report
> --------------------------------------------------
>      [java] Exception: java.lang.NullPointerException
>      [java] Message: null
>      [java] ---- stack trace
> ---------------------------------------------------------------
>      [java] java.lang.NullPointerException
>      [java] java.io.Reader.<init>(Reader.java:78)
>      [java] java.io.InputStreamReader.<init>(InputStreamReader.java:72)
>      [java]
> sun.security.provider.CertBundleKeyStoreImpl.engineLoad(CertBundleKeyStoreImpl.java:142)
>      [java] java.security.KeyStore.load(KeyStore.java:1201)
>      [java]
> sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore(TrustManagerFactoryImpl.java:221)
>      [java]
> sun.security.ssl.TrustManagerFactoryImpl.engineInit(TrustManagerFactoryImpl.java:51)
>      [java]
> javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:247)
>      [java] org.ofbiz.base.util.SSLUtil.getTrustManagers(SSLUtil.java:141)
>      [java] org.ofbiz.base.util.SSLUtil.getTrustManagers(SSLUtil.java:107)
>      [java]
> org.ofbiz.catalina.container.SSLImpl$AllowTrustManager.<init>(SSLImpl.java:68)
>      [java] org.ofbiz.catalina.container.SSLImpl.<init>(SSLImpl.java:48)
>      [java] sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>      [java]
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>      [java]
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>      [java] java.lang.reflect.Constructor.newInstance(Constructor.java:532)
>      [java] java.lang.Class.newInstance0(Class.java:372)
>      [java] java.lang.Class.newInstance(Class.java:325)
>      [java]
> org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:73)
>      [java]
> org.apache.coyote.http11.Http11BaseProtocol.checkSocketFactory(Http11BaseProtocol.java:729)
>      [java]
> org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:120)
>      [java]
> org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
>      [java]
> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>      [java]
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>      [java]
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java] org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java] org.ofbiz.base.start.Start.init(Start.java:87)
>      [java] org.ofbiz.base.start.Start.main(Start.java:403)
>      [java]
> --------------------------------------------------------------------------------
>      [java]
>      [java] 2008-11-04 15:57:24,678 (main) [
> Http11BaseProtocol.java:122:ERROR] Error initializing socket factory
>      [java] java.lang.ClassNotFoundException: Error loading SSL
> Implementation org.ofbiz.catalina.container.SSLImpl
> :java.lang.ClassNotFoundException
>      [java]     at
> org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:78)
>      [java]     at
> org.apache.coyote.http11.Http11BaseProtocol.checkSocketFactory(Http11BaseProtocol.java:729)
>      [java]     at
> org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:120)
>      [java]     at
> org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
>      [java]     at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>      [java]     at
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] org.ofbiz.base.start.StartupException: Cannot init()
> catalina-container (Protocol handler initialization failed:
> java.lang.ClassNotFoundException: Error loading SSL Implementation
> org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:143)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] org.ofbiz.base.container.ContainerException: Protocol handler
> initialization failed: java.lang.ClassNotFoundException: Error loading SSL
> Implementation org.ofbiz.catalina.container.SSLImpl
> :java.lang.ClassNotFoundException
>      [java]     at
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:215)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] LifecycleException:  Protocol handler initialization failed:
> java.lang.ClassNotFoundException: Error loading SSL Implementation
> org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
>      [java]     at
> org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
>      [java]     at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>      [java]     at
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] org.ofbiz.base.container.ContainerException: Protocol handler
> initialization failed: java.lang.ClassNotFoundException: Error loading SSL
> Implementation org.ofbiz.catalina.container.SSLImpl
> :java.lang.ClassNotFoundException
>      [java]     at
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:215)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] LifecycleException:  Protocol handler initialization failed:
> java.lang.ClassNotFoundException: Error loading SSL Implementation
> org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
>      [java]     at
> org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
>      [java]     at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>      [java]     at
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] LifecycleException:  Protocol handler initialization failed:
> java.lang.ClassNotFoundException: Error loading SSL Implementation
> org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
>      [java]     at
> org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
>      [java]     at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>      [java]     at
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] Java Result: 99
>
> BUILD SUCCESSFUL
> Total time: 23 seconds
Reply | Threaded
Open this post in threaded view
|

Re: ant run fails on SSLImpl.java:70 :ERROR

bigbee_us
Yes.  I just ran it again.

ant clean shows BUILD SUCCESSFUL
ant run-install shows BUILD SUCCESSFUL
ant run shows same error message.

My environment is OpenSUSE 11
Yast latest install of Java, Tomcat6, Apache, ant 1.6, etc..


BJ Freeman wrote
did you do
ant clean
ant run-install

bigbee_us sent the following on 11/4/2008 5:00 PM:
> Spent a couple of days on this now.  Trying to do production build using self
> signed cert.  I believe that the error has something to do with the keystore
> file.
>
> Thanks in advance for any suggestions.
>
> When I execute ./ant run this is the output
>
> [java] 2008-11-04 15:57:23,839 (main) [  GenericDispatcher.java:128:INFO ]
> [LocalDispatcher] : Created Dispatcher for: entity-default
>      [java] 2008-11-04 15:57:24,253 (main) [          
> UtilXml.java:243:DEBUG] XML Read 0.012s:
> file:/srv/ofbiz.4.0/framework/catalina/config/mime-type.xml
>      [java] 2008-11-04 15:57:24,667 (main) [            SSLImpl.java:70
> :ERROR]
>      [java] ---- runtime exception report
> --------------------------------------------------
>      [java] Exception: java.lang.NullPointerException
>      [java] Message: null
>      [java] ---- stack trace
> ---------------------------------------------------------------
>      [java] java.lang.NullPointerException
>      [java] java.io.Reader.<init>(Reader.java:78)
>      [java] java.io.InputStreamReader.<init>(InputStreamReader.java:72)
>      [java]
> sun.security.provider.CertBundleKeyStoreImpl.engineLoad(CertBundleKeyStoreImpl.java:142)
>      [java] java.security.KeyStore.load(KeyStore.java:1201)
>      [java]
> sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore(TrustManagerFactoryImpl.java:221)
>      [java]
> sun.security.ssl.TrustManagerFactoryImpl.engineInit(TrustManagerFactoryImpl.java:51)
>      [java]
> javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:247)
>      [java] org.ofbiz.base.util.SSLUtil.getTrustManagers(SSLUtil.java:141)
>      [java] org.ofbiz.base.util.SSLUtil.getTrustManagers(SSLUtil.java:107)
>      [java]
> org.ofbiz.catalina.container.SSLImpl$AllowTrustManager.<init>(SSLImpl.java:68)
>      [java] org.ofbiz.catalina.container.SSLImpl.<init>(SSLImpl.java:48)
>      [java] sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>      [java]
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>      [java]
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>      [java] java.lang.reflect.Constructor.newInstance(Constructor.java:532)
>      [java] java.lang.Class.newInstance0(Class.java:372)
>      [java] java.lang.Class.newInstance(Class.java:325)
>      [java]
> org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:73)
>      [java]
> org.apache.coyote.http11.Http11BaseProtocol.checkSocketFactory(Http11BaseProtocol.java:729)
>      [java]
> org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:120)
>      [java]
> org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
>      [java]
> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>      [java]
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>      [java]
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java] org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java] org.ofbiz.base.start.Start.init(Start.java:87)
>      [java] org.ofbiz.base.start.Start.main(Start.java:403)
>      [java]
> --------------------------------------------------------------------------------
>      [java]
>      [java] 2008-11-04 15:57:24,678 (main) [
> Http11BaseProtocol.java:122:ERROR] Error initializing socket factory
>      [java] java.lang.ClassNotFoundException: Error loading SSL
> Implementation org.ofbiz.catalina.container.SSLImpl
> :java.lang.ClassNotFoundException
>      [java]     at
> org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:78)
>      [java]     at
> org.apache.coyote.http11.Http11BaseProtocol.checkSocketFactory(Http11BaseProtocol.java:729)
>      [java]     at
> org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:120)
>      [java]     at
> org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
>      [java]     at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>      [java]     at
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] org.ofbiz.base.start.StartupException: Cannot init()
> catalina-container (Protocol handler initialization failed:
> java.lang.ClassNotFoundException: Error loading SSL Implementation
> org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:143)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] org.ofbiz.base.container.ContainerException: Protocol handler
> initialization failed: java.lang.ClassNotFoundException: Error loading SSL
> Implementation org.ofbiz.catalina.container.SSLImpl
> :java.lang.ClassNotFoundException
>      [java]     at
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:215)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] LifecycleException:  Protocol handler initialization failed:
> java.lang.ClassNotFoundException: Error loading SSL Implementation
> org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
>      [java]     at
> org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
>      [java]     at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>      [java]     at
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] org.ofbiz.base.container.ContainerException: Protocol handler
> initialization failed: java.lang.ClassNotFoundException: Error loading SSL
> Implementation org.ofbiz.catalina.container.SSLImpl
> :java.lang.ClassNotFoundException
>      [java]     at
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:215)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] LifecycleException:  Protocol handler initialization failed:
> java.lang.ClassNotFoundException: Error loading SSL Implementation
> org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
>      [java]     at
> org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
>      [java]     at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>      [java]     at
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] LifecycleException:  Protocol handler initialization failed:
> java.lang.ClassNotFoundException: Error loading SSL Implementation
> org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
>      [java]     at
> org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
>      [java]     at
> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>      [java]     at
> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>      [java]     at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>      [java]     at
> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>      [java] Java Result: 99
>
> BUILD SUCCESSFUL
> Total time: 23 seconds
Reply | Threaded
Open this post in threaded view
|

Re: ant run fails on SSLImpl.java:70 :ERROR

BJ Freeman
the error says it can't load
     [java] Exception: java.lang.NullPointerException
     [java] Message: null

so look at permissions, file location.


bigbee_us sent the following on 11/4/2008 5:42 PM:

> Yes.  I just ran it again.
>
> ant clean shows BUILD SUCCESSFUL
> ant run-install shows BUILD SUCCESSFUL
> ant run shows same error message.
>
> My environment is OpenSUSE 11
> Yast latest install of Java, Tomcat6, Apache, ant 1.6, etc..
>
>
>
> BJ Freeman wrote:
>> did you do
>> ant clean
>> ant run-install
>>
>> bigbee_us sent the following on 11/4/2008 5:00 PM:
>>> Spent a couple of days on this now.  Trying to do production build using
>>> self
>>> signed cert.  I believe that the error has something to do with the
>>> keystore
>>> file.
>>>
>>> Thanks in advance for any suggestions.
>>>
>>> When I execute ./ant run this is the output
>>>
>>> [java] 2008-11-04 15:57:23,839 (main) [  GenericDispatcher.java:128:INFO
>>> ]
>>> [LocalDispatcher] : Created Dispatcher for: entity-default
>>>      [java] 2008-11-04 15:57:24,253 (main) [          
>>> UtilXml.java:243:DEBUG] XML Read 0.012s:
>>> file:/srv/ofbiz.4.0/framework/catalina/config/mime-type.xml
>>>      [java] 2008-11-04 15:57:24,667 (main) [            SSLImpl.java:70
>>> :ERROR]
>>>      [java] ---- runtime exception report
>>> --------------------------------------------------
>>>      [java] Exception: java.lang.NullPointerException
>>>      [java] Message: null
>>>      [java] ---- stack trace
>>> ---------------------------------------------------------------
>>>      [java] java.lang.NullPointerException
>>>      [java] java.io.Reader.<init>(Reader.java:78)
>>>      [java] java.io.InputStreamReader.<init>(InputStreamReader.java:72)
>>>      [java]
>>> sun.security.provider.CertBundleKeyStoreImpl.engineLoad(CertBundleKeyStoreImpl.java:142)
>>>      [java] java.security.KeyStore.load(KeyStore.java:1201)
>>>      [java]
>>> sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore(TrustManagerFactoryImpl.java:221)
>>>      [java]
>>> sun.security.ssl.TrustManagerFactoryImpl.engineInit(TrustManagerFactoryImpl.java:51)
>>>      [java]
>>> javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:247)
>>>      [java]
>>> org.ofbiz.base.util.SSLUtil.getTrustManagers(SSLUtil.java:141)
>>>      [java]
>>> org.ofbiz.base.util.SSLUtil.getTrustManagers(SSLUtil.java:107)
>>>      [java]
>>> org.ofbiz.catalina.container.SSLImpl$AllowTrustManager.<init>(SSLImpl.java:68)
>>>      [java] org.ofbiz.catalina.container.SSLImpl.<init>(SSLImpl.java:48)
>>>      [java] sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>> Method)
>>>      [java]
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>>      [java]
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>      [java]
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:532)
>>>      [java] java.lang.Class.newInstance0(Class.java:372)
>>>      [java] java.lang.Class.newInstance(Class.java:325)
>>>      [java]
>>> org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:73)
>>>      [java]
>>> org.apache.coyote.http11.Http11BaseProtocol.checkSocketFactory(Http11BaseProtocol.java:729)
>>>      [java]
>>> org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:120)
>>>      [java]
>>> org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
>>>      [java]
>>> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>>>      [java]
>>> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>>>      [java]
>>> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>>>      [java]
>>> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>>>      [java] org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>>>      [java] org.ofbiz.base.start.Start.init(Start.java:87)
>>>      [java] org.ofbiz.base.start.Start.main(Start.java:403)
>>>      [java]
>>> --------------------------------------------------------------------------------
>>>      [java]
>>>      [java] 2008-11-04 15:57:24,678 (main) [
>>> Http11BaseProtocol.java:122:ERROR] Error initializing socket factory
>>>      [java] java.lang.ClassNotFoundException: Error loading SSL
>>> Implementation org.ofbiz.catalina.container.SSLImpl
>>> :java.lang.ClassNotFoundException
>>>      [java]     at
>>> org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:78)
>>>      [java]     at
>>> org.apache.coyote.http11.Http11BaseProtocol.checkSocketFactory(Http11BaseProtocol.java:729)
>>>      [java]     at
>>> org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:120)
>>>      [java]     at
>>> org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
>>>      [java]     at
>>> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>>>      [java]     at
>>> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>>>      [java]     at
>>> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>>>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>>>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>>>      [java] org.ofbiz.base.start.StartupException: Cannot init()
>>> catalina-container (Protocol handler initialization failed:
>>> java.lang.ClassNotFoundException: Error loading SSL Implementation
>>> org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:143)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>>>      [java]     at
>>> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>>>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>>>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>>>      [java] org.ofbiz.base.container.ContainerException: Protocol handler
>>> initialization failed: java.lang.ClassNotFoundException: Error loading
>>> SSL
>>> Implementation org.ofbiz.catalina.container.SSLImpl
>>> :java.lang.ClassNotFoundException
>>>      [java]     at
>>> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:215)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>>>      [java]     at
>>> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>>>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>>>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>>>      [java] LifecycleException:  Protocol handler initialization failed:
>>> java.lang.ClassNotFoundException: Error loading SSL Implementation
>>> org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
>>>      [java]     at
>>> org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
>>>      [java]     at
>>> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>>>      [java]     at
>>> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>>>      [java]     at
>>> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>>>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>>>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>>>      [java] org.ofbiz.base.container.ContainerException: Protocol handler
>>> initialization failed: java.lang.ClassNotFoundException: Error loading
>>> SSL
>>> Implementation org.ofbiz.catalina.container.SSLImpl
>>> :java.lang.ClassNotFoundException
>>>      [java]     at
>>> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:215)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>>>      [java]     at
>>> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>>>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>>>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>>>      [java] LifecycleException:  Protocol handler initialization failed:
>>> java.lang.ClassNotFoundException: Error loading SSL Implementation
>>> org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
>>>      [java]     at
>>> org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
>>>      [java]     at
>>> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>>>      [java]     at
>>> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>>>      [java]     at
>>> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>>>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>>>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>>>      [java] LifecycleException:  Protocol handler initialization failed:
>>> java.lang.ClassNotFoundException: Error loading SSL Implementation
>>> org.ofbiz.catalina.container.SSLImpl :java.lang.ClassNotFoundException
>>>      [java]     at
>>> org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
>>>      [java]     at
>>> org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
>>>      [java]     at
>>> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:213)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>>>      [java]     at
>>> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>>>      [java]     at
>>> org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>>>      [java]     at org.ofbiz.base.start.Start.init(Start.java:87)
>>>      [java]     at org.ofbiz.base.start.Start.main(Start.java:403)
>>>      [java] Java Result: 99
>>>
>>> BUILD SUCCESSFUL
>>> Total time: 23 seconds
>>
>