hello shindig community

i am trying to use the shindig 2.0 WAR from
http://repo2.maven.org/maven2/org/apache/shindig/shindig-server/2.0.0/shindig-server-2.0.0.war
within a tomcat 6.0 environment and connect an android app to it.

there the trouble starts ;)
the url's are usually "http://localhost:8080/PROJECT/.....";, so if i deploy my WAR file with the name "shindig.war" the url is: "http://localhost:8080/shindig/login.jsp"; (for the login-page)

all the url's within the WAR file are relative to "http://localhost:8080/"; (without the PROJECT name), so i had to modify the url's to make the redirections and location-lookups working.

that all went fine, but now i want to connect via open-social java client (android app) to shindig.
we are using the following provider-class settings:

setName("localhost");
setVersion("0.8");
setRestEndpoint("http://localhost:8080/shindig/social/rest/";);
setAuthorizeUrl("http://localhost:9090/shindig/oauth-provider/authorize";);
setAccessTokenUrl("http://localhost:9090/shindig/oauth-provider/access_token";);
setRequestTokenUrl("http://localhost:9090/shindig/oauth-provider/request_token";);

but we get an "localhost/127.0.0.1:9090 - Connection refused" exception
(netstat -an shows there is nothing listening on port 9090.. so we tried port 8080 too, same exception)

if we try to use the default GoogleProvider() class, it works. the code is:

setName("Google");
setVersion("0.8");
setRestEndpoint("http://www-opensocial.googleusercontent.com/api/";);
if (!useRest) {
setRpcEndpoint("http://www-opensocial.googleusercontent.com/api/rpc/";);
}
setAuthorizeUrl("https://www.google.com/accounts/OAuthAuthorizeToken";);
setAccessTokenUrl("https://www.google.com/accounts/OAuthGetAccessToken";);
setRequestTokenUrl("https://www.google.com/accounts/OAuthGetRequestToken";);
addRequestTokenParameter("scope", getRestEndpoint() + " " +getRpcEndpoint());

we get redirected to the googlesite, can login and get back to the android app

so our problems are:
1. is it right that we have to change the project-prefix in every .jsp and other files to fit the url-scheme "http://localhost:8080/PROJECT/.....";? or is there a way around that?

2. what could be the reason wyh we get an connection refused (-> tcp conn not possible??) to localhost:8080 where tomcat is definitely running?

any suggestions would be great

greetings

--
Christine Bauers, Softwareentwicklung


Lyncker&   Theis GmbH
Wilhelmstr. 16
65185 Wiesbaden
Germany

Fon +49 611/9006951
Fax +49 611/9406125


Handelsregister: HRB 23156 Amtsgericht Wiesbaden
Steuernummer: 4023897051
USt-IdNr.: DE255806399

Geschäftsführer:
Filip Lyncker,
Armin Theis

Reply via email to