You don't have to worry about sifting through the chaff to get to my answers
:)

On Thu, Feb 5, 2009 at 9:41 AM, Charlie Collins
<[email protected]>wrote:

> I like Brian's answers to the questions here, mine are long and wordy,
> he cuts to the chase ;).
>
> On Feb 4, 12:34 pm, Brian Cribbs <[email protected]> wrote:
> > Uncomment mergewebxml to fix your issue.
> >
> > On Wed, Feb 4, 2009 at 12:28 PM, dialloma <[email protected]> wrote:
> >
> > > Hello group,
> >
> > > I have a big entreprise project and I would like ti use your plugin to
> > > create my GWT project that will build by maven. I created a GWT
> > > project using this articlehttp://stephennimmo.com/blog/?p=108. I
> > > created also one GWt-RPC inside project. In local (developpement
> > > environnement), all works fine. I can call my Remote method and I get
> > > response. But the problem is when I generate war (mvn package ar
> > > install), and when I deploy it in Tomcat installed in my local
> > > machine, the GWT-RPC does'nt work. The client work fine beause all of
> > > my component are displyed. But the server side has problem.
> >
> > > My second question is, is there any archetype that I can use to create
> > > GWT-RPC project (not simple GWT project). May be there are somes
> > > configuration to be done in the POM file if we use GWT-RPC insted GWT
> > > (just client)
> >
> > > Thanks
> >
> > > Here my pom look:
> >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
> > >www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
> > > maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd";>
> > >        <!--
> > >                GWT-Maven archetype generated POM
> > >        -->
> > >        <modelVersion>4.0.0</modelVersion>
> > >        <groupId>foo.bar</groupId>
> > >        <artifactId>foobar</artifactId>
> > >        <packaging>war</packaging>
> > >        <!--  <version>1.0-SNAPSHOT</version> -->
> > >        <version>gwtMavenService</version>
> >
> > >        <name>gwt-maven-archetype-project</name>
> >
> > >        <!--  include pluginRepository and repository for GWT-Maven -->
> > >        <pluginRepositories>
> > >        <pluginRepository>
> > >            <id>gwt-maven-plugins</id>
> > >            <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</
> > > url>
> > >        </pluginRepository>
> > >    </pluginRepositories>
> > >    <repositories>
> > >        <repository>
> > >            <id>gwt-maven</id>
> > >            <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</
> > > url>
> > >        </repository>
> > >    </repositories>
> >
> > >        <!--  convenience to define GWT version in one place -->
> > >        <properties>
> > >                <gwtVersion>1.5.3</gwtVersion>
> > >        </properties>
> >
> > >        <dependencies>
> > >            <!--  GWT deps (from central repo) -->
> > >                <dependency>
> > >                        <groupId>com.google.gwt</groupId>
> > >                        <artifactId>gwt-servlet</artifactId>
> > >                        <version>${gwtVersion}</version>
> > >                        <scope>runtime</scope>
> > >                </dependency>
> > >                <dependency>
> > >                        <groupId>com.google.gwt</groupId>
> > >                        <artifactId>gwt-user</artifactId>
> > >                        <version>${gwtVersion}</version>
> > >                        <scope>provided</scope>
> > >                </dependency>
> > >                <dependency>
> > >                        <groupId>com.google.gwt</groupId>
> > >                        <artifactId>gwt-dev</artifactId>
> > >                        <version>${gwtVersion}</version>
> > >                        <classifier>${platform}-libs</classifier>
> > >                        <type>zip</type>
> > >                        <scope>provided</scope>
> > >                </dependency>
> > >                <dependency>
> > >                        <groupId>com.google.gwt</groupId>
> > >                        <artifactId>gwt-dev</artifactId>
> > >                        <version>${gwtVersion}</version>
> > >                        <classifier>${platform}</classifier>
> > >                        <scope>provided</scope>
> > >                </dependency>
> >
> > >                <!-- Dépendance GXT 1.2.2-->
> > >                <dependency>
> > >                        <groupId>com.extjs.gxt.ui.client</groupId>
> > >                        <artifactId>gxt</artifactId>
> > >                        <version>1.2.2</version>
> > >                        <!-- <classifier>${platform}</classifier>  -->
> > >                        <scope>provided</scope>
> > >                </dependency>
> >
> > >                <!--  test -->
> > >                <dependency>
> > >                        <groupId>junit</groupId>
> > >                        <artifactId>junit</artifactId>
> > >                        <version>4.1</version>
> > >                        <scope>test</scope>
> > >                </dependency>
> > >        </dependencies>
> >
> > >        <build>
> > >                <plugins>
> > >                    <!--  configure the GWT-Maven plugin -->
> > >                        <plugin>
> > >                                <groupId>com.totsp.gwt</groupId>
> >
> > >  <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
> > >                                <version>2.0-beta26</version>
> > >                                <configuration>
> > >                                        <compileTargets>
> >
> > >  <value>foo.bar.Application</value>
> > >                                        </compileTargets>
> >
> > >  <runTarget>foo.bar.Application/Application.html</runTarget>
> > >                                        <logLevel>INFO</logLevel>
> > >                                        <style>DETAILED</style>
> > >                                        <noServer>false</noServer>
> >
> > >  <extraJvmArgs>-Xmx512m</extraJvmArgs>
> >
> > >  <gwtVersion>${gwtVersion}</gwtVersion>
> > >                                </configuration>
> > >                                <executions>
> > >                                        <execution>
> > >                                                <goals>
> > >                                                        <!--
> > > <goal>mergewebxml</goal>-->
> > >                                                        <!--
> > > <goal>i18n</goal>-->
> > >
>  <goal>compile</goal>
> > >                            <goal>test</goal>
> > >                                                </goals>
> > >                                        </execution>
> > >                                </executions>
> > >                        </plugin>
> > >                        <!--  Use the dependency plugin to unpack
> > > gwt-dev-PLATFORM-libs.zip
> > > -->
> > >                        <!--
> > >                                (this is a replacement for the old
> > > "automatic" mode - useful if
> > > you
> > >                                don't have GWT installed already, or you
> > > just want a maven way to
> > >                                handle gwt deps)
> > >                        -->
> > >                        <plugin>
> > >
>  <groupId>org.apache.maven.plugins</groupId>
> >
> > >  <artifactId>maven-dependency-plugin</artifactId>
> > >                                <executions>
> > >                                        <execution>
> > >                                                <id>unpack</id>
> > >                                                <phase>compile</phase>
> > >                                                <goals>
> > >
>  <goal>unpack</goal>
> > >                                                </goals>
> > >                                                <configuration>
> > >                                                        <artifactItems>
> >
> > >  <artifactItem>
> >
> > >  <groupId>com.google.gwt</groupId>
> >
> > >  <artifactId>gwt-dev</artifactId>
> >
> > >  <version>${gwtVersion}</version>
> >
> > >  <classifier>${platform}-libs</classifier>
> >
> > >  <type>zip</type>
> >
> > >  <overWrite>false</overWrite>
> >
> > >  <outputDirectory>${settings.localRepository}/com/google/gwt/
> > > gwt-dev/${gwtVersion}</outputDirectory>
> >
> > >  </artifactItem>
> > >                                                        </artifactItems>
> > >                                                </configuration>
> > >                                        </execution>
> > >                                </executions>
> > >                        </plugin>
> > >                        <!--
> > >                If you want to use the target/web.xml file mergewebxml
> > > produces,
> > >                tell the war plugin to use it.
> > >                Also, exclude what you want from the final artifact
> > > here.
> > >            -->
> > >            <plugin>
> > >                <groupId>org.apache.maven.plugins</groupId>
> > >                <artifactId>maven-war-plugin</artifactId>
> > >                <configuration>
> > >                    <!-- <webXml>target/web.xml</webXml>-->
> > >                    <warSourceExcludes>.gwt-tmp/**</
> > > warSourceExcludes>
> > >                </configuration>
> > >            </plugin>
> > >                        <!--  tell the compiler we can use 1.5 -->
> > >                        <plugin>
> > >                <groupId>org.apache.maven.plugins</groupId>
> > >                <artifactId>maven-compiler-plugin</artifactId>
> > >                <configuration>
> > >                    <source>1.5</source>
> > >                    <target>1.5</target>
> > >                </configuration>
> > >            </plugin>
> > >                </plugins>
> > >        </build>
> >
> > >        <!--  profiles (with activation per platform) -->
> > >        <profiles>
> > >                <profile>
> > >                        <id>gwt-dev-windows</id>
> > >                        <properties>
> > >                                <platform>windows</platform>
> > >                        </properties>
> > >                        <activation>
> > >                                <activeByDefault>true</activeByDefault>
> > >                                <os>
> > >                                        <family>Windows</family>
> > >                                </os>
> > >                        </activation>
> > >                </profile>
> > >                <profile>
> > >                        <id>gwt-dev-mac</id>
> > >                        <properties>
> > >                                <platform>mac</platform>
> > >                        </properties>
> > >                        <activation>
> >
> > ...
> >
> > 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