cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Labs 3B Share login problem

langust
Champ on-the-rise
Champ on-the-rise
My environment: Windows 2003 Server, MySQL 5.0.67, JDK 1.5.0_15, Alfresco Labs 3B with Tomcat
I have configured Alfresco to use SSL on port 443. The standart Alfresco web client works fine and I can access it via https://localhost/alfresco.
But when I am trying too log in into Share with the same admin account I get the following error message: "The remote server may be unavailable or your authentication details have not been recognised."
6 REPLIES 6

raghukumar_c
Champ in-the-making
Champ in-the-making
langust,

Please mention the error that you see on your tomcat log. The error file should be  <TOMCAT_HOME>/logs/catalina.out

~raghu

langust
Champ on-the-rise
Champ on-the-rise
langust,

Please mention the error that you see on your tomcat log. The error file should be  <TOMCAT_HOME>/logs/catalina.out

~raghu

There isn't any exceptions in tomcat logs. I think my problem is related with Alfresco (Share application) configuration. I think, I should modify some Share configuration files to specify different port and protocol (HTTPS instead of HTTP). Is there any proper SSL configuration guide for Alfresco Labs 3 with a list of all configs I should modify and etc?

dhoechst
Champ in-the-making
Champ in-the-making
Does Alfresco run any non-https ports? If not, then you need to change the repository endpoint

I added the below into custom-repository.properties to get Share to work with a server running Alfresco on port 80. I also have 443 active, and can use it for Share, but Share talks to the repository over port 80.

# Repository endpoint - used by Activity Service
repo.remote.endpoint.url=http://localhost/alfresco/service

My guess is that you should use this if you want Share to talk to the repository using SSL.

# Repository endpoint - used by Activity Service
repo.remote.endpoint.url=http://localhost:443/alfresco/service

langust
Champ on-the-rise
Champ on-the-rise
# Repository endpoint - used by Activity Service
repo.remote.endpoint.url=http://localhost:443/alfresco/service

It didn't help me.
But I found another solution - have configured second connector for Tomcat (non-ssl on default port 8080), and now everything is working properly. I can access Alfresco standart client and Share application via HTTPS, and Share App communicates with Alfresco via HTTP(port 8080).

Thanks a lot for your help!

dhoechst
Champ in-the-making
Champ in-the-making
Glad you found a solution. If you want Share to communicate with Alfresco over SSL, I think you can do it. I just realized I didn't give you all the places to change the ports. The endpoint thing is important once you get logged in and Alfresco isn't running on port 8080. If you want to change the ports that Share talks to Alfresco, you need to look in the following places:

a.   In C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\web-framework-config.xml look for references to port 8080.
b.   In C:\Alfresco\tomcat\webapps\share\WEB-INF\urlrewrite.xml look for port 8080.
c.   In C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\pagerenderer-config.xml look for port 8080.

quesadam
Champ in-the-making
Champ in-the-making
My "Share login" problems were a bit different than your but it might be relevant to mention it here. They were related to the fact that I did not expose the "alfresco" application via the default Tomcat virtual host "localhost". As a result the "Share" application was not able to find the Alfresco urls correctly because by default all the configuration files under the "Share" application point to Alfresco resources assuming that it lives under the default Tomcat virtual host "localhost" . Most people who use the Alfresco/Tomcat bundle don't have to deal with this but I chose to  deploy the "alfresco.war" file under an existing Tomcat server. I like having more control of the Tomcat server. This is an installation of "alfresco-labs-war-3c" under Ubuntu Server 8.10 with Tomcat 6. The database server is MySQL 5.0.51a-3ubuntu5.4 hosted in a separate Ubuntu Server 8.10.

Anyway, here's the story: If you are not exposing your Alfresco application via the Tomcat default virtual host "localhost" but instead you are using a  more formal virtual host like "www.mydomain.com"; then, in order to get the "Share" application to work (http://www.mydomain.com:8080/share) ALL the configuration files under "$TOMCAT-INSTALL_PATH/webapps/$ALFRESCO-PATH/share" MUST be changed to replace any references to "localhost" to the more formal  "www.mydomain.com" virtual host. That's because, if Alfresco was declared to live as a resource under the virtual directory "www.mydomain.com" Tomcat will not serve or resolve the url "http://localhost:8080/alfresco" to anything it knows and your "Share" application will give you "login" errors. Your "Share" application must point to "http://www.mydomain.com:8080" (or whatever other port you are using for Tomcat) so that it can successfully link and integrate with the "Alfresco" resources.

Sorry if this is confusing but my first language is Spanish.

Best regards,

Alejandro.