gwt-tour not working

338 views
Skip to first unread message

marian lux

unread,
Apr 1, 2015, 11:55:09 AM4/1/15
to google-we...@googlegroups.com
I can't get gwt-tour working with my project.

As described 
and here http://eemi2010.github.io/gwt-tour/

I added in my pom.xml
<repositories>
   
<repository>
       
<id>gwttour-mvn-repo</id>
       
<url>https://raw.github.com/kerbymart/gwt-tour/mvn-repo/</url>
       
<snapshots>
           
<enabled>true</enabled>
           
<updatePolicy>always</updatePolicy>
       
</snapshots>
   
</repository>
</repositories>


<dependency>
   
<groupId>com.eemi.gwt</groupId>
   
<artifactId>tour</artifactId>
   
<version>1.0-SNAPSHOT</version>    
</dependency>

Added in the gwt-project.xml the line
<inherits name='com.eemi.gwt.tour.GwtTour'/>


When I add the following line in the code
Tour tour = new Tour("myTour");

Compiling in SDM returns an error "failed"
Console-Log:
Linking modules
   
Bootstrap link for command-line module 'at.mlux.oha'
     
Linking module 'oha'
         
Invoking Linker Cross-Site-Iframe
           
Ignoring the following script tags in the gwt.xml file
hopscotch
-0.1.js
....
....
src
='{feedAuthorAvatarURL}'> (:22)
         
Computing all possible rebind results for 'com.eemi.gwt.tour.client.resources.GwtTourResources'
           
Rebinding com.eemi.gwt.tour.client.resources.GwtTourResources
               
Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
                 
Creating assignment for css()
                     
Finding resources
                       
[ERROR] Resource hopscotch.css not found. Is the name specified as ClassLoader.getResource() would expect?
                 
Creating assignment for js()
                     
Finding resources
                       
[ERROR] Resource hopscotsch-0.1.2.min.js not found. Is the name specified as ClassLoader.getResource() would expect?
         
[ERROR] Errors in 'com/eemi/gwt/tour/client/GwtTour.java'
           
[ERROR] Line 57: Failed to resolve 'com.eemi.gwt.tour.client.resources.GwtTourResources' via deferred

What went wrong?

Alain Ekambi

unread,
Apr 2, 2015, 6:18:30 AM4/2/15
to google-we...@googlegroups.com

We just release a new version of gwt tour. You can get it from our sonatype repository.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Alain Ekambi

unread,
Apr 2, 2015, 6:27:00 AM4/2/15
to google-we...@googlegroups.com

marian lux

unread,
Apr 4, 2015, 5:36:16 AM4/4/15
to google-we...@googlegroups.com
Thank you but could you explain the exact steps to get it working?


in my pom.xml I added now
                <dependency>
    <groupId>com.ahome-it</groupId>
<artifactId>gwt-tour</artifactId>
<version>2.0.0-SNAPSHOT</version>   
</dependency>

in my *.gwt.xml I added
<inherits name='com.ait.toolkit.intro.Intro'/>

After adding the line
Tour tour = new Tour("myTour");

I get the error on console in super dev mode
               [ERROR] Line 150: No source code is available for type com.ait.toolkit.hopscotch.client.Tour; did you forget to inherit a required

What is wrong with my config?
THX Marian

To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Alain Ekambi

unread,
Apr 4, 2015, 5:45:02 AM4/4/15
to google-we...@googlegroups.com
GWT Tour now includes 2 libraries  Intro.js and Hopscotch.js. You are inheriting the Intro JS wrapper. You need to inherit  the Hopscotch one 

<inherits name='com.ait.toolkit.hopscotch.HopScotch'/>

Then you can start using the Tour API.


Tour tour = new Tour("myTour");


Hope that helps,

Cheers,

Alain 


To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

marian lux

unread,
Apr 4, 2015, 6:20:51 AM4/4/15
to google-we...@googlegroups.com
Thank you! But a compilation problem still remains.

I figured out the following:
When I only add in my pom.xml
                <dependency>
    <groupId>com.ahome-it</groupId>
