Thanks Andrea, all this help is much appreciated, think I need to make a
donation to geoserver project!

I don't think I'd ever installed any extra security - just a standard
ubuntu, standard tomcat7, geoserver. But obviously applying updates could
have caused geoserver to no longer be able to start up at some point.

I've done a search: find / -name '*.jar.rpmnew'
We don't have any files with that extension (or even *.jar.*)

Our geoserver masterpw etc. were all plain text

Any ideas what I can do?


On Sat, Mar 7, 2015 at 9:58 AM, Andrea Aime <[email protected]>
wrote:

> Oh ok, now we have something.
> I'm just going to make a guess, but based on this stackexchange discussion:
>
> http://stackoverflow.com/questions/27036588/errorcould-not-initialize-class-javax-crypto-jcesecurity
>
> I'd say the following happened:
> * You installed the extra security jars to get strong crictography in your
> jdk
> * The JDK got upgraded as part of the security fixes in your OS, and the
> new version does not contain those jars
> * GeoServer cannot decrypt passwords that were encoded with the strong
> security, and the startup fails
>
> Cheers
> Andrea
>
>
> On Sat, Mar 7, 2015 at 10:51 AM, walkhighlands <[email protected]
> > wrote:
>
>> OK, sorry for my lack of knowledge.
>>
>> In localhost.log:
>> Mar 7, 2015 9:47:40 AM org.apache.catalina.core.ApplicationContext log
>> INFO: HTMLManager: start: Starting web application '/geoserver'
>> Mar 7, 2015 9:47:41 AM org.apache.catalina.core.ApplicationContext log
>> INFO: Initializing Spring root WebApplicationContext
>> Mar 7, 2015 9:47:48 AM org.apache.catalina.core.StandardContext
>> listenerStart
>> SEVERE: Exception sending context initialized event to listener instance
>> of class org.geoserver.platform.GeoServerContextLoaderListener
>> org.springframework.beans.factory.BeanCreationException: Error occured
>> reading security configuration; nested exception is
>> java.lang.RuntimeException:
>> org.jasypt.exceptions.EncryptionInitializationException:
>> java.lang.NoClassDefFoundError: Could not initialize class
>> javax.crypto.JceSecurity
>> at
>> org.geoserver.security.GeoServerSecurityManager.onApplicationEvent(GeoServerSecurityManager.java:346)
>> at
>> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
>> at
>> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:327)
>> at
>> org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:25)
>> at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>> at
>> org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247)
>> at
>> org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:747)
>> at
>> org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:222)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:194)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
>> at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>> at
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>> at
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
>> at
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
>> at
>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:701)
>> Caused by: java.lang.RuntimeException:
>> org.jasypt.exceptions.EncryptionInitializationException:
>> java.lang.NoClassDefFoundError: Could not initialize class
>> javax.crypto.JceSecurity
>> at
>> org.geoserver.security.GeoServerSecurityManager.getMasterPassword(GeoServerSecurityManager.java:1631)
>> at
>> org.geoserver.security.KeyStoreProviderImpl.assertActivatedKeyStore(KeyStoreProviderImpl.java:236)
>> at
>> org.geoserver.security.KeyStoreProviderImpl.reloadKeyStore(KeyStoreProviderImpl.java:103)
>> at
>> org.geoserver.security.concurrent.LockingKeyStoreProvider.reloadKeyStore(LockingKeyStoreProvider.java:79)
>> at
>> org.geoserver.security.GeoServerSecurityManager.init(GeoServerSecurityManager.java:429)
>> at
>> org.geoserver.security.GeoServerSecurityManager.init(GeoServerSecurityManager.java:420)
>> at
>> org.geoserver.security.GeoServerSecurityManager.onApplicationEvent(GeoServerSecurityManager.java:339)
>> ... 33 more
>> Caused by: org.jasypt.exceptions.EncryptionInitializationException:
>> java.lang.NoClassDefFoundError: Could not initialize class
>> javax.crypto.JceSecurity
>> at
>> org.jasypt.encryption.pbe.StandardPBEByteEncryptor.initialize(StandardPBEByteEncryptor.java:708)
>> at
>> org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:912)
>> at
>> org.geoserver.security.password.URLMasterPasswordProvider.decode(URLMasterPasswordProvider.java:130)
>> at
>> org.geoserver.security.password.URLMasterPasswordProvider.doGetMasterPassword(URLMasterPasswordProvider.java:76)
>> at
>> org.geoserver.security.MasterPasswordProvider.getMasterPassword(MasterPasswordProvider.java:34)
>> at
>> org.geoserver.security.GeoServerSecurityManager.getMasterPassword(GeoServerSecurityManager.java:1629)
>> ... 39 more
>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>> javax.crypto.JceSecurity
>> at javax.crypto.SecretKeyFactory.nextSpi(SecretKeyFactory.java:281)
>> at javax.crypto.SecretKeyFactory.<init>(SecretKeyFactory.java:107)
>> at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:146)
>> at
>> org.jasypt.encryption.pbe.StandardPBEByteEncryptor.initialize(StandardPBEByteEncryptor.java:695)
>> ... 44 more
>> Mar 7, 2015 9:47:48 AM org.apache.catalina.core.ApplicationContext log
>> INFO: Closing Spring root WebApplicationContext
>> Mar 7, 2015 9:47:51 AM org.apache.catalina.core.ApplicationContext log
>> INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
>>
>>
>>
>
>
> --
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/NWWaa2 for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility  for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to