WLST - bug? - undeploy command

Hi,
We're using WebLogic 10.0 MP1. Environment is Red Hat Linux. We've got an application deployed to a cluster of two managed severs. I'm attempting to write a WLST script to which, in part, undeploys the application from each server one at a time. I referred to the documentation on the "undeploy" command which states the "targets" parameter specifies which managed servers to undeploy the application from. However, the WLST tool seems to ignore the "targets" parameter altogether and just undeploys from all managed servers it is deployed on regardless. The setup looks something like this:
undeploy(appName='myapp', targets='my-server-1')
Undeploying application myapp ...
<Sep 28, 2009 3:07:19 PM PDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating undeploy operation for application, myapp [archive: null], to my-server-1 my-server-2 .>
Can somebody tell me what I'm doing wrong here? Or if it is a bug as i suspect what is the fix/workaround.
Thanks,
-Jordan
Edited by: user10342668 on Sep 28, 2009 4:20 PM

Hi,
I used the below command to undeploy an application from a managed node.
undeploy(appName, targets='myserver01')
But I get the below message:
<12-May-2011 15:30:11 o'clock BST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating undeploy operation for application, myBusinessApp[archive: null], to AdminServer .>
Failed to undeploy the application with status failed
Current Status of your Deployment:
Deployment command type: undeploy
Deployment State : failed
Deployment Message : weblogic.management.ManagementException: [Deployer:149118]'myBusinessApp' is not targeted to 'AdminServer'.
In spite of explicitly mentioning the target, it still looks for admin server.
Can you pls help me in fixing this.
Regards,
Naveen
Edited by: 858498 on 12-May-2011 22:31

