Problem compiling the example

67 views
Skip to first unread message

Kamesh S

unread,
Feb 14, 2013, 10:58:30 PM2/14/13
to gwt...@googlegroups.com
Hi,

This is my first post and I am an experienced Java/GWT programmer and I am trying to understood how gwt-cx can help is to improve one of my new project.

What I am looking for is GWT+gwt-cx (MVP,UiBinder) or GWTP+gwt-cx combination without any other dependencies like smartGWT/GXT.

I tried to compile samples from the kiahu-cx (svn repo http://gwt-cx.googlecode.com/svn/trunk/and I got an error due to missing dependency. 

com.gwtcx:gwtcx-core-shared-dispatch:jar:1.0.0-dp1

I can't find this dependency anywhere. 

Can someone please guide me in right direction.

Also is there any example with GWTP & gwt-cx without smartGWT?

Thanks in advance
Kams

Rob Ferguson

unread,
Feb 15, 2013, 1:17:42 AM2/15/13
to gwt...@googlegroups.com
Hi,

There are Kiahu CX (gwt-cx) samples for GWT, mgwt, Ext GWT and Smart GWT.  I am currently working on a new GXT/Restlet sample. 

However, I haven't updated the old samples (~\gwtcx\gwtcx-samples\...) for a while so please use the new samples (~\gwtcx\samples\...).

There are posts on the UpTick blog and the Kiahu blog that discuss the frameworks design and evolution.

-> com.gwtcx:gwtcx-core-shared-dispatch:jar:1.0.0-dp1

I have been refactoring the framework in order to include support for additional server-side components   The old "gwtcx-core-shared" has been renamed "gwtcx-core-shared-dispatch".

If you rebuild the framework from the trunk you should be fine.

E.g.: from ~\gwtcx
mvn clean
mvn gwt:clean
mvn package 
mvn install

from ~\gwtcx\gwtcx-dependencies
mvn-install

from ~\gwtcx\samples\sample-gxt-basic-project
mvn clean
mvn gwt:clean
mvn run

Cheers
Rob

Kiahu.com

Kamesh S

unread,
Feb 15, 2013, 1:36:00 AM2/15/13
to gwt...@googlegroups.com
Thanks Rob the quick response.

I tried to clean and build before but I got an error. That was the reason why I tried to build the samples using the jar from the kiahu-cx site.

When i tried "mvn clean" from ~/gwtcx folder, it fails with following error.

D:\Dev\PersonalDev\GWTP\gwtcx>mvn clean
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: unknown

Reason: Could not find the model file 'D:\Dev\PersonalDev\GWTP\gwtcx\gwtcx-core\gwtcx-core-shared-dispatch'. for project unknown


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Could not find the model file 'D:\Dev\PersonalDev\GWTP\gwtcx\gwtcx-core\gwtcx-core-shared-dispatch'.
 for project unknown
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Could not find the model file 'D:\Dev\PersonalDev\GWTP\gwtcx\gwtcx-core\gwtcx-core-share
d-dispatch'. for project unknown
        at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1575)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506)
        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560)
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
        ... 12 more
Caused by: java.io.FileNotFoundException: D:\Dev\PersonalDev\GWTP\gwtcx\gwtcx-core\gwtcx-core-shared-dispatch (The system cannot find the file specifi
ed)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at hidden.org.codehaus.plexus.util.xml.XmlReader.<init>(XmlReader.java:124)
        at hidden.org.codehaus.plexus.util.xml.XmlStreamReader.<init>(XmlStreamReader.java:67)
        at hidden.org.codehaus.plexus.util.ReaderFactory.newXmlReader(ReaderFactory.java:118)
        at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1570)
        ... 19 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Feb 15 17:30:49 EST 2013
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------

Any idea how I can get past this?

Thanks
Kams

Rob Ferguson

unread,
Feb 15, 2013, 1:49:06 AM2/15/13
to gwt...@googlegroups.com
HI,

Check to see if the file exists in your local maven repository.

If not then navigate to ~\gwtcx\gwtcx-core\gwtcx-core-shared-dispatch and use Maven to package and install it.

Then try and build the sample again.

Cheers
Rob

Kiahu.com

Kamesh S

unread,
Feb 15, 2013, 2:51:12 AM2/15/13
to gwt...@googlegroups.com
Hi Rob,

That's what my initial thought was but the folder gwtcx\gwtcx-core\gwtcx-core-shared-dispatch doesn't exist in the repository.

Am I missing something here?

Thanks
Kams


--
You received this message because you are subscribed to the Google Groups "gwt-cx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-cx+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rob Ferguson

unread,
Feb 15, 2013, 3:27:26 AM2/15/13
to gwt...@googlegroups.com
Hi,

Sorry, no.  I moved and renamed the folder and SmartSVN didn't like it.

I just checked in a new revision so everything should be Ok now.

Cheers
Rob

Kiahu.com 

Kamesh S

unread,
Feb 15, 2013, 4:04:13 AM2/15/13
to gwt...@googlegroups.com
Thanks 

I can compile them now.

Sorry to ask again, but is there any sample with just gwt/gwtp using atleast one of the feature from gwt-cx. 

That would help me to understand better since I am not interested in using smartGWT or GXT.

Thanks
Kams

Rob Ferguson

unread,
Feb 15, 2013, 4:26:16 AM2/15/13
to gwt...@googlegroups.com
Hi,

The UI toolkit code (GXT, smart GWT, ...) is restricted to the Views (MVP).  This is achieved through the use of UiHandlers. As discussed in this post:


So if you want to use GXT or smart GWT or just GWT then you only need to modify the samples Views.

This post discussed what's required in your project's module definition file and your POM:


Cheers
Rob

Kiahu.com

Reply all
Reply to author
Forward
0 new messages