<artifactId>gwt-tour</artifactId>
<version>2.0.0-SNAPSHOT</version>   
</dependency>
and try to compile the project with the news resources from the dependency,
I get the following console output (error) in super dev mode (without the dependency the project works - It is a mgwt project and there seems to be a conflict with PullPanel)
The code server is ready at http://127.0.0.1:9876/
Code server started in 11272 ms
waited 659 ms for code server to finish
2015-04-04 12:13:42 INFO  ManageThreadTwitter:37 - ThreadTwitter started
2015-04-04 12:13:42 INFO  ManageThreadTwitter:37 - ThreadTwitter started
2015-04-04 12:13:42 INFO  ManageThreadTwitter:126 - updated TwitterFeedData for DailyPost
2015-04-04 12:13:44 INFO  ManageThreadTwitter:136 - updated TwitterFeedData for RegionalNews
GET /recompile-requester/oha
   [WARN] Deactivated PrecompressLinker
GET /recompile/oha
   Job at.mlux.oha_1_0
      starting job: at.mlux.oha_1_0
      binding: locale=de
      binding: mgwt.density=mid
      binding: mgwt.formfactor=desktop
      binding: user.agent=safari
      Compiling module at.mlux.oha
         [ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:121)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:296)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:67)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:49)
at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)
at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)
at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:145)
at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:600)
at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:569)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1505)
at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:870)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1305)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)
at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:206)
at com.google.gwt.dev.codeserver.Recompiler.doCompile(Recompiler.java:333)
at com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler.java:161)
at com.google.gwt.dev.codeserver.Recompiler.recompile(Recompiler.java:119)
at com.google.gwt.dev.codeserver.Outbox.recompile(Outbox.java:128)
at com.google.gwt.dev.codeserver.JobRunner.recompile(JobRunner.java:81)
at com.google.gwt.dev.codeserver.JobRunner.access$100(JobRunner.java:34)
at com.google.gwt.dev.codeserver.JobRunner$2.run(JobRunner.java:73)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: com.google.gwt.uibinder.rebind.UiBinderWriter.<init>(Lcom/google/gwt/core/ext/typeinfo/JClassType;Ljava/lang/String;Ljava/lang/String;Lcom/google/gwt/core/ext/typeinfo/TypeOracle;Lcom/google/gwt/uibinder/rebind/MortalLogger;Lcom/google/gwt/uibinder/rebind/FieldManager;Lcom/google/gwt/uibinder/rebind/messages/MessagesWriter;Lcom/google/gwt/uibinder/rebind/DesignTimeUtils;Lcom/google/gwt/uibinder/rebind/UiBinderContext;ZZLjava/lang/String;)V
at com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:172)
at com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:130)
at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:760)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:160)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)
at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:87)
at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStaticRebindExpression(UnifyAst.java:485)
at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression(UnifyAst.java:443)
at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:576)
at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:306)
at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:248)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
... 47 more
            [ERROR] at PullPanelAbstractAppearance.java(29): GWT.create(PullPanelAbstractAppearance$Binder.class)
               com.google.gwt.dev.jjs.ast.JMethodCall
            [ERROR] at PullPanelAbstractAppearance.java(29): (PullPanelAbstractAppearance$Binder) GWT.create(PullPanelAbstractAppearance$Binder.class)
               com.google.gwt.dev.jjs.ast.JCastOperation
            [ERROR] at PullPanelAbstractAppearance.java(29): final static PullPanelAbstractAppearance$Binder UI_BINDER = (PullPanelAbstractAppearance$Binder) GWT.create(PullPanelAbstractAppearance$Binder.class)
               com.google.gwt.dev.jjs.ast.JDeclarationStatement
            [ERROR] at PullPanelAbstractAppearance.java(23): {
  Object.$clinit();
  final static PullPanelAbstractAppearance$Binder UI_BINDER = (PullPanelAbstractAppearance$Binder) GWT.create(PullPanelAbstractAppearance$Binder.class);
  final static PullPanelAbstractAppearance$ArrowBinder ARROW_BINDER = (PullPanelAbstractAppearance$ArrowBinder) GWT.create(PullPanelAbstractAppearance$ArrowBinder.class);
}
               com.google.gwt.dev.jjs.ast.JBlock
            [ERROR] at PullPanelAbstractAppearance.java(23): {
  Object.$clinit();
  final static PullPanelAbstractAppearance$Binder UI_BINDER = (PullPanelAbstractAppearance$Binder) GWT.create(PullPanelAbstractAppearance$Binder.class);
  final static PullPanelAbstractAppearance$ArrowBinder ARROW_BINDER = (PullPanelAbstractAppearance$ArrowBinder) GWT.create(PullPanelAbstractAppearance$ArrowBinder.class);
}
               com.google.gwt.dev.jjs.ast.JMethodBody
            [ERROR] at PullPanelAbstractAppearance.java(23): private static final void $clinit();

               com.google.gwt.dev.jjs.ast.JMethod
      [ERROR] Compiler returned false
      [WARN] recompile failed
      [WARN] continuing to serve previous version


