Coder Social home page Coder Social logo

errai-tutorial's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

errai-tutorial's Issues

Maven fail with 'dependencies.dependency.version' for dom4j:dom4j:jar is missing.

In the errai tutorial do mvn install and then you can get the next error:

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for dom4j:dom4j:jar is missing. @ line 312, column 21
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.jboss.errai.demo:errai-tutorial:4.7.0-SNAPSHOT (/home/jfuentes/eclipse-workspace/errai-tutorial/pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for dom4j:dom4j:jar is missing. @ line 312, column 21
[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/ProjectBuildingException

I can solve whit update the dependency of dom4j from
<dependency><groupId>dom4j</groupId><artifactId>dom4j</artifactId><scope>provided</scope></dependency>
to

<!-- https://mvnrepository.com/artifact/dom4j/dom4j -->
<dependency>
    <groupId>dom4j</groupId>
    <artifactId>dom4j</artifactId>
    <version>1.6.1</version>
</dependency>

Unable to Launch errai-tutorial in SuperDev Mode

Hi,
When launching the tutorial for the first time in superdev mode, there is an error while using the embedded wildfly launcher.
here is the result of my terminal. Can't seem to figured out what's wrong. However, the application is deployed without problem.
[INFO] --- gwt-maven-plugin:2.8.2:run (default-cli) @ errai-tutorial --- [INFO] auto discovered modules [org.jboss.errai.demo.App] [INFO] create exploded Jetty webapp in /home/djasy3/eclipse-workspace/errai-tutorial-master/src/main/webapp [INFO] Super Dev Mode starting up [INFO] workDir: /tmp/gwt-codeserver-8745015555717133264.tmp [INFO] INFO [log] Logging initialized @2899ms [INFO] Loading Java files in org.jboss.errai.demo.App. [INFO] Module setup completed in 6195 ms [INFO] INFO [Server] jetty-9.2.14.v20151106 [INFO] INFO [ContextHandler] Started o.e.j.s.ServletContextHandler@68917e71{/,null,AVAILABLE} [INFO] INFO [ServerConnector] Started ServerConnector@3d486778{HTTP/1.1}{127.0.0.1:9876} [INFO] INFO [Server] Started @7927ms [INFO] [INFO] The code server is ready at http://127.0.0.1:9876/ [ERROR] WARNING: An illegal reflective access operation has occurred [ERROR] WARNING: Illegal reflective access by org.wildfly.extension.elytron.SSLDefinitions (jar:file:/home/djasy3/web/wildfly-24/modules/system/layers/base/org/wildfly/extension/elytron/main/wildfly-elytron-integration-16.0.1.Final-ee9.jar!/) to method com.sun.net.ssl.internal.ssl.Provider.isFIPS() [ERROR] WARNING: Please consider reporting this to the maintainers of org.wildfly.extension.elytron.SSLDefinitions [ERROR] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations [ERROR] WARNING: All illegal access operations will be denied in a future release [INFO] Warning! The CLI is running in a non-modular environment and cannot load commands from management extensions. [INFO] 14:26:57,095 INFO [io.jaegertracing.internal.JaegerTracer] (MSC service thread 1-6) No shutdown hook registered: Please call close() manually on application shutdown. [ERROR] Unable to start embedded HTTP server [ERROR] java.lang.IllegalStateException: Could not deploy errai-tutorial.war: [ERROR] Input: [ERROR] { [ERROR] "operation" : "deploy", [ERROR] "address" : [{ [ERROR] "deployment" : "errai-tutorial.war" [ERROR] }] [ERROR] } [ERROR] Output: [ERROR] { [ERROR] "outcome" : "failed", [ERROR] "failure-description" : {"WFLYCTL0080: Failed services" : {"jboss.persistenceunit.webapp#forge-default" : "javax.xml.stream.FactoryConfigurationError: Provider for class javax.xml.stream.XMLEventFactory cannot be created\n Caused by: javax.xml.stream.FactoryConfigurationError: Provider for class javax.xml.stream.XMLEventFactory cannot be created\n Caused by: java.lang.RuntimeException: Provider for class javax.xml.stream.XMLEventFactory cannot be created\n Caused by: java.util.ServiceConfigurationError: javax.xml.stream.XMLEventFactory: Provider org.apache.xerces.stax.XMLEventFactoryImpl not found"}}, [ERROR] "rolled-back" : true [ERROR] } [ERROR] at org.jboss.errai.cdi.server.as.JBossServletContainerAdaptor.attemptDeploymentRelatedOp(JBossServletContainerAdaptor.java:300) [ERROR] at org.jboss.errai.cdi.server.as.JBossServletContainerAdaptor.attemptDeploy(JBossServletContainerAdaptor.java:288) [ERROR] at org.jboss.errai.cdi.server.as.JBossServletContainerAdaptor.<init>(JBossServletContainerAdaptor.java:163) [ERROR] at org.jboss.errai.cdi.server.as.JBossServletContainerAdaptor.<init>(JBossServletContainerAdaptor.java:74) [ERROR] at org.jboss.errai.cdi.server.gwt.EmbeddedWildFlyLauncher.start(EmbeddedWildFlyLauncher.java:111) [ERROR] at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:636) [ERROR] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:923) [ERROR] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:706) [ERROR] at com.google.gwt.dev.DevMode.main(DevMode.java:432) [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 26.652 s [INFO] Finished at: 2023-05-13T14:27:05-03:00 [INFO] ------------------------------------------------------------------------
And the Gwt Development Mode windows gives an error of Module Load Failure.

Please, Advise.

Tomcat: an unknown servlet name javax.ws.rs.core.Application

Hey. How I can run this demo project on tomcat in eclipse?
When I start tomcat I am getting an error:

Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name javax.ws.rs.core.Application
	at org.apache.catalina.core.StandardContext.addServletMappingDecoded(StandardContext.java:3126)
	at org.apache.catalina.Context.addServletMappingDecoded(Context.java:879)
	at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1376)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1190)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:775)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5077)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

