Building step GWT-GX

377 views
Skip to first unread message

alejeune

unread,
Sep 15, 2011, 6:33:10 PM9/15/11
to gwt-cx
Hi Rob,

First of all, just want to thank you for the outstanding tutorial you
provided to the community. I was exploring the new capabilities of GWT
framework when I discovered your impressive work.

I've tested Serendipity-0.6.0 and now I'm willing to see more with gwt-
cx :-)

But I've been facing with an issue when I tried to build the project.
[INFO] GWTCX Core - Client has not been build successfully.

Is there something special to perform before the command line 'mvn
clean install' ?


Thanks for your help!


Arnaud



[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] The GWT Customer Experience framework
[INFO] GWTCX Core
[INFO] GWTCX Core - Shared
[INFO] GWTCX Core - Client
[INFO] GWTCX Core - Server
[INFO] GWTCX Samples
[INFO] GWTCX Sample - Serendipity
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building The GWT Customer Experience framework 0.7.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ gwtcx ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
gwtcx ---
[INFO] Installing C:\Google\GWT\Example\gwtcx-0.7.0\gwtcx\pom.xml to C:
\Documents and Settings\arlejeun\.m2\repository\com\gwtcx\gwtcx\0.7.0-
SNAPSHOT\gwtcx-0.7.0-SNAPSHOT.pom
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building GWTCX Core 0.7.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ gwtcx-core
---
[INFO]
[INFO] --- gwt-maven-plugin:2.2.0:test (default) @ gwtcx-core ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
gwtcx-core ---
[INFO] Installing C:\Google\GWT\Example\gwtcx-0.7.0\gwtcx\gwtcx-core
\pom.xml to C:\Documents and Settings\arlejeun\.m2\repository\com\gwtcx
\gwtcx-core\0.7.0-SNAPSHOT\gwtcx-core-0.7.0-SNAPSHOT.pom
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building GWTCX Core - Shared 0.7.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ gwtcx-core-
shared ---
[INFO] Deleting C:\Google\GWT\Example\gwtcx-0.7.0\gwtcx\gwtcx-core
\gwtcx-core-shared\target
[INFO]
[INFO] --- maven-processor-plugin:2.0.1:process (process) @ gwtcx-core-
shared ---
[INFO] Source directory: C:\Google\GWT\Example\gwtcx-0.7.0\gwtcx\gwtcx-
core\gwtcx-core-shared\target\generated-sources\apt added
[INFO] javac option: -cp
[INFO] javac option: C:\Documents and Settings\arlejeun\.m2\repository
\jtidy\jtidy\4aug2000r7-dev\jtidy-4aug2000r7-dev.jar;C:\Documents and
Settings\arlejeun\.m2\repository\org\jfrog\maven\annomojo\maven-plugin-
anno\1.4.0\maven-plugin-anno-1.4.0.jar;C:\Documents and Settings
\arlejeun\.m2\repository\org\jfrog\maven\annomojo\maven-plugin-tools-
anno\1.4.0\maven-plugin-tools-anno-1.4.0.jar;C:\Documents and Settings
\arlejeun\.m2\repository\org\sonatype\sisu\sisu-guice\2.9.1\sisu-
guice-2.9.1-noaop.jar;C:\Documents and Settings\arlejeun\.m2\repository
\com\gwtplatform\gwtp-clients-common\0.5.1\gwtp-clients-
common-0.5.1.jar;C:\Documents and Settings\arlejeun\.m2\repository\org
\apache\maven\reporting\maven-reporting-api\2.0.6\maven-reporting-
api-2.0.6.jar;C:\Documents and Settings\arlejeun\.m2\repository\org
\codehaus\plexus\plexus-utils\2.0.4\plexus-utils-2.0.4.jar;C:
\Documents and Settings\arlejeun\.m2\repository\org\apache\maven
\plugin-tools\maven-plugin-tools-api\2.6\maven-plugin-tools-
api-2.6.jar;C:\Documents and Settings\arlejeun\.m2\repository\junit
\junit\3.8.1\junit-3.8.1.jar;C:\Documents and Settings\arlejeun
\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:
\Google\GWT\Example\gwtcx-0.7.0\gwtcx\gwtcx-core\gwtcx-core-shared
\target\classes;C:\Documents and Settings\arlejeun\.m2\repository\com
\gwtplatform\gwtp-mvp-client\0.5.1\gwtp-mvp-client-0.5.1.jar;C:
\Documents and Settings\arlejeun\.m2\repository\com\gwtplatform\gwtp-
dispatch-shared\0.5.1\gwtp-dispatch-shared-0.5.1.jar;C:\Documents and
Settings\arlejeun\.m2\repository\org\codehaus\plexus\plexus-component-
annotations\1.5.5\plexus-component-annotations-1.5.5.jar;C:\Documents
and Settings\arlejeun\.m2\repository\com\google\inject\extensions
\guice-assistedinject\3.0\guice-assistedinject-3.0.jar;C:\Documents
and Settings\arlejeun\.m2\repository\org\sonatype\sisu\sisu-inject-bean
\1.4.3.1\sisu-inject-bean-1.4.3.1.jar;C:\Google\GWT\Example
\gwtcx-0.7.0\gwtcx\gwtcx-core\gwtcx-core-shared\target\generated-
sources\apt;C:\Documents and Settings\arlejeun\.m2\repository\com
\google\gwt\inject\gin\1.5.0\gin-1.5.0.jar;C:\Google\GWT\Example
\gwtcx-0.7.0\gwtcx\gwtcx-core\gwtcx-core-shared\src\main\resources;C:
\Documents and Settings\arlejeun\.m2\repository\com\google\gwt\gwt-user
\2.2.0\gwt-user-2.2.0.jar;C:\Documents and Settings\arlejeun
\.m2\repository\com\gwtplatform\gwtp-processors\0.5.1\gwtp-
processors-0.5.1.jar;C:\Documents and Settings\arlejeun\.m2\repository
\org\apache\maven\doxia\doxia-sink-api\1.0-alpha-7\doxia-sink-api-1.0-
alpha-7.jar;C:\Documents and Settings\arlejeun\.m2\repository\javax
\inject\javax.inject\1\javax.inject-1.jar;C:\Documents and Settings
\arlejeun\.m2\repository\com\gwtplatform\gwtp-dispatch-client
\0.5.1\gwtp-dispatch-client-0.5.1.jar;C:\Documents and Settings
\arlejeun\.m2\repository\com\google\inject\guice\3.0\guice-3.0.jar;C:
\Google\GWT\Example\gwtcx-0.7.0\gwtcx\gwtcx-core\gwtcx-core-shared\src
\main\java;
[INFO] javac option: -proc:only
[INFO] javac option: -processor
[INFO] javac option:
com.gwtplatform.dispatch.annotation.processor.GenDispatchProcessor
[INFO] javac option: -d
[INFO] javac option: C:\Google\GWT\Example\gwtcx-0.7.0\gwtcx\gwtcx-core
\gwtcx-core-shared\target\classes
[INFO] javac option: -s
[INFO] javac option: C:\Google\GWT\Example\gwtcx-0.7.0\gwtcx\gwtcx-core
\gwtcx-core-shared\target\generated-sources\apt
[INFO]
[INFO] --- build-helper-maven-plugin:1.3:add-source (add-source) @
gwtcx-core-shared ---
[INFO] Source directory: C:\Google\GWT\Example\gwtcx-0.7.0\gwtcx\gwtcx-
core\gwtcx-core-shared\target\generated-sources\apt added.
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources)
@ gwtcx-core-shared ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 14 resources
[INFO] Copying 14 resources
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
gwtcx-core-shared ---
[INFO] Compiling 28 source files to C:\Google\GWT\Example
\gwtcx-0.7.0\gwtcx\gwtcx-core\gwtcx-core-shared\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-
testResources) @ gwtcx-core-shared ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-
testCompile) @ gwtcx-core-shared ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.6:test (default-test) @ gwtcx-core-
shared ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ gwtcx-core-
shared ---
[INFO] Building jar: C:\Google\GWT\Example\gwtcx-0.7.0\gwtcx\gwtcx-core
\gwtcx-core-shared\target\gwtcx-core-shared-0.7.0-SNAPSHOT.jar
[INFO]
[INFO] --- gwt-maven-plugin:2.2.0:test (default) @ gwtcx-core-shared
---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
gwtcx-core-shared ---
[INFO] Installing C:\Google\GWT\Example\gwtcx-0.7.0\gwtcx\gwtcx-core
\gwtcx-core-shared\target\gwtcx-core-shared-0.7.0-SNAPSHOT.jar to C:
\Documents and Settings\arlejeun\.m2\repository\com\gwtcx\gwtcx-core-
shared\0.7.0-SNAPSHOT\gwtcx-core-shared-0.7.0-SNAPSHOT.jar
[INFO] Installing C:\Google\GWT\Example\gwtcx-0.7.0\gwtcx\gwtcx-core
\gwtcx-core-shared\pom.xml to C:\Documents and Settings\arlejeun
\.m2\repository\com\gwtcx\gwtcx-core-shared\0.7.0-SNAPSHOT\gwtcx-core-
shared-0.7.0-SNAPSHOT.pom
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building GWTCX Core - Client 0.7.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[WARNING] The POM for com.smartgwt:smartgwt:jar:2.4 is missing, no
dependency information available
[WARNING] The POM for com.allen_sauer.gwt.log:gwt.log:jar:3.1.2 is
missing, no dependency information available
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] The GWT Customer Experience framework ............. SUCCESS
[0.297s]
[INFO] GWTCX Core ........................................ SUCCESS
[1.000s]
[INFO] GWTCX Core - Shared ............................... SUCCESS
[3.610s]
[INFO] GWTCX Core - Client ............................... FAILURE
[0.062s]
[INFO] GWTCX Core - Server ............................... SKIPPED
[INFO] GWTCX Samples ..................................... SKIPPED
[INFO] GWTCX Sample - Serendipity ........................ SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5.156s
[INFO] Finished at: Fri Sep 16 00:33:21 CEST 2011
[INFO] Final Memory: 16M/38M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project gwtcx-core-client: Could not
resolve dependencies for project com.gwtcx:gwtcx-core-client:jar:0.7.0-
SNAPSHOT: The following artifacts could not be resolved:
com.smartgwt:smartgwt:jar:2.4, com.allen_sauer.gwt.log:gwt.log:jar:
3.1.2: Failure to find com.smartgwt:smartgwt:jar:2.4 in http://repo1.maven.org/maven2
was cached in the local repository, resolution will not be reattempted
until the update interval of central has elapsed or updates are forced
-> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with
the command
[ERROR] mvn <goals> -rf :gwtcx-core-client

