Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Using ToCollege with GWT 2.0

89 views
Skip to first unread message

Maurice Nee

unread,
May 26, 2010, 12:41:48 PM5/26/10
to ToCollege-net
Hi,

I've been trying to go through the Building ToCollege.net appendix and
have run into many problems. I have downloaded the project from GitHub
and have imported it into Eclipse. I'm running OS X 10.6 (Snow
Leopard). I have installed the SpringSource Tools Suite, Maven2,
m2eclipse, Hibernate Tools, the GWT Plugin for Eclipse, Subclipse, and
MySQL. I'm running Eclipse Galileo J2EE. I'm starting to get a little
frustrated as I've been looking for resources on how to setup a
project that uses GWT 2.0 and Hibernate3 for over a week now. I was
extremely happy to find this book, as my problems are mostly concerned
with how to SETUP a working project that utilizes all of these
technologies, which seems to be a focus of this book. I have a descent
understanding of how these tools work individually, but have a serious
lack of understanding of how to get them to work together. So I got
Jeff's book, with some renewed hopes, only to find that after
importing the project, I am greeted with 33 errors. I am not trying to
whine as I understand how volatile all these technologies are and that
a lot of things have changed since the time when Jeff's book was
published. However, it's very difficult to fix errors related to the
project's structure and configuration when that's the very thing I set
out to learn about via this book. Again, excuse me for venting, I'm
still in the hair pulling days of learning these frameworks. Below are
the errors Im receiving.

I guessing that the 6 Maven errors I'm receiving have to do with
the .jars that need to be manually installed. However, I have already
run the following:

cd Setup/maven
chmod a+x install*
./install-all

./run_jetty_gwt

ERRORS:

Description Resource Path Location Type
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.dao.hibernate.MailingListDAOHibernateImpl
applicationContext-hibernate.xml /ProGWT/src/main/webapp/WEB-INF line
77 Spring AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.dao.hibernate.SchoolDAOHibernateImpl
applicationContext-hibernate.xml /ProGWT/src/main/webapp/WEB-INF line
73 Spring AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.dao.hibernate.UserDAOHibernateImpl
applicationContext-hibernate.xml /ProGWT/src/main/webapp/WEB-INF line
70 Spring AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.gwt.GWTDebugAdvice applicationContext.xml /
ProGWT/src/main/webapp/WEB-INF line 32 Spring AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.service.gwt.GWTSchoolServiceImpl
applicationContext.xml /ProGWT/src/main/webapp/WEB-INF line 40 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.service.gwt.GWTUserServiceImpl
applicationContext.xml /ProGWT/src/main/webapp/WEB-INF line 35 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.service.impl.InvitationServiceImpl
applicationContext.xml /ProGWT/src/main/webapp/WEB-INF line 84 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.service.impl.SchoolServiceImpl
applicationContext.xml /ProGWT/src/main/webapp/WEB-INF line 70 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.service.impl.SearchServiceImpl
applicationContext.xml /ProGWT/src/main/webapp/WEB-INF line 75 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.service.impl.UserServiceImpl
applicationContext.xml /ProGWT/src/main/webapp/WEB-INF line 49 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.util.HostPrecedingPropertyPlaceholderConfigurer
applicationContext.xml /ProGWT/src/main/webapp/WEB-INF line 11 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.util.HostPrecedingPropertyPlaceholderConfigurer
dispatcher-servlet.xml /ProGWT/src/main/webapp/WEB-INF line 25 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.web.controllers.CreateUserController
dispatcher-servlet.xml /ProGWT/src/main/webapp/WEB-INF line 76 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.web.controllers.ErrorController dispatcher-
servlet.xml /ProGWT/src/main/webapp/WEB-INF line 37 Spring AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.web.controllers.ForwardClearCacheController
dispatcher-servlet.xml /ProGWT/src/main/webapp/WEB-INF line 95 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.web.controllers.IndexController dispatcher-
servlet.xml /ProGWT/src/main/webapp/WEB-INF line 32 Spring AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.web.controllers.MailingListController
dispatcher-servlet.xml /ProGWT/src/main/webapp/WEB-INF line 62 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.web.controllers.MyListController dispatcher-
servlet.xml /ProGWT/src/main/webapp/WEB-INF line 48 Spring AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.web.controllers.OpenIDLoginController
dispatcher-servlet.xml /ProGWT/src/main/webapp/WEB-INF line 84 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.web.controllers.SignupIfPossibleController
dispatcher-servlet.xml /ProGWT/src/main/webapp/WEB-INF line 56 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.web.controllers.ViewUserController dispatcher-
servlet.xml /ProGWT/src/main/webapp/WEB-INF line 41 Spring AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.web.domain.validation.CreateUserRequestValidator
dispatcher-servlet.xml /ProGWT/src/main/webapp/WEB-INF line 68 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.web.domain.validation.PasswordChangeCommandValidator
dispatcher-servlet.xml /ProGWT/src/main/webapp/WEB-INF line 73 Spring
AOP Problem
Build path is incomplete. Cannot find class file for
com.apress.progwt.server.web.filters.GWTExtendedAuthenticationProcessingFilter
applicationContext-acegi-security.xml /ProGWT/src/main/webapp/WEB-INF
line 46 Spring AOP Problem
Missing artifact com.allen_sauer.gwt.log:gwt-log:jar:1.5.1:compile
pom.xml /ProGWT line 1 Maven Problem
Missing artifact com.google:gwt-dev-mac:jar:1.5.0-M1:provided pom.xml /
ProGWT line 1 Maven Problem
Missing artifact com.google:gwt-google-apis:jar:1.5.0.build137:compile
pom.xml /ProGWT line 1 Maven Problem
Missing artifact com.google:gwt-incubator:jar:0.0.1-20080117:compile
pom.xml /ProGWT line 1 Maven Problem
Missing artifact com.google:gwt-servlet:jar:1.5.0-M1:runtime pom.xml /
ProGWT line 1 Maven Problem
Missing artifact com.google:gwt-user:jar:1.5.0-M1:compile pom.xml /
ProGWT line 1 Maven Problem
Project 'ProGWT' is missing required source folder: 'src/test/
resources' ProGWT Build path Build Path Problem
The container 'Maven Dependencies' references non existing library '/
Users/mauricenee/.m2/repository/com/google/gwt-user/1.5.0-M1/gwt-
user-1.5.0-M1.jar' ProGWT Build path Build Path Problem
The project cannot be built until build path errors are resolved
ProGWT Unknown Java Problem


