The AntRun tip is already in the FAQ, and which phase really depends
on what you are trying to do. The docs show which phase each plugin
mojo/goal is bound to though, for example:
http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/gwt-mojo.html

"invokes the execution of the lifecycle phase compile prior to
executing itself."

Wish I had more concrete info your you, but I have never really worked
with GWT-SL, or any other means of redirecting the shell servlet and
needing the policy files to be manually moved around. If anybody wants
to submit a small concrete sample or something, would be happy to add
more to the FAQ or even the docs though.

On Oct 22, 5:46 am, hans <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I found this thread and it applies to me directly as well. Adding it
> explicitly to the FAQ is probably a good idea :) I now too, have
> solved the problem with an extra <copy> task in my ant-jobs. I am
> still a bit confused about which lifecycle-phase I should run it in.
> Can somebody clarify?
>
> Hans
>
> On Sep 17, 2:59 pm, Charlie Collins <[EMAIL PROTECTED]> wrote:
>
> > Agreed to it being more of a general GWT thing than necesarilly a GWT-
> > SL thing, but still, not a lot I can do about in GWT-Maven terms.  At
> > least we now understand it better though, in case it comes up again.
>
> > On Sep 17, 4:46 am, Holger <[EMAIL PROTECTED]> wrote:
>
> > > Charlie, thanks for looking into this.
> > > While I agree that it's not a GWT-Maven issue, it's more a GWT issue
> > > than
> > > a Spring/gwt-sl one, I think.
> > > If they would just generate the policy file into the right
> > > directory...
>
> > > Holger
>
> > > On 16 Sep., 03:18, Charlie Collins <[EMAIL PROTECTED]> wrote:
>
> > > > I looked into this more, the shell creates the rpc policy files on the
> > > > fly when GWT.create() is called, so, first problem is they aren't
> > > > there until they are created on the fly.  That is FINE for the
> > > > GWTShellServlet, but GWT-SL replaces the GWTShellServlet with some
> > > > Spring config stuff.  Once you opt out of the GWTShellServlet, you are
> > > > pretty much subverting that.
>
> > > > That's why I don't see the issue, I am using standard RPC, not GWT-SL/
> > > > Spring.
>
> > > > There have been a few questions about this in general on the GWT-SL
> > > > list.  This is not a GWT-Maven issue, it's a GWT-SL and general Spring
> > > > with GWT issue, IMO.  Now, if you ask those guys they are probably
> > > > just going to say don't use the shell, use noserver, which is
> > > > unfortunate (noserver has a few issues, not the least of which are
> > > > that it doesn't support GWTTestCase tests at all), but probably what
> > > > most people are doing when they want to use Spring like that.
>
> > > > Oh the joys of Spring ;).
>
> > > > On Sep 15, 8:09 am, Charlie Collins <[EMAIL PROTECTED]> wrote:
>
> > > > > I did pass a serializable bean using RPC, the simpledatasample is what
> > > > > I am using to investigate, try to reproduce, this 
> > > > > issue:http://gwt-maven.googlecode.com/svn/trunk/maven-googlewebtoolkit2-plu....
> > > > > It passes the java.io.Serializable declared "Entry" element (and a
> > > > > List<Entry>) around via RPC.
>
> > > > > I did not try to use Spring or Hb4gwt, no, and I don't plan to, but
> > > > > that shouldn't matter, RPC should be RPC no matter how it's wired (at
> > > > > least I don't think it should).
>
> > > > > I will re-open the issue though, and look for more definitive answers
> > > > > (exactly if the policy file is needed in the shell or not, and if so
> > > > >getit resolved, etc).
>
> > > > > On Sep 14, 3:35 pm, Holger <[EMAIL PROTECTED]> wrote:
>
> > > > > > Charlie,
>
> > > > > > did you try the situation I described, e.g. pass serializable beans
> > > > > > as parameter or return value of a spring configured service exported
> > > > > > via gwt-sl (HB4GWTRPCServiceExporter in particular)?
>
> > > > > > I receive the following exception in the gwt shell:
>
> > > > > > [INFO] StandardContext[]ERROR: The serialization policy file '/
> > > > > > com.google.gwt.sample.stockwatcher.StockWatcher/
> > > > > > 21D750EA65B9E586B24F4D6634D3C366.gwt.rpc' was not found; did you
> > > > > > forget to include it in this deployment?
> > > > > > [INFO] StandardContext[]WARNING:FailedtogettheSerializationPolicy
> > > > > > '21D750EA65B9E586B24F4D6634D3C366' for module 
> > > > > > 'http://localhost:8888/
> > > > > > com.google.gwt.sample.stockwatcher.StockWatcher/'; a legacy, 1.3.3
> > > > > > compatible, serialization policy will be used.  You may experience
> > > > > > SerializationExceptions as a result.
> > > > > > [WARN] StandardContext[]Exception while dispatching incoming RPC 
> > > > > > call
> > > > > > java.lang.RuntimeException:
> > > > > > com.google.gwt.user.client.rpc.SerializationException: Type
> > > > > > 'com.google.gwt.sample.stockwatcher.domain.StockMarket' was not
> > > > > > assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and 
> > > > > > did
> > > > > > not have a custom field serializer.  For security purposes, this 
> > > > > > type
> > > > > > will not be serialized.
> > > > > >         at
> > > > > > org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleExporterProcessingException(GWTRPCServiceExporter.java:
> > > > > > 344)
> > > > > >         at
> > > > > > org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall(GWTRPCServiceExporter.java:
> > > > > > 313)
> > > > > >         at
> > > > > > com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:
> > > > > > 86)
> > > > > >         at
> > > > > > org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest(GWTRPCServiceExporter.java:
> > > > > > 363)
> > > > > >         at
> > > > > > org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:
> > > > > > 49)
> > > > > >         at
> > > > > > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:
> > > > > > 875)
> > > > > >         at
> > > > > > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:
> > > > > > 809)
> > > > > >         at
> > > > > > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:
> > > > > > 571)
> > > > > >         at
> > > > > > org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:
> > > > > > 511)
> > > > > >         at 
> > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> > > > > >         at 
> > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > > > >         at
> > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> > > > > > 237)
> > > > > >         at
> > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> > > > > > 157)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> > > > > > 214)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
> > > > > > 104)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> > > > > > 520)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:
> > > > > > 198)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> > > > > > 152)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
> > > > > > 104)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> > > > > > 520)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> > > > > > 137)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
> > > > > > 104)
> > > > > >         at
> > > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> > > > > > 118)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
> > > > > > 102)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> > > > > > 520)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
> > > > > > 109)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
> > > > > > 104)
> > > > > >         at
> > > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> > > > > > 520)
> > > > > >         at 
> > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
> > > > > > 929)
> > > > > >         at 
> > > > > > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
> > > > > > 160)
> > > > > >         at
> > > > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> > > > > > 799)
> > > > > >         at org.apache.coyote.http11.Http11Protocol
> > > > > > $Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> > > > > >         at
> > > > > > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
> > > > > > 577)
> > > > > >         at org.apache.tomcat.util.threads.ThreadPool
> > > > > > $ControlRunnable.run(ThreadPool.java:683)
> > > > > >         at java.lang.Thread.run(Thread.java:619)
> > > > > > Caused by: com.google.gwt.user.client.rpc.SerializationException: 
> > > > > > Type
> > > > > > 'com.google.gwt.sample.stockwatcher.domain.StockMarket' was not
> > > > > > assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and 
> > > > > > did
> > > > > > not have a custom field serializer.  For security purposes, this 
> > > > > > type
> > > > > > will not be serialized.
> > > > > >         at
> > > > > > com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:
> > > > > > 140)
> > > > > >         at
> > > > > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
> > > > > > 581)
> > > > > >         at
> > > > > > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
> > > > > > 129)
> > > > > >         at 
> > > > > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> > > > > > $ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
> > > > > >         at
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
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