Saturday, May 24, 2014

Re: Running gwt app with custom context root

Thanks Antonio. Works great
Then I just added myapp in my pom.xml

<!-- GWT Maven Plugin -->

<configuration>
          <runTarget>myapp/index.jsp</runTarget>
          <hostedWebapp>${webappDirectory}</hostedWebapp>
          <i18nMessagesBundle>com.rhem.shared.Messages</i18nMessagesBundle>
          <extraJvmArgs>-XX:MaxPermSize=512m -Xmx2048m</extraJvmArgs>
        </configuration> 

El miércoles, 12 de mayo de 2010 09:29:15 UTC-5, Antonio R. de Oliveira escribió:
The problem was solved and solution is very simple, since gwt plugin
uses jetty as web container just put jetty-web.xml in the WEB-INF
folder.
This file specifies the context root of application.

Content of jetty-web.xml:

<?xml version="1.0"  encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
"http://jetty.mortbay.org/configure.dtd">
<Configure class="org.mortbay.jetty.webapp.WebAppContext">

        <Set name="contextPath">/myapp</Set>

</Configure>

thx 4 all :)
Antonio.

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

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment