3 Replies Latest reply on May 12, 2014 6:37 AM by Tomaz Cerar

    I cannot deploy/start quickstart/ejb-remote example

    Zoka Fil Newbie

      Hi!

       

      We are thinking of making our new project with WildFly and later maybe migrate our existing projects from Jonas to WildFly.

      For this I downloaded Wildfly 8 Final and started the WildFly Server (standalone.sh)  and downloaded all quickstart examples from

      https://github.com/wildfly/quickstart

      (On the right side of the page there is a button "Download ZIP")

       

      First I deployed helloworld example and it worked.

       

      Then I wanted to deploy/start ejb-remote example , but it gave me this message:

      [ERROR] Failed to execute goal on project wildfly-ejb-remote-client: Could not resolve dependencies for project org.wildfly.quickstarts:wildfly-ejb-remote-client:jar:8.0.0-SNAPSHOT: The following artifacts could not be resolved: org.wildfly.quickstarts:wildfly-ejb-remote-server-side:jar:client:8.0.0-SNAPSHOT, org.jboss.remoting:jboss-remoting:jar:4.0.0.Final: Could not find artifact org.wildfly.quickstarts:wildfly-ejb-remote-server-side:jar:client:8.0.0-SNAPSHOT -> [Help 1]

       

      I have been trying to fix this for 2 days. (I have 30 tabs open in my browser searching like mad).

      I also read this http://www.jboss.org/jdf/quickstarts/jboss-as-quickstart/#configure-maven

      but there is no settings.xml in example Folders which can be copied.

       

      README.md says:

      If you are using the JBoss WildFly Quickstart distribution, the community artifacts are available in the Maven central repository so no additional configuration is needed.

      But apparently wildfly-ejb-remote-client:jar:8.0.0-SNAPSHOT is not in central repository or at least not under that name.

       

      Please be Aware this is my first contact with WIldFly(JBoss) and Maven (we are still using Ant with Jonas).

      I've been give just one more day for WildFly research, otherwise we will have to start the new Project with Jonas.

       

      If someone can help I would be very thankfull!

       

      BR, Zoka

        • 1. Re: I cannot deploy/start quickstart/ejb-remote example
          Zoka Fil Newbie

          I'm sorry I forgot to tell at what step I'm having this error.

           

          I followed instructions in README.md

          - I started WildFly
          - I built and installed the server side component: 

          cd server-side

          mvn clean install     

          mvn wildfly:deploy

           

          On the server cosole I can see that deploy was succesfull. (I'll put server output at the end of this posting)

           

          Then I did:

          cd client

          mvn clean compile
          mvn exec:exec
          and there i get dependency error which I described in the original posting.

           

          I hope someone can help.

          Thank you!

          Zoka

           

          Server Output:

          13:13:05,551 INFO  [org.jboss.as.repository] (management-handler-thread - 1) JBAS014900: Content added at location C:\wildfly-8.0.0.Final\standalone\data\conten
          t\8b\0535e9fe69a0c9228efa1f548b87e8cf34e29f\content
          13:13:05,571 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "wildfly-ejb-remote-server-side.jar" (runtime-na
          me: "wildfly-ejb-remote-server-side.jar")
          13:13:05,771 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016002: Processing weld deployment wildfly-ejb-remote-server-side.jar
          13:13:05,961 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-1) HV000001: Hibernate Validator 5.0.3.Final
          13:13:06,041 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean name
          d CalculatorBean in deployment unit deployment "wildfly-ejb-remote-server-side.jar" are as follows:

                  java:global/wildfly-ejb-remote-server-side/CalculatorBean!org.jboss.as.quickstarts.ejb.remote.stateless.RemoteCalculator
                  java:app/wildfly-ejb-remote-server-side/CalculatorBean!org.jboss.as.quickstarts.ejb.remote.stateless.RemoteCalculator
                  java:module/CalculatorBean!org.jboss.as.quickstarts.ejb.remote.stateless.RemoteCalculator
                  java:jboss/exported/wildfly-ejb-remote-server-side/CalculatorBean!org.jboss.as.quickstarts.ejb.remote.stateless.RemoteCalculator
                  java:global/wildfly-ejb-remote-server-side/CalculatorBean
                  java:app/wildfly-ejb-remote-server-side/CalculatorBean
                  java:module/CalculatorBean

          13:13:06,041 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean name
          d CounterBean in deployment unit deployment "wildfly-ejb-remote-server-side.jar" are as follows:

                  java:global/wildfly-ejb-remote-server-side/CounterBean!org.jboss.as.quickstarts.ejb.remote.stateful.RemoteCounter
                  java:app/wildfly-ejb-remote-server-side/CounterBean!org.jboss.as.quickstarts.ejb.remote.stateful.RemoteCounter
                  java:module/CounterBean!org.jboss.as.quickstarts.ejb.remote.stateful.RemoteCounter
                  java:jboss/exported/wildfly-ejb-remote-server-side/CounterBean!org.jboss.as.quickstarts.ejb.remote.stateful.RemoteCounter
                  java:global/wildfly-ejb-remote-server-side/CounterBean
                  java:app/wildfly-ejb-remote-server-side/CounterBean
                  java:module/CounterBean

          13:13:06,141 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016005: Starting Services for CDI deployment: wildfly-ejb-remote-server-side.jar
          13:13:06,181 INFO  [org.jboss.weld.Version] (MSC service thread 1-4) WELD-000900: 2.1.2 (Final)
          13:13:06,191 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016008: Starting weld service for deployment wildfly-ejb-remote-server-side.jar
          13:13:07,043 INFO  [org.jboss.as.server] (management-handler-thread - 1) JBAS018559: Deployed "wildfly-ejb-remote-server-side.jar" (runtime-name : "wildfly-ejb-
          remote-server-side.jar")

          • 2. Re: I cannot deploy/start quickstart/ejb-remote example
            Zoka Fil Newbie

            Does anybody know in which repository

            wildfly-ejb-remote-client:jar:8.0.0-SNAPSHOT

            is located and how to resolve this problem for quickstart/ejb-remote ?

             

            Thx

            • 3. Re: I cannot deploy/start quickstart/ejb-remote example
              Tomaz Cerar Master

              You should go to root of quickstarts and do "mvn clean install -DskipTests"

               

              and then go to ejb-remote and build it.

               

              as artifact you are looking for it is part of quickstarts, you build it yourself.