Start/Stop Web Modules with JMX

Does anyone know if there is a possibility in OC4J to start/stop/reload web applications via JMX?
When I navigate with the System MBean Browser to a WebModule MBean, e.g. oc4j:j2eeType=WebModule,name=defaultWebApp,J2EEApplication=default,J2EEServer=standalone , the stateManageable attribute says false, and there are no start() and stop() operations available.
Is there any other way to do that, besides starting and stopping the parent J2EEApplication MBean, perhaps with some non-JSR77 MBean?
Best regards,
Volker

Does anyone know if there is a possibility in OC4J to start/stop/reload web applications via JMX?
When I navigate with the System MBean Browser to a WebModule MBean, e.g. oc4j:j2eeType=WebModule,name=defaultWebApp,J2EEApplication=default,J2EEServer=standalone , the stateManageable attribute says false, and there are no start() and stop() operations available.
Is there any other way to do that, besides starting and stopping the parent J2EEApplication MBean, perhaps with some non-JSR77 MBean?
Best regards,
Volker

Similar Messages

  • Starting/Stopping Web Server

    I am using WebSrvr.Active in my vi to start the web server but when I stop the web server the browser continues to display the front panel. It seems that the setting WebSrvr.Active to false does not stop the server.
     Is there a way to check if the server has stopped? Is there a way to disconnect or stop the remote monitoring pragmatically?  

    According to this KB, the Websrvr.active should stop the server. It also metnoins that only the local machine can access this. I am curious though, does the computer you are accessing the web server with still show updating data even after you have called this property?  If so, if you try and refresh the page, does it still stay loaded?
    Rob K
    Measurements Mechanical Engineer (C-Series, USB X-Series)
    National Instruments
    CompactRIO Developers Guide
    CompactRIO Out of the Box Video

  • Start/stop user programs with laptop-mode

    Hi,
    i am trying to place some scripts in /etc/laptop-mode/*start[stop] to kill and start some programs when on battery or ac.
    I tried with the following script, but the process is just a zombie and dropbox will not appear: any ideas?
    #!/bin/bash
    case "$1" in
    start)
    su pschw -c
    /opt/dropbox/dropbox &
    stop)
    killall dropbox
    echo failed!
    esac

    Hi,
    i am trying to place some scripts in /etc/laptop-mode/*start[stop] to kill and start some programs when on battery or ac.
    I tried with the following script, but the process is just a zombie and dropbox will not appear: any ideas?
    #!/bin/bash
    case "$1" in
    start)
    su pschw -c
    /opt/dropbox/dropbox &
    stop)
    killall dropbox
    echo failed!
    esac

  • Starting/Stopping 9iAS Infrastructures with batch files

    I created the following two batch files to start and stop my iAS Infrastructure. I found that if I used the services settings of automatic, all did not go well.
    start.bat:
    @ECHO OFF
    cls
    ECHO About to start the listener
    net start Oracle9ias_InfraTNSListener
    ECHO About to start the database
    net start OracleServiceIASDB
    ECHO About to start the OID monitor
    e:\ora9iasinfra\bin\oidmon start
    ECHO About to start the OID server
    e:\ora9iasinfra\bin\oidctl server=oidldapd configset=0 instance=1 start
    ECHO About to start the website
    net start Oracle9ias_infraEMWebsite
    ECHO About to start opmn and OC4j
    e:\ora9iasinfra\dcm\bin\dcmctl start -ct ohs
    e:\ora9iasinfra\dcm\bin\dcmctl start -co OC4J_DAS
    stop.bat:
    @echo off
    cls
    ECHO About to stop the website
    net stop Oracle9ias_infraEMWebsite
    ECHO About to stop opmn and OC4j
    e:\ora9iasinfra\dcm\bin\dcmctl shutdown
    ECHO About to stop the OID server
    e:\ora9iasinfra\bin\oidctl server=oidldapd configset=0 instance=1 stop
    ECHO About to stop the OID monitor
    e:\ora9iasinfra\bin\oidmon stop
    ECHO About to stop the database
    net stop OracleServiceIASDB
    ECHO About to stop the listener
    net stop Oracle9ias_InfraTNSListener
    When I execute the batch files sometimes they work and sometimes they don't, for example after starting, occasionally the Apache process has not been created, and sometimes processes won't stop.
    However if I enter each command seperatly all works OK. Can anyone suggest a reason for this, maybe ordering is significant or a time delay may be required between certain actions?. Also after starting the website manager the process managers for both the infra and ias instances are started (I have installed both the iAS and the Infrastucture on the same machine - this all works fine when started as a series of individual commands but not when through batch files).
    Also If I try to use:
    SQLPLUS /NOLOG
    SQL>CONNECT sys/password@iasdb as sysdba
    SQL>Start
    I also get an 'unable to create a dedicated server' error. I can start/stop the database through the enterprise manager in either standalone or management server configuration without any errors. Can anyone shed any light on this?. I have set both TNS_ADMIN and ORACLE_SID correctly.
    Terry Bennett

    Thanks, I had read that and it was very informative. I did however solve my problem using a few other threads that have been posted about the runtime.runtime().exec commands. Thanks for you help.

  • Start stop while loop with tab control

    I want to be able to start and stop a while loop by entering and leaving a tab.  I am using an event structure to do so but it doesn't seem elegant or the right way to do this.  The only way I was able to get it to kind of work is by unchecking the lock front panel box in the event structure.  I have attached a sample vi of what I have so far.
    Solved!
    Go to Solution.
    Attachments:
    Loop test.vi ‏16 KB

    The problem is that you can't even stop the program by hitting the stop button until you leave the tab, which is not a friendly user interface.
    Event structures should just handle basic user events.  Any given event case should not take a long time to run.  While you are in the diagnostics tab, your code is stuck in that while loop.  Although fixing the lock front panel allows you to do other things, the LabVIEW is just queuing up all of those other UI events (like Stop button value change) and can't handle them until the inner while loop stops and allows the outer while loop to iterate again.
    You should have a parallel while loop to handle the waveform graph.  You can use notifiers or queues or an action engine FGV (see Ben's Action Engine Nugget) to pass the starting or stopping of the waveform graph update to the parallel while loop.

  • Starting / stopping FLV's with buttons

    Basically all I want to do is have a flv play, then stop...2
    buttons come up and depending on which you click on, plays the
    associated video. Kind of like a choice thing. Video plays ->
    make choice 1 or 2, plays video 1 or 2.
    Shoved the video in the timeline on the main layer.
    Created a new layer. Put the text button on the last frame
    that the video plays on.
    Opened Actionscript on the keyframe of the button.
    Added in
    stop();
    mybutton.onPress = function() {
    gotoAndPlay(710);
    710 is the frame on which i had the other video start, on a
    seperate layer might I add.
    However the result is .... movie plays .... briefly see
    button flash....next video plays without me clicking the button :(
    How do I go about making this happen?
    Thanks,
    - GoOsE

    onPress is not a function in as3. Also, you need to add the
    script to a frame on the timeline. you need to add an event
    listener to your button that calls upon a function to execute your
    code.
    mybutton.addEventListener(MouseEvent.CLICK, doSomething);
    function doSomething(e:MouseEvent):void{
    gotoAndPlay(710);
    };

  • Start, stop, restart WebLogic with WLST

    Hi,
    does Oracle have any example WLST scipts to start/restart WebLogic server? Please point me to them, 'cos I haven't found any.
    Thanks in advance.

    Hi,
    http://download.oracle.com/docs/cd/E13222_01/wls/docs90/config_scripting/manage_servers.html#start_managed_server
    You can record all that you doing in admin console and automatically you will get .py script for that operations.
    Regards

  • Deploying application with several web modules having the same context root

    Hi,
    I would like to be able to deploy an application in Weblogic 12c having one ejb module and several web modules with the same context root. Even though the web modules have the same context root, each of them is deployed to a different virtual host.
    Weblogic allows deploying the modules this way as long as their targets are different (i.e. each having a distinct virtual host). However this works only when I don't select a target for the .ear:
    Component Type Current Targets
    application.ear Enterprise Application (None specified)
    application.jar EJB AdminServer
    web1.war WEBAPP virtualHost1
    web2.war WEBAPP virtualHost2
    However if I select as target for the .ear to be AdminServer, the deployment doesn't work anymore, complaining that the context roots are in conflict.
    If I remove web2.war from the .ear and deploy the .ear and .jar to AdminServer and web1.war to virtualHost1, the deployment works but the strange thing is that the web application can be accessed also through the AdminServer's main network channel, even though I would expect that it should be accessible only through virtualHost1 network channel. I believe this is the reason why there are context root conflicts when specifying a target for the .ear, because both wars are made accessible to the main network channel.
    The reason why I want to keep the wars inside the same .ear is because I want to make them access the application's local EJBs (since as far as I know it's not possible to access a local EJB outside the application even if they belong to the same VM).
    Is there a way to deploy the web modules only to the virtual hosts without being targeted to the main network channel?
    Regards,
    Alexandru

    Murphy's Law: If anything can go wrong it will
    A corollary to Murphy's law: When everything fails, read the manual.
    Web application funda: Every web application must have its own context root. So, if wkfsocos is one
    web application then, wkfsocos1 is another web application -
    and hence must have its own context root.
    Hello Aman,
    If you are in E-Commerce version 4.0, then read this
    [ISA_Buildtool document |https://service.sap.com/~sapdownload/011000358700001920472003E/ISA_BuildTool_10.pdf]
    to create a copy of the application in its own context root.
    From your URL pattern I guess you are in E-Commerce version 4.0.
    If you are in E-Commerce 5.0 or above, then the
    [Extension Guide |http://service.sap.com/~sapdownload/011000358700006120622006E/]gives steps to create a copy with its own context root for use in modification.
    (See the chapter on - Creating a project specific Web Application with own context root )
    Both these links require access to SAP Service Marketplace. You can also find the
    documents through /instguides shortcut in Service Marketplace.
    Easwar Ram
    http://www.parxlns.com

  • Starting/stoping java app using JMX ?

    Hello, do any one know, whether we can start / stop java application using JMX ? I know it is monitoring api and can help to find whether app is up or down

    I see the same error when I start domain1. However, I was able to deploy and configure Access Manager 7.1 using the WAR file method, as described in Sun Java System Access Manager 7.1 Postinstallation Guide, page 153. The Guide's instructions are for Sun Java System Application Server Enterprise Edition 8.2, but they seem to work okay with version 9.1. After deploying the WAR file, the Configurator comes up automatically the first time you browse to its URL, typically http://localhost:8080/amserver.

  • Can LR Web module converting file name hyphens into underscores be disabled

    Hi,
    I have problems when creating webpages from within LR.
    First I develop the RAW files and converts them to jpegs. Under Lightroom 3 I use the following settings under "Export location":
    Export to: Specific Folder
    Add to This Catalog: ticked
    Existing Files: Choose a new name for the exported file
    This is thus native Lightroom. For existing files the new filenames are generated with a hyphen follwed by a numeric suffix. as follows: for FileName.jpg this would be FileName-2.jpg, FileName-3.jpg.
    Afterwards I use the web module with the TTG Highslide Pro plugin to generate the webpages. For each image on the page there is a link to the original image to download it. It is here where a problem occurs. With the above mentioend naming convention (adding a hypen when files do already exist) there is no problem at all to display the photos nor as a tumbnail, nor in the slideshow.
    When trying to download the high resolution image however a problem occurs. The file can't be found. This is due to the hyperlink pointing to filenames like FileName_2.jpg and FileName_3.jpg. As the image itself is having a hyphen followed by a numeric suffix it can't be found when the link is pointing to that file using an underscore instead.
    So to me that's a little problem as I am not at the steering wheel at any of the two moments where a naming convention is applied; the automatic filename generation at time of export from Lightroom and the change of the hyphen to the underscore when generating the webpage.
    Any Idea how this can be solved? Or having an underscore used by the automatic naming in Lightroom, or using the hyphen (leaving the filename as it is) when generating the webpage with the LR web module.
    I posted that question already at the TTG forum and got the following respnse from Matthew: "Lightroom's Web module converts file name hyphens into underscores. It's not something I have any control over at all."
    Any help would be appreciated.
    Kind regards,
    Patrick

    I have the same problem in that filenames created with (for instance) photographer-place--year_month_day-filename.cr2 are exported by Lightroom 3.4.1 correctly, without change, into jpg versions, but TTG Highslide Gallery Pro (or, rather, Lightroom) forces a conversion eliminating the dashes and replacing them by underscores. TTG states on its website that this is unavoidable in the Lightroom web module, and recommends entering one's wishes in the "File Handling" tab within Lightroom Preferences.
    However, my LR preferences include the standard File Name Generation option "Replace illegal file name characters with: Dashes (-)" so this would indicate that a dash is not regarded by Lightroom as illegal and therefore should be left alone. As is in fact the case on a normal export from a raw cr2 to jpg: no change in Lightroom and therefore no problem. But export via LR via TTG causes an unwanted conversion from dashes to underscores.
    While searching the web I came across this old post http://thephotogeek.com/ttg-web-gallery-client-selections-lightroom/
    which mentions the question as a LR2 bug.
    I then exported a web gallery using LR's standard web template and here too all file names are converted from dashes to underscores, despite what is entered in LR's preferences. So my conclusion is that this remains a LR bug, and no fault of TTG.
    I am delighted with TTG and couldn't do without it, but am still stuck with this issue which shouldn't need to be an issue at all, if only LR would leave things alone.

  • Lightroom 2.1 still crashing on Export in develop and web modules

    I am running Lightroom 2.1 on a Windows XP Pro PC with 4GB of Ram, an NVidia graphics card and having found Lightroom 2 an absolute disaster when exporting files with it crashing even when exporting one file, LR2.1 is only slightly better.
    I can export around 10 -15 at a time files in the develop module and export slidehows in the web module with up to 30 images or so. Any more and the computer crashes.
    Adobe really MUST do something about this as amongst other things I do events and weddings and need to create slideshows for my clients of 100-200 images.
    In the meantime any tips!??
    Thanks Stefan

    You have to report more about what symptoms the crash shows: blue screen, reboot, LR crashes, what does Windows say?
    From your description you could have a computer with a hardware problem. Exporting is computationally intensive and taxes the hardware. I can export hundreds of pictures with no problem...
    Get a tool like hwmonitor from cpuid.com and monitor your temperatures. And post more detailled symptoms.

  • Starting the web dbm on RH fedora core 2

    Hello all
    I have installed the RPM package maxdb-web-7.5.0.23-1.i386.rpm
    According to the online help
    http://help.sap.com/saphelp_nw04/helpdata/en/fe/389e3a85166506e10000000a114084/content.htm
    i should now start the web dbm with:
    /etc/rc.d/sdb-web start
    but no such file exists.
    What is next step ?
    best regards
    Thomas Madsen Nielsen

    Hi,
    could you please try the following command:
    /etc/rc.d/maxdbweb start
    Does that work?
    Kind regards,
    Roland

  • 24pA - Captured timecode and DV Start/Stop

    Hello - I've got what I hope will be an easy one - though I haven't found the answers lurking around here. I'm capturing footage shot on my DVX-100A in 24p Advanced mode. I'm capturing it from my DSR-11 deck using the Advanced Pulldown Removal in FCP 5.0.3 on my Dual 1G G4 tower running OS 10.4.3. My tapes should all be Non-Dropframe I believe.
    I'm having an issue with DV Start/Stop Detect. It's putting markers where there is no start/stop between clips, and NOT finding any of the start/stop locations on the tape at all. This led me to examine my timecode more closely. I found that clips have timecode that increments like this (in the frames category):
    01, 02, 04, 05, 06, 07, 09, 10, 11, 12, 14, 15, 16, 17, 19, 20, 21, 22, 24, 25, 26, 27, 29, 00
    It plays fine in sequences set to 23.98, and even displays fine on an NTSC television I've hooked up to my DSR-11. This from the clip itself in the viewer, or from the canvas in the sequence.
    Should my timecode be incrementing that way so that it can re-reference the 29.97 timecode on my original tapes, or do I have a problem? Does anybody know why my Start/Stop Detect feature won't work? Incidentally, it works just fine for 24p normal footage captured at 29.97.
    Thanks for your help.
    Zac

    Zebulun -
    I did what you suggested. I was able to capture a few clips just fine at 29.97. I also was able to use the dv start/stop detect feature with success.
    However, using the "remove advanced pulldown" from the tools menu yielded the same odd results. It appeared to work just fine, and the info window for the clip says that the frame rate is 23.98 (with lower field dominance), but my time code still reads as it did from the above posting. Up to 29 frames, skipping frames to make it count only 24 times.
    It still seems to play fine. Any thoughts on why my timecode is doing this?

  • Problem (un)Deploying Web Module on Root Context [/]

    Hello all,
    I have been attempting to deploy an EAR that has multiple web and ejb modules. All of the ejb modules deploy correctly and all but one of the web modules deploy correctly. The one that I am having problems with is the web module at the root context []. If the application server is already running when I try to deploy, I get the following error: (unimportant part removed)
    INFO|javax.enterprise.system.container.web|WEB0113: Virtual server [server] already has a web module loaded at [/]; therefore web module [BlueCommerce:web-client.war] cannot be loaded at this context path on this virtual server.However, I have no module loaded at the root. I have also tried this on a newly created domain. Is there some default web module that I must remove first.
    After the deploy fails, if I restart the application server I can access it, but all the security-constraints seem to be gone. Also, I cannot undeploy it without restarting the application server. When I attempt to do so, I get the following error:
    SEVERE|javax.enterprise.system.container.web|[WebContainer] Undeployment fail for context /Any assistance would be appreciated. Thank you,
    - Nathanael Law

    The behaviour you are seeing is expected.
    Notice that the container automatically defines and loads a default web
    module with context root "/" if no such module has been defined among
    the web modules and j2ee applications to be deployed on a virtual
    server, and if the virtual server does not specify a
    "default-web-module" attribute.
    This default web module's docbase it set to the virtual server's docroot.
    Therefore, in the case of the virtual server named "server", a default
    web module with docbase SUNWappserver/domains/domain1/docroot is loaded
    at the context root "/", which is why you see the index.html stored in
    the above docbase when you access http://<host>:<non_admin_port>.
    Once a web module has been deployed to a particular context root on a
    virtual server, it cannot be overridden.
    Jan

  • Web Module Deployment Problem with Weblogic [Deployer:149026]

    Dear Friends,
    I've been facing a problem during deploying an Web Module on Weblogic 8.1. The name of my webmodule is 'MyOraWebModule'.
    When I first developed, deployed and tested it in Weblogic 8.1, it was deployed and worked fine. But on the next day, when I tried to redeploy it, the deployment failed. This thing not just happens only once.. it is happeing always i.e. if I develop a new webmodule and deploy/redeploy it, it will work fine ONLY ON THE FIRST DAY (i.e. the day when the web module is created), but on the next day, it shows the following error if I try to redeploy it. The error is:
    Task 3 failed: [Deployer:149026]Deploy application MyOraWebModule on myserver.
    Deployment failed on Server myserver
    Exception:weblogic.management.ApplicationException: prepare failed for MyOraWebModule
    Module: MyOraWebModule Error: Context path 'MyOraWebModule' is already in use by the module: MyOraWebModule
    Any suggestion or, guideline from you will be highly appreciated.
    With Thanks,
    ... Chisty

    Not sure if you are still looking for the answer. I have a similar problem, I have a work around on it but still trying to identify what the issue is. I have deployed multiple web application modules on weblogic 8.1 and on the redeploy I was gettig the exception weblogic.management.ApplicationException: prepare failed for USER_DEFINED_MODULE_NAME
    Context path '/' is already in use by the module. when this exception is thrown I observed that the targets attribute of tag WebAppComponent is initialized to the server name. If I stop the server, make the value of the targets attribute to be empty string in config.xml and start the server, the server starts fine. And I could continue. Not sure why this is so since the targets attribute is used to identify on what servers the application needs to be deployed.
    Any input on why the weblogic 8.1 is behaving this way when the targets attribute is defined with a value would of great help.
    thanks,

Maybe you are looking for

  • Stolen Ipod touch 4th Gen, no ICloud or wifi, can you track it?

    My ipod was stolen by my drug addicted neighbor, I dont have it connected to icloud or connected to wifi. Is there any other possable way to track it down to see if it was stolen or sold

  • Garnishment Vendor Advice Info Missing

    Friends, We have setup third party remittance for Garnishments and on Vendor check/Advice(F110) we are missing the employee information. what we can see now is only "0003100070001510692340000689399900403" and "HRGRNX00031069". Now in this "99900403"

  • Export to CSV

    Dear Experts, We are on BI 7.0 and we came across the following problem : When we wre exporting to CSV from Web template in Portal, each £ sybmol is accompanied by   ie.£ 1500 (where it should have been £1500). When exporting to Excel/ excel 2000,

  • Suggestions?  How to properly "nest" components/share code

    Hello, I have a situation with nested components like this: Application (STATE1) -----Component_A (STATE2) ----------Component_B (STATE2)  <--most of the action is here--> ---------------Component_C (STATE2) My main problem is that Component_C works

  • TS3694 i have an error 3014 on my iphone how do i fix this error

    i have an error 3014 on my i phone 4s, how do i fix this?