Request Class in Work Manager using WLST

Hi,
How can I configure a fair share request class and assign it to a WorkManager using WLST ?
Edited by: Chintan Parekh on Jul 10, 2011 11:53 PM

Hi,
i m not sure whether it's an issue with Spring or not. But i tried using Thread.sleep(1000) in a Simple webapplication to see Workmanagers works properly or not. I found that it works extremely great: http://weblogic-wonders.com/weblogic/2010/01/24/workmanager-at-webapplication-level/
Thanks
Jay SenSharma

Similar Messages

  • Start node manager using WLST

    I am trying to start node manager using WLST with following command
    wls:/offline> nmConnect('weblogic','weblogic123','localhost','5556','FirstDomain','C:\Oracle\Middleware\user_projects\domains\FirstDomain','plain')but getting below exception
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "<iostream>", line 123, in nmConnect
    File "<iostream>", line 618, in raiseWLSTException
    WLSTException: Error occured while performing nmConnect : Cannot connect to Node
    Manager. : Connection refused: connect. Could not connect to NodeManager. Check
    that it is running at localhost:5,556.
    Use dumpStack() to view the full stacktrace
    wls:/offline>
    I am using weblogic 11g.
    Can anybody let me know how to fix this issue.

    You can use something like this:
    beahome = '/home/oracle/soasuite';
    pathseparator = '/';
    adminusername = 'weblogic';
    adminpassword = 'magic11g';
    domainname = 'base_domain';
    domainlocation = beahome + pathseparator + 'user_projects' + pathseparator + 'domains' + pathseparator + domainname;
    nodemanagerhomelocation = beahome + pathseparator + 'wlserver_10.3' + pathseparator + 'common' + pathseparator + 'nodemanager';
    print 'START NODE MANAGER';
    startNodeManager(verbose='true', NodeManagerHome=nodemanagerhomelocation, ListenPort='5556', ListenAddress='localhost');
    print 'CONNECT TO NODE MANAGER';
    nmConnect(adminusername, adminpassword, 'localhost', '5556', domainname, domainlocation, 'ssl');
    print 'START ADMIN SERVER';
    nmStart('AdminServer');
    nmServerStatus('AdminServer');More information can be found here: http://middlewaremagic.com/weblogic/?p=6040
    in particular the "Starting the SOA environment" section

  • Work manager using thread.sleep or delay doesn't work

    Hi all,
    I used Spring framework and oracle weblogic 10.3 as a container.
    I used workmanager for manage my thread, I already made one thread that managed by workmanager. Fortunately spring provide the delegation class for using workmanager, so I just need to put it on applicationContext.xml.
    But when I put the "while" and TimeUnit for sleep the process on desired delayed time, the deployment process never finished. It seems the deployment process never jump out from while loop for finishing the deployment.
    Why?, As I know using typical thread, there is no issue like this. Should I use another strategy for make it always loop and delay.
    This is my simple code :
    import java.util.concurrent.TimeUnit;
    import org.springframework.core.task.TaskExecutor;
    public class TaskExecutorSample{
         Boolean shutdown = Boolean.FALSE;
         int delay = 8000;
         TimeUnit unit = TimeUnit.SECONDS;
         private class MessageGenerator implements Runnable {
              private String message;
              public MessageGenerator(String message){
                   this.message = message;
              @Override
              public void run() {
                   System.out.println(message);
         private TaskExecutor taskExecutor;
         public TaskExecutorSample(TaskExecutor taskExecutor){
              this.taskExecutor = taskExecutor;
              try {
                   while (shutdown.equals(Boolean.FALSE)){
                        this.printMessage();
                        unit.sleep(delay);
              } catch (Exception e) {
                   System.out.println(e.getMessage());
         public void printMessage() {
              taskExecutor.execute(new MessageGenerator("Print this Messages"));
    Really thanks in advance.
    Regards,
    Kahlil
    Edited by: Kahlil on May 26, 2010 2:38 PM
    Edited by: Kahlil on May 26, 2010 2:42 PM

    Hi,
    i m not sure whether it's an issue with Spring or not. But i tried using Thread.sleep(1000) in a Simple webapplication to see Workmanagers works properly or not. I found that it works extremely great: http://weblogic-wonders.com/weblogic/2010/01/24/workmanager-at-webapplication-level/
    Thanks
    Jay SenSharma

  • Enable Node Manager debug using WLST

    Hi,
    I would like to enable debug for node manager using WLST instead of using the Admin console - by selecting the check box for "Debug Enabled" property under Environment > Machine > Configuration > Node Manager in the Admin console.
    I could locate the MBean name to 'NodeManagerMBean' and the property to 'DebugEnabled', but I'm not sure how to script it.
    Can anybody please guide me?
    Thanks in advance
    Edited by: vikascv on Apr 29, 2009 9:23 AM

    Here you go
    Enable Node Manager debug using WLST
    <a class="jive-link-external" href="http://www.togotutor.com">http://www.togotutor.com</a> (Learn Programming and Administration for Free at Togotutor)
    def connection_to_Admin():
    try:
    connect(username, password, URL)
    except wlst.WLSTException, ex:
    print "Caught exception while connecting: %s" % ex
    else:
    print "------- Connected successfully! ---------"
    connection_to_Admin() #Calling the connect Function
    edit()
    startEdit()
    cd('/Machines/MS1/NodeManager/Machine_1')
    cmo.setDebugEnabled(true)
    activate()
    Thanks
    Togotutor
    <b><a class="jive-link-external" href="http://www.togotutor.com">http://www.togotutor.com</a> (Learn Programming and Administration for Free)</b><</td>

  • Work Manager API in Sun Java Application Server 8.1

    I am trying to build a parallel application using Work Manager api (javax.resource.spi.work.WorkManager;)
    I studied the Websphere implementation of WorkManager there you need to make JNDI lookup for work manager and then use it to submit the work.
    My question is if i make class which will implement the javax.resource.spi.work.WorkManager; interface and use that class to submit the work and execute it in parallel then will that class will handle the resource management and all j2ee services
    Do we have separate implementation of work manager API for Sun Java Application Server 8.1 (any jar like asynch.jar in IBM websphere) so that we will just create a work manager using admin console and make JNDI lookup and use it
    Please guide me

    Before I start, disclaimer -- I have no knowledge of Hibernate and the following comments are based on the stack trace you have included.
    I think your permissions might be set all right but you might have an error in the hibernate query. It looks like hibernate uses antlr to parse the queries. While parsing the query, antlr is encountering an exceptional condition and is trying to exit the VM (by calling System.exit()). Obviously, the hibernate code does not have that permission and therefore the exception is logged.
    My guess is if you fix the query such that hibernate/antlr can parse it, you will not run into this error.
    Hope this helps,

  • Can't configure deployed WebCenter app using Enterprise Manager after WLST

    Using fusion middleware version 11.1.1.4 with WLS and WebCenter of same versions.
    I deployed an ADF application using WLST and the application mostly runs, but I need to configure some portal connections from the Enterprise Manager. I am able to configure many options but when I try to select an option under WebCenter I get:
    "You do not have permission to view this page. Contact your administrator"
    I get this message for any deployed application even those I didn't deploy using WLST and I was able to configure them fine before this.
    I am logged as the Weblogic administrator.
    For the deployment using WLST, I connected to the admin server, deployed successfully and last issues exit().
    I tried to shutdown the Managed server but took more than 5 minutes (which is not common) so I killed the process and restarted it. Was able to run the application but still can't configure the WebCenter options for any application???
    Please advise how to get out of this stuck issue!!
    Thanks

    Solved, seems browser caching. Opened a new browser and it worked !! (seems weird)
    Thanks

  • Using work manager for third party connections

    Folks we are trying implement work manager to
    Allthough WL is self tuning, and you could "increase the internal socket pool", you have to fully understand the implications of this.
    -It increases the # of threads, which ultimately degrades performance, due to the amount of context switching which would have to occur (this is at the application layer)... in general
    -It will require additional memory, of which, we'd need to account for this, otherwise, it can run the WL instance out of memory, if we're in a fault condition
    Let me explain this "fault" condition a little further...
    There's a BIG difference between a 3rd party being down, and a 3rd party being able to respond to our request, but unable to process it in a timely fashion (i.e. they're overloaded, or the tcp connection is happening properly, but the application response from the 3rd party isn't properly responding/working in a timely fashion). We've seen this condition on a # of occasions and need to be able to have a max limit or governor on each 3rd party... of which, my understanding of WL work managers allows for this (I do have to note, I am not experienced with these, and my knowledge is only with what I've had time to read on). Ultimately, I'm trying to prevent the condition I've seen in a # of serious "slow downs" or hang-ups within the application... we should NOT be able to have 3rd party calls hamper the performance or availability of our application

    Note that you can reduce the context switching by 'pinning' certain CPUs to handle, for example, the network interrupts.
    You can use (on Linux): cat /proc/interrupts (shows information related to hard interrupts).
    From http://middlewaremagic.com/weblogic/?p=8133
    "In a multi-processor environment, interrupts are handled by each processor. Two principles have proven to be most efficient when it comes to interrupt handling:
    Bind processes that cause a significant amount of interrupts to a CPU. CPU affinity enables the system administrator to bind interrupts to a group or a single physical processor (of course, this does not apply on a single CPU system). To change the affinity of any given IRQ, go into /proc/irq/<number of respective irq>/ and change the CPU mask stored in the file smp_affinity. To set the affinity of IRQ 19 (which in the above example is the network interface card) to the first CPU, we can use echo 2 > /proc/irq/19/smp_affinity."
    To configure a work manager properly, you have to throttle the maximum threads and the capacity. The maximum number of threads are the number of threads
    that are allowed to run simultaneously. Usually, you set this equal to some resource (such as the number of connections in a data source). This to prevent
    contention for that resource (otherwise the thread would be waiting for the resource and thus consuming CPU cycles by polling if can go or not). When the maximum
    is reached no other threads are spawned to run. The request that comes in is put into a piece of work and stays that way until an execute thread comes available
    to process that work. The number of work instances you allow in your heap can be set by the capacity constraint (which thus throttles the memory consumption).
    When the capacity is reached, new requests are rejected.

  • Using Work Manager in EJB OC4J 10

    Hi
    I wanted parallel processing, I have several handler classes(Plain Java classes), which are for different kind of messages. Messages are coming from Queue, to which MDB is listening, MDb is instantiating the Handler class, depending on message type.
    I knew in Application Server, we have "Work Manager", which is handling the threads. I want to use those threads rather creating my own threads(which is a bad idea I suppose), and let those threads invoke the handler.
    IN OC4J 10g I dint find how to get an instance of Work manager.
    But somehow, i managed to get Work manager,
    What I did, i previously deployed one Resource Adapter( for some other requirement), Work manager is available to one class of that Resource Adapter, and that Work Manager is available in the start method of JMSRecourceAdapter class.
    start() method has BootStrapContext as a paramater, and I get Work manager from this BootStartContext, what i now did, is added Work Manager to one JNDI name.
    And in MDB i performing lookup to this JNDi name, and so I get Work Manager, my handlers are implementing Work interface, and I simply call scheduleWork() method of Work Manager and pass my handler as parameter.
    I have somoe querie:
    Is this right way?
    Is there any alternative? to run few handler class parallely from MDB.
    How can be Work manager made available in OC4J?
    Thanks
    Abby

    i answer the questions:
    Is this right way? No
    Is there any alternative? to run few handler class parallely from MDB. creating multiple instances of the MDB.
    How can be Work manager made available in OC4J?
    I dont think there is any way to make Work Manager available in OC4J

  • WebLogic 12c : Use wlst to list coherence managed servers

    Hi,
    I would like to list only coherence managed servers via wlst. I tried various options and some workarounds work but they only work in certain conditions.
    Just curious as to how other use wlst to list out coherence managed servers.

    Yeah, you call that a solution, I call that an annoying workaround. I'm familiar with that "solution". Using it simply means that we acknowledge that NodeManager can't use the server config information for the admin server, it has to re-specify all of it again manually. I would assume that if you specified a particular classpath for the admin server in the server config, you'll have to manually specify that here also. What's even worse is that if your server config referenced "$CLASSPATH" in the string, so it can reference the implicit classpath that WebLogic itself needs, you may not be able to use "$CLASSPATH" here (I'm not certain about this), and would instead have to manually specify the full entire classpath that the admin server needs. If you didn't have to specify a particular classpath value for the admin server, then you're probably ok, on at least this point.

  • Error while using WLST to create a new managed server

    Hi All,
    I am trying to create a managed server using following code a
    "create_server.py"
    ------------+++++-----------
    from java.util import *
    from javax.management import *
    import javax.management.Attribute
    print 'starting the script .... '
    connect('weblogic1','barbie@135','http://smart:7001')
    edit()
    startEdit()
    print 'CREATE MANAGED SERVER: Test_Server'
    Test_Server1 = cmo.createServer('TestServer1')
    Test_Server1.setListenPort(7002)
    Test_Server1.setAutoRestart(true)
    Test_Server1.setAutoKillIfFailed(true)
    Test_Server1.setRestartMax(2)
    Test_Server1.setRestartDelaySeconds(10)
    Test_Server1.getServerStart().setJavaHome(jvmlocation)
    Test_Server1.getServerStart().setJavaVendor('Oracle')
    Test_Server1.getServerStart().setArguments('-Xms128m -Xmx256m -Xns64m -Xgcprio:pausetime')
    print 'ADD MANAGED SERVERS TO CLUSTER'
    Test_Server1.setCluster(dizzyCluster)
    print 'ADD MANAGED SERVERS TO MACHINE'
    Test_Server1.setMachine(Machine_1)
    save()
    activate(block="true")
    disconnect()
    print 'End of script ...'
    exit()
    -----------------------+++++++++++--------------
    and i am running it through WLST. but i am getting some error as
    CLASSPATH=C:\oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpa
    th\weblogic_patch.jar;C:\oracle\MIDDLE~1\patch_oepe1050\profiles\default\sys_man
    ifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\patch_ocp360\profiles\defa
    ult\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\JROCKI~1.2-4\li
    b\tools.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\M
    IDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\oracle\MIDDLE~1\modules\features\w
    eblogic.server.modules_10.3.5.0.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\web
    services.jar;C:\oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\oracle\MID
    DLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;
    PATH=C:\oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\oracle\MIDDLE~1
    \patch_oepe1050\profiles\default\native;C:\oracle\MIDDLE~1\patch_ocp360\profiles
    \default\native;C:\oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\oracle\MID
    DLE~1\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\oracle\
    MIDDLE~1\JROCKI~1.2-4\jre\bin;C:\oracle\MIDDLE~1\JROCKI~1.2-4\bin;C:\oracle\prod
    uct\10.1.0\db_1\bin;C:\oracle\product\10.1.0\db_1\Apache\Perl\5.00503\bin\mswin3
    2-x86;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WI
    NDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\
    Java\jdk1.6.0_05\bin;C:\oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    Your environment has been set.
    CLASSPATH=C:\oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpa
    th\weblogic_patch.jar;C:\oracle\MIDDLE~1\patch_oepe1050\profiles\default\sys_man
    ifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\patch_ocp360\profiles\defa
    ult\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~1\JROCKI~1.2-4\li
    b\tools.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\M
    IDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\oracle\MIDDLE~1\modules\features\w
    eblogic.server.modules_10.3.5.0.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\web
    services.jar;C:\oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\oracle\MID
    DLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;C:\oracle\MIDDLE~1\utils\config\
    10.3\config-launch.jar;C:\oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbynet.j
    ar;C:\oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\oracle\MIDD
    LE~1\WLSERV~1.3\common\derby\lib\derbytools.jar;;
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    wls:/offline> execfile(c:/create_server.py)
    Traceback (innermost last):
    (no code object) at line 0
    File "<console>", line 1
    execfile(c:/create_server.py)
    ^
    SyntaxError: invalid syntax
    wls:/offline> execfile('c:/create_server.py')
    starting the script ....
    Connecting to http://192.168.1.2:7001 with userid weblogic1 ...
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "c:/create_server.py", line 5, in ?
    File "<iostream>", line 22, in connect
    File "<iostream>", line 646, in raiseWLSTException
    WLSTException: Error occured while performing connect : Error getting the initia
    l context. There is no server running at http://192.168.1.2:7001
    Use dumpStack() to view the full stacktrace
    wls:/offline> execfile('c:/create_server.py')
    starting the script ....
    Connecting to http://192.168.1.2:7001 with userid weblogic1 ...
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "c:/create_server.py", line 5, in ?
    File "<iostream>", line 22, in connect
    File "<iostream>", line 646, in raiseWLSTException
    WLSTException: Error occured while performing connect : Error getting the initia
    l context. There is no server running at http://192.168.1.2:7001
    Use dumpStack() to view the full stacktrace
    wls:/offline> execfile('c:/create_server.py')
    starting the script ....
    Connecting to http://smart:7001 with userid weblogic1 ...
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "c:/create_server.py", line 5, in ?
    File "<iostream>", line 22, in connect
    File "<iostream>", line 646, in raiseWLSTException
    WLSTException: Error occured while performing connect : Error getting the initia
    l context. There is no server running at http://smart:7001
    Use dumpStack() to view the full stacktrace
    wls:/offline> dumpStack()
    This Exception occurred at Fri Sep 16 19:51:07 IST 2011.
    javax.naming.CommunicationException [Root exception is java.net.ConnectException
    : http://smart:7001: Destination unreachable; nested exception is:
            java.net.ProtocolException: Tunneling result unspecified - is the HTTP s
    erver at host: 'smart' and port: '7001' a WebLogic Server?; No available router
    to destination]
    at weblogic.jndi.internal.ExceptionTranslator.toNamingException(Exceptio
    nTranslator.java:40)
    at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLIni
    tialContextFactoryDelegate.java:788)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
    tialContextFactoryDelegate.java:366)
    at weblogic.jndi.Environment.getContext(Environment.java:315)
    at weblogic.jndi.Environment.getContext(Environment.java:285)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
    extFactory.java:117)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    67)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.<init>(InitialContext.java:197)
    at weblogic.management.scripting.WLSTHelper.populateInitialContext(WLSTH
    elper.java:520)
    at weblogic.management.scripting.WLSTHelper.initDeprecatedConnection(WLS
    THelper.java:573)
    at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.j
    ava:313)
    at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:203)
    at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext
    .java:61)
    at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLS
    TUtil.java:147)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx36.connect$1(<iostream>:16)
    at org.python.pycode._pyx36.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.pycode._pyx42.f$0(c:/create_server.py:5)
    at org.python.pycode._pyx42.call_function(c:/create_server.py)
    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.__builtin__.execfile_flags(Unknown Source)
    at org.python.core.__builtin__.execfile(Unknown Source)
    at org.python.core.__builtin__.execfile(Unknown Source)
    at org.python.core.BuiltinFunctions.__call__(Unknown Source)
    at org.python.pycode._pyx41.f$0(<console>:1)
    at org.python.pycode._pyx41.call_function(<console>)
    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 org.python.util.InteractiveInterpreter.runcode(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at weblogic.management.scripting.WLST.main(WLST.java:173)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.WLST.main(WLST.java:29)
    Caused by: java.net.ConnectException: http://smart:7001: Destination unreachable
    ; nested exception is:
    java.net.ProtocolException: Tunneling result unspecified - is the HTTP s
    erver at host: 'smart' and port: '7001' a WebLogic Server?; No available router
    to destination
    at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
    at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextF
    actoryDelegate.java:345)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    146)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
    tialContextFactoryDelegate.java:340)
    ... 52 more
    Caused by: java.rmi.ConnectException: Destination unreachable; nested exception
    is:
    java.net.ProtocolException: Tunneling result unspecified - is the HTTP s
    erver at host: 'smart' and port: '7001' a WebLogic Server?; No available router
    to destination
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:470)
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:321)
    at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java
    :254)
    at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:197)
    at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:238
    at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:200)
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
    at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextF
    actoryDelegate.java:345)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    146)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
    tialContextFactoryDelegate.java:340)
    at weblogic.jndi.Environment.getContext(Environment.java:315)
    at weblogic.jndi.Environment.getContext(Environment.java:285)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
    extFactory.java:117)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    67)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.<init>(InitialContext.java:198)
    at weblogic.management.scripting.WLSTHelper.populateInitialContext(WLSTH
    elper.java:520)
    at weblogic.management.scripting.WLSTHelper.initDeprecatedConnection(WLS
    THelper.java:573)
    at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.j
    ava:315)
    at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:203)
    at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext
    .java:62)
    at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLS
    TUtil.java:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx36.connect$1(<iostream>:16)
    at org.python.pycode._pyx36.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.pycode._pyx42.f$0(c:/create_server.py:7)
    ... 24 more
    javax.naming.CommunicationException [Root exception is java.net.ConnectException
    : http://smart:7001: Destination unreachable; nested exception is:
            java.net.ProtocolException: Tunneling result unspecified - is the HTTP s
    erver at host: 'smart' and port: '7001' a WebLogic Server?; No available router
    to destination]
    please help me for this..
    Edited by: Sharad Jain on Sep 17, 2011 8:46 AM

    Hi Sharad,
    Put ('') in your command,
    wls:/offline> execfile('c:/create_server.py')
    Regards
    Edited by: scapy on Oct 6, 2011 4:15 PM

  • Is anyone else having email problems such as apps exiting in the middle of an email? It may be a wireless issue. I use First Class for work and yahoo email for personal. I will be in the middle of typing a long email and the app just quits, all data lost.

    Is anyone else having email problems such as apps exiting in the middle of an email? It may be a wireless issue. I use First Class for work and yahoo email for personal. I will be in the middle of typing a long email and the app just quits, all data lost.

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • How to use a work manager dedicated for an URI

    Hello,
    I have a servlet able to manage different use cases, based on differents URI (the servlet is mapped on /*, and depending of the URI and the configuration, I do different work)
    I would like to set a workmanager on each of my use cases.
    Is it possible to set a workmanager on a use case without any update of the descriptor files ? (without multi mapping the servlet because my use cases are pluggables)
    I've seen it is possible to acces a workmanager programaticaly (commonJ work managers) but it seems to be mandatory to reference the commonJ work manager inside the web.xml file to allow loca JNDI lookup on this work manager. Thus If I add a work manager, I have to update the web.xml. There is another possibility without updating any deployment descriptors ?
    Thank you very much for your answers,
    Best Regards,
    C.

    James,
    thank you for your update.
    1) Concerning the first solution (CommonJ WM), it sounds good for my needs but I still have to update the web.xml to add the resource-ref to access the WorkManager by JNDI:
    <resource-ref>
        <res-ref-name>wm/TestWorkManager</res-ref-name>
        <res-type>commonj.work.WorkManager</res-type>
        <res-auth>Container</res-auth>
        <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>So I have to update my ear, it is not exactly what I want :(
    2) Concerning the deployment plans, it is also a good idea, I can multiinstance a servlet to use different mapping and then apply different workmanager for different uris,
    This is working. I update the web.xml using a deployment plan.
    The only negative point is I can't only apply the deployment plan but I have to redeploy the entire application (wich is not recommended for production because it occurs a out of service period)
    Do you know any solutions for this two points ?
    Thank you a lot
    Best regards,
    C.

  • Work Management- how to use it?

    How can I define a work manager?
    in j2ee documentation i found that i can use it using someting like that
    InitialContext ctx=new InitialContext();
    Context envContext;
    envContext = (Context)ctx.lookup("java:comp/env");
    WorkManager wm=(WorkManager)envContext.lookup("wm/TestWorkManager/");
    my problem is that in don't know how to define it and where
    The documentation provided here does not help me enough...http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28956/workcont.htm
    thank you in advance!

    The Work Manger refered in the Oracle documentation is part of the JCA contract between an application server and a resource adapter. So this Work Manager is only available for a JCA 1.5 resource adapter implementation.

  • How can I use Data Source Explorer to connect soap service with my work manager project?

    Hello,
           I am new in Agentry and I want to Consume soap service in work manager project.For that I add my service in data source explorer but I dont have any Idea that how can I go further in that to use this service in my project.

    Are you consuming OData service or SOAP service ?  Your heading says something but looking at screen it is OData service.
    I have not worked on OData service in Agentry but hopefully you can figure out rest of the steps:-
    Here are some high level steps you can follow  depending on what your trying to do.
    1. Open "Data Source Explorer" view->Eclipse, select "Window/Show View/Other->"Data Management/Data Source Explorer"
    2. On "Data Source Explorer" view, ->"OData Connections"->right click and select "New...
    3. Enter name of the connection profile.
    4. Enter Service URI of in OData Connection Details
    5. After "Test Connection", press "Finish" or click "Next" to view Summary.
    6. Right click "Yourproject" node under "OData Connection", select connection. You will see "Entities"
    7. Expand "ODataEntities", right click "Entityset", select "Agentry: Connector Studio\Object Wizard for OData".
    8. Select a module to add odata connection, click "Next"; and click "Next"; and click "Next"
    9. Check "Add", "Edit" and "Delete" on "Transaction Selection" screen.
    10. Create your own screenset and platform as required.
    11. Test the changes.
    Thanks
    Manju

  • Managing organization unit using wlst or bpm webservice, is it possible?

    Anyone could help me with this doubt?
    Is possible add or del organization unit using wlst?
    Exist a Bpm Service for that?
    Thanks

    The BPM API exposes a IBPMOrganizationService that can be leveraged to maniuplate OU's - http://docs.oracle.com/cd/E23943_01/apirefs.1111/e25378/toc.htm. You could write some logic and deploy it as a WSDL.

Maybe you are looking for

  • HT1766 How can I transfer my old iphone number to my new iphone?

    I bought the new iphone from verizon and i had another iphone with another carrier and i was just wondering what it is i had to do switch my old cell phone number to my new one without having to go to my new carrier.

  • Adobe photoshop elements 4

    i want to install adobe photoshop elements 4 from a cd on my imac with version os x 10.9.5. but it can't instal. it says installation failed,there was an unknown error in the installer after the installation failed. contact the software manufacturer

  • How to set User Name in session?

    Can anyone tell me if there is an user name variable already stored in a session object to which I can assign the user's name? I usually do this by storing a variable in the session to hold that name. When I print the session object (I am using websp

  • Problem with Cisco 1240AG Access Points

    I have a Cisco 1240AG Access point (P/N ? AIR-LAP1242AG-A-K9). It has come in the lightweight mode. I just want to know whether I can put it to the autonomous mode.

  • Group by alias

    hi. Is it impossible to group by alias? SELECT np_acc2hum(account_number,12) as account, sum(gl_journal_value_dr) FROM gl_tran_lines WHERE GROUP BY account; Last string causes ORA-904. Thanks for your attention.