Cannot make RPC call to the server

22 views
Skip to first unread message

iva...@gmail.com

unread,
Feb 18, 2013, 12:42:50 PM2/18/13
to gwt...@googlegroups.com
Hi there,

I'm using Spring 3.1, GWT 2.5, GWT SL 1.1

When I try to make RPC call, I get the following error

The call failed on the server; see server log for details

[ERROR] 500 - GET /SmbApp/service/authenticate (127.0.0.1) 57 bytes

Please help

Ivan


--------------------------------------------------------------------------------------------------------------

web.xml

context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/applicationContext.xml </param-value>
    </context-param>
   
    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

<servlet>
        <servlet-name>handler</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
   
    <servlet-mapping>
        <servlet-name>handler</servlet-name>
        <url-pattern>/SmbApp/service/*</url-pattern>
    </servlet-mapping>
   
    <servlet>
        <servlet-name>ResultDownloadServlet</servlet-name>
        <servlet-class>com.smb.app.gwt.server.ServiceImpl.ResultDownloadServlet</servlet-class>
    </servlet>
   
    <servlet-mapping>
        <servlet-name>ResultDownloadServlet</servlet-name>
        <url-pattern>/SmbApp/service/resultDownload</url-pattern>
    </servlet-mapping>

--------------------------------------------------------------------------------------------------------------

handler-servlet.xml

<bean id="accountService" class="com.smb.app.gwt.server.ServiceImpl.AccountServiceImpl" />
   
    <bean id="authenticationService" class="com.smb.app.gwt.server.ServiceImpl.AuthenticationServiceImpl" >
        <property name="userRoleProperty" ref="userRoleProperty" />
    </bean>
   
    <bean id="contactService" class="com.smb.app.gwt.server.ServiceImpl.ContactServiceImpl" />
   
    <bean id="productionService" class="com.smb.app.gwt.server.ServiceImpl.ProductionServiceImpl" />   
   
    <bean id="payrollService" class="com.smb.app.gwt.server.ServiceImpl.PayrollServiceImpl" />

    <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="mappings">
            <map>
                <entry key="/account" value-ref="accountService" />
                <entry key="/authenticate" value-ref="authenticationService" />
                <entry key="/contact" value-ref="contactService" />
                <entry key="/production" value-ref="productionService" />
                <entry key="/payroll" value-ref="payrollService" />
            </map>
        </property>
    </bean>


--------------------------------------------------------------------------------------------------------------

applicationContext.xml

<context:annotation-config />
   
    <tx:annotation-driven />
   
    <context:component-scan base-package="com.smb.app.gwt.server" />
   
    <util:properties id="configurationProperty" location="classpath:com/smb/app/gwt/server/resource/configurationProperty.properties" />

    <util:properties id="userRoleProperty" location="classpath:com/smb/app/gwt/server/resource/userRole.properties" />
   


--------------------------------------------------------------------------------------------------------------

com.smb.app.gwt.server.ServiceImpl.AuthenticationServiceImpl

@SuppressWarnings("serial")
public class AuthenticationServiceImpl extends GWTSpringController implements AuthenticationService {


--------------------------------------------------------------------------------------------------------------

com.smb.app.gwt.client.service.security.AuthenticationService

@RemoteServiceRelativePath("service/authenticate")
public interface AuthenticationService extends RemoteService {

Reply all
Reply to author
Forward
Message has been deleted
0 new messages