On 11 Gru, 11:52, Charlie Collins <[email protected]> wrote:
> I would search for this issue on the GWT boards, and the GWT-SL boards
> (even if not using it, same issue).  If you are skipping the
> GWTShellServlet for hosted mode then nope, I don't know where to go
> from there.  Don't get me wrong, it probably can be done, I just don't
> know how you would handle it because I have zero experience with
> that.
>
>  (The shell servlet generates the policy files for hosted mode, the
> compiler creates them when you compile. Of course when running the
> shell you DONT need the compiler, so if not using the shell servlet
> you don't have either thing there. If you wanted to tack them on you
> might run the compiler and then copy them - but that would be s  l
> o         o        o        w, and I am not sure where they need to
> end up for the shell, don't know if just in the classpath is enough or
> not.)

That's the thing I'm trying to solve with my changes to plugin code.
RPC serialization policies are taken via
servletContext.getResourceAsStream(). I think that only one directory
is placed on servletContext classloader classpath - target/tomcat/
webapps/ROOT. Modification i've made copies files from resource
directories and from target/${output} to target/tomcat/webapps/ROOT
(with exclusion of web.xml which is created by gwt-maven plugin). As a
effect spring context files from WEB-INF are visible to
DispatcherServlets and RPC policies (from target/${output}) are on
servletContext classpath too. That solved problems with Spring
integration as for me.

I'm not sure why serialization policies are visible to app when
running without gwt-sl and with use of gwt-sl there are problems.
Maybe something has changed in Gwt serialization policy code but
wasn't copied to gwt-sl (in this library there are fragment of gwt
code).

As I've written on this group, I've uploaded archives with these
modifications:
maven-googlewebtoolkit2-plugin.tar.bz2 (3)
maven-googlewebtoolkit-support.tar.bz2 (2)
are the newest versions. They work fine for me.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"gwt-maven" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-maven?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to