Tuesday, November 11, 2014

solr and alfresco integration on jboss eap 6

When configuring solr with alfresco on jboss there is a lot of certificate bullshit. I was hitting the error:

ERROR | [ServerService Thread Pool -- 53] | 2014-11-10 12:41:30 | org.apache.catalina.core.StandardContext.java | JBWEB000287: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener: org.alfresco.error.AlfrescoRuntimeException: 10100000 Keystores are invalid

Caused by: org.alfresco.encryption.MissingKeyException: Key metadata is missing from keystore /usr/share/jbossas/modules/org/alfresco/configuration/main/alfresco/keystore/keystore

The problem is that alfresco looks for an keystore with the name keystore, and an alias metadata in the keystore. This keystore can be found in de alfresco.war file. Normally this keystore would be placed on the classpath by deployment but jboss works a little bit differt. So you need to extract the war and place the keystore on the classpath yourself.

After this, you can follow the manuals on the internet.

Did this post help you in any way can you please leave a comment? This will motivate me writing more posts.

Wednesday, January 22, 2014

jboss EAP 6.2.0 Remote JMX monitoring in domain mode

In the domain.xml of the domain controller the profile of the server should contain the following:


            
               
               
               
           


On the host which runs the server a application user must be created with $JBOSS_HOME/bin/add_user.sh

The JMX port is defined in the socket-binding-group. For example if standard sockets is used than the jmx port is 4447. And with the port-offset it is possible to define differt ports for every server.

And now comes the trick. Install a jboss server on your machine with the same version. In the $JBOSS_HOME/bin there is an script jconsole.sh this script sets the right environment for jconsole (jars).

If jconsole is started the connection can be made:

service:jmx:remoting-jmx://ip_address:port


Did this post help you in any way can you please leave a comment? This will motivate me writing more posts.