...
- A good article about deploying GWT apps (http://developerlife.com/tutorials/?p=231)
Deployment from Eclipse
...
- Complile
- Right click on project > Debug As > Web Application OR
- Hit the Red"G" Box icon top left, and compile options will appear
Wiki Markup Create a war, by zipping up the war directory and rename it \[project name\].war
- move libraries if need be, if there linked and not in the library folder
- Copy the war file to the webapp folder for Tomcat deployment
Tomcat Setting for Connection Pool (JNDI) for SQL Server 2005 and Postgresql
- Copy jtds-1.2.5.jar (http://jtds.sourceforge.net/) to CATALINE_HOME/lib
- Copy postgresql-8.4-701.jdbc4.jar (http://jdbc.postgresql.org/) to CATALINE_HOME/lib
- Edit conf/context.xml like below:
Code Block xml xml <?xml version='1.0' encoding='utf-8'?> <Context> <!-- definition of DB connection resource --> <Resource name="jdbc/mmsql" auth="Container" type="javax.sql.DataSourceConnectionPoolDataSource" driverClassName="net.sourceforge.jtds.jdbc.Driver" url="jdbc:jtds:sqlserver://[serverhost_url]/[database]" dbname]" username="[username]" password="[password]" maxActive="8" maxIdle="4" /> <Resource name="jdbc/pgsql" auth="Container" type="javax.sql.ConnectionPoolDataSource" driverClassName="org.postgresql.Driver" url="jdbc:postgresql://[host_url]/[dbname]" username="[username]" password="[password]" maxActive="8" maxIdle="4" /> <WatchedResource>WEB-INF/web.xml</WatchedResource> </Context>
Wiki Markup Add the following code in <web-app> tag in webapps/\[your_webapps\]/WEB-INF/web.xml:
Code Block xml xml <resource-ref> <description>DB<description>MM connectionDB description<connection</description> <res-ref-name>jdbc/mmsql</res-ref-name> <res-type>javax.sql.DataSource<ConnectionPoolDataSource</res-type> <res-auth>Container</res-auth> </resource-ref> <resource-ref> <description>Spaital MM DB connection</description> <res-ref-name>jdbc/pgsql</res-ref-name> <res-type>javax.sql.ConnectionPoolDataSource</res-type> <res-auth>Container</res-auth> </resource-ref>
Configure Tomcat CGI
In order to retrieve features from the geoserver using XMLHttpRequests, you will need to use the proxy.cgi file that comes with OpenLayers. You can obtain this proxy and more information about it here. In this setup, we assume that you are configuring Tomcat 6 or higher, the setup of Tomcat 5 is slightly different.
...