Configure Alfresco to use a proxy server

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2009 03:13 PM
Hello!
Is there any way to configure Alfresco to use a proxy server? Here's the problem I am facing.
When using Web Studio, when I go to create a new website, I get the following error:
14:00:22,567 DEBUG [web.scripts.AbstractRuntime] Caught exception: org.alfresco.web.scripts.WebScriptException: Failed to load script '/web-studio/api/prebuilt/list.get.js (in classpath store file:/home/rbowman/Applications/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts)': TypeError: Cannot read property "results" from null (file:/home/rbowman/Applications/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/api/prebuilt/list.get.js#47)
I have read in http://forums.alfresco.com/en/viewtopic.php?f=36&t=16543&start=0&st=0&sk=t&sd=a that Web Studio is attempting to connect to https://network.alfresco.com/extranet in order to get a list of templates.
The problem is that in order for Web Studio to make this connection, it must go through a proxy server. This is set in stone and directly connecting to https://network.alfresco.com/extranet is not an option.
I have tried adding -Dhttp(s).proxyHost and -Dhttp(s).proxyPort options to alfresco.sh, but that did not work. I have also tried adding http(s).proxyHost/Port to custom-repository.properties. Using wireshark, I have verified that Web Studio is attempting to make a direct connection to network.alfresco.com. I have searched the forums/wiki over and cannot seem to find anything on this issue.
Can anyone help? I am stuck….
Thanks in advance,
-Roger Bowman
Is there any way to configure Alfresco to use a proxy server? Here's the problem I am facing.
When using Web Studio, when I go to create a new website, I get the following error:
14:00:22,567 DEBUG [web.scripts.AbstractRuntime] Caught exception: org.alfresco.web.scripts.WebScriptException: Failed to load script '/web-studio/api/prebuilt/list.get.js (in classpath store file:/home/rbowman/Applications/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts)': TypeError: Cannot read property "results" from null (file:/home/rbowman/Applications/Alfresco/tomcat/webapps/studio/WEB-INF/classes/alfresco/webscripts/web-studio/api/prebuilt/list.get.js#47)
I have read in http://forums.alfresco.com/en/viewtopic.php?f=36&t=16543&start=0&st=0&sk=t&sd=a that Web Studio is attempting to connect to https://network.alfresco.com/extranet in order to get a list of templates.
The problem is that in order for Web Studio to make this connection, it must go through a proxy server. This is set in stone and directly connecting to https://network.alfresco.com/extranet is not an option.
I have tried adding -Dhttp(s).proxyHost and -Dhttp(s).proxyPort options to alfresco.sh, but that did not work. I have also tried adding http(s).proxyHost/Port to custom-repository.properties. Using wireshark, I have verified that Web Studio is attempting to make a direct connection to network.alfresco.com. I have searched the forums/wiki over and cannot seem to find anything on this issue.
Can anyone help? I am stuck….
Thanks in advance,
-Roger Bowman
Labels:
- Labels:
-
Archive
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2009 09:54 AM
Is there seriously no one that can help? I know that I can't be the only person trying to install alfresco behind a corporate proxy server…
I'll take any kind of answer at this point. Knowing something is better than knowing nothing, so if this is not possible, please let me know!
Thanks,
-Roger
I'll take any kind of answer at this point. Knowing something is better than knowing nothing, so if this is not possible, please let me know!
Thanks,
-Roger
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 01:34 PM
It is likely that this is a current limit of Alfresco. See more details at https://issues.alfresco.com/jira/browse/ALF-1518
Good news is it was fixed. Bad news is the fix has not been merged to the public repos, in case you want to roll out the fix by yourself.
Good news is it was fixed. Bad news is the fix has not been merged to the public repos, in case you want to roll out the fix by yourself.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 05:22 PM
It is likely that this is a current limit of Alfresco. See more details at https://issues.alfresco.com/jira/browse/ALF-1518I'll see if I can get it merged across sooner rather than later.
Good news is it was fixed. Bad news is the fix has not been merged to the public repos, in case you want to roll out the fix by yourself.
Thanks,
Mike
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2010 06:53 AM
It's great! We will apply the fix to our system right after is it available. Currently, beside Google docs, a few other features in Share (like RSS) do not work due to this limit.
Thank you, Mike, for your invaluable support.
Regards,
Nhien
Thank you, Mike, for your invaluable support.
Regards,
Nhien
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2010 12:31 PM
As per described in http://issues.alfresco.com/jira/browse/ALF-1518, it is likeley that Alfresco Community 3.4b now support proxy server. So we tried to configure Alfresco Share again for Google Docs checkout.
After following the guidelines in http://forums.alfresco.com/en/viewtopic.php?f=9&t=35227, we got the Google Docs menu displayed as in 3.3g. Great!
Next, tried to create a Google Docs Document using the drop-down menu - Document was created successfully. So far so good …
Then tried to check it out to Google Docs - Bump! Fail to make connection to Google!
Hmmmm, It is likely that we need to make some additional configurations in Share for our corporate proxy server.
Refer to the comment from Afresco QA Team in http://issues.alfresco.com/jira/browse/ALF-1518, we tried to make some modifications in file /opt/Alfresco/tomcat/scripts/ctl.sh as follows:
From:
Restart Alfresco. No errors happened. Login to Alfresco Explorer was OK.
However, when login to Share, an error message displayed as:
The remote server may be unavailable or your authentication details have not been recognized.
We are getting stuck now and can't find any other clues to go further. Could any people in Alfresco QA Team please give us some hints which you did in proxy configuration to get Alfresco Share working with Google Docs. Thanks a lot.
After following the guidelines in http://forums.alfresco.com/en/viewtopic.php?f=9&t=35227, we got the Google Docs menu displayed as in 3.3g. Great!
Next, tried to create a Google Docs Document using the drop-down menu - Document was created successfully. So far so good …
Then tried to check it out to Google Docs - Bump! Fail to make connection to Google!
Hmmmm, It is likely that we need to make some additional configurations in Share for our corporate proxy server.
Refer to the comment from Afresco QA Team in http://issues.alfresco.com/jira/browse/ALF-1518, we tried to make some modifications in file /opt/Alfresco/tomcat/scripts/ctl.sh as follows:
From:
export JAVA_OPTS="-XX:MaxPermSize=512m -Xms128m -Xmx768m -Dalfresco.home=/opt/Alfresco -Dcom.sun.management.jmxremote"
To:export JAVA_OPTS=" -Dhttp.proxyHost=xxx.25.254.9 -Dhttp.proxyPort=8000 -XX:MaxPermSize=512m -Xms128m -Xmx768m -Dalfresco.home=/opt/Alfresco -Dcom.sun.management.jmxremote"
Restart Alfresco. No errors happened. Login to Alfresco Explorer was OK.
However, when login to Share, an error message displayed as:
The remote server may be unavailable or your authentication details have not been recognized.
We are getting stuck now and can't find any other clues to go further. Could any people in Alfresco QA Team please give us some hints which you did in proxy configuration to get Alfresco Share working with Google Docs. Thanks a lot.
