Sorry for the multiple replys there. Gmail weirded out on me for a sec.

On Fri, Feb 27, 2009 at 10:22 AM, Robert kebernet Cooper
<[email protected]> wrote:
> Are you using 1.6.x? The switch from tomcat to Jetty is going to
> critically change how the shell startup needs to work in order to get
> non-vanilla-GWT stuff working in the HostedMode. I, or someone, is
> going to have to dig through the new source and see how they are
> bootstrapping jetty now.
>
> On Fri, Feb 27, 2009 at 4:31 AM, Emerout <[email protected]> wrote:
>>
>> Hi,
>>
>> I'm trying to setup Spring to work with GWT on server side.
>>
>> I have a custom web.xml, with its associated mywebapp-servlet.xml
>> context file :
>> <web-app>
>>        <display-name>GWT-sandbox</display-name>
>>        <servlet>
>>                <servlet-name>mywebapp</servlet-name>
>>                
>> <servlet-class>org.springframework.web.servlet.DispatcherServlet</
>> servlet-class>
>>        </servlet>
>>        <servlet-mapping>
>>                <servlet-name>mywebapp</servlet-name>
>>                <url-pattern>*.rpc</url-pattern>
>>        </servlet-mapping>
>>        <welcome-file-list>
>>                <welcome-file>index.html</welcome-file>
>>        </welcome-file-list>
>> </web-app>
>>
>> DispatcherServlet handle an GWT-RPC controller.
>>
>> Config for gwt-maven is :
>>                    <!--  configure the GWT-Maven plugin -->
>>                        <plugin>
>>                                <groupId>com.totsp.gwt</groupId>
>>                                
>> <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
>>                                <version>2.0-beta26</version>
>>                                <configuration>
>>                                        <compileTargets>
>>                                                
>> <value>experian.Application</value>
>>                                        </compileTargets>
>>                                        
>> <runTarget>experian.Application/Application.html</runTarget>
>>                                        
>> <webXml>${basedir}/src/main/webapp/WEB-INF/web.xml</webXml>
>>
>>                                        <logLevel>DEBUG</logLevel>
>>                                        <style>DETAILED</style>
>>                                        <noServer>false</noServer>
>>                                        <extraJvmArgs>-Xmx512m</extraJvmArgs>
>>                                        <gwtVersion>${gwtVersion}</gwtVersion>
>>                                        <port>8081</port>
>>                                </configuration>
>>                                <executions>
>>                                        <execution>
>>                                                <goals>
>>                                                        <goal>compile</goal>
>>
>> <goal>mergewebxml</goal>
>>                                                </goals>
>>                                        </execution>
>>                                </executions>
>>                        </plugin>
>>                       [.........]
>>                       <plugin>
>>                            <artifactId>maven-antrun-plugin</artifactId>
>>                              <executions>
>>                                <execution>
>>                                  <id>applicationContextCopy</id>
>>                                  <phase>compile</phase>
>>                                  <configuration>
>>                                    <tasks>
>>                                      <copy
>>                                        
>> file="${basedir}/src/main/webapp/WEB-INF/mywebapp-
>> servlet.xml"
>>                                        
>> toFile="${basedir}/target/tomcat/webapps/ROOT/WEB-
>> INF/mywebapp-servlet.xml" />
>>                                    </tasks>
>>                                  </configuration>
>>                                <goals>
>>                                  <goal>run</goal>
>>                                </goals>
>>                              </execution>
>>                            </executions>
>>                          </plugin>
>>
>> In deployed mode, generating and deploying WAR file, all is fine : the
>> Spring context starts successfully.
>> In hosted mode, running mvn gwt:gwt, it does not start at all, and so
>> all requests to RPC services fail.
>>
>> I have checked that generated web.xml files are merged by gwt-maven.
>>
>> Strange behaviour :
>> if I put an error in web.xml file, by example a misspelled classname
>> for dispatcher class,
>> When starting, Gwt does not throw any exception and starts as if it
>> ignore the gwt-maven generated web.xml file.
>>
>> Thanks for your help.
>>
>> >>
>>
>
>
>
> --
> :Robert "kebernet" Cooper
> ::[email protected]
> Alice's cleartext
> Charlie is the attacker
> Bob signs and encrypts
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E8759F8
>



-- 
:Robert "kebernet" Cooper
::[email protected]
Alice's cleartext
Charlie is the attacker
Bob signs and encrypts
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9E8759F8

--~--~---------~--~----~------------~-------~--~----~
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