Wednesday, September 29, 2010

How can i change the default code server port for gwt

I want to run two GWT applications simultaneously on the same
machine ... i am using maven.

For the first application, i have specified the port number in the
pom.xml file as below

<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.2</version>
<configuration>
<module>com.tenx.dsadmin.Application</module>
<runTarget>com.tenx.dsadmin.Application/Application.html</
runTarget>
<port>8888</port>
<logLevel>WARN</logLevel>
<debugPort>9008</debugPort>
</configuration>

and for the second application i have configured as below

<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.2</version>
<configuration>
<module>com.tenx.ds.Application</module>
<runTarget>com.tenx.ds.Application/Application.html</
runTarget>
<port>8001</port>
<logLevel>WARN</logLevel>
<debugPort>9008</debugPort>
</configuration>

When i start the first application using "mvn gwt:run", gwt binds the
application to the gwt.codesvr port 127.0.0.1.9997, and the second
application does not start, and instead returns a bindexception.

I'm new to GWT and i'm using Eclipse, can anyone on these forums
please tell me how i can change the gwt code server port?

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

No comments:

Post a Comment