How to tell if the app server is running (on windows)

Folks,
I'm trying to write a deploy.bat - to build and deploy (using ant) my enterprise-app and web-services (the firstcup example)
... I'm stuck on winblows (for now) ...
The deploy depends on the app server... so if it's not running, I'd like to start it automagically... but I've fallen on the first hurdle... I can't figure out how your supposed to determine if the server is up.
Please can anyone help?
FYI: I had a bit of a play with the asadmin tool and found:C:\Java\src\Tutorials\Sun\firstcup\example\firstcup>asadmin version
Unable to communicate with admin server, getting version locally.
Version = Sun Java System Application Server Platform Edition 9.0_01
Command version executed successfully.
C:\Java\src\Tutorials\Sun\firstcup\example\firstcup>echo %ERRORLEVEL%
0which looks promising... I can grep for the "Unable to communicate with admin server" (using a perl one-liner)... butt ugly but effective (for now).
TIA. Keith.
PS: There doesn't seem to be an application server forum???

Folks,
Firstly, Thanx for the underwhelming response :-)
I've got a working workaround.
I created a "hello world" webapp which I hit it from a CGI script.
It should be (slightly) more robust (and portable) than grepping for error messages from the asadmin version utility.
Shame I'm dependant on the "old hat" for the new goose though.
Cheers anyway. Keith.

