Results 1 to 3 of 3

Thread: httpinvoker not working on google app engine

  1. #1

    Default 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 at 10:25 AM.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Apr 2013
    Posts
    1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •