FeyFre / gwt-sl

Automatically exported from code.google.com/p/gwt-sl
Apache License 2.0
0 stars 0 forks source link

WARN appearing in tomcat logs on startup #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Don't know where else to ask.. so asking via an issue hah

I see this on tomcat startup:

2011-08-01 14:10:00,272 WARN  (main) spring.GWTHandler<107>: Bean '/me' already 
in mapping, skipping.
2011-08-01 14:10:00,272 WARN  (main) spring.GWTHandler<107>: Bean '/dashboard' 
already in mapping, skipping.
2011-08-01 14:10:00,273 WARN  (main) spring.GWTHandler<107>: Bean 
'/useraccount' already in mapping, skipping.
2011-08-01 14:10:00,273 WARN  (main) spring.GWTHandler<107>: Bean 
'/integrations' already in mapping, skipping.
2011-08-01 14:10:00,273 WARN  (main) spring.GWTHandler<107>: Bean '/metrics' 
already in mapping, skipping.

this is from my action-servlet.xml:

    <bean id="managedElementServiceImpl" class="com.fun.gwt.portal.server.ManagedElementServiceImpl">
        <property name="messageSource" ref="messageSource"></property>
    </bean>
    <bean id="dashboardServiceImpl" class="com.fun.gwt.portal.server.DashboardServiceImpl"/>
    <bean id="userAccountServiceImpl" class="com.fun.gwt.portal.server.UserAccountServiceImpl"/>
    <bean id="integrationsServiceImpl" class="com.fun.gwt.portal.server.IntegrationsServiceImpl"/>
    <bean id="metricsServiceImpl" class="com.fun.gwt.portal.server.MetricsServiceImpl"/>

    <!-- Portal GWT-RPC exposed stuff 
    the mappings below work because /portal/rpc is what the servlet mapping is in web.xml.  we can
    tweak that over there to make these more obvious etc
    -->
    <bean class="org.gwtwidgets.server.spring.GWTHandler">
        <property name="mappings">
          <map>
            <entry key="/me" value-ref="managedElementServiceImpl" />
            <entry key="/dashboard" value-ref="dashboardServiceImpl" />
            <entry key="/useraccount" value-ref="userAccountServiceImpl" />
            <entry key="/integrations" value-ref="integrationsServiceImpl" />
             <entry key="/metrics" value-ref="metricsServiceImpl" />
           <!-- <entry key="/webstudio" value-ref="managedElementServiceImpl" /> -->

        </map>
        </property>
    </bean>

So this file is loaded only once.. why then do I get the warning?

Original issue reported on code.google.com by rstud...@gmail.com on 1 Aug 2011 at 2:13

GoogleCodeExporter commented 8 years ago
I suspect your service beans are also annotated? The GWTHandler will first scan 
the application context for annotated beans (i.e. RemoteServiceRelativePath 
annotations) and then, additionally, register any mappings you specify.

PS: you can always try the forum for inquiries

Original comment by g.georgovassilis@gmail.com on 1 Aug 2011 at 5:49