5 Replies Latest reply on May 9, 2012 9:02 AM by 935486

    deleting servers through wlst

    935486
      Hi,
      I am trying to delete Managedserver through wlst.
      but it shows following exception.
      .............................*********************************..................................................
      wls:/base_domain/edit/Servers !> delete('mk1','Server')
      Traceback (innermost last):
      File "<console>", line 1, in ?
      File "<iostream>", line 549, in delete
      File "<iostream>", line 1848, in raiseWLSTException
      WLSTException: Error occured while performing delete : Error while deleting an MBean
      Use dumpStack() to view the full stacktrace

      .....................................********************************........................................................................

      plz help me?
        • 1. Re: deleting servers through wlst
          Arunbodap-Oracle
          Please execute the dumpStack() command as shown below and paste the complete stack trace.
          wls:/base_domain/edit/Servers !>dumpStack()
          Only with the error stack we will be able to determine the root cause.


          Arun
          • 2. Re: deleting servers through wlst
            935486
            Thanks arun for respond my post.

            I run that dumpStack()

            but it shows two exceptions....

            java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            .
            .
            .
            .
            .
            .
            and


            Caused by: weblogic.descriptor.BeanRemoveRejectedException: Bean weblogic.management.configuration.ServerMBeanImpl@56b05e([base_domain]/Servers[mk1]) references [mk1 by [base_domain]/MigratableTargets[mk1 (migratable)]/UserPreferredServer, mk1 by [base_domain]/SelfTuning[base_domain]/MinThreadsConstraints[MinThreadsConstraint-0]/Targets, mk1 by [base_domain]/SelfTuning[base_domain]/WorkManagers[WorkManager-0]/Targets]
            at weblogic.management.configuration.DomainMBeanImpl.destroyServer(DomainMBeanImpl.java:1409)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            ......

            i did n't understand these exceptions
            • 3. Re: deleting servers through wlst
              Arunbodap-Oracle
              Looks like you have some modules like the WorkManager configured that is preventing the server from deleting.
              Also, looks like mk1 is configured as a preferred server and targeted as part of a migratable target.

              I would suggest that you first obtain all the references to mk1 (available list from config.xml) and remove those references before attempting the delete operation.


              Arun
              1 person found this helpful
              • 4. Re: deleting servers through wlst
                935486
                yes..

                it is working.

                i create 1 new server and it is a stand-alone server...

                and run following command.....

                wls:/base_domain/edit/Servers !> delete('Server-0','Server')
                MBean type Server with name Server-0 has been deleted successfully.

                but the server with in the cluster it shows Exceptions...

                Thanks alot arun.....
                • 5. Re: deleting servers through wlst
                  935486
                  Thanks arun.....

                  Your reply was of great help as i am just a beginer. Liked ur promptness!!