Do you have any help / hint how to solve this? Or is the lib still incompatible with mgwt?

THX
Marian


 
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--

Alain Ekambi

Co-Founder

Ahomé Innovation Technologies

http://www.ahome-it.com/

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Alain Ekambi

unread,
Apr 4, 2015, 6:27:29 AM4/4/15
to google-we...@googlegroups.com

Having a look. Should work with mgwt.

To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.

marian lux

unread,
Apr 4, 2015, 2:12:26 PM4/4/15
to google-we...@googlegroups.com
I tested it with the current mgwt showcase (checked out from - https://github.com/mgwt/mgwt.showcase) by adding in pom.xml the dependency
                <dependency>
    <groupId>com.ahome-it</groupId>
<artifactId>gwt-tour</artifactId>
<version>2.0.0-SNAPSHOT</version>   
</dependency>
Before adding the dependency the showcase compiles and works.
After adding the dependency, I get also an error as on my mgwt project.
Runing CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.7, -bindAddress, 127.0.0.1, -launcherDir, /home/marian/workspace_oha_mgwt2/mgwt-showcase/target/mgwt-showcase-2.0.0-SNAPSHOT, -logLevel, INFO, com.googlecode.mgwt.examples.showcase.ShowCase]
Super Dev Mode starting up
   workDir: /tmp/gwt-codeserver-883274298781880589.tmp
   Loading Java files in com.googlecode.mgwt.examples.showcase.ShowCase.
   Module setup completed in 17954 ms

The code server is ready at http://127.0.0.1:9876/
Code server started in 18040 ms
waited 12176 ms for code server to finish
GET /recompile/showcase
   Job com.googlecode.mgwt.examples.showcase.ShowCase_1_0
      starting job: com.googlecode.mgwt.examples.showcase.ShowCase_1_0
      binding: mgwt.density=mid
      binding: mgwt.formfactor=desktop
      Compiling module com.googlecode.mgwt.examples.showcase.ShowCase
            [ERROR] at FlexPanelDefaultAppearance.java(39): GWT.create(FlexPanelDefaultAppearance$Binder.class)
               com.google.gwt.dev.jjs.ast.JMethodCall
            [ERROR] at FlexPanelDefaultAppearance.java(39): (FlexPanelDefaultAppearance$Binder) GWT.create(FlexPanelDefaultAppearance$Binder.class)
               com.google.gwt.dev.jjs.ast.JCastOperation
            [ERROR] at FlexPanelDefaultAppearance.java(39): final static FlexPanelDefaultAppearance$Binder UI_BINDER = (FlexPanelDefaultAppearance$Binder) GWT.create(FlexPanelDefaultAppearance$Binder.class)
               com.google.gwt.dev.jjs.ast.JDeclarationStatement
            [ERROR] at FlexPanelDefaultAppearance.java(22): {
  Object.$clinit();
  {
    FlexPanelDefaultAppearance$Resources.INSTANCE.css().ensureInjected();
  }
  final static FlexPanelDefaultAppearance$Binder UI_BINDER = (FlexPanelDefaultAppearance$Binder) GWT.create(FlexPanelDefaultAppearance$Binder.class);
}
               com.google.gwt.dev.jjs.ast.JBlock
            [ERROR] at FlexPanelDefaultAppearance.java(22): {
  Object.$clinit();
  {
    FlexPanelDefaultAppearance$Resources.INSTANCE.css().ensureInjected();
  }
  final static FlexPanelDefaultAppearance$Binder UI_BINDER = (FlexPanelDefaultAppearance$Binder) GWT.create(FlexPanelDefaultAppearance$Binder.class);
}
               com.google.gwt.dev.jjs.ast.JMethodBody
            [ERROR] at FlexPanelDefaultAppearance.java(22): private static final void $clinit();

               com.google.gwt.dev.jjs.ast.JMethod
      [ERROR] Compiler returned false
      [WARN] recompile failed
      [WARN] continuing to serve previous version


