Hi All,
I'm trying to get gwt running in hosted mode but wiothout success... and I
can figure out what i've missed. :x
I'm using GWT1.5., Intellij 8, maven 2.0.9, and my project uses Spring (so
with applicationContext file and on).
I've externalized some config parameter in properties file referred using a
context.xml file in the META-INF dir of my project. This context declares an
Environment variable as String which contains the path to the properties
file.
The Environment variable's value is a placeholder that must be replaced at
build-time, and properties in the javaprop file too.
First of all, before introducing this externalization all was running well
under the embedded tomcat, but (although with contextXml set) I'm now unable
to get things as before with the embedded tomcat.
So I decided to use an external tomcat :
in intellij the tomcat is configured to run in the
<project>/target/<finalName> directoryn and deployed this module under the
"/" path.
On the other hand using this conf, I run gwt:gwt :
<plugin>
<groupId>com.totsp.gwt</groupId>
<artifactId>maven-googlewebtoolkit2-plugin
</artifactId>
<version>2.0-beta26</version>
<configuration>
<compileTargets>
<value>com.telemis.web.admin.Admin</value>
</compileTargets>
<runTarget>com.telemis.web.admin.Admin/Admin.html</runTarget>
<!--<contextXml>${project.build.directory}/${project.build.finalName}/META-INF/context.xml</contextXml>-->
<logLevel>DEBUG</logLevel>
<style>DETAILED</style>
<port>8080</port>
<noServer>true</noServer>
<extraJvmArgs>-Xmx512m</extraJvmArgs>
<i18nMessagesNames>
<value>com.telemis.web.admin.client.message.I18NMessages</value>
</i18nMessagesNames>
<gwtVersion>${gwtVersion}</gwtVersion>
</configuration>
<executions>
<execution>
<goals>
<goal>mergewebxml</goal>
<goal>compile</goal>
<goal>test</goal>
<goal>i18n</goal>
<goal>gwt</goal>
</goals>
</execution>
</executions>
</plugin>
This way I can use the GWTShell to test my webapp but I can debug the GWT
stuffs in Intellij.
Did I miss something ? (Guess yes ^^)
Thx
Andy
FYI : here is my context.xml used by tomcat (after process resources has
run) :
<Context> <Environment name="config/ServerConfiguration" type="
java.lang.String" value="
file:/C:\working\trunk\projects\tm-web\admin\admin-app\target\admin\META-INF\server.properties
"/> </Context>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---