1 2 Previous Next 17 Replies Latest reply on Sep 2, 2014 11:21 AM by jamezp Go to original post
      • 15. Re: Re: Error to list security via ModelControllerClient
        jamezp

        You probably should be using the new WildFly dependencies.

         

        <dependency>
            <groupId>org.jboss.as</groupId>
            <artifactId>jboss-as-controller-client</artifactId>
            <version>8.1.0.Final</version>
        </dependency>
        

         

        Ah okay. The issue is that you're trying to execute this in a @Startup EJB. The server may not fully be started at this point which is why you see the resource not existing. The question would be is the expected behavior or not and that I cannot answer. I've create a servlet that can be executed to read the resource and it seems to work okay. So it's definitely something during startup that causes the failure. Again though this could be by design.

         

        --

        James R. Perkins

        • 16. Re: Error to list security via ModelControllerClient
          ofbizbrazil

          I got it what you mean, but should not it be an issue? once the standalone.xml is setup for all server.

           

          My question is, why in Jboss 7.1.1 does it have a different behaviour, and I can really get this value?

           

          Any idea more?

           

          Thanks a lot!

          • 17. Re: Error to list security via ModelControllerClient
            jamezp

            As was stated on the JIRA this worked in JBoss AS 7.1.1.Final by luck. By design you should not be able to manage the server during a deployment process.

             

            What is it that you're trying to accomplish. There could be another or better way to do this other than reading the management model.

             

            --

            James R. Perkins

            1 2 Previous Next