Or on Jetty:

WARN [AbstractLifeCycle] FAILED org.eclipse.jetty.server.session.SessionHandler@4ad22f81: java.lang.IllegalStateException: No such servlet: javax.ws.rs.core.Application
java.lang.IllegalStateException: No such servlet: javax.ws.rs.core.Application

mobile profile build fails when using maven 3.1.1

$ mvn clean package -Pmobile,jboss7
[INFO] Scanning for projects...
:
[INFO] --- cordova-maven-plugin:3.0-SNAPSHOT:build-project (build) @ errai-tutorial ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:25.525s
[INFO] Finished at: Wed Oct 09 15:05:37 CEST 2013
[INFO] Final Memory: 39M/346M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jboss.errai:cordova-maven-plugin:3.0-SNAPSHOT:build-project (build) on project errai-tutorial: Execution build of goal org.jboss.errai:cordova-maven-plugin:3.0-SNAPSHOT:build-project failed: An API incompatibility was encountered while executing org.jboss.errai:cordova-maven-plugin:3.0-SNAPSHOT:build-project: java.lang.NoSuchMethodError: org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/RepositorySystemSession;
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.jboss.errai:cordova-maven-plugin:3.0-SNAPSHOT
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/.m2/repository/org/jboss/errai/cordova-maven-plugin/3.0-SNAPSHOT/cordova-maven-plugin-3.0-SNAPSHOT.jar
[ERROR] urls[1] = file:
/.m2/repository/org/codehaus/gmaven/gmaven-mojo/1.5/gmaven-mojo-1.5.jar
[ERROR] urls[2] = file:/.m2/repository/org/codehaus/gmaven/runtime/gmaven-runtime-api/1.5/gmaven-runtime-api-1.5.jar
[ERROR] urls[3] = file:
/.m2/repository/org/codehaus/gmaven/feature/gmaven-feature-api/1.5/gmaven-feature-api-1.5.jar
[ERROR] urls[4] = file:/.m2/repository/org/codehaus/gmaven/runtime/gmaven-runtime-1.5/1.5/gmaven-runtime-1.5-1.5.jar
[ERROR] urls[5] = file:
/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar
[ERROR] urls[6] = file:/.m2/repository/org/codehaus/gmaven/feature/gmaven-feature-support/1.5/gmaven-feature-support-1.5.jar
[ERROR] urls[7] = file:
/.m2/repository/org/codehaus/gmaven/runtime/gmaven-runtime-support/1.5/gmaven-runtime-support-1.5.jar
[ERROR] urls[8] = file:/.m2/repository/org/sonatype/gshell/gshell-io/2.4/gshell-io-2.4.jar
[ERROR] urls[9] = file:
/.m2/repository/org/sonatype/gossip/gossip/1.3/gossip-1.3.jar
[ERROR] urls[10] = file:/.m2/repository/com/thoughtworks/qdox/qdox/1.12/qdox-1.12.jar
[ERROR] urls[11] = file:
/.m2/repository/org/codehaus/groovy/groovy-all-minimal/1.5.8/groovy-all-minimal-1.5.8.jar
[ERROR] urls[12] = file:/.m2/repository/org/apache/ant/ant/1.8.2/ant-1.8.2.jar
[ERROR] urls[13] = file:
/.m2/repository/org/apache/ant/ant-launcher/1.8.2/ant-launcher-1.8.2.jar
[ERROR] urls[14] = file:/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar
[ERROR] urls[15] = file:
/.m2/repository/junit/junit/4.10/junit-4.10.jar
[ERROR] urls[16] = file:/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar
[ERROR] urls[17] = file:
/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
[ERROR] urls[18] = file:/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar
[ERROR] urls[19] = file:
/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
[ERROR] urls[20] = file:/.m2/repository/com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.jar
[ERROR] urls[21] = file:
/.m2/repository/org/codehaus/gmaven/gmaven-mojo-support/1.5/gmaven-mojo-support-1.5.jar
[ERROR] urls[22] = file:/.m2/repository/commons-configuration/commons-configuration/1.9/commons-configuration-1.9.jar
[ERROR] urls[23] = file:
/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
[ERROR] urls[24] = file:/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
[ERROR] urls[25] = file:
/.m2/repository/org/twdata/maven/mojo-executor/2.0/mojo-executor-2.0.jar
[ERROR] urls[26] = file:/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[27] = file:
/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[28] = file:/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[29] = file:
/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[30] = file:/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[31] = file:
/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.5/plexus-utils-1.5.5.jar
[ERROR] urls[32] = file:/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.3.0/sisu-inject-bean-2.3.0.jar
[ERROR] urls[33] = file:
/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
[ERROR] urls[34] = file:~/.m2/repository/org/sonatype/sisu/sisu-guava/0.9.9/sisu-guava-0.9.9.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [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/PluginContainerException

$ mvn --version
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:22+0200)
Maven home: /opt/apache-maven-3.1
Java version: 1.7.0_25, vendor: Oracle Corporation
Java home: /usr/java/jdk1.7.0_25/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-358.18.1.el6.x86_64", arch: "amd64", family: "unix"

