cancel
Showing results for 
Search instead for 
Did you mean: 

installation 4.0.b community edition

ecmuser20
Champ in-the-making
Champ in-the-making
Hello Experts,

I have deployed alfresco-community-4.0.b (alfresco.war) on jboss application server with mysql database. While starting the repository I noticed following errors in the logs.

ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 09250001 Keystores are invalid
        at org.alfresco.encryption.EncryptionChecker$1.execute(EncryptionChecker.java:70)
        at org.alfresco.encryption.EncryptionChecker$1.execute(EncryptionChecker.java:60)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:259)
        at org.alfresco.encryption.EncryptionChecker.onBootstrap(EncryptionChecker.java:59)
        at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:321)
        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)
        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
        at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
        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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
        at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
        at $Proxy38.start(Unknown Source)
        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
        at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java

Caused by: org.alfresco.error.AlfrescoRuntimeException: 09250000 Failed to create keystore:
   Location: classpath:alfresco/keystore/keystore
   Provider: null
   Type:     JCEKS
        at org.alfresco.encryption.AlfrescoKeyStoreImpl.createKey(AlfrescoKeyStoreImpl.java:630)
        at org.alfresco.encryption.AlfrescoKeyStoreImpl.validateKeys(AlfrescoKeyStoreImpl.java:836)
        at org.alfresco.encryption.AlfrescoKeyStoreImpl.validateKeys(AlfrescoKeyStoreImpl.java:185)
        at org.alfresco.encryption.KeyStoreChecker.validateKeyStores(KeyStoreChecker.java:47)
        at org.alfresco.encryption.EncryptionChecker$1.execute(EncryptionChecker.java:65)
        … 83 more
Caused by: java.lang.NullPointerException
        at org.alfresco.encryption.AlfrescoKeyStoreImpl.getSecretKey(AlfrescoKeyStoreImpl.java:725)
        at org.alfresco.encryption.AlfrescoKeyStoreImpl.createKey(AlfrescoKeyStoreImpl.java:624)
        … 87 more

Does anyone has any idea how to solve this issue? Same issue was not there when I installed 3.4 enterprise edition. I am aware that enterprise edition is tested and then released by alfresco, but community does not go regression testing.
15 REPLIES 15

sam4alf
Champ in-the-making
Champ in-the-making
I couldn't get 4.0a to work on JBoss, MySQL and redhat.

So, I went ahead and downloaded 4.0b and used the OOB installation RPM package. That worked fine and then I changed database to mysql. So, my current working combination is mysql, tomcat and redhat.

However, my goal is to move away from tomcat and deploy war files on to JBoss 5.5.

-Sarma.

ecmuser20
Champ in-the-making
Champ in-the-making
Tomcat installation works for me as well just fine. I am trying on jboss and place its not starting is keystore error that I am getting. Because of that repository does not start. I started debug logging and saw that the keystore file along with correct location is read during startup, but it still complains about invalid keystore error.

dbr9449
Champ in-the-making
Champ in-the-making
I have an Alfresco 3.4.d installation and upgraded with the Alfresco 4.0.b war files.  When I start Alfresco, I get the keystores are invalid error.  I tried commenting out the three lines mentioned above, but that does not eliminate the error for me.  Is there a way to turn the encryption checking off?

norgan
Champ in-the-making
Champ in-the-making
Hi folks,
ecmuser - could you please you "code" tags for your stacktraces, thanks.

lengthy

log-pastes

go here

and can be

scrolled neatly

as you

can see

in this

example

Thanks.

Secondly : You can either use the keystore-folder, supplied in the community-4.0.b.zip (inside alf_data) or move to 4.0C. Also enabling lucene is supposed to work, seems to me that just "not enabling SOLR" alone wont work. Did you try explicetly enabling lucene ? (No clue how that has to go, just a guess).

Regards, Norgan

brdara
Champ in-the-making
Champ in-the-making
I had similar issues with 4.0.d CE. Using a MySQL database, it seemed that within the iBatis code it wasn't returning an autogenerated key for the alf_prop_class insert statement when adding the keys to the database, which threw an NPE in org.apache.ibatis.executor.keygen.Jdbc3KeyGenerator.processAfter method.
Upgrading to the latest MySQL Java connector (5.1.21) fixed this.

srm
Champ in-the-making
Champ in-the-making
I am in the same boat where an uploaded document is not immediately available for search.  I am using the SOLR subsystem. As i see from earlier answers, i should consider changing the subsystem from solr to lucene. Could anybody tell, how to change the subsystem from solr to lucene? are there any disadvantages by doing this?