Rob

unread,
Sep 15, 2011, 8:33:22 PM9/15/11
to gwt...@googlegroups.com
Hi,

->


[WARNING] The POM for com.smartgwt:smartgwt:jar:2.4 is missing, no
dependency information available
[WARNING] The POM for com.allen_sauer.gwt.log:gwt.
log:jar:3.1.2 is
missing, no dependency information available

->

The lines above are the important ones.

Maven is telling you that it can't find these JARs (in a remote repository or) in your local repository.

This is because not everyone deploys their artifacts to a public repository. You can get around this problem by adding artifacts to your local Maven repository.

For example:

mvn install:install-file -DgroupId=com.allen_sauer.gwt.log -DartifactId=gwt.log -Dversion=3.1.3 -Dpackaging=jar -Dfile=gwt-log-3.1.3.jar -DgeneratePom=true

You should find copies of the required JARs in the gwtcx/lib directory.

Cheers
Rob

alejeune

unread,
Sep 16, 2011, 12:02:39 PM9/16/11
to gwt-cx
Thanks ! I'm still struggling with Maven issue but it is just a
question of time :-) .. I'm a rookie with this Maven framework ! I
understand that few jar files were not included in the Maven
dependencies so I tried to included them first manually with your
command line and then with Eclipse IDE but I'm having new issue.

