Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4013412
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:22:05+00:00 2026-05-20T09:22:05+00:00

I do not know how to setup web.xml,myproject.gwt.xml, and spring-servlet.xml to integrate gwt and

  • 0

I do not know how to setup web.xml,myproject.gwt.xml, and spring-servlet.xml to integrate gwt and spring framework.
i was following this link and i got this issue integrating gwt and spring

this is myproject.gwt.xml

<module rename-to='ZzSampleGWT204Project'>
  <inherits name='com.google.gwt.user.User'/>
  <inherits name='com.google.gwt.user.theme.standard.Standard'/>
  <entry-point class='de.mxro.zz.zzsamplegwt204project.client.ZzSampleGWT204Project'/>
  <servlet path='/myService' class='de.mxro.zz.zzsamplegwt204project.server.MyServiceImpl'/>
  <source path='client'/>
  <source path='shared'/>
</module>

this is my web.xml file `

<!-- Servlets -->
<servlet>
    <servlet-name>spring</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>

<servlet>
    <servlet-name>myService</servlet-name>
    <servlet-class>de.mxro.zz.zzsamplegwt204project.server.MyServiceImpl</servlet-class>
</servlet>

<servlet-mapping>
    <servlet-name>spring</servlet-name>
    <url-pattern>/ZzSampleGWT204Project/*</url-pattern>
</servlet-mapping>

</web-app>

and this is my spring-servelt.xml file for spring servelet which defined above.

<beans>
    <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
    <property name="urlMap">
        <map>
            <entry key="myService">
                <ref bean="ServiceController"/>
            </entry>
        </map>
    </property>
</bean>

<bean id="ServiceController" class="de.mxro.zz.zzsamplegwt204project.server.ServletWrappingController">
<property name="servletName" value="myService"/>
<property name="servletInstance"><ref bean="myService"/>
</property>
</bean>

<bean id="myService" class="de.mxro.zz.zzsamplegwt204project.server.MyServiceImpl">
</bean>

`

this is onModuleLoad method

public void onModuleLoad() {
final Label label = new Label("this is a label");
final MyServiceAsync svc = (MyServiceAsync)GWT.create(de.mxro.zz.zzsamplegwt204project.client.MyService.class);
ServiceDefTarget endpoint = (ServiceDefTarget) svc;
endpoint.setServiceEntryPoint("services/myService");

final AsyncCallback callback = new AsyncCallback() {
    public void onSuccess(Object result) {
        label.setText(result.toString());
    }
    public void onFailure(Throwable ex) {
        label.setText(ex.toString());
    }
};

Button button = new Button("Click ME", new ClickHandler() {
    public void onClick(ClickEvent arg0) {
        svc.myMethod("Do Something", callback);
    }
});
RootPanel.get(null).add(button);

}

please let me know where i am wrong?

I would be happy if anyone can provide me a very simple project which shows how to integrate gwt and spring (MVC, Security) together.

Thanks Bahador Biglari

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:22:06+00:00Added an answer on May 20, 2026 at 9:22 am

    I assume that you can’t get the module to do anything, considering you provided no stack trace? You should make sure that whatever HTML file you’re working in, that you’ve actually loaded the GWT module into the page:

    <script type="text/javascript" language="javascript" src="stockwatcher/stockwatcher.nocache.js"></script>
    

    Also, you should think about using Eclipse if you aren’t already. Eclipse makes debugging, compiling, and modifying Java GWT code a lot easier.

    Look at this tutorial to at least get the GWT application itself working:

    http://code.google.com/webtoolkit/doc/1.6/tutorial/create.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I had the following select, and did not know the value to use
This just won't work. The problem is that I do not know enough to
If you do not know what Pipe Viewer is (I did not know about
I know many people who use computers every day, who do not know how
I faced a little trouble - I do not know if I can define
To recap for those .NET gurus who might not know the Java API: ConcurrentHashMap
I was asked a question in C last night and I did not know
I have seen 3d surface plots of data before but i do not know
One may not always know the Type of an object at compile-time, but may
As far as I know (not much I'll admit), the currently popular programming paradigms

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.