Similar Messages

  • WLST soaManagePartition.py commands fail

    I am using 11.1.1.6 and trying to create SOA partitions. I even found the original code used at:
    http://www.albinsblog.com/2011/10/oracle-soa-suite-11g-creating-soa.html#.UJfoe8WHJqM
    The error messages match the code.
    Starting WLST with:
    fmw/soa/common/bin/wlst.sh
    All commands invoked through:
    fmw/soa/common/wlst/soaManagePartition.py
    Fail with the following error:
    File "/apps/oracle/product/fmw/soa/common/wlst/soaManagePartition.py", line 61, in sca_getFolderMBean
    UserWarning: Cannot find folder lifecycle mbean on this server.
    Examples:
    wls:/MFG_TST1/serverConfig> sca_createPartition('FAST')
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "/apps/oracle/product/fmw/soa/common/wlst/soaManagePartition.py", line 28, in sca_createPartition
    File "/apps/oracle/product/fmw/soa/common/wlst/soaManagePartition.py", line 61, in sca_getFolderMBean
    UserWarning: Cannot find folder lifecycle mbean on this server.
    wls:/MFG_TST1/serverConfig> sca_listPartitions()
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "/apps/oracle/product/fmw/soa/common/wlst/soaManagePartition.py", line 181, in sca_listPartitions
    File "/apps/oracle/product/fmw/soa/common/wlst/soaManagePartition.py", line 61, in sca_getFolderMBean
    UserWarning: Cannot find folder lifecycle mbean on this server.
    The em interface works.

    Hi,
    When doing connect, make sure you get the hostname and portnumber of soa_server (managed server), not the AdminServer...
    Cheers,
    Vlad

  • Wlst bug ??

    I created a class in Python (Cluster) that has the properties name, and servers ( a list of Server classes). The server class has appropriate properties as well (name, port, etc.)
    when i loop through the class and call the
    create(_cluster.name, "Cluster") my cluster is created but i cannot access it using the wlst gui mode. in fact it displays as an infinite loop of clusters:
    Cluster
    |
    Cluster1
    |
    Cluster1
    and so on. However, it looks just fine in wlshell and in the normal server console. also i don't see this if i create the cluster by looping over a list of strings (only as a class). Can anyone make any sense out of this one?

    resolved...
    looks like I had some special characters (\n) in my string that were not properly stripped when parsing my properties file that cause this strange behavior. still might be a bug but is only related to invalid string data (presumably)

  • BUG: Run command does not follow current project

    The Debug command respects which project is currently active, i.e. selected by the user in the project folder.
    The Run command, however, does not.
    Version 11.1.1.0.31.51.56
    Workaround:
    Choose a class file with a main method, then issue run.
    Regards,
    Erik

    Hi,
    is it as web project or a Swing project ?
    Frank

  • Bug in command + tab

    the box behind the app switcher goes behind windows when activated in spaces.

    The blog was edited or/and re-published by G Lakshmipathi (as a moderator)
    So in communication and activity tab it is showing that it is written by Lakshmipathi G
    As per my experience, it's not a bug. I've seen this before.
    Here is the activity tab.
    You can see the blog was created yesterday (08 August), but you got the notification today.

  • WLST undeploy BUG??

    We use WLST to undeploy applications from specified targets.
    Per the documentation undeploy command is undeploy('appname',targets)
    However when we specify target, it undeploys from all managed servers the application is deployed to.
    undeploy('Tapplication','Server1')
    Undeploying application Tapplication
    <Oct 2, 2006 8:40:33 PM EDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating undeploy operation for application, Tapplication [archive: null], to Server1 Server2 .>
    Completed the undeployment of Application with status completed
    Current Status of your Deployment:
    Deployment command type: undeploy
    Deployment State : completed
    Is this a bug?

    This does look like a bug, you need to file a support case.
    -satya
    BEA Blog:
    http://dev2dev.bea.com/blog/sghattu/
    Get Involved in CodeShare:
    https://wls-console-extensions.projects.dev2dev.bea.com/
    https://wlnav.projects.dev2dev.bea.com/
    https://eclipse-wlst.projects.dev2dev.bea.com/
    https://wlst.projects.dev2dev.bea.com/

  • Running wlst command in embeded mode results in error for deleteMetadata()

    I need to use wlst command deleteMetadata() in embeded mode.
    I had followed instruction at http://download.oracle.com/docs/cd/E12840_01/wls/docs103/config_scripting/using_WLST.html, to import the wlst interpreter,
    The command I use is:
    deleteMetadata(application='SetupApp', server='FunctionalSetupServer_1', docs='/META-INF/**/adf-config.xml.xml', restrictCustTo='%')
    This command works fine in wlst interactive mode, but when I put it in java, it errors out with the following. Looks like the:
    Caused by: Traceback (innermost last):
    File "<string>", line 2, in ?
    NameError: deleteMetadata
    at org.python.core.Py.NameError(Unknown Source)
    at org.python.core.PyFrame.getglobal(Unknown Source)
    at org.python.core.PyFrame.getname(Unknown Source)
    at org.python.pycode._pyx11.f$0(<string>:2)
    at org.python.pycode._pyx11.call_function(<string>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.core.Py.exec(Unknown Source)
    at org.python.util.PythonInterpreter.exec(Unknown Source)
    at weblogic.management.scripting.utils.WLSTInterpreter.exec(WLSTInterpreter.java:509)
    at oracle.as.install.famigratet2p.cli.cmd.CleanupAdfConfigXml.connect(CleanupAdfConfigXml.java:130)
    at oracle.as.install.famigratet2p.cli.cmd.CleanupAdfConfigXml.executeCmd(CleanupAdfConfigXml.java:77)
    at oracle.apps.fnd.provisioning.ovm.sdk.cli.FAOVMCLICmd.execute(FAOVMCLICmd.java:709)
    ... 2 more
    My code looks like this:
    import weblogic.management.scripting.utils.WLSTInterpreter;
    import org.python.util.InteractiveInterpreter;
    String conString = "connect('" + mTestAdminServerUserName + "','" +
    mTestAdminServerPassword + "','" + mTestAdminServerConnectString + "')\n";
    String delString="deleteMetadata(application='SetupApp',server='FunctionalSetupServer_1', docs='/META-INF/**/adf-config.xml.xml', restrictCustTo='%')\n";
    interpreter.exec(conString+delString);
    Connect() works fine, only failing at deleteMetadata. Is there another jar/library that I need to include?

    Try excuting the command below before invoking MDS commands:
    interpreter.execfile($MW_HOME/oracle_common/common/wlst/mdsWLSTCommands.py);
    Thanks,
    --Daniel                                                                                                                                                                                                                                                                                                                                   

  • SF-300 'interface range' command BUG

    Hello!
    I have number of SF300 switches in production and have found bug with command "interface range".
    When I reconfigure interfaces previously configured with "interface range" to different VLAN interface change VLAN, but after reboot it move back to vlan configured with "interface range".
    SW2#sh ver
    SW version    1.1.2.0 ( date  12-Nov-2011 time  23:34:26 )
    Boot version    1.0.0.4 ( date  08-Apr-2010 time  16:37:57 )
    HW version    V01
    SW2#sh int switchport gi4
    Port : gi4
    Port Mode: Access
    Gvrp Status: disabled
    Ingress Filtering: true
    Acceptable Frame Type: admitAll
    Ingress UnTagged VLAN ( NATIVE ): 11
    Port is member in:
    Vlan               Name               Egress rule Port Membership Type
    11                User                Untagged          Static
    SW2#sh run
    interface  fa10
    description WiFI(1)
    exit
    vlan database
    vlan 2,4,11
    exit
    interface  gi3
    switchport default-vlan tagged
    exit
    interface range  fa14-20,fa22-24
    switchport access vlan 2
    exit
    interface range  fa10,fa13
    switchport access vlan 4
    exit
    interface range  fa1-2,fa21,gi4
    switchport access vlan 11
    exit...
    SW2#conf t
    SW2(config)#int gi4
    SW2(config-if)#switchport access vlan 11
    SW2#sh int switchport gi4
    Port : gi4
    Port Mode: Access
    Gvrp Status: disabled
    Ingress Filtering: true
    Acceptable Frame Type: admitAll
    Ingress UnTagged VLAN ( NATIVE ): 4
    Port is member in:
    Vlan               Name               Egress rule Port Membership Type
    4                 WiFI                Untagged          Static
    ...SW2#sh startup-config
    interface  fa10
    description WiFI(1)
    exit
    vlan database
    vlan 2,4,11
    exit
    interface  gi3
    switchport default-vlan tagged
    exit
    interface range  fa14-20,fa22-24
    switchport access vlan 2
    exit
    interface range  fa10,fa13
    switchport access vlan 4
    exit
    interface range  fa1-2,fa21,gi4
    switchport access vlan 11
    >!!!!!!!!!!?????????????????????????
    SW2#write mem
    SW2#reload
    ==============
    !!!!!DOWNTIME!!!!
    ==============
    SW2#sh int switchport gi4
    Port : gi4
    Port Mode: Access
    Gvrp Status: disabled
    Ingress Filtering: true
    Acceptable Frame Type: admitAll
    Ingress UnTagged VLAN ( NATIVE ): 11
    Port is member in:
    Vlan               Name               Egress rule Port Membership Type
    11                User                Untagged          Static
    Now the only way to fix it:
    copy run tftp://XXXXXXX
    copy  tftp://XXXXXX start
    reload
    Please let me know if this bus will be fixed in next software releas!
    Regards
    Sergiy A. Pyvovaroff (CCNP).

    Hi Sergry,
    Thank you for the explanation, but to fix software, someone has to open a Service Request .  It may have been noticed and scheduled for fix.
    I would you ask you to  please be  kind enough  to goto  www.cisco.com/go/sbsc  and call by phone or click to chat with the folks at the small business support center (SBSC) and  open a case. They will give in response a service request (SR) number. 
    It doesn't take long to open a SR,  and someone at SBSC is then responsible for feedback to you to let you know what's happening.
    The SR will ensure that;
    our technicians verify your findings  and
    escalate the case up into development.
    if this problem has been observed previously  and there is a resolution, you may be asked to even try,  if you wish  a pre-release  version of firmware.
    Since you have a CCNP, I am guessing that this process is not foreign to you.
    It can be annoying opening a case, especially when you have documented  the issue in the post,   but at least you can point the technician to this posting, where you have almost explained everything needed to get development to look at the problem.
    Sergry, it's a interest observation,  I just use the 300 series GUI to add Gig2 as a access port to vlan 2,  the following script was created;
    interface gigabitethernet2
    switchport mode access
    switchport access vlan 2
    switchport general pvid 2   -  this is a error I guess as the switch port is in access mode.
    exit
    Did you use the GUI to generate the CLI. or just use the CLI  without reference to the CLI manual?.
    This CLI is not identical to a Catalyst CLI. see the following URL for the 300 series CLI manual;
    http://www.cisco.com/en/US/docs/switches/lan/csbms/sf30x_sg30x/administration_guide/CLI_Nikola300_1.1.pdf
    Again, please be so kind to spend a little  time to open a SR.
    I will be tomorrow,  on a issue I highlighted in red. It is a minor issue for me,  as the switch still leaves GiG2,  in access mode,   as a untagged interface in VLAN2.
    regards Dave

  • Non existent WLST configToScript command on WL 8.1 SP5 Solaris

    I was trying out WLST on a WL 8.1 SP5 Solaris and I noticed that the configToScript does not seem to exist, does some one now if this shouldnt be in the package allready?
    I needed this one in order to "clone" domains...
    Thank you for any responses,
    Jose

    Hi, I toke care regarding the case-sensitiveness but it seems not to be the issue, bellow I show my settings and it seems the command does not even appear on the help listing for the information category...
    root@zhcpbigs00<!>echo $CLASSPATH
    :/opt/bea/8.1_SP5/jdk142_08/lib/tools.jar:/opt/bea/8.1_SP5/patches:/opt/bea/8.1_SP5/patches/CR225812_81sp5.jar:/opt/bea/8.1_SP5/patches/CR238192_81sp5.jar:/opt/bea/8.1_SP5/patches/CR240904_81sp5.jar:/opt/bea/8.1_SP5/patches/CR241234_810sp5.jar:/opt/bea/8.1_SP5/patches/CR243498_810sp5.jar:/opt/bea/8.1_SP5/patches/CR247655_810sp5.jar:/opt/bea/8.1_SP5/patches/CR265510_810sp5.jar:/opt/bea/8.1_SP5/weblogic81/server/lib/weblogic_sp.jar:/opt/bea/8.1_SP5/weblogic81/server/lib/weblogic.jar:/opt/bea/8.1_SP5/weblogic81/common/lib/3rdparty.jar:/opt/bea/8.1_SP5/weblogic81/common/lib/comdev.jar:/opt/bea/8.1_SP5/weblogic81/common/lib/config.jar:/opt/bea/8.1_SP5/weblogic81/common/lib/jython.jar:
    root@zhcpbigs00<!>pwd
    /export/opt/bea/8.1_SP5
    root@zhcpbigs00<!>/export/opt/bea/8.1_SP5/jdk142_08/bin/java com.bea.plateng.domain.script.jython.WLST_offline
    Welcome to Weblogic Scripting Shell
    wls_offline:/>help()
    WLST is a command line scripting tool. Try:
    help('control') Lists the control functions available
    help('browse') Lists the browse functions available
    help('edit') Lists the edit functions available
    help('information') Lists the information functions available
    help('variables') Lists the variables available
    wls_offline:/>help("information")
    dumpStack:
    Prints the stack trace from the exception that might have thrown while executing a command.
    dumpVariables:
    Prints all the variables and their values.
    help:
    Display help about all the primitives and variables that are supported by WLST.
    ls:
    Displays and returns the list of all configuration objects and their attributes contained in current configuration node.
    prompt:
    Changes the display prompt to 'wls_offline:/>' if the prompt is not hidden and back to the long form if hidden.
    pwd:
    Prints the user's present hiearchy in the config tree.
    startRecording:
    Records all the user interactions with WLST. This will be useful inorder to replay any commands if you choose to.
    stopRecording:
    Stops all the recording of user actions.
    wls_offline:/>readDomain("/export/opt/bea/8.1_SP5/user_projects/domains/anyolddomain/")
    wls_offline:/anyolddomain>configToScript("/export/opt/bea/8.1_SP5/user_projects/domains/anyolddomain/","/home/mine/")
    Traceback (innermost last):
    File "<input>", line 1, in ?
    NameError: configToScript
    wls_offline:/anyolddomain>
    Thank you,
    Jose

  • Anyone tried the new Weblogic Scripting Tool (WLST)?

    Has anyone tried using the new WebLogic Scripting Tool (WLST) that was recently
    posted on the dev2dev WebLogic Utilities site: http://dev2dev.bea.com/resourcelibrary/utilitiestools/adminmgmt.jsp
    It looks to be a handy tool that is built upon jython and enables you to easily
    navigate, inspect and manipulate the WebLogic MBean tree on a running server.
    It also has a nice scripting tool which allows you to convert a config.xml file
    into a script that can be run to recreate a domain or specific resources within
    the domain. This is exactly something I have been looking for because we occasionally
    recreate domains or subsets of a domain for testing and POC purposes.
    The utility is fairly well documented and works well for the most part. The only
    issue I have run into so far is that is does not seem to understand JMS Distributed
    Destinations. When I try to convert a config.xml that contains a DD to a script
    it throws a null pointer exception. I have not tried a cluster yet.
    I noticed the utility was authored by someone at BEA. Is there potential that
    BEA will support this in the future if it catches on? Has anyone had experience
    with WLST or jython that would cause you to reccomend (or not) using it?
    Thanks.

    Darryl,
    Thanks for the valuable feedback. My comments are inline.
    Darryl Stoflet wrote:
    As a fairly long time wlshell user who recently started testing wlst there are
    few features I have found lacking in wlst.
    1. For monitoring purposes I am frequently using the -g and -r options to wlshell's
    get command for graphing and repeating respectivelyI haven't looked at -g and -r options in wlshell, but will do so.
    Although there is no graphical monitoring of attributes in wlst, but
    there is certainly some monitoring capability (which will be enhanced
    further in the coming version). Please take a look at the
    monitorAttribute() function.
    wls:/(offline)> help('monitorAttribute')
    Description:
    Monitors the specified attribute every by polling every interval.
    Syntax:
    monitorAttribute(attributeName, interval, monitorFile)
    attributeName = Name of the attribue that you would like to monitor.
    interval = Time (in seconds) to wait before the next fetch
    monitorFile=[optional] File path where the monitored data will be
    written to.
    Example:
    wls:/mydomain/runtime/ServerRuntimes/myserver/ExecuteQueueRuntimes/weblogic.kernel.Default>
    monitorAttribute("ServicedRequestTotalCount",10)
    Press Return to quit monitoring
    Monitoring started for attribute ServicedRequestTotalCount
    wls:/(offline)>
    >
    2. wlshell 2.0 adds the option when connecting to the admin server to also connect
    to all managed servers in that domain. This is a nice feature for monitoring because
    you then have access to all the runtime mbeans in each managed serverYes, this indeed seems to be a very nice feature. We will consider this
    for our next release.
    >
    3. There is not a good way to pass cmd line options(variables) to wlst. In wlshell
    I can send cmd line options via -v. I have tried something similar with wlst using
    -loadProperties but this is a little laborious because I do not necessarily want
    to create a properties file when a passing in only one or two variables. Also
    I find loadProperties lacking somewhat (see 4 below)ok, I just realised that there is indeed a bug in wlst where the command
    line arguments are not being honored. In Jython one can access the
    command line arguments from the sys.argv variable. For example,
    java weblogic.WLST -i foo.py var1 var2 var3
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to Weblogic Server Administration Scripting Shell
    Type help() for help on available commands
    wls:/offline> print sys.argv
    ['foo.py', 'var1', 'var2', 'var3']
    wls:/offline>
    But this isn't working properly, please keep using the loadProperties
    untill this has been fixed.
    >
    4) loadProperties treats all created variables as strings. While this is understandable
    from the perspective that getProperty returns a string, it would be nice if wlst
    was smart enough that when a property is numbers only its an int, otherwise a
    string etc.
    wlshell does this logic/conversion for you which really simplifies calling methods
    that expect the particular datatype. To get around this problem you can create a script file say,
    variables.py which would look like,
    # variables that will be used
    theInterpreter.set('var1',10)
    theInterpreter.set('var2','i am a string')
    java weblogic.WLST variables.py
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to Weblogic Server Administration Scripting Shell
    Type help() for help on available commands
    wls:/(offline)> print var1
    10
    wls:/(offline)> print var2
    'i am a string'
    >
    5. I'd like to be able to send cmd output etc to a file while running within wlst.
    In wlshell its a simple as adding >> filename to the end of the command. In wlst it is not as simple as doing >>, it is more than that. You can
    choose any output stream to direct your output to. In your case you can
    create a FileOutputStream and route the output to this stream for any
    particular command.
    Example,
    # create a file output stream say fos
    from java.io import FileOutputStream
    fos = FileOutputStream("output.txt")
    # save the default output stream to a variable to
    # switch it back
    sys.stdout=fos
    # Now all output for any function will go to output.txt
    ls()
    cd('foo')
    # after done with your functions switch it back
    sys.stdout=origOutput
    This is the right Jython way to do it. This works for all output streams
    , very useful when you embed an interpreter in a servlet and would like
    to display the output via a PrintStream etc.
    >
    >
    All in all wlst is a nice tool. Personally if the above features were added it
    would be much easier to transistion to wlst for good.
    Also I really like the wlst offline tool. Its nice to be able to do the whole
    create and configure domain process with one tool. Will this be supported. Yes indeed. We are working on merging both the tools into one.
    I do
    not want to rely on it too much if it will not work in future weblogic versions.It will be supported in future release of weblogic.
    Thanks,
    -satya
    >
    Thanks,
    Darryl
    "Steve Hess" <[email protected]> wrote:
    Hello,
    I am the BEA Product Manager behind WLST.
    WLST, as it appears today on dev2dev, is an early release version of
    a tool that
    BEA does intend to support as part of our next major release. We decided
    to issue
    early versions of the tool because of the demand for a supported scripting
    solution,
    and to generate feedback from our user community. I encourage you to
    work with
    WLST, and assure you that this tool represents our current direction
    in management
    scripting.
    Also note, this newsgroup can be used to issue questions, concerns and
    feedback
    about WLST. The engineering and PM team will monitor this group and
    respond to
    your questions as quickly as we can. While we will not be able to respond
    to
    every feature request, we really value your suggestions, and will endeavor
    to
    improve the tool in ways that meet your real-world needs.
    Cheers,
    Steve Hess
    Director, WLS PM
    "George Lupanoff" <[email protected]> wrote:
    Has anyone tried using the new WebLogic Scripting Tool (WLST) that was
    recently
    posted on the dev2dev WebLogic Utilities site: http://dev2dev.bea.com/resourcelibrary/utilitiestools/adminmgmt.jsp
    It looks to be a handy tool that is built upon jython and enables you
    to easily
    navigate, inspect and manipulate the WebLogic MBean tree on a running
    server.
    It also has a nice scripting tool which allows you to convert a config.xml
    file
    into a script that can be run to recreate a domain or specific resources
    within
    the domain. This is exactly something I have been looking for because
    we occasionally
    recreate domains or subsets of a domain for testing and POC purposes.
    The utility is fairly well documented and works well for the most part.
    The only
    issue I have run into so far is that is does not seem to understandJMS
    Distributed
    Destinations. When I try to convert a config.xml that contains a DDto
    a script
    it throws a null pointer exception. I have not tried a cluster yet.
    I noticed the utility was authored by someone at BEA. Is there potential
    that
    BEA will support this in the future if it catches on? Has anyone had
    experience
    with WLST or jython that would cause you to reccomend (or not) using
    it?
    Thanks.

  • Not able to start server using  wlst in windows

    hi everyone,
    i am trying to start the weblogic 10.3 server thru wlst using the command
    startServer('AdminServer_name','Domain_Name',"............
    first it used to give an error saying that it is not able get the encrypted username and password from the boot.properties file.
    then i tried copy pasting the username and passwd in the same command and it gives me a error saying
    wlst could not start a new jvm for the server process, this might happen if you have provided illegal jvmArgs or the JVM picked up any illegal JVM_OPTIONS from your path.
    if i mention the JVM parameters same as obtained from the help('startServer') command parameters. it says
    Traceback (innermost last):
    File "(console)", line 1, in?
    File "(iostream)", line 398 , in startServer
    TypeError: startSvr(): 10th arg cant be coerced to int.
    i am desperately trying to get through this error
    please help....
    thank you,
    Roop

    Annoying syntax bug:
    60000 works
    '60000' doesn't
    wls:/offline> startServer( 'AdminServer', 'base_domain', 't3://host:7009', 'weblogic', '****'', '/opt/oracle/bea/user_projects/domains/base_domain', 'true', '60000' )
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "<iostream>", line 398, in startServer
    TypeError: startSvr(): 10th arg can't be coerced to int
    wls:/offline> startServer( 'AdminServer', 'base_domain', 't3://host:7009', 'weblogic', '***', '/opt/oracle/bea/user_projects/domains/base_domain', 'true', 60000 )
    Starting weblogic server ...
    WLST-WLS-1253908409262: <Sep 25, 2009 3:53:29 PM EDT> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:

  • Is this bugs for Sun Java System Portal Server 6 2005Q4 (errorStoreDP) ?

    Hi,
    I installed Sun Java System Portal Server 6 2005Q4 under window xp environment.
    I used the following command to deploy war file, it worked for me (because I setup enough services and role for amadmin user), deploy/undeploy was worked very well for me.
    pdeploy deploy -u amadmin -w amAdminPassword -g -p
    amAdminPassword -v portletsamples.war
    Two months later, I did not change anything (configuration) within the two months.
    I use the same deploy/undeploy command to deploy war file again, I got the following error =>
    errorStoreDP (sms-UNKNOWN_EXCEPTION_OCCURRED)
    Message:The user does not have permission to perform the operation.
    Why this condition happened ? is this bugs for sun portal server ?
    I uninstall this sun portal server and reinstall it again, I still got
    the same error message. why ?
    But funny thing is that I format my machine, then install window xp and
    install System Portal Server 6 2005Q4 again, then it works for me again.
    is this reasonable ?
    I really don't know why ?
    Can someone help me ?
    Thanks!

    Hello,
    It seems you are really asking how you should design your application to use portlets.
    Your approach now seems to be that you would just copy your servlets to portlets. You can use the PortletRequestDispatcher to include content from your servlet. See http://portals.apache.org/pluto/multiproject/portlet-api/apidocs/javax/portlet/PortletRequestDispatcher.html
    I also found the following discussion on this topic http://www.mail-archive.com/[email protected]/msg00481.html
    But I don't think I'd recommend that approach for your application. How would you maintain the application going forward? You will have both servlets and portlets to maintain when you change the applicaiton. I assume you will be keeping the servlet application and using it also? Do you want the portlet content to match the servlet content always, or will they display differently?
    Instead, what you might consider an model-view-controller approach and designing a web service (the model) for both applications (servlet and portlet, views) to consume.
    As for the basics of porlet applications, the JSPPortlet will use JSPs for presentation of hte portlet content. GenericPortlet is the default implementation of the Portlet interface. Implementing the portlet interface means you must write the implementation yourself. Here are a couple of good tutorials to get you started on the Portlet spec:
    http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-portlet.html
    http://www.javaworld.com/javaworld/jw-09-2003/jw-0905-portlet2.html
    Also there is this JSE tutorial, but I don't know how current it is:
    http://developers.sun.com/prodtech/portalserver/reference/techart/portlets.html
    Hope that helps.

  • Problems Undeploying on Application Server

    I am having problems with the "asant undeploy" command because after I try to re-deploy a .war file, I get the error message below in the servers log. I'm guessing the original undeploy was not completed successfully despite what it says at the command line.
    [#|2006-05-07T09:31:43.134-0500|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=httpWorkerThread-6420-3;_RequestID=82a3d574-5ea6-4c06-afd1-1966035a06d7;|WebModule[/branchservice]Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
    WSSERVLET11: failed to parse runtime descriptor: java.net.BindException: Address already in use: bind
         at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:130)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4231)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
         at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:131)
         at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:153)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:815)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:659)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1453)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1123)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:171)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:265)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:954)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:941)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:448)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
         at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:303)
         at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:201)
         at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
         at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:842)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:527)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:571)
         at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:719)
         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:585)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:342)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:325)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:407)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
         at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)
         at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:142)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:109)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:822)
         at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:390)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: java.net.BindException: Address already in use: bind
         at sun.nio.ch.Net.bind(Native Method)
         at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
         at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
         at com.sun.enterprise.server.ss.provider.ASServerSocket.bind(ASServerSocket.java:278)
         at com.sun.enterprise.server.ss.provider.ASServerSocketImpl.listen(ASServerSocketImpl.java:153)
         at java.net.ServerSocket.bind(ServerSocket.java:320)
         at java.net.ServerSocket.<init>(ServerSocket.java:185)
         at java.net.ServerSocket.<init>(ServerSocket.java:97)
         at branchservice.endpoint.Branch$BranchCommunications$BranchServerThread.<init>(Unknown Source)
         at branchservice.endpoint.Branch$BranchCommunications$BranchServerThread.<init>(Unknown Source)
         at branchservice.endpoint.Branch.<init>(Unknown Source)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.getImplementor(RuntimeEndpointInfoParser.java:306)
         at com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.parseEndpoints(RuntimeEndpointInfoParser.java:95)
         at com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.parse(RuntimeEndpointInfoParser.java:64)
         at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:112)
         ... 81 more
    |#]

    Looks like your appserver instance or domain is not running or couldn't start because another service is using the same port number that the domain wants to use.
    Do ps -ef and kill -9 unneeded service . Then try to start the domain or server instance again.

  • Exception when running WLST in Eclipse - Please Help!!!

    Hello,
    I am trying to get get a WLST online connection via a java class, but I am getting an exception when trying to connect to an admin server instance:
    <br>
    <br><b>javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
         java.io.EOFException]
         at weblogic.jrmp.Context.lookup(Context.java:189)
         at weblogic.jrmp.Context.lookup(Context.java:195)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at weblogic.management.scripting.WLSTHelper.initDeprecatedConnection(WLSTHelper.java:546)
         at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.java:285)
    <br>
    <br>
    The CompatabilityMBeanServer is not initialized properly. This might happen if the CompatabilityMBeanServer is disabled via the JMXMBean.To view the real exception use dumpStack()
    WLST detected that the RuntimeMBeanServer is not enabled. This might
    happen if the RuntimeMBeanServer is disabled via the JMXMBean.
    Please ensure that this MBeanServer is enabled. Online WLST cannot function
    without this MBeanServer.</b>
    <br>
    <br>
    I am basically trying to run the following WLST command in java:
    <b>connect('weblogic','weblogic','t3://localhost:7201')</b>
    <br>
    <br>
    Here is the java block that I call to create the connection with the WLSTIterpreter:
    <br>
    <br>
    <b>StringBuffer buffer = new StringBuffer();
    buffer.append("connect('weblogic','weblogic','t3://localhost:7201')\n");     System.out.println(buffer.toString());
    <br>
    INTERPRETER.exec(buffer.toString());</b>
    <br>
    <br>
    My admin server is running at this address and the CompatabilityMBeanServer is enabled. The strange thing this is that I am able to run the WLST via the command line and the connection is successful with no problems. This leads me to believe that there is something wrong with my classpath/environment that I have setup in Eclipse but I am not sure.
    Any ideas on where I went wrong??? Please help!
    Thanks :)
    PS. I am running WebLogic 9.1 and java 150_06
    Message was edited by:
    rogaljo

    I also have a similar issue (JNDI lookup works on the command line but not in Eclipse).
    I posted another topic regarding this today with the title:
    "CommunicationException ..."
    In the groups:
    weblogic...jndi
    weblogic...jdbc

  • Error Undeploying a EAR File Containing Resource Adapter

    Hi,
    I am trying to undeploy a ear file that contains a
    1) one inbound R.A(resource adapter),
    2) one outbound R.A and
    3) few EJBs.
    The undeploy command "java -jar admin.jar undelpoy..." executes without any error, however the thread process started by the inbound adapter keep running even after undeployment.
    Is there a way to cleanly undeploy a resource adapter (that would delete all the threads created by resource adapter) that's part of a ear file?
    Note: The inbound adapter's deregisterEndpoint method does include the code to call the destroy method on the thread it created.
    Thanks,
    Bhupen

    hello,
    have you tried including the 3rd party jar in your EAR file itself?
    i use a number of external jars in my web app and ejb, including some xml parsing classes. what i did was to put them all in the EAR, at the root level, in other words, not in a sub-directory. then in my WAR's meta-inf/MANIFEST.MF file reference them in the Class-path. do simililar thing for the ejbs if necessary.
    when you tried to use the inqxml instead, did you make a reference in manager/referecen.txt from your app to the inqmy library? if so, did you look into the inqmyxml.jar to see if the Node class is actually there?
    regards,
    wentao