'Project build error: 'dependencies.dependency.systemPath' for
net.sf.opencsv:opencsv:jar must be omitted. This field may only be
specified for a dependency with system scope.'

I keep some homework for this week-end :-(

Arnaud
Message has been deleted

Rob Ferguson

unread,
Sep 16, 2011, 6:57:55 PM9/16/11
to gwt...@googlegroups.com
Hi,

Just to clarify, if you follow the steps in this post:

-> http://uptick.com.au/content/getting-started-gwt-maven-and-eclipse

then it will help you get up and running with GWT, Maven and Eclipse.

A key step in setting up your environment is the installation of the gwt-maven-plugin as discussed in the post.

Once Eclipse is configured to work with Maven (via the gwt-maven-plugin) and GWT (via the Google Plugin for Eclipse) you should then only need to manually add any missing JARs (e.g. those not available via a public Maven repository) to your local repository.

-> and then with Eclipse IDE
Not sure what you mean? All configuration, etc is via the gwt-cx POMs (pom.xml). You can edit these in the Eclipse IDE, however, they should "just work".

As per this post:

-> http://uptick.com.au/content/gwt-cx-maven-multimodule-enterprise-project

-> I keep some homework for this week-end :-(
Ok, let me know how you go.

Cheers
Rob


On Sat, Sep 17, 2011 at 2:02 AM, alejeune <lejeune...@googlemail.com> wrote:
Thanks ! I'm still struggling with Maven issue but it is just a
question of time :-) .. I'm a rookie with this Maven framework ! I
understand that few jar files were not included in the Maven
dependencies so I tried to included them first manually with your
command line and then with Eclipse IDE but I'm having new issue.

'Project build error: 'dependencies.dependency.systemPath' for
net.sf.opencsv:opencsv:jar must be omitted. This field may only be
specified for a dependency with system scope.'

I keep some homework for this week-end :-(

Arnaud

On 16 sep, 02:33, Rob <rob.fergu...@uptick.com.au> wrote:

alejeune

unread,
Sep 17, 2011, 7:02:23 PM9/17/11
to gwt-cx
Hi,

Well, not well !
As you proposed I added the library manually in order to get the
correct dependencies included in my respective pom.xml files but using
maven3 it stricly recommend not to use this workaround.

[WARNING] Some problems were encountered while building the effective
model for com.gwtcx:gwtcx-sample-serendipity:war:0.7.0-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' for
com.allen_sauer.gwt.log:gwt.log:jar should use a variable instead of a
hard-coded path C:\eclipse\Workspace\gwtcx\libs\gwt-log-3.1.2.jar @
line 342, column 19
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING] For this reason, future Maven versions might no longer
support building such malformed projects.

The complete project gwtcx did not build properly so I built gwtcx-
core-client/gwtcx-core-server/gwtcx-core-shared successfully using
some modifications with my pom.xml files.

Then I tried to built the gwtcx-samples-serendipity project but it
didn't work (after I changed all libraries in my build path (GWT /
JRE) ) but I got this error message.