Not able to compile with Java 9

When I execute mvn clean install or mvn clean package or mvn gwt:run using Java 9, I see this error:

[INFO] INFO [log] Logging initialized @3116ms
[INFO]    Loading Java files in org.jboss.errai.demo.App.
[INFO]    [ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core' either directly or indirectly (most often by inheriting module 'com.google.gwt.user.User')
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

I guess [1] currently chosen GWT version is not working good with Java 9 and need to be updated (or added a note about not supported Java 9)

[1] https://groups.google.com/forum/#!topic/Google-Web-Toolkit/WuoGvsjud1o

jboss-as-maven-plugin is missing in pom.xml

Hi,

I get the following exception when I try to run "mvn clean package jboss-as:deploy" according to the instruction in README:

[ERROR] No plugin found for prefix 'jboss-as' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/ibek/.m2/repository), central (http://repo.maven.apache.org/maven2)] -> [Help 1]

After I added the jboss-as-maven-plugin, the package was built and deployed to the application server.

Maven Fails when ${errai.jboss.home} path contains spaces

The maven build fails with following message:
[ERROR] Error: Could not find or load main class Documents\errai-tutorial-master\target.wildfly-10.0.0.Final [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 24.912 s [INFO] Finished at: 2017-07-03T17:52:19+02:00 [INFO] Final Memory: 53M/386M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.8.0:run (default-cli) on project errai-tutorial: Command [[ [ERROR] cmd.exe /X /C ""C:\Program Files\Java\jdk1.8.0_121\jre\bin\java" -Xmx2048m -XX:CompileThreshold=7000 -Derrai.jboss.home=C:\Projects\CLT Documents\errai-tutorial-master\target/wildfly-10.0.0.Final -Derrai.dev.context=errai-tutorial com.google.gwt.dev.DevMode -gen "C:\Projects\CLT Documents\errai-tutorial-master\target\.generated" -war "C:\Projects\CLT Documents\errai-tutorial-master\src\main\webapp" -logLevel INFO -port 8888 -codeServerPort 9997 -startupUrl errai-tutorial/ -sourceLevel auto -server org.jboss.errai.cdi.server.gwt.EmbeddedWildFlyLauncher org.jboss.errai.demo.App" [ERROR] ]] failed with status 1 [ERROR] -> [Help 1]

The error occurs because there is a space in the path "C:\Projects\CLT Documents\errai-tutorial-master\target/wildfly-10.0.0.Final" resulting in -Derrai.jboss.home to be "C:\Projects\CLT"

To resolve this issue, I had to add quotation marks around ${errai.jboss.home} in the pom.xml:
-Xmx2048m -XX:CompileThreshold=7000 -Derrai.jboss.home="${errai.jboss.home}" -Derrai.dev.context="${errai.dev.context}"

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.