Thanks very much in advance for any help!

jdwy

unread,
May 26, 2010, 3:40:03 PM5/26/10
to ToCollege-net
Hey Maurice,

It looks to me like:

The container 'Maven Dependencies' references non existing library '/
Users/mauricenee/.m2/repository/com/google/gwt-user/1.5.0-M1/gwt-
user-1.5.0-M1.jar'

is the first error I'd look at. Have you followed the directions at
http://code.google.com/p/tocollege-net/wiki/GettingStarted

to install 1.5.3?

-Jeff

Maurice Nee

unread,
May 27, 2010, 3:01:51 AM5/27/10
to ToCollege-net
Hey Jeff,

Thanks so much for getting back to me! Really appreciate it!

I'd like to use GWT 2.0 for my own project so I was hoping I could
integrate it with ToCollege. So far, I've replaced some of the GWT
dependencies with the following in my POM:

<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.0.3</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>2.0.3</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>2.0.3</version>
</dependency>
<dependency>
<groupId>com.google.gwt.google-apis</groupId>
<artifactId>gwt-gears</artifactId>
<version>1.2.1</version>
</dependency>

I had to change some of the group ids. I also removed the ${gwt-dev}
property from the gwt-dev dependency. The latest version of the gwt-
dev-mac.jar or any other OS specific gwt-dev jar I could find was:

<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev-mac</artifactId>
<version>2.0.0-6320</version>
</dependency>

However, this jar is not hosted in the central repository, but rather
in the JBoss repository. Also, in the Getting Started directions, you
mention that the GWT jars in the Maven repository do not include OS
specific libraries. I've extracted the gwt-dev jar for version 2.0.3
in an attempt to see if those libraries are now included but there are
a ton of files and I wasn't sure where to look. So, I downloaded both
the GWT 1.5.3 SDK and the GWT 2.0.3 SDK to compare them. My download
of GWT 1.5.3 included the gwt-dev-mac.jar and several .jnilib files.
Are the .jnilib files the ones you were saying needed to be copied to
~/.m2/repository/com/google/gwt/gwt-dev/1.5.3/?
These files are not present in my download of the GWT 2.0.3 SDK. In
the my GWT 2.0.3 SDK, there is one .dll file for some reason, and the
dev jar is gwt-dev.jar, (not gwt-dev-mac.jar). Any ideas?

Lastly, is Google Gears the only part of The Google API Libraries for
Google Web Toolkit that the project depends on? I ran a search in
three different Maven Repository browsers for artifacts with the group
id of gwt-google-apis and got no results. However, it looks like there
are individual artifacts for each of the libraries in The Google API
Libraries for Google Web Toolkit. Do I need any of these:

Gadgets 1.1 Library
Ajax Search 1.1 Library
Google Maps 1.0 Library
Google Chart Tools (aka Visualizaiton) 1.1 Library
Language 1.1 Library
AjaxLoader 1.1 Library

I'm down to 26 errors now in the ToCollege project, almost all of
which seem to be Spring AOP problems. Do you know what that means?
Here are the remaining errors:

Project 'ProGWT' is missing required source folder: 'src/test/
resources' ProGWT Build path Build Path Problem

The project cannot be built until build path errors are resolved
ProGWT Unknown Java Problem

Again, thank you so much for your help.

-Maurice

On May 26, 3:40 pm, jdwy <jdw...@gmail.com> wrote:
> Hey Maurice,
>
> It looks to me like:
>
> The container 'Maven Dependencies' references non existing library '/
> Users/mauricenee/.m2/repository/com/google/gwt-user/1.5.0-M1/gwt-
> user-1.5.0-M1.jar'
>

> is the first error I'd look at. Have you followed the directions athttp://code.google.com/p/tocollege-net/wiki/GettingStarted

Reply all
Reply to author
Forward
0 new messages