Tomcat 7

36 views
Skip to first unread message

Rob

unread,
Sep 7, 2011, 8:03:50 PM9/7/11
to gwt-cx
Hi,

Building gwt-cx can be as simple as running "mvn clean install",
however, sometimes you can run into a few issues.

For example, not everyone deploys their artifacts to a public
repository. You can get around this problem by adding artifacts to
your local Maven repository.

mvn install:install-file -DgroupId=org.apache.tomcat
-
DartifactId=com.springsource.org.apache.tomcat.jdbc
-Dversion=1.1.0.1
-Dpackaging=jar
-Dfile=tomcat-jdbc.jar
-DgeneratePom=true

If you deploy the sample web application (Serendipity) to Tomcat. Then
don't forget to place the HSQLDB lib (hsqldb-2.0.1-rc1.jar) and Tomcat
7 Connection Pool lib
(com.springsource.org.apache.tomcat.jdbc-1.0.9.3.jar) in tomcat's lib
directory.

If you deploy an exploded war to tomcat's webapp directory then don't
forget to copy the application's context.xml to tomcat-'s conf\Catalina
\localhost directory and rename it so that it matches the
application's directory name (e.g. serendipity.xml).

Note. You will also need to update the url entry
(url="jdbc:hsqldb:file:/tools/common/tomcat-7.0.16/webapps/serendipity/
data/serendipitydb;ifexists=true") in the Resource declaration in
context.xml (and serendipity.xml).

If you want to run the sample web application in hosted mode then you
will need update the PU-NAME context parameter in web.xml from HSQLDB-
TOMCAT7-CP-PU to HSQLDB-HOSTED-MODE-PU.

Cheers
Rob
Reply all
Reply to author
Forward
0 new messages