cancel
Showing results for 
Search instead for 
Did you mean: 

Error While READING HELP !

morpheus
Champ in-the-making
Champ in-the-making
Yes , i´ m writing my Bachelor Thesis ans using alfresco as a backend  with a mobile Client app, which accesses the WS-API.
In the Test of my app on that device the server responds the following ,while i´m READing an item!



HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Date: Tue, 26 Aug 2008 09:54:31 GMT
Connection: close
….

<url>http://localhost:8080/alfresco/download/direct/workspace/SpacesStore/1b0103e5-6934-11dd-a00b-4df09c3...</url>

so the server is sending an localhost address as the url for the content to a remote  device which tries then to get the content from that localhost address. which is actually totally nonsense !
<b> DOES ANYBODY KNOW WHERE DO I HAVE TO CONFIGURE THAT ADDRESS ????<b/>
and yes time is running out …. (like always *g*)
10 REPLIES 10

sbuckle
Champ in-the-making
Champ in-the-making
Try modifying the <Host> section in $TOMCAT_HOME/conf/server.xml

morpheus
Champ in-the-making
Champ in-the-making
thanks but that doesn´t fixe it

sbuckle
Champ in-the-making
Champ in-the-making
Oops! Fortunately I have two more suggestions that probably won't work either Smiley Happy

1) Try setting the host name of your machine. On Linux you can do this by using the "hostname" command.
2) Another option is to try modifying your hosts files; /etc/hosts on Linux


127.0.0.1      mydomain.com,localhost

morpheus
Champ in-the-making
Champ in-the-making
i don´t want to bother you , but after editing the hosts, like you told me, the server sends this URL, which is also nonsense

<url>http://ip6-localhost:8080/alfresco/download/direct/workspace/SpacesStore/1b0103e5-6934-11dd-a00b-4df...</url>

sbuckle
Champ in-the-making
Champ in-the-making
What did you put in your hosts file?

morpheus
Champ in-the-making
Champ in-the-making
127.0.0.1   abiege-nb.entwickler.de, localhost

sbuckle
Champ in-the-making
Champ in-the-making
Oops! Get rid of the comma that separates the host names - it shouldn't be there:


127.0.0.1   abiege-nb.entwickler.de localhost

You can also set the host name in /etc/sysconfig/network.

morpheus
Champ in-the-making
Champ in-the-making
ok thanks, i had a comma , that was the error !! , but why do i have to configure that in trhe system and not in that tomcat/alfrecso-bundle ?

sbuckle
Champ in-the-making
Champ in-the-making
I assumed that getHostName() was being called somewhere in the Java code - either Tomcat or Alfresco. As far as I am aware that invokes a system call to figure out what the host name of the machine is hence why it needs to be set correctly. For example:


try {
  InetAddress host = InetAddress.getLocalHost();
  System.out.println( host.getHostName() );
} catch (UnknownHostException e) { }
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.