Problem in executing client application as windows service

Hi
I have a client program that sends client ip address to server.
My Requirement is to run this client program as windows service.
For this, i have created a jar and after that i have created a .exe file.
now using sc command in DOS i was created a service named as ClientService
But when i am trying to start this service like other services, it is giving error saying that "The Service did not respond to the start in a timely fashion"
Please help me in this issue

1.Can i lock my mobile phone from J2Me Application.In J2ME you can not.
2.How can i register J2ME application as service,means
it started when mobile start and continously Run on my
mobile. can these problem have a solution ,if yes then
how..I haven't seen any device that lets you run a J2ME app at start up as a service like windowsNT. May be you can do the above two things if you dig more in to Symbian OS programming.
Good luck
Manas

Similar Messages

  • Installer instal labview application as window service

    Dear NI
    I want to make an installer which installs labview application as windows service.
    Currently i am using third party tool to do this. Is it possible with labview application builder.
    regards

    It should be possible also with installer builder. You should automate described steps (put some entries into the registry and call executable from MS ResKit). Resourse kit should be deployed with same installer (not sure if there "silent" install possible, otherwise read ResKit documentation and license agreement). Alternatively you can build installer with third party tool - in this case you will have more "freedom". In the past I have done this with Inno Setup - works without problems.
    Andrey.

  • Ifolder client as a windows service

    client request, is it possible to run the ifolder client as a windows
    service so we can sync a windows "file server" pc to ifolder without logging
    in after a reboot?
    I guess this would be similar to running DropBox as a service
    http://superuser.com/questions/41992...x-as-a-service
    anybody tried this? or have any experience?
    many thanks
    Simon

    I have used many app as a service so the app doesn't interact with a desktop by using srvany which is included in the Windows Server 2003 Resource Kit Tools.
    Although i have more recently moved to nssm almost a direct drop in replacement because it has better error handling of crashed apps that it is running as a a service.
    Check it out here
    https://iain.cx/src/nssm/
    Originally Posted by Simon Shilton
    client request, is it possible to run the ifolder client as a windows
    service so we can sync a windows "file server" pc to ifolder without logging
    in after a reboot?
    I guess this would be similar to running DropBox as a service
    windows home server - How to configure Dropbox as a service - Super User
    anybody tried this? or have any experience?
    many thanks
    Simon

  • Can we start JavaWebStart Application as Windows service

    Hi,
    Can we have JavaWebStart application as windows service?
    Thanks
    LeoSun

    Hi LeoSun,
    I dont exactly how to start this is as a window service, but if your requirement is just to start your application when the machine boots,
    then you can create a shortcut for ur webstart app, using the jnlp tag <shortcut>
    then add this shortcut to your windows startup folder.

  • How to run application as Windows Service

    I have developed an appl using Java Swing. I want to run the application as Windows Service. How can I do that? Along with that, I also want to start Tomcat Server as a separate Windows service. Kindly Suggest some solutino to this!!

    There is a version of Tomcat that runs as a service. (1.4 for windows?)
    As for your own app, there are several free service launchers around (Google for java service etc.) Not sure about a service with a user interface though - services are usually headless. You may have to paritiotn your app into a headless service and a user interface app which communicaes by RMI, sockets or some other RPC mechanism.

  • ColdFusion 9 Application Server windows service not being created

    I've done multiple installs of CF9, both 32 and 64-bit versions, on Windows 2003 servers and the ColdFusion 9 Application Server windows service isn't being displayed in the Services console.  If I go into the registry under HKLM\System\CCS\Services - I see the key for CF9 App Server was created, but "Description" is the only subkey value that was created.  The .Net Service, ODBC Server, Search Server, Solr Service windows services are being fully created properly.
    Can anyone shed some light on why the Application Server service isn't getting registered properly and any possible fixes?
    TIA

    fargo75 wrote: Can anyone shed some light on why the Application Server service isn't getting registered properly and any possible fixes?
    TIA
    Did you check out the ColdFusion Installation Log for any relevant failures?
    Any possible firewall or security settings not allowing the ColdFusion installer creating what it needs to create?

  • Which solution is better for schedules task? Console application or windows service?

    I have a "MULTI-LEVEL" XML file that I will be getting on daily basis and I want to accomplish following tasks:
    1) I have to read and parse the "MULTI-LEVEL" XML data
    2) Then I have to set or create some kind of .net service (c#) that read the xml and parse the data once a day (daily)?
    3) Now I have SOAP service from other software where I want to feed this XML data to. The schedules service will compare the XML data with software data and update (or add) based on the comparision.
    For this task, I come to conclusion that there are 2 best ways to do this:
    1) Create a console application and use windows task scheduler to run it everyday
    2) Create a windows service that runs in the background
    Which is a better way (or reliable)  solution to do this task? Please advise

    There are several things to keep in mind when writing an app that is designed to run without a user logged in. One of the most common mistakes is requiring some sort of user input.  Since the task will run without user intervention you don't want
    any sort of calls to Console.ReadLine, MessageBox.Show, etc.  They will cause the task to freeze and eventually need to be terminated.  You also don't want to rely on any sort of desktop apps running since a user may or may not be logged on at the
    time.
    Also be aware that a task can be scheduled to run under any user context.  As such you either need to ensure it runs under an account with sufficient privileges or that your app needs no special privileges.  You mentioned you tried to run it from
    bin\debug but you most likely have your project under your Documents directory.  Only you would have permissions to that folder and therefore will run into issues if the task is run under a different context.  You also mentioned you put it in the
    C:\ but users don't have write privileges to that folder and therefore if you tried to write a file out it would fail. If you need to read/write files then you should pick a common location that all users have access to or at least the one that will run the
    scheduled task. Be aware that, by default, Task Scheduler will not run a task elevated. You need to check the option to run elevated when you configure the user to run the task under.
    One of the key things to ensure you do with a task is verify it is working properly as a normal app.  You should also ensure that you have good logging so that if it does fail you can trace down the failure more easily.  One common thing that people
    tend to do in console apps is put a try-catch around the main function and display a message if an unhandled exception occurs. This is going to cause problems in a task.  Simply log the exception and rethrow it so Task Scheduler will flag the run as a
    failure.
    If you still cannot figure out why your task is failing then please add some logging and then tell us what code is being run at the time and what the failure is.

  • Facing a small problem while executing WDA application from portal

    Hi Experts,
    I developed web dynpro for ABAP application and placed table UI control, which contains 270 records. Executing from SE80, it is working fine and showing clearly all records.
    This application integrated in portal, while executing this applicaiton from portal, it is working fine and showing all records.
    Here I facing a small problem i.e Pager ( footer area ) of table.
    When the table is displayed there are the small box in the below of the table showing ROWS 244 of 270.
    244 will be available in a small box. this 244 is not showing clearly, while executing from portal ( last digit 4 displying half part only). but 244 showing clearly while executing from SE80.
    Kindly suggest how to resolve this problem.
    Thanks & Regards
    Sridhar

    Hi Gopi Krishna,
    Thanks for your time. From SE80, it is working fine and showing clearly row number. There is no property for increase width of small box, which contains current row number).
    Facing problem while executing from portal.
    Thanks & Regards
    Sridhar

  • Problem with  WebLgoic running as a Windows Service

    If you know the answer, plase send me an email at [email protected]
    I'm running a weblogic startup class that starts a Thread. I need to
    run a batch program that should be running as long as WebLogic is
    running (to process new orders).
    It works fine when I run WebLogic (5.1 SP8) from a script, but causes
    problem when I'm running it as a Windows Service. It calls the
    startup class, however, the startup class never spawns the Thread
    class.
    Following is excerpts from different components:
    =============================================================
    *** weblogic.properties ***
    weblogic.system.startupClass.pdfCreatorStart=WebLogicStartupPdfCreator
    *** WebLogicStartupPdfCreator.java ***
    public class WebLogicStartupPdfCreator implements T3StartupDef {
    public String startup(String name, Hashtable args) throws
    Exception {
    Thread t = new ProductionPdfBatchRunner();
    t.start();
    return "success";
    *** ProductionPdfBatchRunner.java ***
    public class ProductionPdfBatchRunner extends Thread {
    public void run() {
    try {
    //work being done here
    this.sleep(30000);
    catch (InterruptedException ie) {               
    catch(Exception e) {
    e.printStackTrace();
    =============================================================
    Thanks for any help

    Hi.
    You can add extra path information by using the -extrapath option in your
    installNTservice.cmd script.
    Regards,
    Michael
    martin wang wrote:
    When I installed a weblogic server as a windows service using installNTservice.cmd,
    I found that the system path was not appended to the java.library.path. Here is
    the detail:
    step 1: went to ...\config\mydomain, run installNTservice.cmd, and the weblogic
    server "myServer" was installed as a NT service.
    step 2: went to Control Panel -> administrative tools -> services and started
    up the service "myserver".
    step 3: went to ...\config\mydomain\logs, open Weblogic.log and found that:
    java.library.path = C:\bea\wlserver6.0\bin;.;C:\WINNT\System32;C:\WINNT
    usually java.library.path should be the above paths plus the system path(which
    can be changed in control panel -> system ->advanced -> environment variables
    Does any one know why?--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Problem in executing javaFX application in web browser.

    Hi,
      When i execute javafx application in web browser the outcome will not fit to the screen.
       so what modifications i have to make so that it fits to the screen.

    Hi,
    you embed a javafx app like this in your html-file:
    <script>
        function javafxEmbed() {
            dtjava.embed(
                    url : 'ASimpleApp.jnlp',
                    placeholder : 'javafx-app-placeholder',
                    width : 1024,
                    height : 768,
                    jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iUGVyc293YXJlLmpubHAiPg0KICA8aW5mb3JtYXRpb24+DQogICAgPHRpdGx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dlciIgLz4NCiAgICA8amFyIGhyZWY9ImxpYi9wZGZib3gtYXBwLTEuOC4xLmphciIgc2l6ZT0iMTA4MTQyMDQiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgICA8amFyIGhyZWY9ImxpYi9zcWxqZGJjNC5qYXIiIHNpemU9IjU4NzIyNyIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICAgIDxqYXIgaHJlZj0ibGliL3N1cGVyLWNzdi0yLjEuMC5qYXIiIHNpemU9IjEwMjEzNCIgZG93bmxvYWQ9ImVhZ2VyIiAvPg0KICA8L3Jlc291cmNlcz4NCjxzZWN1cml0eT4NCiAgPGFsbC1wZXJtaXNzaW9ucy8+DQo8L3NlY3VyaXR5Pg0KICA8YXBwbGV0LWRlc2MgIHdpZHRoPSIxMDI0IiBoZWlnaHQ9Ijc2OCIgbWFpbi1jbGFzcz0iY29tLmphdmFmeC5tYWluLk5vSmF2YUZYRmFsbGJhY2siICBuYW1lPSJQZXJzb3dhcmUiID4NCiAgICA8cGFyYW0gbmFtZT0icmVxdWlyZWRGWFZlcnNpb24iIHZhbHVlPSIyLjIrIi8+DQogIDwvYXBwbGV0LWRlc2M+DQogIDxqZng6amF2YWZ4LWRlc2MgIHdpZHRoPSIxMDI0IiBoZWlnaHQ9Ijc2OCIgbWFpbi1jbGFzcz0icGVyc293YXJlLk1haW4iICBuYW1lPSJQZXJzb3dhcmUiID4NCiAgICA8Zng6cGFyYW0gbmFtZT0iTmFtZU9mQ29tcGFueSIgdmFsdWU9IlRlc3RDb21wYW55Ii8+DQogIDwvamZ4OmphdmFmeC1kZXNjPg0KICA8dXBkYXRlIGNoZWNrPSJiYWNrZ3JvdW5kIi8+DQo8L2pubHA+DQo='
                    javafx : '2.2+'
        <!-- Embed FX application into web page once page is loaded -->
        dtjava.addOnloadCallback(javafxEmbed);
    </script>
    if you change the values of width and height to '100%', your app will use the hole place of your html site.

  • Problems Logging in Client Application after Download and Setup

    I'm having trouble running the desktop Client x64 bit Client application for the Primavera (P6) Version 7 Project Management program. Throughout the entire download and configuration process, I have written down all user names and passwords needed.
    Once installed, I attempted to log in to the software with both "admin" and "system" usernames (along with my password configured during my registration with the E-Delivery Oracle software. The default database provided is "ORAPMDB".
    After attempting there, I went through the user guides that came with the zip file(s) and ran through the "Getting Started Guide" for Oracle Database Express Edition (Oracle Database XE), which included signing in as the database administrator and setting up a sample user profile (username "hr", password "hr") and creating my first application. I have no idea what the significance of having an "application" created has on logging in to Primavera, but the "Stand Alone V7.0.0.0.3." PDF guide suggested I run through that process and obtain a database username and password before launching the Project Management Module. Of course, none of the usernames or passwords used in the Oracle Database XE program work with P6.
    Has anyone run in to this similar issue before? Any help would be much appreciated.
    Drew

    It sounds as if you ran a stand-alone P6v7 installation... Did you try username = "admin" password = "admin" when logging into the P6 client?
    What is the exact error message you receive? Invalid login or unable to connect to the database?

  • Problem in executing select statement using hetrogenous services

    I am trying to import data from SqlServer 2005 to oracle 10g using hetrogenous services.
    Oracle is installed on solaris 10 platform. I am running my query by Windows platform using Pl/Sql Developer
    when i run the following query,
    select * from GSecMstr@demodata2;
    i get the following error message
    Error: ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 1
    ORA-07268: szguns: getpwuid error.
    But strange thing is that when i logon to the solaris server machine with user oracle and execute the same command using sqlplus from solaris console, then command is executed successfully

    Server side tnsnames.ora file
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = solaris.ssilhr.com.pk)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    SQLServer =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST = solaris.ssilhr.com.pk)(PORT = 1522))
    (CONNECT_DATA =
    (SID = SQLServer)
    (HS = OK)
    Server side sqlnet.ora file
    SQLNET.AUTHENTICATION_SERVICES= (NONE)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    Client side tnsnames.ora file
    # tnsnames.ora Network Configuration File: E:\Oracle\product\10.2.0\db_2\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL_SUN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.235)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    Client side sqlnet.ora file
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    Another thing i want to mention is that by mistake, i changed the role of user oracle from dba to root, which i have changed back to dba now.
    To create database link, i used the following SQL
    create public database link DEMODATA2
    connect to "username"
    IDENTIFIED BY "MyPassword"
    using 'SQLServer';

  • Sample OLAP client application causes Oracle service to crash!

    I have a very simple Java application that establishes a connection to an Oracle9i (R9.2) database having the OLAP extension installed. After creating the connection it creates a new MdmSchema object:
    MdmSchema root = mp.getRootSchema();
    At this moment, Java catches an java.sql.SqlException combined with a NullPointerException:
    java.sql.SQLException: E/A-Exception: Connection reset by peer: JVM_recv in sock
    et input stream read
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
    va, Compiled Code)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
    a:1940)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:2709)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
    edStatement.java:589)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
    ement.java:656)
    at oracle.express.idl.ExpressMdmModule.MetadataProviderInterfaceStub.get
    MetadataPropertyBags(MetadataProviderInterfaceStub.java:121)
    at oracle.express.mdm.MetadataPropertyBagFetcher.fetchMetadataPropertyBa
    gs(MetadataPropertyBagFetcher.java, Compiled Code)
    at oracle.express.mdm.MdmMetadataProvider.getMetadataObject(MdmMetadataP
    rovider.java:324)
    at oracle.express.mdm.MdmMetadataProvider.getRootSchema(MdmMetadataProvi
    der.java:395)
    at Step1.<init>(Step1.java:57)
    at Step1.main(Step1.java:66)
    Exception in thread "main" java.lang.NullPointerException
    at oracle.express.mdm.MetadataPropertyBagFetcher.fetchMetadataPropertyBa
    gs(MetadataPropertyBagFetcher.java, Compiled Code)
    at oracle.express.mdm.MdmMetadataProvider.getMetadataObject(MdmMetadataP
    rovider.java:324)
    at oracle.express.mdm.MdmMetadataProvider.getRootSchema(MdmMetadataProvi
    der.java:395)
    at Step1.<init>(Step1.java:57)
    at Step1.main(Step1.java:66)
    After that, the database service running on the database server crashes and is not available any more (Event Log doesn't provide really helpful infos, in the listener.trc and listener.log too).
    Can anybody help?
    Stefan

    Hi Stefan,
    You may be running into the Cube Viewer bug that causes it to hang while writing to the log file. I just sent you an email with some Cube Viewer files for the
    $ORACLE_HOME\classes\oracle\olap\express\cubeviewer directory. After placing these CV files into this directory try to run CV again. If it still does not work please send me the new Cube Viewer log file.
    Thanks,
    Anthony

  • Problem in executing  tutWD_Popup_Init application

    I have imported the project template and when trying to deploy it is giving following errors .
    com.sap.tc.webdynpro.progmodel.api.IWDViewController can not be resolved .
    Any thing else to import ?
    Regards
    Bhat

    I did that no success . In tasks it shows following error
    Error               Missing required library: 'C:Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.tc.ap_2.0.0/comp/SAP_JTECHS/DCs/sap.com/webservices/_comp/gen/default/public/default/lib/java/webservices_api.jar'.     TutWD_Popup_Init          Build path
    I am using dev studio 7.0.11 and was is 6.4 and jdk is 1.4.2_09
    when I say deplo and run despite errors , IE throws following error
    com.sap.tc.webdynpro.repository.RepositoryRuntimeException: XMLParser: Bad attribute list. Expected WhiteSpace
    Regards
    Bhat

  • Create pdf-files trough prn-files in a windows service applicatio

    Hi,
    i have also the problem to create pdf-files from .prn-files.
    in normall windows aplication we ar using the distiller but we would like to create the pdf's by running our application as windows service.
    in this case it is not possible to use the distiller. As i understood we have to use the acrobat PDG Generator as a server application.
    My question is, is it possible to make function calls to the service where i pass trough the prn-file and the according pdf-file is than created immediately.
    This is important because the created pdf-file ist than used for different purposes.

    Hi psprenge,
    As per your request of refund,
    I have cancelled your subscription, and set the refund process in motion.
    Your refund no.is 66193634.
    Regards,
    Florence

Maybe you are looking for

  • Selecting, reading and sum of billing quantity for last 12 months in transformation end routine

    Hi experts, i have requirement to write end routine to read a DSO for last 12 months sales quantity for each month and sum value pass to keyfigure not interested using bex variable, while data loading from source to target dso in end routine i am try

  • Cannot preview on external firewire device

    I just recently upgraded from Premiere Pro CS3 to CS4. Since doing so I cannot seem to get my video to display on my external firewire device. I have a Sony GV-D900 deck that I use for preview while I'm editing. Has something changed in CS4 that woul

  • Array of String. Can some one please respond?

    In Java,Strings are considered as objects of type String.Even String constants are considered as String objects.Right? So if I define an array of string as: public class ArrayString public static void main(String args[]) String str[] = {"one", "two",

  • I cannot input an Application ID when I try to create my own application

    I signed up for the free APEX hosting tonight. I cannot input an Application ID when I try to create my own application. This is where you enter a number to give your application a unique id. I have tried many numbers but none are accepted. Any ideas

  • IPhoto very unstable...

    iPhoto will consistently give me the beach ball of death whenever I attach my Canon Rebel Xti and use the scroll bar in iPhoto while it communicates with my Canon. Basically I can't do anything else and just get a "Loading Photos..." message - 1 hour