Code Monkey home page Code Monkey logo

gwt-material-archetype's People

Contributors

kevzlou7979 avatar manolo avatar randymay avatar stuckless avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gwt-material-archetype's Issues

gwt-module.dtd moved, 301

Hi there!

I just generated an empty GwtMaterialDesign using the archetype line from
https://gwtmaterialdesign.github.io/gwt-material-demo/snapshot/#gettingstarted
-->
mvn archetype:generate -DarchetypeGroupId=com.github.gwtmaterialdesign -DarchetypeArtifactId=gwt-material-archetype -DarchetypeVersion=2.1.1

Using this I get a *.gwt.xml file that references http://gwtproject.org/doctype/2.7.0/gwt-module.dtd
sadly this file is not (any more?) available at this address, which makes eclipse display an error.
The way I workaround this issue is to put the gwt-module.dtd right next to the *.gwt.xml file and reference it without a path, which makes eclipse read the file from the same directory.

[QUESTION] How do you "run" the application after you generate it

This might be an obvious question, but after I create a sample application, how do run/test it?

when I use mvn gwt:run I get a window pop up that has a button to launch the html, but that opens a browser with a 404 error? Just trying figure out the basics here :(

Archetype not working with 2.1.1

Hi guys,

I have been working with GWT several years and I want to try your project. However, if I follow the steps of the installation of the prototype I get stucked with this error:

[WARNING] Error: no se ha encontrado o cargado la clase principal com.google.gwt.dev.Compiler
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.646 s
[INFO] Finished at: 2018-09-29T14:03:03+02:00
[INFO] Final Memory: 31M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-10:compile (default) on project tutorial-cms: GWT exited with status 1 -> [Help 1]

Could you please help me?

Thanks in advance.

Maven project run gives naccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass

Hi, I tried following https://www.youtube.com/watch?v=rVo_CeDaA8s
Using Apache Maven 3.8.6 and JDK 17.0.2.

Upon mvn clean install, I consistently get the following error:

[INFO] --- gwt-maven-plugin:1.0.1:compile (default) @ ttt ---
[INFO] Compiling module ttt.ttt
[INFO] Computing all possible rebind results for 'com.gwtplatform.mvp.client.ApplicationController'
[INFO] Rebinding com.gwtplatform.mvp.client.ApplicationController
[INFO] Invoking generator com.gwtplatform.mvp.rebind.ApplicationControllerGenerator
[INFO] [ERROR] Generator 'com.gwtplatform.mvp.rebind.ApplicationControllerGenerator' threw an exception while rebinding 'com.gwtplatform.mvp.client.ApplicationController'
[INFO] com.google.inject.internal.util.$ComputationException: java.lang.ExceptionInInitializerError
[INFO] at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:553)
[INFO] at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:419)
[INFO] at com.google.inject.internal.util.$CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
[INFO] at com.google.inject.internal.FailableCache.get(FailableCache.java:50)
[INFO] at com.google.inject.internal.ConstructorInjectorStore.get(ConstructorInjectorStore.java:49)
[INFO] at com.google.inject.internal.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:125)
[INFO] at com.google.inject.internal.InjectorImpl.initializeBinding(InjectorImpl.java:507)
[INFO] at com.google.inject.internal.AbstractBindingProcessor$Processor$1.run(AbstractBindingProcessor.java:159)
[INFO] at com.google.inject.internal.ProcessedBindingData.initializeBindings(ProcessedBindingData.java:44)
[INFO] at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:122)
[INFO] at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
[INFO] at com.google.inject.Guice.createInjector(Guice.java:95)
.
.
.
[INFO] Caused by: java.lang.ExceptionInInitializerError
[INFO] at com.google.inject.internal.cglib.reflect.$FastClassEmitter.(FastClassEmitter.java:67)
[INFO] at com.google.inject.internal.cglib.reflect.$FastClass$Generator.generateClass(FastClass.java:72)
[INFO] at com.google.inject.internal.cglib.core.$DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
[INFO] at com.google.inject.internal.cglib.core.$AbstractClassGenerator.create(AbstractClassGenerator.java:216)
[INFO] at com.google.inject.internal.cglib.reflect.$FastClass$Generator.create(FastClass.java:64)
[INFO] at com.google.inject.internal.BytecodeGen.newFastClass(BytecodeGen.java:207)
[INFO] at com.google.inject.internal.DefaultConstructionProxyFactory.create(DefaultConstructionProxyFactory.java:53)
[INFO] at com.google.inject.internal.ProxyFactory.create(ProxyFactory.java:153)
[INFO] at com.google.inject.internal.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:89)
[INFO] at com.google.inject.internal.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:28)
[INFO] at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:36)
[INFO] at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:32)
[INFO] at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:39)
[INFO] at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:549)
[INFO] ... 75 more
[INFO] Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @7634b327
[INFO] at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
[INFO] at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
[INFO] at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
[INFO] at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
[INFO] at com.google.inject.internal.cglib.core.$ReflectUtils$2.run(ReflectUtils.java:56)
[INFO] at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
[INFO] at com.google.inject.internal.cglib.core.$ReflectUtils.(ReflectUtils.java:46)
[INFO] ... 89 more
[INFO] [ERROR] Errors in 'gen/com/google/gwt/lang/ttt_00046ttt__EntryMethodHolder.java'
[INFO] [ERROR] Line 3: Failed to resolve 'com.gwtplatform.mvp.client.ApplicationController' via deferred binding
[INFO] [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
[INFO] [WARN] com.gwtplatform.mvp.client.ClientGinjector
[INFO] [WARN] com.gwtplatform.mvp.client.ApplicationControllerImpl
[INFO] -----------------------------------------------------------------------

Could you please help to get this working?
I was able to GWT default application working fine. However Maven and GWT doesn't seem to be in sync too well. Maven projects give this same issue.

can't generate new project from archetype using version 2.6.0

Running mvn archetype:generate -DarchetypeGroupId=com.github.gwtmaterialdesign -DarchetypeArtifactId=gwt-material-archetype -DarchetypeVersion=2.6.0 I got this error:

mvn archetype:generate -DarchetypeGroupId=com.github.gwtmaterialdesign -DarchetypeArtifactId=gwt-material-archetype -DarchetypeVersion=2.6.0
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.2.1:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.2.1:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO]
[INFO] --- maven-archetype-plugin:3.2.1:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype repository not defined. Using the one from [com.github.gwtmaterialdesign:gwt-material-archetype:2.5.0] found in catalog remote
[WARNING] The POM for com.github.gwtmaterialdesign:gwt-material-archetype:jar:2.6.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10.282 s
[INFO] Finished at: 2022-08-02T11:44:10+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.github.gwtmaterialdesign:gwt-material-archetype:2.6.0) -> [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/MojoFailureException

If I specify version 2.4.2 it works. Where am I wrong?

Unable to start this archetype

When I do mvn gwt:devmode I get an error:
[ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-10:compile (default) on project gwt-material: GWT exited with status 1 -> [Help 1]
Any idea's what this might be?

Tutorial for a real MVP application

Hi, I was able following the video GWT Material #1 - Project Setup and adapting a little bit stuff to use latest 2.0-rc5 version, to set up and run this demo. However what I would like to do is, starting from here, build up a real application. I know you have a lot of examples like gwt-material-demo and gwt-material-patterns but unfortunately I am not able to startup them. If I import them inside eclipse then I don't know how to setup and run them in Eclipse IDE. I receive lots of errors and the build process doesn't work. What I would really like was, starting from this archetype, which represent a basic skeleton, have a tutorial to build a real application with views, presenters, and so on. Just a sort of tutorial to understand how you structured the gwt-material-demo for example. With the menu and main slots concepts, understand how to add views and menu items so that every time you click on a item in the menu, a view is loaded as main content and so on. GWT Material #1 - Project Setup video tutorial and also the others just explain how to build the UI but not how to build the logic of the application. Could you possibly evaluate the possibility to realize a tutorial for this? Thanks.

is this archetype up to date?

I was wondering if this is the official archetype for GwtMaterialDesing, or there is another one.

I got an AST error while trying to run it.
[INFO] Compiling module com.gwidgets.materialtheme.GwtMaterialBasic
[INFO] [ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:121)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:296)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:67)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] at com.google.gwt.dev.jjs.ast.JMethodCall.visitChildren(JMethodCall.java:253)
[INFO] at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:246)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] at com.google.gwt.dev.jjs.ast.JExpressionStatement.traverse(JExpressionStatement.java:42)
[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)

I also had to change the packaging from jar to pom to be able to use the archetype locally. I think also it is better to prompt the user for the module name when generating the project as in : https://github.com/tbroyer/gwt-maven-archetypes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.