Similar Messages

  • [svn:bz-4.0.0_fixes] 16148: Update config testsuite on 4.0. 0_fixes branch to force kill the app server before running any tests when the app server is Tomcat .

    Revision: 16148
    Revision: 16148
    Author:   [email protected]
    Date:     2010-05-17 06:40:40 -0700 (Mon, 17 May 2010)
    Log Message:
    Update config testsuite on 4.0.0_fixes branch to force kill the app server before running any tests when the app server is Tomcat. The regression runs were hanging on this branch when going to run the config suite because the Tomcat server isn't shutting down cleanly at the end of the MXUnit run. I believe this is an issue with the version of ActiveMQ we are using. Since I don't think we want to update ActiveMQ on this branch force killing the Tomcat server will workaround the problem.
    Modified Paths:
        blazeds/branches/4.0.0_fixes/qa/apps/qa-regress/testsuites/config/build.xml

    Hi,
    Thanks for the reply. I have tried this on another machine running the same version of Blackboard. It works fine.
    Only difference is that the machine that has the JVM crash is running on Fujitsu PrimePower and the OS is Solaris 9 (but twigged for PrimePower).
    The one where it runs and starts up successfully is running on SunFire (OS is Solaris 10).
    I am wondering if there is a problem with the JVM loading required libraries because of the OS being different versions.
    Any leads on this is welcomed. Thank you.
    Regards,
    Hon Peng
    ===================
    On Fujitsu Primepower
    SunOS 5.9 Generic_118558-33 sun4us sparc FJSV,GPUS
    the Dependencies for libjvm.so are as follows:
    ===================
    bash-2.05$ ldd -r libjvm.so
    libsocket.so.1 => /usr/lib/libsocket.so.1
    libsched.so.1 => /usr/lib/libsched.so.1
    libdl.so.1 => /usr/lib/libdl.so.1
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libm.so.1 => /usr/lib/libm.so.1
    libthread.so.1 => /usr/lib/libthread.so.1
    libc.so.1 => /usr/lib/libc.so.1
    libnsl.so.1 => /usr/lib/libnsl.so.1
    libmp.so.2 => /usr/lib/libmp.so.2
    /usr/platform/FJSV,GPUS/lib/libc_psr.so.1
    =====================================
    On SunFire, Sun machine
    SunOS 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-280R
    the dependencies are different for the libjvm.so:
    =====================================
    bash-2.05$ ldd -r libjvm.so
    libsocket.so.1 => /lib/libsocket.so.1
    libsched.so.1 => /usr/lib/libsched.so.1
    libdl.so.1 => /lib/libdl.so.1
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libm.so.1 => /lib/libm.so.1
    libthread.so.1 => /lib/libthread.so.1
    libc.so.1 => /lib/libc.so.1
    libnsl.so.1 => /lib/libnsl.so.1
    libmp.so.2 => /lib/libmp.so.2
    libmd5.so.1 => /lib/libmd5.so.1
    libscf.so.1 => /lib/libscf.so.1
    libdoor.so.1 => /lib/libdoor.so.1
    libuutil.so.1 => /lib/libuutil.so.1
    /platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
    libm.so.2 => /lib/libm.so.2
    /platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1

  • How to tell embedded jinitator applet is still running when window closed

    Hello, we are trying to accomplish the same thing that is mentioned in this post from Metalink. I've searched for a solution and hope someone here can help. Instead of restating the issue I think David Wilson does a good job of explaining what is needed. Can anyone please suggest a possible solution?
    From: David Wilton 07-Oct-05 01:08
    Subject: How to tell embedded jinitator applet is still running when window closed
    How to tell embedded jinitator applet is still running when window closed
    Hi,
    We run an oracle 10g forms application through 9iAS over an intranet. All users are running windows 2000 professional.
    We run separate frame = true but I would like to switch to separate frame = false
    With separate frame = true if the user clicks the outer windows "X" close button (forms mdi window) the user is prompted to save changes before the application ends.
    BUT
    when using separate frame = false
    If the user clicks the upper window "X" button (no longer form mdi window but regular browser window) the window and application is abruptly closed.
    I'm interested in using a onbeforeunload function to confirm if the user wants to close the window. This would be placed in the basejini.htm file. This could always ask if the user wants to exit or not. If they click OK then the window closes but if they click "Cancel" you are returned to the forms application exactly where you left. something like event.returnvalue="do you really want to exit?";
    However if the user exited using the normal exit form method then the applet is already closed before the onbeforeunoad event fires and there is nothing to go back to and I want the window to close automatically. This is accomplished using close.html file in post forms trigger.
    So what I want and what I think many may also want is the check if the embedded applet is still running and if so prompt the user to return to the application or continue to close. Of course If the applet is no longer running then just close because there is no reason confirm closing anymore.
    Does anyone have a html/JavaScript solution that can be placed in the jinitiator.htm file? or similar?
    Thank you
    David
    [email protected]
    From: Andrew Lenton 07-Oct-05 08:58
    Subject: Re : How to tell embedded jinitator applet is still running when window closed
    I don't know if this is exactly what you are after but you can add the following to the top of your basejini.htm file and it should prompt the user before exiting the IE window.
    <BODY %HTMLbodyAttrs%>
    %HTMLbeforeForm%
    <SCRIPT>
    <!--
    window.onbeforeunload = unloadApplet;
    function unloadApplet(){
    message = "Warning! Please exit the Java Applet prior to
    exiting the browser"
    return message;
    //-->
    </SCRIPT>
    From: Oracle, mohammed pasha 07-Oct-05 09:55
    Subject: Re : How to tell embedded jinitator applet is still running when window closed
    David,
    Well I could not understand your complete requirement.
    Refer to Note.201481.1 How to Close the Browser Window When Closing Forms And How to Simulate SeparateFrame By Javascript
    Note.115905.1 How to Close Browser Window When Closing Webforms Applet
    Kind Regards,
    Anwar
    From: David Wilton 07-Oct-05 14:37
    Subject: Re : How to tell embedded jinitator applet is still running when window closed
    Thank you for your reply and yes you did not understand my question fully.
    Sorry if this is a long reply
    I am able to close the browser window using information in notes 115905.1 and 201481.1, this is not the issue. We implemented this several years ago. It is workable for both separate frame = true or false.
    It is most important to not allow the user to end their forms application by closing the windows browser, they must close using normal form exit commands.
    What I want is to have separate frame = false, the big drawback to this option is the user can exit the application and bypass all forms code by pressing the windows "X" close button. This is why we need the code as just provided by Andrew Lenton above in this thread.
    BUT Andrew's code will always prompt the user before closing the window and I do not want that. I want the user to be prompted only under scenario 2 listed below.
    Here's the 2 case scenario for exiting the application.
    1. If the user closes properly and uses exit form which fires all normal form triggers including post_form with it's call to close.html file.
    All uncommitted changes are saved or rollback and the users session is ended normally both on the database and in the application server.
    All browser windows will close, great all is good. And without Andrew's code the window will close but with Andrew's code the user will be prompted to close or not, if they select Cancel the window will remain but the applet has already ended so why prompt? ...This is what I want to avoid.
    2. In the forms app. if the user clicks the windows "X" close button with uncommitted changes. The browser just closes the changes are rollback without prompting the user to save. The users sessions are now lost and still running in the database and application server until they are timed out.
    If I use Andrew's code then the user will be prompted to continue to close or go back, if they click Cancel to go back then focus returns to the forms application and the user can continue to work. If the user clicks OK then the window closes and unfortunately their sessions are still lost until timed out.
    So what I desire is to add to Andrew's code to check if the embedded applet is still running and prompt the user to close or not accordingly.
    Something like:
    Basejini.htm like
    </HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    function maximizeWindow()
    window.moveTo(0,0);
    window.resizeTo(screen.availWidth,screen.availHeight);
    function confirm(){
    If(document.embeddedapplet.closed())
    Win.opener = self;
    win.close();
    Else if
    event.returnValue = "Closing Forms Application. OK to continue?";
    </SCRIPT>
    <BODY %HTMLbodyAttrs%, onload="maximizeWindow()", onbeforeunload="confirm()">
    %HTMLbeforeForm%
    I hope this explains my requirements.
    David
    From: Oracle, Evelene Raechel 10-Oct-05 06:45
    Subject: Re : How to tell embedded jinitator applet is still running when window closed
    Hi,
    Note.199928.1 How to Alert User on Closing Client's Browser Window in Webforms
    Regards,
    Rachel
    From: David Wilton 11-Oct-05 17:40
    Subject: Re : How to tell embedded jinitator applet is still running when window closed
    I'm sorry this is not helpful at all.
    Note 199928.1 is only an alert which does not stop the closing of the window and still displays as an alert if the user does close properly using exit form ... so why would you want to display the alert then?
    This is exaclty what I do not want and why I want to determine if the applet is still running before displaying any kind of message.
    David
    From: Oracle, Evelene Raechel 17-Oct-05 12:23
    Subject: Re : How to tell embedded jinitator applet is still running when window closed
    Closing thread.
    Thanks,

    Hello,
    I had the same issue last year - wanting to provide a warning on closing the browser, but only if the Forms session is still running. The approach I took is described below, see also the thread where I originally posted this at Closing brower window
    Hi there,I've had a similar requirement - or rather, the two conflicting requirements: to warn when the browser is being closed, but for the app to be able to close the browser without a warning being fired.
    To always provide a warning when someone (the user or the Forms app) tries to go to a different page (e.g. your close.htm), use Javascript like:
    function confirmExit(){
    if(appletRunning==true) {
    msg="Closing this window or navigating to another page will end your SomeGreatApp session.";
    window.event.returnValue=msg;
    And make a call to confirmExit() in the onBeforeUnload event of your main page.
    You'll notice I first check an 'appletRunning' variable before displaying the warning. This Javascript variable is set to true by my app when it starts up, using an embedded Javabean that calls out to Javascript. Once that variable is set to true, then the warning will be displayed if the user tries to shut the browser by clicking on the 'x' button, or to go to a different URL.
    When my app is shutting down, it uses the same Javabean to set appletRunning back to false. It then navigates to a close.htm - which will be done without a warning being displayed.
    See Re: How can a Javabean call Javascript function of the basejpi.html?? for example code on how to call Javascript from a bean embedded in your Forms app.
    Hope these ideas help you out, it's worked for me (so far, anyway!!)
    James

  • With the "7" how do I close the apps that are running in the background.

    How do I close background apps?

    On the iPad (don't know about the iPhone) you can use four or five finger swipe up to access the multitasking screen to close out apps. To use this option you need to turn on Multitasking Gestures in the Settings window:
    Saves having to hit the Home button twice...

  • How can I get the apps that I paid for on iTunes and the app store I don't have a computer I paid for them using my ipad and everytime I try to redownload them it asks for my card number and when I put the number in it tells me that the number is not a wo

    Ok can anyone tell how I can get the apps that I paid for on iTunes and the app store using my I pad because I don't have a computer and when I try to redownload the apps it keeps asking me for my card number and when I give it my card info it says that it's an invalid number when I know that it's not

    If you are getting an 'invalid security code' message then is the address on your iTunes account exactly the same (format and spacing etc) as on your credit card bill : http://support.apple.com/kb/TS1646 ? If it is then you could try what it says at the bottom of that page :
    If the issue persists, contact your credit card company and verify that they and any company they use to process credit card authorizations have the correct information on file.
    And/or try contacting iTunes support : http://www.apple.com/support/itunes/contact/ - click on Express Lane, then iTunes > iTunes Store

  • I have an iPad that has one app that loads to only 72%. Apple tells me that the app is no longer available in canada but it has content that I paid for. How do I get the app to work again?

    I have an iPad that has one app that loads to only 72%. Apple tells me that the app is no longer available in canada but it has content that I paid for. How do I get the app to work again?

    If it's not available in your country and you do not have a copy of it in iTunes backed up on your computer, you don't.

  • On installation of the app server, was asked for a key that is supposed to come with the welcome letter. How do I get a welcome letter?

    I bought the Solaris 9 media which brought the iPlanet servers. When installing the app server, I was asked for a key in a welcome letter. I don't seem to have one. How can I get the key to install the servers

    No matter how many times you ask this question, the answer is going to be the same.
    You can submit feedback to Apple here:
    http://www.apple.com/feedback

  • How to make the App Server Listen for HTTPS

    I have a web application that needs to be accesible over an HTTPS connection, not HTTP.
    When I deploy an application with Java Studio Creator to the App Server it is automatically set to an HTTP URL. How do I setup HTTPS ?
    Thank you in advance,
    Joe Paladin

    Looks like I should have thanked myself in advance....
    Turns out its pretty easy. Open the admin console, go to configuration, add and HTTP listener, check the security check box, and fill out the other mandatory fields like the port. Standard SSL port is 443.
    Save changes, and restart the App Server. Any deployed apps should be reachable via https://localhost:443/myWebApp
    This approach uses a default certificate that comes with the app server. Here is a link if you want to create a certificate :
    http://java.sun.com/developer/technicalArticles/WebServices/appserv8-1.html
    Joe Paladin

  • Create attachment of  a file stored on the app server for mail

    Hello All:
    I am working on sending a mail with attachemnts (file from the app server), i am aware of numerous solutions posted on the forum ....i am  able to create an attachment and send mail. the problem i am facing is the attachment is corrupted . can some one guide me as what i am ding wrong . here's the code
    DATA: REC(80) TYPE C.
        DATA: L_SIZE TYPE DRAO-ORLN.
        DATA: L_LINES TYPE I.
        DATA: L_DATA_TAB TYPE TABLE OF RCGREPFILE.
        DATA: L_DATA_TAB1 TYPE TABLE OF RCGREPFILE.
        DATA: L_DATA_WA TYPE RCGREPFILE.
        DATA: N_FILE TYPE RCGIEDIAL-IEFILE.
        P_FILE = '/usr/sap/MIE/SYS/global/PDFSpools/30978.pdf'.
        N_FILE = P_FILE.
        CONCATENATE 'C:temp' RQ2NAME '.pdf' INTO ELPATH.
    *   Read Data from the App server
        OPEN DATASET  P_FILE FOR INPUT IN BINARY MODE .
        DO.
          READ DATASET P_FILE INTO REC.
          IF SY-SUBRC NE 0.
            EXIT.
          ELSE.
            L_ANN = REC.
            APPEND  L_ANN TO T_PDF .
          ENDIF.
        ENDDO.
        CLOSE DATASET P_FILE.
    *   How do i get the filesize ?
        CLEAR L_ANN.
        DESCRIBE TABLE T_PDF LINES LIN_TEXT.
        LOOP AT T_PDF INTO L_ANN.
          APPEND L_ANN TO T_ANN.
        ENDLOOP.
    *    Using this i get the file size
    *    CALL FUNCTION 'C13Z_RAWDATA_READ'
    *      EXPORTING
    *        I_FILE           = N_FILE
    *      IMPORTING
    *        E_FILE_SIZE      = L_SIZE
    *        E_LINES          = L_LINES
    *      TABLES
    *        E_RCGREPFILE_TAB = L_DATA_TAB
    *      EXCEPTIONS
    *        NO_PERMISSION    = 1
    *        OPEN_FAILED      = 2
    *        OTHERS           = 3.
    *    CLEAR L_ANN.
    *    DESCRIBE TABLE L_DATA_TAB LINES LIN_TEXT.
    *    LOOP AT L_DATA_TAB INTO L_DATA_WA.
    *      L_ANN-LINE = L_DATA_WA-ORBLK.
    *      APPEND L_ANN TO T_ANN.
    *    ENDLOOP.
        DOC_CHNG-OBJ_NAME   = 'URGENT'.
        DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
        DOC_CHNG-OBJ_DESCR  = TEXTS.
        DOC_CHNG-SENSITIVTY = 'O'.
    *   DOC_CHNG-DOC_SIZE   = LIN_TEXT * 255.
        CLEAR OBJPACK-TRANSF_BIN.
        OBJPACK-HEAD_START = 1.
        OBJPACK-HEAD_NUM   = 0.
        OBJPACK-BODY_START = 1.
    *   OBJPACK-BODY_NUM   = LIN_TEXT.
        OBJPACK-DOC_TYPE   = 'RAW'.
        APPEND OBJPACK.
        NOMFITXER = ELPATH.
        CALL FUNCTION 'SPLIT_FILENAME'
          EXPORTING
            LONG_FILENAME  = NOMFITXER
          IMPORTING
            PURE_EXTENSION = EXTENSIO.
        OBJPACK-TRANSF_BIN = 'X'.
        OBJPACK-HEAD_START = 1.
        OBJPACK-HEAD_NUM   = 1.
        OBJPACK-BODY_START = 1.
        OBJPACK-BODY_NUM   = LIN_TEXT.
        OBJPACK-DOC_TYPE   = EXTENSIO.
        OBJPACK-OBJ_NAME   = RQ2NAME.
        CONCATENATE RQ2NAME EXTENSIO
          INTO NOMFITXER SEPARATED BY '.'.
        OBJPACK-OBJ_DESCR = NOMFITXER.
        OBJPACK-DOC_SIZE  = L_SIZE * 255.
        APPEND OBJPACK.
        CALL FUNCTION 'BAPI_USER_GET_DETAIL'
          EXPORTING
            USERNAME = SY-UNAME
          TABLES
            RETURN   = BAPIRETUR
            ADDSMTP  = DADESUSER.
        READ TABLE BAPIRETUR WITH KEY TYPE = 'E'.
        IF SY-SUBRC NE 4.
        ELSE.
          READ TABLE DADESUSER INDEX 1.
    *     REMITENT = DADESUSER-E_MAIL.
          REMITENT = SY-UNAME.
        ENDIF.
        TEXTS = 'TEST MAIL'.
        APPEND TEXTS.
        DESTINATARIS-RECEIVER   = SY-UNAME.
        DESTINATARIS-REC_TYPE   = 'B'.
        DESTINATARIS-EXPRESS    = 'X'.
    *   DESTINATARIS-COM_TYPE   = 'INT'.
    *   DESTINATARIS-NOTIF_DEL  = 'X'.
    *   DESTINATARIS-NOTIF_NDEL = 'X'.
        APPEND DESTINATARIS.
        CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
             DOCUMENT_DATA                    = DOC_CHNG
             PUT_IN_OUTBOX                    = 'X'
             SENDER_ADDRESS                   = REMITENT
    *        SENDER_ADDRESS_TYPE              = 'SMTP'
             COMMIT_WORK                      = ' '
           IMPORTING
             SENT_TO_ALL                      = ENVIAT
    *        NEW_OBJECT_ID                    =
    *        SENDER_ID                        =
           TABLES
             PACKING_LIST                     = OBJPACK
    *        OBJECT_HEADER                    =
             CONTENTS_BIN                     = T_ANN
             CONTENTS_TXT                     = TEXTS
    *        CONTENTS_HEX                     =
    *        OBJECT_PARA                      =
    *        OBJECT_PARB                      =
            RECEIVERS                        = DESTINATARIS
          EXCEPTIONS
            TOO_MANY_RECEIVERS               = 1
            DOCUMENT_NOT_SENT                = 2
            DOCUMENT_TYPE_NOT_EXIST          = 3
            OPERATION_NO_AUTHORIZATION       = 4
            PARAMETER_ERROR                  = 5
            X_ERROR                          = 6
            ENQUEUE_ERROR                    = 7
            OTHERS                           = 8.
    Message was edited by: Poornanand Mandalika. Code was formatted using the <b>Code</b> button!!

    Assuming you are using Apache?
    You could place your Word docs in the same folder as your current Apex images directory (or a sub-directory off it) then reference them with a URL of the form http://yourserver/i/sample_word_file.doc. Alternatively you could add a new Alias entry to your dads.conf file (found in your Apache/modplsql/conf directory) to expose the folder on your webserver that contains your Word files via a URL such as http://yourserver/word_docs/
    E.g.
    Alias /word_docs/ "c:\my_docs\technical_word_docs/"
    Andy

  • Messenger Express: How do I add the Directory Server to the address book search tool?

    In Messenger Express (ME) how do I add the Directory Server (DS) to the address book
    search tool?
    <P>
    Edit the globals.pl file. Look for a line similar to: <BR>
    @dirservers = ('MyCompany::phonebook.foo.com::o=FooCorp.,c=US','Four11 Directory::ldap.four11.com::');
    <P>
    Add an entry to the list. The list is comma delimited and each entry is a
    string. The string contains three fields, delimited by a double colon (::). The
    first field is the name you want to appear in the User Interface (UI). The second is
    the hostname of the DS and the third is the Distinguished Name (DN) to use when searching.
    <P>
    Please note, Messenger Express is part of the Messaging Server. For more
    information on Messenger Express, please see the release notes at
    http://home.netscape.com/eng/server/MExpress/relnotes.htm

    You can't add a new contact to specific group and there is no app for this. 3rd party apps don't have access to private iPhone APIs with security concerns being a primary reason, which such a function would require.

  • How can I delete the apps that run in the background in iOS 7

    HOw can I delete the apps running I the background in the new Ios7. Earlier all that I had to do was to press continuously and then could delete when the   Mark would appear. now I am unable to do it.
    AAlso, I am unable to save a photograph as a wall paper.

    Thanks so much. This solved my problem.
    Can you tell me how to save a photograph as a wall paper on the new IOS 7
    Thanks

  • [Forum FAQ] How to tell if the DAC port is automatically changed or not

    Introduction
    Per Books Online:
    http://msdn.microsoft.com/en-us/library/ms189595.aspx
    SQL Server listens for the DAC on TCP port 1434 if available or a TCP port dynamically assigned upon Database Engine startup.
    Also, we can go to the following registry to specify the DAC port number manually:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQLServer\SuperSocketNetLib\AdminConnection\Tcp
    The error log contains the port number the DAC is listening on. Besides looking at the error log, how to find which port is used by DAC connection and how to tell if the DAC port is manually set by us or assigned automatically by SQL Server?
    Solution
    The following query can be used to check if there is an existing DAC connection and it also give us the port number used by dedicated admin connection.
    SELECT name,local_tcp_port FROM sys.dm_exec_connections ec
    join sys.endpoints e
    on (ec.endpoint_id=e.endpoint_id)
    WHERE e.name='Dedicated Admin Connection'
    Here is the scenario to test if the DAC port is automatically changed or not.
    There are two instances are running on one server. I specified the same DAC port number 5555 for the two SQL Server instances by modifying the registry
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQLServer\SuperSocketNetLib\AdminConnection\Tcp
    Opened the DAC connection to instance 1. Executed the above query, it returns the result:
    name                                                  
    local_tcp_port
    Dedicated Admin Connection               5555
    Then, opened a DAC connection to instance 2. It throw out the following error message:
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Client unable to establish connection because an error was encountered during handshakes before login.
    Common causes include client attempting to connect to an unsupported version of SQL Server, server too busy to accept new connections or a resource limitation (memory or maximum allowed connections) on the server..
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : TCP Provider: An established connection was aborted by the software in your host machine..
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Client unable to establish connection.
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Client unable to establish connection due to prelogin failure.
    The above error message was thrown out because the DAC port number 5555 was not available for instance 2 which was occupying by instance 1. After restarting the SQL Server engine service of instance 2, if checking in the registry, you would see a new DAC port
    number has been assigned to the second instance.
    Then, the DAC connection to instance 2 succeed this time and executed the above query, it returned the same port number which is same as the one in the registry key and the port number was assigned automatically.
    DAC port will not change even SQL Server service is restarted only if the TCP port is available.
    More Information
    http://msdn.microsoft.com/en-us/library/ms189595.aspx
    Applies to
    SQL Server 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    I tested your script after
    establishing a DAC connection from SSMS 2014. It worked as described. Thank you.
    SELECT name,local_tcp_port FROM sys.dm_exec_connections ec
    join sys.endpoints e
    on (ec.endpoint_id=e.endpoint_id)
    WHERE e.name='Dedicated Admin Connection'
    name local_tcp_port
    Dedicated Admin Connection 1434
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How do I install the app store release of 10.7 if my current OS is 10.7 DP4 (11A494a)?

    I installed OS X DP4 (11A494a) over Snow Leopard, and now I want to install the App Store's OS X 10.7 Lion over Mac OS X Lion 10.7 (11A494a). However, the App store tells me this: http://d.pr/UsZx
    How do I install the app store release of 10.7 if my current OS is 10.7 DP4 (11A494a)?

    Make a clone of the entire volume using Carbon Copy Cloner or SuperDuper. After you have installed the new OS, simply migrate everything you need.
    cornelius

  • How does one tell if the J2EE services are running with Unlimited

    How does one tell if the J2EE services are running with Unlimited
    security? We have applied the export Policy to the server but we do notsee any reference to it running with it. .we apply the Service packs SAP now upgrades that JAVA as well . Do that process treat the JAVA
    lib/security area correctly.

    Just out of curiosity... Is there something you do
    like about Mac/Apple?
    To answer your question: no, not really. However, the points that I made here were about Safari and accompanying utilities, not about Apple in general.
    If it makes you feel any better, I am just as, or even more, critical of Micro$oft as the occasions arise...Windoze Vista is the most recent occasion and has given sufficient reasons and opportunities to vent my spleen that I actually have eased up on Apple, politicians, nut-case religious extremists, cell phone owners, and the Department of Homeland Paranioa, etc., due to an exhaustion of creative energy.

  • Running the App Server as a user other than root

    We used to use iPlanet Web Server which during installation allowed you to specify which user you wanted to run the Web Server. This was very good for security. How do you do this with the App server ?
    Thanks
    PS We are running it on Solaris 9.

    Application Server 7 expands on the flexibility offered in the web server.
    The most basic means to define app server instances with non-root users is to create an administrative domain (basically, an admin server instance) using the user ID of interest. As you create new application server instances in the admin domain, you can assign the same user ID to the instances.
    (There is an admin domain that is initially configured as part of the app server installation. If you installed the product as root, then the admin server and the initially configured app server instance are owned by root. If you do not want these instances to be owned by root, you should remove this admin domain and create a new one that is owned by a non-root user.)
    For example, with the following command, I've created a new app server config (an administrative domain) containing an admin server owned by user "ckamps":
    root@canteloupe-{}: asadmin create-domain sysuser ckamps adminuser admin adminpassword password adminport 5050 ckamps.domain3
    Created Domain ckamps.domain3 successfully
    root@canteloupe-{}:
    Then I create an app server instance within this admin domain:
    root@canteloupe-{}: asadmin create-instance domain ckamps.domain3 sysuser ckamps --instanceport 80 instance1
    Created Instance instance1 successfully
    Note the use of the "--sysuser" option to specify the user that owns both the admin domain as well as the app server instance.
    You can either use root to define the admin domain and the instances (in which case you need to specify the sysuser option to force a non-root ownership) or you can use a non-root user to define the admin domain and app server instances.  In the latter case, specification of the sysuser is not required.
    Since my instance is defined to listen on a privileged port, I'll need to set the "run as user" in the <instance-dir>/config/init.conf file (similar to magnus.conf in Sun ONE Web Server 6) AND ensure that I start the instance as root. Once the server instance starts up as root, it will automatically switch to the run as user.
    The "User" setting below is the "run as user" specified in the admin console's "Create new instance" wizard.
    <snip of init.conf>
    NetsiteRoot /usr/appserver
    ServerID instance3
    ServerName canteloupe
    PidLog /var/appserver/domains/ckamps.domain3/instance3/logs/pid
    User ckamps
    DNS off
    </snip>
    Alternatively, you can start up the newly defined admin server and create the new app server instance through the admin console.
    Hope this helps,
    Chris

Maybe you are looking for