Hello,

I wrote a program in Gwt1.7 + smartGwt1.2. It works ok in host mode.
But when deploy in tomcat, screen and events are ok but rpc don't
work.
I think it 's a configuration problem, i give some code.

web.xml
[CODE]
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/
ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
        <display-name>
        IndicatorGwt</display-name>
        <servlet>
                <servlet-name>IndicatorIhmServiceDb</servlet-name>
                <servlet-class>
                
indicator.main.web.server.IndicatorIhmServiceDbImpl</servlet-class>
        </servlet>
        <servlet-mapping>
                <servlet-name>IndicatorIhmServiceDb</servlet-name>
                <url-pattern>/IndicatorIhmServiceDb</url-pattern>
        </servlet-mapping>
        <welcome-file-list>
                <welcome-file>IndicatorIhm.html</welcome-file>
        </welcome-file-list>
</web-app>
[/CODE]


IndicatorIhm.gwt.xml
[CODE]
<?xml version="1.0" encoding="UTF-8"?>
<module>

        <!-- Inherit the core Web Toolkit stuff.                  -->
        <inherits name="com.google.gwt.user.User"/>
        <inherits name="com.smartgwt.SmartGwt"/>
        <inherits name="com.google.gwt.visualization.Visualization"/>

        <!-- Specify the app entry point class.                   -->
        <entry-point class="indicator.main.web.client.IndicatorIhm"/>

        <inherits name="com.google.gwt.user.theme.standard.Standard"/>
        <!-- <inherits name="com.google.gwt.user.theme.chrome.Chrome"/> -->
        <!-- <inherits name="com.google.gwt.user.theme.dark.Dark"/> -->

        <source path='client'/>
        <source path='bean'/>

        <servlet
                class="indicator.main.web.server.IndicatorIhmServiceDbImpl"
                path="/IndicatorIhmServiceDb"/>

</module>
[/CODE]


EntryPoint
[CODE]
public class IndicatorIhm implements EntryPoint {

        private IndicatorScreen indicatorScreen;
        private IndicatorIhmServiceDbAsync async;
        private PeriodicityIndicator periodicityIndicator;
        private int timeGmtOffset;

        public void onModuleLoad() {

                //initialisations
                indicatorScreen =  new IndicatorScreen();
                initData();

                //les events d'ihm
                (...)



                //affichage
                indicatorScreen.draw();
        }

        public void  initData()
        {


                async = IndicatorIhmServiceDb.Util.getInstance();


                async.getAllSearchIndicator(new SearchIndicatorCallback());

                (...)
        }
        (...)
}
[/CODE]



IndicatorIhmServiceDb
[CODE]
@RemoteServiceRelativePath("IndicatorIhmServiceDb")
public interface IndicatorIhmServiceDb extends RemoteService {

        public static class Util {

                public static IndicatorIhmServiceDbAsync getInstance() {

                        return GWT.create(IndicatorIhmServiceDb.class);
                }
        }

        public SearchIndicatorList getAllSearchIndicator();
        (...)
}

[/CODE]


IndicatorIhmServiceDbAsync
[CODE]
public interface IndicatorIhmServiceDbAsync {

        public void getAllSearchIndicator(AsyncCallback<SearchIndicatorList>
callback);
        (...)
}
[/CODE]


IndicatorIhmServiceDbImpl
[CODE]
public class IndicatorIhmServiceDbImpl extends RemoteServiceServlet
implements IndicatorIhmServiceDb {

        private static final long serialVersionUID = 0L;

        private IDao dao;


        public IDao getDao()
        {
                return dao;
        }

        public void setDao(IDao dao)
        {
                this.dao = dao;
        }

        public void setDao()
        {
                this.dao = new Dao();
        }


        public SearchIndicatorList getAllSearchIndicator()
        {
                setDao();
                return dao.getAllSearchIndicator();
        }

        (...)
}
[/CODE]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to