I did include the dependency 'gwtmultipage' so I do not understand
this issue.
<dependency>
<groupId>org.gwtmultipage</groupId>
<artifactId>gwtmultipage</artifactId>
<version>1.0.0.Beta5</version>
<type>pom</type>
<scope>compile</scope>
</dependency>


[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5.391s
[INFO] Finished at: Sun Sep 18 00:55:50 CEST 2011
[INFO] Final Memory: 22M/54M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
plugin:2.3.2:compile (default-compile) on project gwtcx-sample-
serendipity: Compilation failure: Compilation failure:
[ERROR] \eclipse\Workspace\gwtcx-sample-serendipity\src\main\java\com
\gwtcx\sample\serendipity\client\entrypoint\AccountEntryPoint.java:
[17,30] package org.gwtmultipage.client does not exist
[ERROR] \eclipse\Workspace\gwtcx-sample-serendipity\src\main\java\com
\gwtcx\sample\serendipity\client\entrypoint\AccountEntryPoint.java:
[24,1] cannot find symbol
[ERROR] symbol: class UrlPatternEntryPoint

From my perspective I'm not a big fan of the maven part but I'm really
interested in the follow-up of this project so if you have any
comments :-)

Arnaud



On 17 sep, 00:57, Rob Ferguson <rob.fergu...@uptick.com.au> wrote:
> Hi,
>
> Just to clarify, if you follow the steps in this post:
>
> ->http://uptick.com.au/content/getting-started-gwt-maven-and-eclipse
>
> then it will help you get up and running with GWT, Maven and Eclipse.
>
> A key step in setting up your environment is the installation of the
> gwt-maven-plugin as discussed in the post.
>
> Once Eclipse is configured to work with Maven (via the gwt-maven-plugin) and
> GWT (via the Google Plugin for Eclipse) you should then only need to
> manually add any missing JARs (e.g. those not available via a public Maven
> repository) to your local repository.
>
> -> and then with Eclipse IDE
> Not sure what you mean? All configuration, etc is via the gwt-cx POMs
> (pom.xml). You can edit these in the Eclipse IDE, however, they should "just
> work".
>
> As per this post:
>
> ->http://uptick.com.au/content/gwt-cx-maven-multimodule-enterprise-project
>
> -> I keep some homework for this week-end :-(
> Ok, let me know how you go.
>
> Cheers
> Rob
>

Rob Ferguson

unread,
Sep 17, 2011, 8:06:16 PM9/17/11
to gwt...@googlegroups.com
HI,

-> As you proposed I added the library manually in order to get the

correct dependencies included in my respective pom.xml files but using
maven3 it stricly recommend not to use this workaround.

You added the JARs to your local Maven repository?

As I mentioned there are quite a few JARs that aren't yet available via a public Maven repository (see below, sample commands to add these to your local repository).

-> [WARNING] 'dependencies.dependency.systemPath' for com.allen_sauer.gwt.log:gwt.log:jar should use a variable instead of ahard-coded path C:\eclipse\Workspace\gwtcx\libs\gwt-log-3.1.2.jar @line 342, column 19

How exactly did you add the gwt-log JAR to your local Maven repository? For example, did you execute the mvn install:install-file goal from the lib directory?

You can install gwt-multipage (from the lib directory) as follows:

mvn install:install-file -DgroupId=org.gwt-multipage -DartifactId=gwt-multipage -Dversion=1.0.0 -Dpackaging=jar -Dfile=gwt-multipage.jar -DgeneratePom=true

->

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

mvn install:install-file -DgroupId=com.allen_sauer.gwt.log -DartifactId=gwt.log -Dversion=3.1.2 -Dpackaging=jar -Dfile=gwt-log-3.1.2.jar -DgeneratePom=true

    mvn install:install-file -DgroupId=org.hsqldb -DartifactId=hsqldb -Dversion=2.0.1-rc1 -Dpackaging=jar -Dfile=hsqldb.jar -DgeneratePom=true
   
    mvn install:install-file -DgroupId=commons-fileupload -DartifactId=commons-fileupload -Dversion=1.2.1 -Dpackaging=jar -Dfile=commons-fileupload-1.2.1.jar -DgeneratePom=true

mvn install:install-file -DgroupId=net.sf.opencsv -DartifactId=opencsv -Dversion=2.2 -Dpackaging=jar -Dfile=opencsv-2.2.jar -DgeneratePom=true

   mvn install:install-file -DgroupId=net.sf.jasperreports -DartifactId=jasperreports -Dversion=4.0.0 -Dpackaging=jar -Dfile=jasperreports-4.0.0.jar -DgeneratePom=true

    mvn install:install-file -DgroupId=org.slf4j -DartifactId=slf4j-log4j12 -Dversion=1.6.1 -Dpackaging=jar -Dfile=slf4j-log4j12-1.6.1.jar -DgeneratePom=true
   
    mvn install:install-file -DgroupId=org.slf4j -DartifactId=slf4j-api -Dversion=1.6.1 -Dpackaging=jar -Dfile=slf4j-api-1.6.1.jar -DgeneratePom=true

mvn install:install-file -DgroupId=com.smartgwt -DartifactId=smartgwt -Dversion=2.4 -Dpackaging=jar -Dfile=smartgwt.jar -DgeneratePom=true

mvn install:install-file -DgroupId=org.gwt-multipage -DartifactId=gwt-multipage -Dversion=1.0.0 -Dpackaging=jar -Dfile=gwt-multipage.jar -DgeneratePom=true

->

Cheers
Rob

alejeune

unread,
Sep 18, 2011, 11:38:16 AM9/18/11
to gwt-cx
Hi,

I defined the dependency in the pom.xml file as follow for couple of
dependencies. Some of them were used

<!-- GWT-Log dependencies -->
<dependency>
<groupId>com.allen_sauer.gwt.log</groupId>
<artifactId>gwt.log</artifactId>
<version>3.1.2</version>
<type>jar</type>
<scope>system</scope>
<systemPath>C:\eclipse\Workspace\gwtcx\libs\gwt-log-3.1.2.jar</
systemPath>
</dependency>

I rebuild the project with all command lines you suggested and it did
build all project except the
com.springsource.org.apache.tomcat.jdbc-1.1.0.1.jar librairy.

Because it is not installed in the gwtcx\lib folder (jaspersoft is
missing as well but I guess it is available on the maven repository),
I copied the com.springsource.org.apache.tomcat.jdbc-1.1.0.1.jar from
com.springsource.org.apache.tomcat.jdbc-1.0.9.3.jar and it built
successfully.

[INFO] Scanning for projects...
[WARNING] The POM for org.apache.maven.plugins:maven-eclipse-
plugin:jar:2.8 is invalid, transitive dependencies (if any) will not
be available, enable debug logging for more details
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:maven-eclipse-plugin:2.8: Failed to parse
plugin descriptor for org.apache.maven.plugins:maven-eclipse-plugin:
2.8 (C:\Documents and Settings\arlejeun\.m2\repository\org\apache\maven
\plugins\maven-eclipse-plugin\2.8\maven-eclipse-plugin-2.8.jar): error
in opening zip file
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building GWTCX Sample - Serendipity 0.7.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[WARNING] The POM for org.apache.maven.plugins:maven-eclipse-
plugin:jar:2.8 is invalid, transitive dependencies (if any) will not
be available, enable debug logging for more details
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:maven-eclipse-plugin:2.8: Failed to parse
plugin descriptor for org.apache.maven.plugins:maven-eclipse-plugin:
2.8 (C:\Documents and Settings\arlejeun\.m2\repository\org\apache\maven
\plugins\maven-eclipse-plugin\2.8\maven-eclipse-plugin-2.8.jar): error
in opening zip file
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @
gwtcx-sample-serendipity ---
[INFO] Installing C:\eclipse\Workspace\gwtcx\libs
\com.springsource.org.apache.tomcat.jdbc-1.1.0.1.jar to C:\Documents
and Settings\arlejeun\.m2\repository\org\apache\tomcat
\com.springsource.org.apache.tomcat.jdbc
\1.1.0.1\com.springsource.org.apache.tomcat.jdbc-1.1.0.1.jar
[INFO] Installing C:\DOCUME~1\arlejeun\LOCALS~1\Temp
\mvninstall1102236843628196612.pom to C:\Documents and Settings
\arlejeun\.m2\repository\org\apache\tomcat
\com.springsource.org.apache.tomcat.jdbc
\1.1.0.1\com.springsource.org.apache.tomcat.jdbc-1.1.0.1.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.734s
[INFO] Finished at: Sun Sep 18 17:30:37 CEST 2011
[INFO] Final Memory: 3M/15M
[INFO]
------------------------------------------------------------------------

Then, I tried to rebuild the full project and it did fail again with
the same issue.

[INFO] The GWT Customer Experience framework ............. SUCCESS
[0.485s]
[INFO] GWTCX Core ........................................ SUCCESS
[1.953s]
[INFO] GWTCX Core - Shared ............................... SUCCESS
[4.219s]
[INFO] GWTCX Core - Client ............................... SUCCESS
[7.312s]
[INFO] GWTCX Core - Server ............................... SUCCESS
[0.500s]
[INFO] GWTCX Samples ..................................... SUCCESS
[0.031s]
[INFO] GWTCX Sample - Serendipity ........................ FAILURE
[0.141s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 14.891s
[INFO] Finished at: Sun Sep 18 17:43:22 CEST 2011
[INFO] Final Memory: 16M/39M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project gwtcx-sample-serendipity:
Could not resolve dependencies for project com.gwtcx:gwtcx-sample-
serendipity:war:0.7.0-SNAPSHOT: Failure to find
org.apache.tomcat:com.springsource.org.apache.tomcat.jdbc:jar:1.1.0.1
in http://repo1.maven.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of
central has elapsed or updates are forced -> [Help 1]












Rob Ferguson

unread,
Sep 18, 2011, 4:51:33 PM9/18/11
to gwt...@googlegroups.com
Hi,

You don't need to modify any of the gwt-cx POMs. 

e.g. gwt-log is already declared as a dependency (see gwt/gwt-core/pom.xml):

->


      <!-- GWT-Log dependencies -->
      <dependency>
        <groupId>com.allen_sauer.gwt.log</groupId>
        <artifactId>gwt.log</artifactId>
        <version>${gwt.log.version}</version>
      </dependency>

->

and the version in declared in gwt/pom.xml:

->

    <gwt.log.version>3.1.2</gwt.log.version>

->

You just need to make the dependencies available via your local Maven repository.

The Tomcat 7 CP is in "apache-tomcat-jdbc-1.1.0.1-bin.zip" in the /lib folder. It also depends on "bonecp-0.7.1.RELEASE.jar" - take a look at the persistence.xml file in /META-INF.

The dependencies are declared in gwt/gwtcs-samples/pom.xml:

->

    <!-- HSQLDB dependencies -->
    <dependency>
      <groupId>org.hsqldb</groupId>
      <artifactId>hsqldb</artifactId>
      <version>${hsqldb.version}</version>
      <scope>provided</scope>
    </dependency>
    <!-- SpringSource / Apache Tomcat 7 JDBC Pool Connection Pool Manager dependencies -->
    <dependency>
      <groupId>org.apache.tomcat</groupId>
      <artifactId>com.springsource.org.apache.tomcat.jdbc</artifactId>
      <version>${com.springsource.org.apache.tomcat.jdbc.version}</version>
      <scope>provided</scope>       
    </dependency>   

->

Cheers
Rob

Rob Ferguson

unread,
Sep 18, 2011, 4:55:50 PM9/18/11
to gwt...@googlegroups.com
Hi,

Sorry, I meant the Tomcat 7 CP also depends on "guava-r08.jar".

Cheers
Rob

Rob

unread,
Sep 18, 2011, 6:56:18 PM9/18/11
to gwt-cx
HI,

These are the addtional files I have placed in Tomcat's lib directory:

bonecp-0.7.1.RELEASE.jar - (Bone Collection Pool)
bonecp-provider-0.7.1.RELEASE.jar - (Bone Collection Pool)

c3p0-0.9.2-pre1.jar - (C3PO Collection Pool)

com.springsource.org.apache.tomcat.jdbc-1.0.9.3.jar - (Tomcat 7
Collection Pool)
guava-r08.jar - (Tomcat 7 Collection Pool)

hsqldb-2.0.1-rc1.jar (HSQLDB JDBC driver)

Cheers
Rob

On Sep 19, 6:55 am, Rob Ferguson <rob.fergu...@uptick.com.au> wrote:
> Hi,
>
> Sorry, I meant the Tomcat 7 CP also depends on "guava-r08.jar".
>
> Cheers
> Rob
>
> >> inhttp://repo1.maven.org/maven2was cached in the local repository,
> ...
>
> read more »

alejeune

unread,
Sep 19, 2011, 9:43:38 AM9/19/11
to gwt-cx
Hi Rob,

Great ... Now it did build successfully on my environnement :-)
Thanks a lot !

I did a mistake when I installed
com.springsource.org.apache.tomcat.jdbc 1.1.0.1 artifact.

Instead of the command line you gave me, 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
I used the jar available in the gwtcx/libs folder
com.springsource.org.apache.tomcat.jdbc-1.0.9.3.jar

Mea Culpa !

I could have save a lot of time reading carefully that the file you
install for the dependency is 'tomcat-jdbc.jar' in the zip file.

I'm good with the build step !!

Thanks a lot ..
> > >> inhttp://repo1.maven.org/maven2wascached in the local repository,
> > >> >    mvn install:install-file -DgroupId=net.sf.jasperreports...
>
> plus de détails »

Rob

unread,
Sep 19, 2011, 6:32:33 PM9/19/11
to gwt-cx
Hi,

I think I may have accidentially mislead you as well :-)

