AnsweredAssumed Answered

Alfresco-Solr Configuration

Question asked by guillermo1rv on Apr 2, 2014
Latest reply on Apr 7, 2014 by guillermo1rv
I followed the guide to configure Alfresco (4.2.1) with an independent solr server (in other tomcat instance), but not sure if it is working, I am having an error in the logs regarding the connector, is not performing the connection to synchronize the indexes?, how could I check it?

The applications are been deployed ok and I can enter to both url:
http://localhost:8080/alfresco (Alfresco)
https://localhost:8443/solr/ (Other tomcat with Solr)

log output…
Apr 02, 2014 10:31:16 AM org.apache.catalina.core.StandardService initInternal
SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8443]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8443]]
   at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
   at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
   at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
   at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:814)
   at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:640)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:665)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
   at org.apache.catalina.connector.Connector.initInternal(Connector.java:983)
   at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
   … 12 more
Caused by: java.net.BindException: Address already in use: JVM_Bind <null>:8443
   at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:406)
   at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)
   at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
   at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
   at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
   … 13 more
Caused by: java.net.BindException: Address already in use: JVM_Bind
   at java.net.DualStackPlainSocketImpl.bind0(Native Method)
   at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
   at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
   at java.net.ServerSocket.bind(ServerSocket.java:376)
   at java.net.ServerSocket.<init>(ServerSocket.java:237)
   at java.net.ServerSocket.<init>(ServerSocket.java:181)
   at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:136)
   at sun.security.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:107)
   at sun.security.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:84)
   at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:182)
   at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:393)
   … 17 more

server.xml in the tomcat of alfresco:



    <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
               maxThreads="150" scheme="https" keystoreFile="D:/solr/alf_data/keystore/ssl.keystore" keystorePass="kT9X6oe68t" keystoreType="JCEKS"
               secure="true" connectionTimeout="240000" truststoreFile="D:/solr/alf_data/keystore/ssl.truststore" truststorePass="kT9X6oe68t" truststoreType="JCEKS"
               clientAuth="want" allowUnsafeLegacyRenegotiation="true" maxHttpHeaderSize="32768" sslProtocol="TLS" />  



Thanks in advance!!!

Kindly Regards

Outcomes