Stdout/stderr for NT service using com.ms.service

Hi,
I have a Windows NT service created using com.ms.service
I was wondering where are System.out and System.err pointed.
Searched for "log", "out", "err" files with the name of service but nothing found. Also searched for services.log etc.
TIA

Here is another tool that enables you to run Java applications as Windows services: http://www.alexandriasc.com/software/JavaService/index.html
Jesper

Similar Messages

  • StdIn, stdOut, stdErr for Runtime.exec()

    I have searched through 100s of forum messages regarding this topic, but none have helped me enough.
    I have an application, app_A, that allows the user to select a database and other environment settings and then run an application using the selected settings. Running app_A on Windows 2000 using a Shortcut with the command: java.exe app_A automatically opens a dos window to write stdOut and stdErr (this is good). From within app_A I do the following:
    Runtime rt = Runtime.getRuntime();
    rt.exec("java.exp app_B");
    app_B, starts up just fine, except that I do not see the stdOut or stdErr from app_B.
    Questions:
    1. Where is it going and how can I get it?
    2. Is there way app_B can have it's own stdOut & stdErr, so the dos window for app_A can be suppressed (it is not really needed)?
    many thanks for help and direction
    Brent

    http://www.apl.jhu.edu/~hall/CWP-Sources/CWP-Examples/Chapter8/Exec/Exec.html may be this class of Marty Hall can be usefull for you.

  • Developer Api for Windows (not using COM)

    Hello everybody,
    I'm using the COM SDK of iTunes for some personal stuf.
    But is there an other way to interact with the iPad without using this deprecated COM API?
    - some windows API or guide on how to access The iPad using the USB driver?

    Hello again tt2,
    Seems like you're the olny one who has ever tried to answer my question (see some older posts of me).
    Vut thanks for you're answer. Although I still would like to know how those guys are doing it...
    But should there not be some documentation on how to access the device?
    Or should I be looking for some native USB programming techniques?
    Mr. Hoek

  • How To Execute an Oracle 10g SProc using VS 2005, for Reporting Services

    Good day! :-)
    Anybody who knows the syntax for executing an Oracle Stored Proc thru ODBC connection using VS 2005 for Reporting Services? I am having a problem about this.
    I am using the ODBC connection because VS 2005 does not support Oracle Database 10g in its Oracle Database Connection feature (only 7.3, 8i, and 9i), that's y.
    While using MS SQL Server 2000, I never encountered any problem. But using Oracle Database 10g, I find it hard to call the stored procedures, an error is generated everytime.
    Please click the link below for the screenshots:
    http://www.geocities.com/vrcode2/oraError.JPG
    http://www.geocities.com/vrcode2/storedProc.JPG
    Please help...thank you so much.
    Francis

    I'll give you updates about the use of the MS SQL Server Reporting Services with VS 2005 and Oracle, this might be helpful for those who will encounter this same ctuation in the future.
    I have discovered that if you're going to connect thru ODBC, even if the connection is successful, the user is still prompted to input a password, which should not be the case when using the Reporting Services. Another thing to take note is the issue about REF CURSOR, we're going to have problems with this. And also the syntax on how you're going to call the stored procedures (with or without input parameters).
    With modifications made through Oracle Net Manager, and I tried AGAIN connecting through "Oracle (client)" feature of VS 2005 (even if the list only include Oracle 7.3, 8i, and 9i that are supported) with some changes also, you'd still be able to generate correct data with that solution. If the configuration is correct, you just need to call the stored procedure (with or without input parameter), you won't have any problems about the correct syntax.
    I suppose VS 2005 was released earlier than Oracle 10g, that's why 10g wasn't included If ever u'd encounter the same ctuation like mine, and u need the details on how to connect, do not hesitate to ask me.

  • Exporting a List to Excel to use for Excel Services WebPart (not working)

    Hey everyone, here's the scenario. I'm trying to export a list to excel and save it to a library. All the connections are saved. Now. I want that excel file to render as a web part. When I make a change on the list and try to refresh the data connection
    I get the error below. Please help
    AJ MCTS: SP 2010 Configuration MCSA: Windows 7 If you find this post useful kindly please mark it as an answer :) TY

    Hi,
    I did a test as the followings:
    Create a list, and add some items into it.
    Export the list into a Excel file, then upload the excel file to a library.
    When I opened the file via Excel service, I saw the a yellow warning about unsupported features.
    Then I created a wiki page, and add Excel Web Access web part and connect the web part to the excel file.
    When I refresh all data conections, nothing happened.
    From the article:
    https://msdn.microsoft.com/en-us/library/ms496823.aspx (they are similar with SharePoint 2013)
    SharePoint lists are not supported for Excel service. So, it may cause this issue.
    I suggest you click "Open in Excel" to open the file in Excel application, then refresh the data connection, and save back to SharePoint. Then after you refresh the page, the data of the Excel Web Access web part will refresh.
    Thanks,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Image not displayed in pdf generated using Java API for Forms service

    Hi,
    I am creating a pdf document using Java API for Forms Service.
    I am able to generate the pdf but the images are not visible in the generated pdf.
    The image relative path is coming in the xml as defined below. The images are stored dynamically in the Livecycle repository each time a request is fired with unique name before the xml is generated.
    <imageURI xfa:contentType="image/png" href="../Images/logo.png"></imageURI>
    Not sure if I need to specify specify specific URI values that are required to render a form with image.
    The same thing is working when I generate pdf document using Java API for Output Service.
    As, I need to generate interactive form, I have to use Forms service to generate pdfs.
    Any help will be highly appreciated.
    Thanks.

    Below is the code snippet:
                //Create a FormsServiceClient object
                FormsServiceClient formsClient = new FormsServiceClient(myFactory);
                //Specify URI values that are required to render a form
                URLSpec uriValues = new URLSpec();
                                  // Template location contains the whole rpository path for the form
                uriValues.setContentRootURI(templateLocation);
               // The base URL where form resources such as images and scripts are located.  Whole Image path is passed in BaseUrl in the http format.
                      String baseLocation = repositoryPath.concat(serviceName).concat(imagesPath);   
                                  uriValues.setBaseURL(baseLocation);                                        
                // Set run-time options using a PDFFormRenderSpec instance
                PDFFormRenderSpec pdfFormRenderSpec = new PDFFormRenderSpec();
                pdfFormRenderSpec.setCacheEnabled(new Boolean(true));           
                pdfFormRenderSpec.setAcrobatVersion(com.adobe.livecycle.formsservice.client.AcrobatVersio n.Acrobat_8);
                                  //Invoke the renderPDFForm method and write the
                //results to a client web browser
                String tempTemplateName =templateName;
                FormsResult formOut = formsClient.renderPDFForm(tempTemplateName,
                                              inXMDataTransformed,pdfFormRenderSpec,uriValues,null);
                //Create a Document object that stores form data
                Document outputDocument = formOut.getOutputContent();
                InputStream inputStream = outputDocument.getInputStream();

  • The server farm account should not be used for other services

    I have created a new SharePoint Foundation 2013 Farm. I only used the Farm Configuration Wizard to create the Search Service Application, all other aspects of the Farm was created using PowerShell.
    The SharePoint Health Analyzer is reporting the following error:
    Title: The server farm account should not be used for other services.
    Severity: 1 - Error
    Category: Security
    Explanation: DOMAIN\FARM_ACCOUNT, the account used for the SharePoint timer service and the central administration site, is highly privileged and should not be used for any other services on any machines in the server farm.  The following services were
    found to use this account: Distributed Cache Service(Windows Service)
    Remedy: Browse to
    http://centraladminsite:port/_admin/FarmCredentialManagement.aspx and change the account used for the services listed in the explanation. For more information about this rule, see "http://go.microsoft.com/fwlink/?LinkID=142685".
    Now I understand how to change the account used to run the Distributed Cache Service, but my query is what account should I use in the least privelage model? I have setup the following 6 accounts as per TechNet guidelines (Link)
    and am not sure if one of these accounts should be used or if another account is required:
    SQL Server service account
    Setup user account
    Server farm account
    SharePoint Server Search service account
    Default content access account
    Application pool identity
    After reviewing the TechNet article again, I don't fully understand the section titled "Service application accounts". Is the article advising me to create a seperate account for each row in the table? e.g. 1 account for Business Data Connectivity
    Service, a different account for "Application Discovery and Load Balancer Service", another account for "App management" and another account for "Distributed Cache", so 4 extra accounts if I choose to install all of these services
    within the Farm?
    Also, what does the article mean when it says "Plan one set of an application pool and proxy group for each service application that you plan to implement."? How do I go about doing this?
    Kevin Evans

    After reviewing the TechNet article again, I don't fully understand the section titled "Service application accounts". Is the article advising me to create a seperate account for each row in the table? e.g. 1 account for Business Data Connectivity Service,
    a different account for "Application Discovery and Load Balancer Service", another account for "App management" and another account for "Distributed Cache", so 4 extra accounts if I choose to install all of these services within the Farm?
    Inder: Yes, It is suggested to have multiple service account for each service application. This increases security and dependencyof 1 account on multiple Service applications. Like below
    SQL Server service
    Local System account (default)
    Setup user
    Member of the Administrators group on the local computer
    Server farm
    Network Service (default)
    No manual configuration is necessary.
    SharePoint Server Search Service
    By default, this account runs as the Local System account.
    If you want to crawl remote content by changing the default content access account or by using crawl rules, change this to a domain user account. If you do not change this account to a domain user account, you cannot change the default content access account
    to a domain user account or add crawl rules to crawl this content. This restriction is designed to prevent elevation of privilege for any other process running as the Local System account.
    Default Content Access
    No manual configuration is necessary if this account is only crawling local farm content. If you want to crawl remote content by using crawl rules, change this to a domain user account, and apply the requirements listed for a server farm.
    Content Access
    Same requirement as the default content access account.
    Profile import Default Access
    Same requirements as server farm.
    Excel Services Unattended Service
    Must be a domain user account.
    http://technet.microsoft.com/en-us/library/cc263445%28v=office.15%29.aspx
    Also, what does the article mean when it says "Plan one set of an application pool and proxy group for each service application that you plan to implement."? How do I go about doing this?
    Inder: Each service account has a application pool and you can plan to use same application pool for multiple
    service accounts if required. These application pool are then consumed by proxy connection
    of each service application. On service application pool, you can see all the service applications and its proxy connection.
    If this helped you resolve your issue, please mark it Answered

  • Error Using the SQL Server 2000 Driver for JDBC Service Pack 3

    Hi,
    I�m using the SQL Server 2000 Driver for JDBC Service Pack 3. The connection is succesfully, but when I use de statement.executequery() method, there is the follow exception:
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'PEC_COUNTRY'.
    This is my code:
    ResultSet resultSet;
    Statement statement;
    Connection connection;
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
    connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://S0MALMUERTA:1433;user=sa;password=");
    statement = connection.createStatement();
    resultSet = statement.executeQuery("SELECT COY_INX, COY_NAME, COY_ICO FROM PEC_COUNTRY
    ");When I make the last instruction, occurs the above exception
    Thanks in advance
    Luija

    The way you are connecting, the default database used will be 'master' and i guess that the table PEC_COUNTRY was defined in another database.
    If it is the case you need to specify the database name.
    connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://S0MALMUERTA:1433;DatabaseName=yourdb;user=sa;password=");

  • I recently got a i phone 3 GS, how do I use applications now ? Do I need to buy some apple pack for apple services monthly ??

    I recently got a i phone 3 GS, how do I use applications now ? Do I need to buy some apple pack for apple services monthly ??

    You download apps from the App Store on your iPhone or iTunes from your computer.  If from the computer, you then sync them to your 3GS via iTunes.
    A few helpful links...
    http://www.apple.com/support/itunes/
    http://www.apple.com/support/iphone/
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • Check for Oracle Service using a batch

    Hi,
    I am using Oracle XE 10g as the database for my project.
    I have a custom service to be started only if Oracle service is up and running. Currently i am checking for the service as below:
    +:WHILELOOP+
    net start | find /i "oracleservicexe" >nul
    IF not "%ERRORLEVEL%"=="0" GOTO :WHILELOOP
    SLEEP 60
    start javaw -Xmx1024 com.startup.StartServer
    But when i use the above script, the java command for StartServer is called as soon as the service is started; but in reality the Oracle service takes around 30-50 secs to go in to RUNNING state and because of that i get an error when starting my server. "*ORA-01033: ORACLE initialization or shutdown in progress.*" Hence i added that SLEEP 60, to avoid the error, but at times it takes a bit longer than 60 secs then i get the error.
    Can anybody suggest me a better way apply the required check which will not depend on having a wait period and will actually check if Oracle service is actually RUNNING.
    Regards,
    Rahul

    Hello rahul,
    One possible solution to what you are trying to do is to use the Windows command sc like this:
    sc query winmgmt
    SERVICE_NAME: winmgmt
            TYPE               : 20  WIN32_SHARE_PROCESS
            STATE              : 4  RUNNING
                                    (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
            WIN32_EXIT_CODE    : 0  (0x0)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0in the above example, I queried the status of the service winmgmt. If you piped the output into some file then used Find to check the status as "4 RUNNING" in some loop, once it gets to RUNNING you could proceed with the rest of the commands.
    I don't use Windows CMD, therefore I cannot provide you more help than the above but, with a little work on your part, you can make this work.
    HTH,
    John.
    PS: whatever loop you choose to check for the running status, be careful with creating an infinite loop if the service fails to start.
    Edited by: 440bx - 11gR2 on Nov 12, 2010 3:20 PM - added the caution about creating an infinite loop in some cases.

  • Using several UMTS access points (APN) for different services

    Hello,
    I wonder if it is possible to use several UMTS access points (APN) for different services.
    situation:
    1) The iPhone is used for business AND private purposes.
    2) The company's mobile telephone contract includes a APN, which is only usable by the employees' mobile phones.
    problem / question:
    Is it possible to define two access points in the iPhone, that for example the exchange account uses the company's APN, while all the other apps use the standard APN of the carrier?
    Problem is, that some iPhone's benefits like Push-Messages are blocked by the carrier's APN. Now, I have to switch the access point by installing the appropriate profile every time I want to check my e-mails or vice versa for using "normal" apps.
    I hope you can hep me.
    Greets from Germany
    Mitch

    Thanks for your help! This really helps a lot! We actually only want to replace the autonmous access point with the controller solution and make one WLAN available at another site. From what I can see, this is possible with our current solution - we just need to switch from Layer 2 to Layer 3 and purchase the corresponding amount of supported Access Points (I think we should be able to get some refurbished ones).
    Am I correct in assuming that the Access Points we want to replace (AIR-AP1230B-E-K9 with 802.11b radio only) cannot be upgraded to lightweight ones? Since if I understood document http://www.cisco.com/en/US/docs/wireless/access_point/conversion/lwapp/upgrade/guide/lwapnote.html correctly, this is not possible with access points that only have 802.11b radios.
    Regarding the switch from Layer 2 to Layer 3: Do we really only need to perform the steps I described in my first post?
    And one last question regarding REAP. As far as I understood this is only needed when local traffic needs to be maintained in case the connection to the WLC becomes unavailable. So we really don't need it if we want to access resources that are only available over the WLC?
    Thanks again for your help!
    Michael

  • Which Nuget Package for Azure Service Bus can I use for Windows Store apps?

    Hi,
    I want to use the Azure Service Bus Topics. I have an app that needs to subscribe to the Service bus Topic. The Nuget-Package for Azure Service Bus is not applicable for Windows Store Apps (I get an error during install), thats why I used the Windows Azure
    Service Bus managed for Windows Store. Unfortunatelly this API throws a Serialization Exception when I create a subscription. What can I do to use the Service bus in Windows store apps?
    Thats how I try to create the subscription:
    await Microsoft.WindowsAzure.Messaging.Subscription.CreateAsync(TOPIC_NAME, SUBSCRIPTION_NAME, CONNECTION_STRING);

    Yes this is the one I used.
    But creating a subscription with the code above throws the SerializationException mentioned in this question:
    http://social.msdn.microsoft.com/Forums/de-DE/1acb887e-d5f1-4bfb-8eb9-f8ce7390ae7b/microsoftwindowsazuremessagingsubscriptioncreateasync-throws-an?forum=servbus&prof=required.
    Maybe I do something wrong? Do I Need to do something before creating the subscription?
    I haven't found any sample that shows how you can subscribe to a Topic and receive Messages using the restricted Api for winrt :(
    Any suggestions?

  • HT204053 What are the pros and cons of 1) choosing to use the SAME Apple ID for iCloud services on one side, and purchases on the iTunes Store, App Store, and iBookstore, on the other side; or 2) to have and use two separate Apple Ids for these "two sides

    All is in the title, so I repeat it below with a better identation.
    What are the pros and cons of
    1) choosing to use the SAME
                                                  Apple ID for iCloud services on one side, and
                                                  purchases on the iTunes Store, App Store, and iBookstore, on the other side; or
    2) to have and use two separate Apple Ids for these "two sides"?
    P.S.
    I have loads and loads of free podcasts in iTunes in my iMac, that are certainly more thant the 5 gigas the iCloud provides for free, so I don't want those to go to the cloud. But this is perhaps a different question...
    Also need to mention that I have itunes on a mac, a pc and an iphone.
    Sorry to look so silly with this question, but I don't get the "big picture".

    You need to create a user account for your wife (or yourself depending on who has the current user account). When syncing, each of you should sign in as a separate user, login to iTunes and then sync. I had this problem when my sister got an iPhone. When we did her initial sync, everything on my iPhone showed up on hers. Apple gave me this solution.

  • Looking for app to use for reminder of customers service days

    I am a Chimney Sweep and I'm looking for an app i can have on my iPad & iMac that i can set reminders for customers service days, they could be a year ahead but its reminder for me to then tell the customer its time to have your chimney cleaned.
    Thanks for any help.
    Lee

    Lee,
    Have you looked through the Mac App store yet? If you have and haven't found anything then I'd suggest using a database such as FileMaker Pro to manage that. You may even find a template where someone has created a FileMaker Pro program that you can download and/or buy that does what you want.

  • He "seller" resets the iPad for me to use, do I have to get it re-activated or purchase a contract/service plan if I ONLY ever plan to use the iPad for Wifi Only???

    Question to all the pros..I'm looking to purchase an iPad 4g second hand. Once the "seller" resets the iPad for me to use, do I have to get it re-activated or purchase a contract/service plan if I ONLY ever plan to use the iPad for Wifi Only???

    No you don't need a service plan to use wifi. Take special precautions to make sure the seller is the owner. Be sure all their information has been removed properly. If it were me I wouldn't give the person the money until the iPad is registered in my name. I've read too many horror stories of people buying iPads they'll never be able to use because someone else's ID was still on it.

Maybe you are looking for

  • [Solved] mpd + flash(?) = CRASH

    When i open some audio|video.flash (ex: youtube) in any browser i have to stopped mpd to get audio. Ok, but when the video has finished and stopped i can't start again or 'unpause' a song in mpd, i have to close the whole browser and even sometimes r

  • Converting ipod previously installed on mac to windows without losing songs

    I have inherited an ipod that my brother in law has downloaded 3,500 songs on. It is configured to run on a Mac but I want to install it to run on my Windows PC. It appears i will have to restore the ipod and lose all the songs. Can anybody tell me o

  • Problem launching admin console

    Has anyone encountered a problem launching the admin console? I get this Internet Explorer error saying, "Internet explorer has encountered a problem and needs to close, we are sorry for the inconvenience" Thanks.

  • Link b/w  BSAK &  AUSP

    Hi gurus, is their a link b/w BSAK - Accounting: Secondary Index for Vendors (Cleared Items)                             AUSP - Characteristic Values ? Can i have some info pls.. thank you, pasala.

  • Two order numbers for preorder of Note 4

    I just called Customer service to ask why I have two different order numbers for my preorder of the Note 4. First of all it would be nice if I could actually understand the women that I spoke to. You would think that would be a prerequisite for someo