problem in connecting Public Alfresco CMIS Server
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2012 02:07 AM
Hi I'm new to Alfresco, I'm trying to connect to alfresco public server via my java code.Here is the code
But I'm getting the following exception
Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Cannot access http://cmis.alfresco.com/: Connection refused: connect
Can someone tell me what is the mistake I'm doing??
Regards,
Raghu
Map<String, String> parameter = new HashMap<String, String>(); parameter.put(SessionParameter.USER, "admin"); parameter.put(SessionParameter.PASSWORD,"admin"); //specify connection settings parameter.put(SessionParameter.ATOMPUB_URL, "http://cmis.alfresco.com/"); parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value()); //set alfresco object factory parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl"); //create a session SessionFactory factory = SessionFactoryImpl.newInstance(); List<Repository> repositories = factory.getRepositories(parameter); for(Repository r: repositories) { System.out.println("Id: " + r.getId()); System.out.println("Name: " + r.getName()); System.out.println("Description: " + r.getDescription()); } System.out.println(); Session session = repositories.get(0).createSession();
But I'm getting the following exception
Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Cannot access http://cmis.alfresco.com/: Connection refused: connect
Can someone tell me what is the mistake I'm doing??
Regards,
Raghu
Labels:
- Labels:
-
Archive
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2012 02:15 AM
From the server did you redirect the ports
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2012 02:34 AM
From the server did you redirect the ports
Hi bisana ,
I'm not using any web server it's a standalone code..

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2012 02:44 AM
Hi raghu
You need to setup in the server the firewall rules to forward requests on TCP ports 139/445 to TCP 1139/1445 and UDP ports 137/138 to UDP 1137/1138.
I have setup a CIFS server, and I am using windows XP using network neighborhood I am able to access the folder, I am not using web interface to access it
from the url http://wiki.alfresco.com/wiki/File_Server_Configuration
You need to setup in the server the firewall rules to forward requests on TCP ports 139/445 to TCP 1139/1445 and UDP ports 137/138 to UDP 1137/1138.
I have setup a CIFS server, and I am using windows XP using network neighborhood I am able to access the folder, I am not using web interface to access it
from the url http://wiki.alfresco.com/wiki/File_Server_Configuration
echo 1 > /proc/sys/net/ipv4/ip_forwardmodprobe iptable_natiptables -Fiptables -t nat -Fiptables -P INPUT ACCEPTiptables -P FORWARD ACCEPTiptables -P OUTPUT ACCEPTiptables -t nat -A PREROUTING -p tcp –dport 445 -j REDIRECT –to-ports 1445iptables -t nat -A PREROUTING -p tcp –dport 139 -j REDIRECT –to-ports 1139iptables -t nat -A PREROUTING -p udp –dport 137 -j REDIRECT –to-ports 1137iptables -t nat -A PREROUTING -p udp –dport 138 -j REDIRECT –to-ports 1138
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2012 02:59 AM
Hi bisana,
Thanks for info, I'll check firewall rules.
Regards,
Raghu
Thanks for info, I'll check firewall rules.
Regards,
Raghu
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2015 03:26 AM
Any news? I have exactly the sane problem.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2015 04:58 AM
Hi,
The URL to use is http://cmis.alfresco.com/cmisatom.
For example, here is how to check which CMIS version that is supported:
Also, looks like you are mixing CMIS and CIFS, two different things….
The URL to use is http://cmis.alfresco.com/cmisatom.
For example, here is how to check which CMIS version that is supported:
martin@gravitonian:~$ curl -u admin:admin http://cmis.alfresco.com/cmisatom | xmlstarlet sel -T -t -m '//cmis:cmisVersionSupported' -c . -n % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 28557 0 28557 0 0 311k 0 –:–:– –:–:– –:–:– 313k1.0
Also, looks like you are mixing CMIS and CIFS, two different things….