After checking the doco re Tomcat 7's CP:

-> http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html

These are the correct libs:

- tomcat-dbcp.jar
- tomcat-juli.jar

There is a interesting discussion re connection pools here:

-> http://stackoverflow.com/questions/520585/connection-pooling-options-with-jdbc-dbcp-vs-c3p0

and

-> http://www.tomcatexpert.com/blog/2010/03/12/explaining-jdbc-pool-high-concurrency-alternative-connection-pooling-module

Cheers
Rob
> > > >> inhttp://repo1.maven.org/maven2wascachedin the local repository,
> > > >> resolution will not be reattempted until the update interval of
> > > >> central has elapsed or updates are forced -> [Help 1]
>
> > > >> On 18 sep, 02:06, Rob Ferguson <rob.fergu...@uptick.com.au> wrote:
> > > >> > HI,
>
> > > >> > -> As you proposed I added the library manually in order to get the
> > > >> > correct dependencies included in my respective pom.xml files but using
> > > >> > maven3 it stricly recommend not to use this workaround.
>
> > > >> > You added the JARs to your local Maven repository?
>
> > > >> > As I mentioned there are quite a few JARs that aren't yet available via
> > > >> a
> > > >> > public Maven repository (see below, sample commands to add these to your
> > > >> > local repository).
>
> > > >> > -> [WARNING] 'dependencies.dependency.systemPath' for
> > > >> > com.allen_sauer.gwt.log:gwt.log:jar should use a variable instead of
> > > >> > ahard-coded path C:\eclipse\Workspace\gwtcx\libs\gwt-log-3.1.2.jar @line
> > > >> > 342, column 19
>
> > > >> > How exactly did you add the gwt-log JAR to your local Maven repository?
> > > >> For
> > > >> > example, did you execute the mvn install:install-file goal from the lib
> > > >> > directory?
>
> > > >> > You can install gwt-multipage (from the lib directory) as follows:
>
> > > >> > mvn
>
> ...
>
> read more »