It seems there is a problem with mgwt or something else (dependencies). The pom.xml from mgwt showcase with the dependency of gwt-tour is also in attachment.
pom.xml

Alain Ekambi

unread,
Apr 4, 2015, 3:41:53 PM4/4/15
to google-we...@googlegroups.com
This code seems to work for me here

package com.ait.ti4j.playground.client;


import com.ait.toolkit.hopscotch.client.HopScotch;

import com.ait.toolkit.hopscotch.client.Placement;

import com.ait.toolkit.hopscotch.client.Tour;

import com.ait.toolkit.hopscotch.client.TourStep;

import com.google.gwt.core.client.EntryPoint;

import com.google.gwt.user.client.ui.RootPanel;

import com.googlecode.mgwt.ui.client.MGWT;

import com.googlecode.mgwt.ui.client.MGWTSettings;

import com.googlecode.mgwt.ui.client.animation.AnimationHelper;

import com.googlecode.mgwt.ui.client.widget.animation.Animations;

import com.googlecode.mgwt.ui.client.widget.button.Button;

import com.googlecode.mgwt.ui.client.widget.panel.flex.RootFlexPanel;


public class MgwtTest implements EntryPoint {


    @Override

    public void onModuleLoad() {


        // set viewport and other settings for mobile

        MGWT.applySettings( MGWTSettings.getAppSetting() );


        // build animation helper and attach it

        AnimationHelper animationHelper = new AnimationHelper();

        RootPanel.get().add( animationHelper );


        // build some UI

        RootFlexPanel rootFlexPanel = new RootFlexPanel();

        Button button = new Button( "Hello mgwt" );

        rootFlexPanel.add( button );


        // animate

        animationHelper.goTo( rootFlexPanel, Animations.SLIDE );


        Tour tour = new Tour( "myTour" );


        TourStep step = new TourStep( Placement.BOTTOM, button );

        step.setContent( "This is the Button" );

        step.setTitle( "Button" );

        tour.addStep( step );


        HopScotch.startTour( tour );


    }


}



To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
MGWT_Test.png

marian lux

unread,
Apr 4, 2015, 5:06:27 PM4/4/15
to google-we...@googlegroups.com
Hmm. 
With mgwt-showcase (https://github.com/mgwt/mgwt.showcase) it is not working for me as you can see above. Could please you try to check out the mgwt-showcase and test it if it is compileable by only adding the gwt-tour dependency in the pom.xml? Maybe there is a widget/panel which causes a problem (I get some errors in dependence  with the Appearance Pattern)? Sorry I am not into detail with this. But I think testing with the showcase makes sense because it displays most possible widgets in mgwt and so if it works there, it should work in every project/setup.
But if the showcase works on your machine, it must be an issue on my side (setup) and then I can dig deeper there and post a solution if I find one.
THX Marian
...

Alain Ekambi

unread,
Apr 5, 2015, 4:19:13 PM4/5/15
to google-we...@googlegroups.com
Tested. 
I could not reproduced the issue. 
Looks like something is wrong with your  settings.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

marian lux

unread,
Apr 6, 2015, 10:01:48 AM4/6/15
to google-we...@googlegroups.com
Thank you for further tests and that info. It helped me to test in other directions:
I did some tests and found a hint.
I assume you tested it with gwt 2.6.1?
When I compile the showcase with gwt 2.6.1 it works. With 2.7. I get the error as described above.

So it seems the gwt-tour lib is not compatible with (mgwt 2.0 in combination with) gwt 2.7?!


...

Prasenjit Hiwale

unread,
Aug 17, 2023, 8:45:45 AM8/17/23
to GWT Users
I'm getting following error GWT Module com.ait.toolkit.core.Core not found in project sources or resources
Reply all
Reply to author
Forward
0 new messages