Google App Engine 계정에 httpinvoker 기반 서버를 설정하려고했습니다. 나는 봄 문서에서 주어진 지시를 따랐지만, 효과가없는 것 같다. 누군가 내 코드를 검토하고 잘못된 점을 알려주실 수 있습니까?google appengine의 httpinvoker 오류 (org.springframework.remoting.RemoteAccessException)
내 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>
내 원격-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>
내 클라이언트 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>
내 클라이언트 측 코드 :
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);
}
예외가 계속 발생합니다 (org.springframework.remoting.RemoteAccessException) : [http://googleappId.appspot.com/remoting/AccountService]에서 HTTP 호출자 원격 서비스에 액세스 할 수 없습니다. 중첩 예외가 java.io.IOException : 성공적인 HTTP 응답을 수신하지 못했습니다. 상태 코드 = 500, 상태 메시지 = [내부 서버 오류]
동일한 문제가 있습니다. 변경 사항을 해결할 수 있었습니까? – shanti