5 Replies Latest reply on Jun 25, 2013 2:24 AM by zulk666

    EAP6.1 CLI module add

    zulk666

      Hi

       

      When I execute

       

      jboss-cli.sh -c

      and

      connection is ok

      [domain@localhost:9999 /]

       

      and execute

      module add --name=com.oracle --resources=/tmp/ojdbc6.jar --dependencies=javax.api,javax.transaction.api

       

      JBoss respond to me:

      "The command is not available in the current context (e.g. required subsystems or connection to the controller might be unavailable)."

       

      why, what is wrong ?

       

      sometimes this command executes correctly and module is present.

       

      this is product info

      JBoss AS release: 7.2.0.Final-redhat-8 "Janus"

      JBoss AS product: EAP 6.1.0.GA

        • 1. Re: EAP6.1 CLI module add
          ssilvert

          The module command ony works on a local AS instance.  If you are trying to install a module on a remote file system it won't work.

           

          Stan

          • 2. Re: EAP6.1 CLI module add
            wdfink

            in this case it is not remote or local, but in domain mode this feature is not supported.

             

            The trick is to use that command without '-c' or even if the domain/host is down. In this case the module is added

             

            For domain mode there is a upcomming feature to 'patch' the server, this can be used to add modules in a domain to distrubute the module.

            1 of 1 people found this helpful
            • 3. Re: EAP6.1 CLI module add
              ssilvert

              I'm fairly certain it will work even in domain mode if your JBOSS_HOME points to a local file system.  The module command looks at JBOSS_HOME and nothing else.  So you need to connect CLI to some server to get started then install to JBOSS_HOME.

               

              Stan

              • 4. Re: EAP6.1 CLI module add
                wdfink

                Stan,

                The JBOSS_HOME does not need to be set.

                If you call the command local on the system it will work, but only disconnected or if you run the server in standalone mode.

                If you connect and the server is a domain the 'module' command is not available, checked with AS7 EAP6.0 and EAP6.1

                • 5. Re: EAP6.1 CLI module add
                  zulk666

                  Thanks

                   

                  It work when I run jboss-cli.sh without -c. Good enough for me.