google-code-export / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
1 stars 0 forks source link

spring integration #443

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

No unique bean of type [java.lang.String] is defined: expected single matching 
bean but found 2: [getSecurityCookieName, version]

What steps will reproduce the problem?
1. Using the gwt-platform configuration in a spring configuration which has at 
least one public String get... Bean definition in it's own Configuration 

What version of the product are you using? On what operating system?

0.7, Windows 7, tomcat 6, jetty, gwt 2.4 

Please provide any additional information below.

I think you should try to name your security cookie string ...

Original issue reported on code.google.com by sandro.h...@googlemail.com on 24 Oct 2012 at 5:12

GoogleCodeExporter commented 9 years ago

Original comment by goudreau...@gmail.com on 27 Nov 2012 at 2:33

GoogleCodeExporter commented 9 years ago
If you have something like 

@Bean(name="version")
public String getVersion() {
 return env.getProperty("app.version");
}

in your Configuration, and are using the gwt platform spring configuration; you 
will get: 

No unique bean of type [java.lang.String] is defined: expected single matching 
bean but found 2: [getSecurityCookieName, version]

Original comment by sandro.h...@googlemail.com on 27 Nov 2012 at 3:54