Hi all,

I want to add https channel in GWT when use gwt-maven-plugin, but I
found it is hard to success in GWT Development Mode.

here is my pom.xml, I only view some key part

<plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>gwt-maven-plugin</artifactId>
                                <version>2.1.0-1</version>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>compile</goal>
                                                        <goal>test</goal>
                                                </goals>
                                        </execution>
                                </executions>
                                <configuration>
                                        <runTarget>/login</runTarget>
                                        
<hostedWebapp>${webappDirectory}</hostedWebapp>
                                        
<i18nMessagesBundle>com.ihealthy.webport.gwt.client.Messages</
i18nMessagesBundle>
                                        <port>8080</port>
                                </configuration>
                        </plugin>

                        <plugin>
                                <groupId>org.mortbay.jetty</groupId>
                                <artifactId>jetty-maven-plugin</artifactId>
                                <version>7.3.0.v20110203</version>
                                <configuration>
                                        
<webApp>${basedir}/target/${content.path}.war</webApp>
                                        <webAppConfig>
                                                
<contextPath>/${content.path}</contextPath>
                                        </webAppConfig>
                                        
<scanIntervalSeconds>10</scanIntervalSeconds>
                                        <stopKey>foo</stopKey>
                                        <stopPort>9999</stopPort>
                                        
<jettyConfig>src/test/resources/jetty/jetty.xml</jettyConfig>
                                </configuration>
                                <executions>
                                        <execution>
                                                <id>start-jetty</id>
                                                
<phase>pre-integration-test</phase>
                                                <goals>
                                                        <goal>run</goal>
                                                </goals>
                                                <configuration>
                                                        
<scanIntervalSeconds>0</scanIntervalSeconds>
                                                        <daemon>true</daemon>
                                                </configuration>
                                        </execution>
                                        <execution>
                                                <id>stop-jetty</id>
                                                
<phase>post-integration-test</phase>
                                                <goals>
                                                        <goal>stop</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>

here is jetty.xml

<Configure id="ServerA" class="org.eclipse.jetty.server.Server">
        <Set name="connectors">
                <Array type="org.eclipse.jetty.server.Connector">
                        <Item>
                                <New 
class="org.eclipse.jetty.server.ssl.SslSocketConnector">
                                        <Set name="Port">8443</Set>
                                        <Set name="maxIdleTime">30000</Set>
                                        <Set 
name="keystore">target/test-classes/keystore</Set>
                                        <Set name="password">mszhwa</Set>
                                        <Set name="keyPassword">mszhwa</Set>
                                        <Set 
name="truststore">target/test-classes/keystore</Set>
                                        <Set name="trustPassword">mszhwa</Set>
                                </New>
                        </Item>
                        <Item>
                                <New 
class="org.eclipse.jetty.server.nio.SelectChannelConnector">
                                        <Set name="Port">8080</Set>
                                        <Set name="maxIdleTime">30000</Set>
                                </New>
                        </Item>
                </Array>
        </Set>
</Configure>

Here is security configure file:

<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:security="http://www.springframework.org/schema/security";
        xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/security
    http://www.springframework.org/schema/security/spring-security-3.0.xsd";>

        <security:http auto-config="true">
                <security:intercept-url pattern="/"
access="IS_AUTHENTICATED_ANONYMOUSLY" />
                <security:intercept-url pattern="/login"
access="IS_AUTHENTICATED_ANONYMOUSLY" requires-channel="https" />
                <security:intercept-url pattern="/security/admin"
access="ROLE_ADMIN" requires-channel="https" />
                <security:intercept-url pattern="/security/user" 
access="ROLE_ADMIN,
ROLE_USER" requires-channel="https" />
                <security:port-mappings>
                <security:port-mapping http="8080" https="8443"/>
        </security:port-mappings>
        </security:http>

        <security:authentication-manager alias="authenticationManager">
                <security:authentication-provider user-service-
ref="userDetailsService">
                <!--<security:password-encoder hash="sha" >
                <security:salt-source user-property="loginName" />
                </security:password-encoder>
                -->
        </security:authentication-provider>
        </security:authentication-manager>

        <bean id="userDetailsService"
class="com.healthtown.common.service.UserDetailsServiceImpl" />
</beans>

I find that when I use mvn jetty:run to start the server, http and
https channel all work fiine.
But when I use gwt:run, to recall GWT Development Mode to start
server, the https channel is missing, I guess that when use gwt:run,
jetty server was called by jetty in gwt-dev.jar, so the jetty.xml lose
effectiveness.

MY QUESTION IS:
how to make a configure when starting gwt:run using my jetty.xml
file????

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