Still no ideas?
On 5 mai, 10:42, Emeric Heneffe wrote:
> Hello,
> I'm using a gwt application and I have a problem when I send pojo from
> core module (not client package) to server side. Indeed, when I send
> any pojo with properties, in server side, all properties become
> null... Here is the configuration and the package I use :
>
> core.lib -> librairies
> core.src.java.core.datamodel -> all Pojos
> core.src.java.core.dao -> all dao
>
> web.lib -> librairies used for gxt, gilead...
> web.src.java.web.client -> some classes of gxt
> web.src.java.web.server -> server classes
> web.src.resources.web -> gwt.xml file :
>
> Here is the gwt.xml file
> [code]
> EN" "http://google-web-toolkit.googlecode.com/svn/releases/2.0/distro-
> source/core/src/gwt-module.dtd"> EN"
> "http://google-web-toolkit.googlecode.com/svn/releases/2.0/distro-
> source/core/src/gwt-module.dtd">
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> [/code]
>
> In web.src.resources, we can find core.gwt.xml, defining bind with
> pojo :
>
> [code]
> EN"
> "http://google-web-toolkit.googlecode.com/svn/releases/2.0/distro-
> source/core/src/gwt-module.dtd">
>
> <-source path='core/datamodel'/>
>
>
> [/code]
>
> web.web.WEB-INF -> web.xml, applicationContext.xml, handler-
> servlet.xml
>
> Here is my web.xml
>
> [code]
> http://www.w3.org/2001/
> XMLSchema-instance" xsi:schemaLocation="ht[code]
>
> http://java.sun.com/xml/ns/javaee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
> version="2.5">
>
>
>
> contextConfigLocation
>
> classpath:/spring-config-web.xml
> classpath:dao-config-test.xml
> /WEB-INF/handler-servlet.xml
> /WEB-INF/applicationContext.xml
>
>
>
> org.springframework.web.context.ContextLoaderListener listener-class>
>
>
>
> org.springframework.web.util.Log4jConfigListener listener-class>
>
>
>
> handler
> org.springframework.web.servlet.DispatcherServlet servlet-class>
> 1
>
>
> handler
> /argf/service/*
>
>
> [/code]
>
> And here is my handler-servlet
>
> [code]
> xmlns="http://www.springframework.org/schema/beans";
> xmlns:xsi="http://www.w3.org/
> 2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/
> schema/p" xmlns:context="http://www.springframework.org/schema/
> context" xmlns:tx="http://www.springframework.org/schema/tx";
> xmlns:aop="http://www.springframework.org/schema/aop";
> xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-2.5.xsdhttp://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-2.5.xsdhttp://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-2.0.xsd";>
> id="urlMapping[code]
>
> http://www.springframework.org/schema/beans";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:p="http://www.springframework.org/schema/p";
> xmlns:context="http://www.springframework.org/schema/context";
> xmlns:tx="http://www.springframework.org/schema/tx";
> xmlns:aop="http://www.springframework.org/schema/aop";
> xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-2.5.xsdhttp://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-2.5.xsdhttp://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-2.0.xsd";>
>
> class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
>
>
>
>
>
>
>
> class="org.gwtwidgets.server.spring.GWTRPCServiceExporter">
>
> value="web.client.ARGFService"/>
>
>
> [/code]
>
> I don't put exactly the complete path of package.
>
> The fact is that, if I put my datamodel in web.client, everything
> works and my pojos are correctly transfered. But I want to have no
> dependencies between datamodel and gwt, so I prefere use a core
> package independant...
>
> Regards,
> Emeric
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group
> athttp://groups.google.com/group/google-web-toolkit?hl=en.
--
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.c