Maybe you are looking for

  • Deploy SOAP Web Service (generated with JDev) in JBOSS

    Hi all, I generated a very simple SOAP-Service with the JDeveloper 10.1.3 Release. The service runs very well in the oc4j. But If I try to deploy it with JBOSS 4.0.3 I get manny errors starting with the following: 16:13:39,421 INFO [TomcatDeployer] d

  • Trouble palying sound with blackberry playbook

    hi guys, i am new here to the community.  i have a question.  i have some some reading, and i know waht the problem is. just need a couple of tips.  i am trying to play .avi videos with AC3 audio codec, which i know is unsupported by the playbook.  i

  • JMS Receiver Adaptor error

    Hi, I am facing issue in JMS receiver adapter can you please give me some suggestions. JMS adaptor: Message processing failed. Cause: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at ABC_JMSRe

  • Calling a library which is compiled in 1.3.1 in 1.4.2_06

    Hello I have an library (LIBRARY) which is create some db connections and Corba connections behind it . this library compiled in JSDK 1.3.1 I have an code (CODE) which call this library's methods If � compile CODE in 1.3.1 there �s no problem but whe

  • Troubling (simple)  if  statement

    I have an if statement like this: if (session.getAttribute("userType") == "Admin") sql ="SELECT * FROM TABLE"; else sql = "SELECT * FROM TABLE WHERE user_type = ' " + session.getAttribute("userType") + " ' "; //This will not work , It never generates