Hello,

I'm trying to integrate GWT 1.6 inside Spring DM Server but I have
some problems :

I would like to run the Hello RCP example in SDMS environement, I have
no problem
to display the page (http://localhost/MyFirstApplicationGWT_1_6_4/)
but the RCP call failed.
In firebug I have this POST request unsatified (404):

5|0|6|http://localhost/MyFirstApplicationGWT_1_6_4/
myfirstapplicationgwt_1_6_4/|29F4EA1240F157649C12466F01F46F60
|fr.webskin.maquette.web.gwt.client.GreetingService|greetServer|
java.lang.String|GWT User|1|2|3|4|1|5
|6|

I think it is just a problem of servlet configuration ...

Here is some of my devel configuration :

***********************************************************************************
*********************** project tree
**********************************************

|-- build.xml
|-- src
|   `-- main
|       |-- java
|       |   `-- fr
|       |       `-- webskin
|       |           `-- maquette
|       |               `-- web
|       |                   `-- gwt
|       |                       |--
MyFirstApplicationGWT_1_6_4.gwt.xml
|       |                       |-- client
|       |                       |   |-- GreetingService.java
|       |                       |   |-- GreetingServiceAsync.java
|       |                       |   `--
MyFirstApplicationGWT_1_6_4.java
|       |                       `-- server
|       |                           `-- GreetingServiceImpl.java
|       `-- resources
|           |-- META-INF
|           |   |-- MANIFEST.MF
|           |   `-- spring
|           `-- MODULE-INF
|               |-- MyFirstApplicationGWT_1_6_4.css
|               |-- MyFirstApplicationGWT_1_6_4.html
|               `-- WEB-INF
|                   `-- web.xml
`-- target
    `-- classes
        |-- META-INF
        |   |-- MANIFEST.MF
        |   `-- spring
        |-- MODULE-INF
        |   |-- MyFirstApplicationGWT_1_6_4.css
        |   |-- MyFirstApplicationGWT_1_6_4.html
        |   |-- WEB-INF
        |   |   `-- web.xml
        |   `-- myfirstapplicationgwt_1_6_4
        |       |-- 12BB67CC40437B355BD24B9CC1F1DE13.cache.html
        |       |-- ...
        |       |-- clear.cache.gif
        |       |-- gwt
        |       |   `-- standard
        |       |       |-- ...
        |       |-- hosted.html
        |       `-- myfirstapplicationgwt_1_6_4.nocache.js
        `-- fr
            `-- webskin
                `-- maquette
                    `-- web
                        `-- gwt
                            |-- MyFirstApplicationGWT_1_6_4.gwt.xml
                            |-- client
                            |   |-- GreetingService.class
                            |   |-- GreetingServiceAsync.class
                            |   |--
MyFirstApplicationGWT_1_6_4$1.class
                            |   |--
MyFirstApplicationGWT_1_6_4$1MyHandler$1.class
                            |   |--
MyFirstApplicationGWT_1_6_4$1MyHandler.class
                            |   `-- MyFirstApplicationGWT_1_6_4.class
                            `-- server
                                `-- GreetingServiceImpl.class

************************** web.xml
********************************************

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee";
        xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
        <display-name>GWT DEMO</display-name>
        <description>
                Sample web application which demonstrates the use of GWT in SDMS
        </description>

        <!-- Servlets -->
        <servlet>
                <servlet-name>greetServlet</servlet-name>
                <servlet-
class>fr.webskin.maquette.web.gwt.server.GreetingServiceImpl</servlet-
class>
        </servlet>

        <servlet-mapping>
                <servlet-name>greetServlet</servlet-name>
                <url-pattern>/myfirstapplicationgwt_1_6_4/greet</url-pattern>
        </servlet-mapping>

        <welcome-file-list>
                <welcome-file>MyFirstApplicationGWT_1_6_4.html</welcome-file>
        </welcome-file-list>
</web-app>

******************** build.xml
****************************************************

<?xml version="1.0" encoding="utf-8" ?>
<project name="MyFirstApplicationGWT_1_6_4" default="build"
basedir=".">
        <property name="remote.debug" value="true"/>
        <property name="src.main.java" value="src/main/java"/>
        <property name="src.main.resources" value="src/main/resources"/>
        <property name="target.classes" value="target/classes" />
        <property name="application.name"
value="MyFirstApplicationGWT_1_6_4" />
        <property name="application.name.lowercase"
value="myfirstapplicationgwt_1_6_4" />
        <!-- without .gwt.xml -->
        <property name="application.module.conf.file"
value="fr.webskin.maquette.web.gwt.MyFirstApplicationGWT_1_6_4" />
        <property name="tomcat.application.path" value="/${application.name}"/
>
        <property name="sdms.repository.ext" value="D:/Mickael/springsource-
dm-server-1.0.2.RELEASE/repository/bundles/ext"/>
        <property name="sdms.repository.usr" value="D:/Mickael/springsource-
dm-server-1.0.2.RELEASE/repository/bundles/usr"/>
        <!-- Configure path to GWT SDK -->
        <property name="gwt.sdk" location="D:/Mickael/gwt-windows-1.6.4" />

        <path id="project.class.path">
                <pathelement location="${target.classes}" />
                <pathelement location="${gwt.sdk}/gwt-user.jar" />
                <fileset dir="${gwt.sdk}" includes="gwt-dev*.jar" />
                <!-- Add any additional non-server libs (such as JUnit) -->
                <pathelement location="${sdms.repository.ext}/
com.springsource.javax.servlet-2.5.0.jar" />
                <pathelement location="${sdms.repository.usr}/
com.google.gwt-1.6.4.jar" />
        </path>

        <target name="javac" description="Compile java source">
                <mkdir dir="${target.classes}/MODULE-INF/WEB-INF" />
                <javac includes="**" encoding="utf-8" 
destdir="${target.classes}"
                        source="1.5" target="1.5" nowarn="true" debug="true"
debuglevel="lines,vars,source">
                        <src path="${src.main.java}"/>
                        <!-- <src path="${src.main.resources}"/> -->
                        <classpath refid="project.class.path" />
                </javac>
                <!-- Copy les ressources non java -->
                <copy todir="${target.classes}">
                        <fileset dir="${src.main.java}" excludes="**/*.java" />
                        <fileset dir="${src.main.resources}" 
excludes="**/*.java" />
                </copy>
        </target>

        <target name="gwtc" depends="javac" description="GWT compile to
JavaScript">
                <java failonerror="true" fork="true"
classname="com.google.gwt.dev.Compiler">
                        <classpath>
                                <pathelement location="src/main/java" />
                                <!--<pathelement location="src/main/resources" 
/>-->
                                <path refid="project.class.path" />
                        </classpath>
                        <!-- add jvmarg -Xss16M or similar if you see a 
StackOverflowError
-->
                        <jvmarg value="-Xmx256M" />
                        <!-- Additional arguments like -style PRETTY or 
-logLevel DEBUG -->
                        <!-- <arg line="-style DETAILED" /> -->
                        <arg line="-war ${target.classes}/MODULE-INF" />
                        <!-- Modules -->
                        <arg value="${application.module.conf.file}" />
                </java>
        </target>

        <target name="hosted-tomcat" depends="javac" description="Run hosted
mode in tomcat">
                <java failonerror="true" fork="true"
classname="com.google.gwt.dev.HostedMode">
                        <classpath>
                                <pathelement location="${src.main.java}" />
                                <pathelement location="${src.main.resources}" />
                                <path refid="project.class.path" />
                        </classpath>
                        <jvmarg value="-Xmx256M" />
                        <!-- remote debugging -->
                        <jvmarg value="-Xdebug" />
                        <jvmarg value="-
Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y" />
                        <!-- end remote debing -->
                        <arg value="-startupUrl" />
                        <arg value="${tomcat.application.path}" />
                        <!-- Additional arguments like -style PRETTY or 
-logLevel DEBUG -->
                        <arg value="${application.module.conf.file}" />
                        <!-- do not use Jetty -->
                        <arg value="-noserver"/>
                        <arg value="-port"/>
                        <arg value="80"/>
                </java>
        </target>

        <target name="build" depends="clean,gwtc" description="Build this
project" />

        <target name="war" depends="build" description="Create a war file">
                <zip destfile="${application.name}.war" 
basedir="${target.classes}" /
>
        </target>

        <target name="clean" description="Cleans this project">
                <delete dir="${target.classes}" failonerror="false" />
        </target>

</project>

************************** MANIFEST.MF
**************************************

Manifest-Version: 1.0
Module-Type: Web
Bundle-Version: 0.0.1
Bundle-Name: GWT Demo bundle
Bundle-ManifestVersion: 2
Web-ContextPath: MyFirstApplicationGWT_1_6_4
Bundle-SymbolicName: fr.webskin.maquette.web.gwt_0.0.1
Import-Bundle: com.google.gwt;version="[1.6.4,1.6.4]",
 com.springsource.javax.servlet;version="[2.5.0,2.5.0]"

***********************************************************************************
***********************************************************************************

Is the war directory configuration could cause a problem if it is
relocated like
in this example in :

`-- target
    `-- classes
        |-- MODULE-INF

Thanks in advance for any response.

Mickael.


--~--~---------~--~----~------------~-------~--~----~
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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to