esteban

unread,
Sep 23, 2011, 4:41:18 AM9/23/11
to gwt-cx
The only problem I experienced was that after running the application,
I couldn't login because no datasource ('HSQLDB....') could be found.
I believe I will solve the issue soon...but perhaps other people had
already the same problem...

An other question about documentation : is there a document giving an
overview about application/used tools/etc., perhaps also describing
the 'architecture' of the application ?
I'm asking because I'm new on GWT. I know well back-end parts of
applications but that's the first time I start with the front-end
based on GWT.
You created DTO objects to map from business objects to View Objects.
There are also CommandHandlers, used apt ...Are these things part of
the 'standard/common' GWT development ?

Finally, I would like to congratulate you and the development team
because it's not easy to find in the internet a tutorial for a good
enterprise application (multimudule, separation of front- and back-end
concerns)

(Perhaps my comment should have been posted in an other thread !?
Sorry ;-)

Esteban.


On Sep 20, 12:32 am, Rob <rob.fergu...@uptick.com.au> wrote:
> Hi,
>
> I think I may have accidentially mislead you as well :-)
>
> After checking the doco re Tomcat 7's CP:
>
> ->http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html
>
> These are the correct libs:
>
> - tomcat-dbcp.jar
> - tomcat-juli.jar
>
> There is a interesting discussion re connection pools here:
>
> ->http://stackoverflow.com/questions/520585/connection-pooling-options-...
>
> and
>
> ->http://www.tomcatexpert.com/blog/2010/03/12/explaining-jdbc-pool-high...
> > > > >> inhttp://repo1.maven.org/maven2wascachedinthe local repository,
> > > > >> resolution will not be reattempted until the update interval of
> > > > >> central has elapsed or updates are forced -> [Help 1]
>
> > > > >> On 18 sep, 02:06, Rob Ferguson <rob.fergu...@uptick.com.au> wrote:
> > > > >> > HI,
>
> > > > >> > -> As you proposed I added the library manually in order to
>
> ...
>
> read more »

