Problem in archetype that is using spring.

28 views
Skip to first unread message

Jiri Peinlich

unread,
Mar 23, 2013, 4:48:39 AM3/23/13
to gwt-pl...@googlegroups.com
Hello,

I tried to test the archetypes and i got two problems when testing the one with spring/request factory.

https://github.com/ArcBees/ArcBees-tools/tree/master/archetypes/gwtp-servletcontainer-requestfactory-spring

 I would like to write how i solved the issues in case somebody else would try to use the archetype.

After running the gwt:run goal - the main page did not load up. I checked the logs and saw that slf4j was not properly redicrected to log4j. I solved this by adding the following dependency to pom.xml:
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.7.2</version>
        </dependency>

This still did not help me to run the example. But now I could see additional exception in logs:
[INFO] Caused by: java.lang.ClassNotFoundException: org.springframework.beans.factory.NoUniqueBeanDefinitionException

After googling what this ment i solved the isue by updating the spring.version property from 3.2.0.RELEASE to the currently newest one 3.2.2.RELEASE.


Mrabti idriss

unread,
Mar 24, 2013, 3:59:28 AM3/24/13
to gwt-pl...@googlegroups.com
Does changing the Spring version to 3.2.2 solved your problem ?
If not when do you get that exception, is it when you try to call a Spring service using RequestFactory ? 
Reply all
Reply to author
Forward
0 new messages