Announcement Announcement Module
Collapse
No announcement yet.
httpinvoker not working on google app engine Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • httpinvoker not working on google app engine

    I've been trying to set up a httpinvoker based server on my google appengine account. I followed instructions given in spring documentation, but it doesn't seem to work. Can someone please review my code below and let me know whats wrong.

    My web.xml:


    <servlet>
    <servlet-name>remoting</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
    <servlet-name>remoting</servlet-name>
    <url-pattern>/remoting/*</url-pattern>
    </servlet-mapping>

    My remoting-servlet.xml

    <bean name="/AccountService" class="org.springframework.remoting.httpinvoker.Ht tpInvokerServiceExporter">
    <property name="service" ref="accountService"/>
    <property name="serviceInterface" value="app.server.AccountService"/>
    </bean>

    My client xml:

    <bean id="httpInvokerProxy" class="org.springframework.remoting.httpinvoker.Ht tpInvokerProxyFactoryBean">
    <property name="serviceUrl" value="http://<google appid>.appspot.com/remoting/AccountService"/>
    <property name="serviceInterface" value="app.server.AccountService"/>
    </bean>

    My client side code:
    public static void main(String[] args) throws Exception {
    ApplicationContext applicationContext = new ClassPathXmlApplicationContext("springClientConfig .xml");
    AccountService testService = (AccountService) applicationContext.getBean("httpInvokerProxy");
    String retVal = testService.getAccounts("test");
    System.out.println(retVal);
    }

    I keep getting a exception (org.springframework.remoting.RemoteAccessExceptio n):
    Could not access HTTP invoker remote service at [http://googleappid.appspot.com/remot...countService]; nested exception is java.io.IOException: Did not receive successful HTTP response: status code = 500, status message = [Internal Server Error]
    Last edited by coolyellowjacket; Mar 16th, 2013, 11:25 AM.

  • #2
    Please use [ code][/code ] tags when posting code, that way it remains readable...

    Check your server, there is an exception there somewhere, so check your logs.

    Comment

    Working...
    X