This discussion is archived
5 Replies Latest reply: May 9, 2012 2:02 AM by 935486 RSS

deleting servers through wlst

935486 Newbie
Currently Being Moderated
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 Pro
    Currently Being Moderated
    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 Newbie
    Currently Being Moderated
    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 Pro
    Currently Being Moderated
    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
  • 4. Re: deleting servers through wlst
    935486 Newbie
    Currently Being Moderated
    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 Newbie
    Currently Being Moderated
    Thanks arun.....

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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points