esteban

unread,
Sep 23, 2011, 4:36:22 AM9/23/11
to gwt-cx
Hi Rob,

thank you for the interesting tutorial.
I was able to start the application but I couldn't pass the login-
dialog.
Because there is a problem with the datasource (couldn't find the find
datasource 'HSQLDB....')
Is that a common issue, and what's the solution for that ?
I believe I will solve it...but perhaps other people had already the
same problem...

An other question about documentation : is there a document giving an
overview about application/used tools/etc., perhaps also describing
the 'architecture' of the application ?
I'm asking because I'm new on GWT. I know well back-end parts of
applications but that's the first time I start with the front-end
based on GWT.
You created DTO objects to map from business objects to View Objects.
There are also CommandHandlers, used apt ...Are these things part of
the 'standard/common' GWT development ?

Finally, I would like to congratulate you and the development team
because it's not easy to find in the internet a tutorial for a good
enterprise application (multimudule, separation of front- and back-end
concerns)

(Perhaps my comment should have been posted in an other thread !?
Sorry ;-)

Esteban.

On Sep 20, 12:32 am, Rob <rob.fergu...@uptick.com.au> wrote:
> Hi,
>
> I think I may have accidentially mislead you as well :-)
>
> After checking the doco re Tomcat 7's CP:
>
> ->http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html
>
> These are the correct libs:
>
> - tomcat-dbcp.jar
> - tomcat-juli.jar
>
> There is a interesting discussion re connection pools here:
>
> > > > >> inhttp://repo1.maven.org/maven2wascachedinthe local repository,
> > > > >> resolution will not be reattempted until the update interval of
> > > > >> central has elapsed or updates are forced -> [Help 1]
>
> > > > >> On 18 sep, 02:06, Rob Ferguson <rob.fergu...@uptick.com.au> wrote:
> > > > >> > HI,
>
> > > > >> > -> As you proposed I added the library manually in order to
>
> ...
>
> read more »

Rob Ferguson

unread,
Sep 23, 2011, 5:51:50 AM9/23/11
to gwt...@googlegroups.com
Hi Esteban,

Thanks for your feedback :-)

You just need to point the sample application (Serendipity) to the data source.

Take a look at this post:

 -> http://groups.google.com/group/gwt-cx/browse_thread/thread/ed71fd234b4601f5

And let me know if you run into any issues.

I am working on the documentation. In the mean time you can post questions here.

Cheers
Rob
Reply all
Reply to author
Forward
0 new messages