Debugging C# Windows Service

I am trying to debug a C# Windows Service in Visual Studio 2005 with ODT as it accessing SP's on an Oracle 9.2 database. I would like to find out if it is possible to debug the Windows service as I have to install it, have it running, then attach to process.
thanks

Yes it will work just fine. Just use "External Application Debugging" and 2 instances of VS. Before the Oracle connection is first made by the service, make sure the ORA_DEBUG_JDWP environment variable is in the environment of the service. Use one instance of VS for debugging the service code, and a separate VS instance for PLSQL.
The steps:
1) Configure PL/SQL Debugging for first use. (See the doc/FAQ if you don't know how)
2) Open 2 instances of VS
3) In the one you use to debug PL/SQL, enable External Application Debugging and choose the port and set breakpoints
4) In the one use to debug the Windows Service, attach before the Oracle connection is made and set the ORA_DEBUG_JDWP environment variable in the environment for the service. When this service connects to Oracle, you should see the other instance of VS note this in it's output window.. If that is not possible, just make sure that you set up the service to include this env variable and restart it.
5) In the Windows Service, set a breakpoint before and after the stored procedure you are interested in.
6) Run to the break point and when you call the SP, the other instance of VS should wake up at the breakpoint.

Similar Messages

  • "Failed to debug the Windows Azure Cloud Service project. The Output directory .... does not exist" - Looking for Solution Config Name Folder?

    Good evening,
    I've been working on and with a VS2013 Update 2 / Azure SDK 2.3 Cloud Service project for a while now and never had a problem debugging it (setting the .ccproj Project as Startup Project) but at the moment I cannot Debug it anymore - I always get the following
    error message:
    Failed to debug the Windows Azure Cloud Service project.  The output directory 'D:\Workspace\Development\Sources\AzureBackend\csx\Backend - Debug' does not exist.
    Now what's odd here, is the last part - the "Backend - Debug" is the Solution configuration name, ALL projects in that particular solution configuration are set to the Debug Configuration. The .ccproj file also only specifies Debug|Any CPU (and
    Release|Any CPU respectively) as its output folder(s). Why is the Solution config appearing up there?
    And more importantly.. why is this happening and what can I do?!
    Thanks,
    -Jörg
    Ps: there seems to be a related
    connect bug and these sorts of issues do appear around the forums but none contains a solution (neither reinstalling the Azure SDK nor cloaking the workspace/re-retrieving & building everything worked).

    Good morning Jambor,
    I already tried de-installing everything Azure-Tooling related including the Azure SDK, Restarting my machine and re-installing the SDK.
    Same result. I can build the .ccproj perfectly fine and the cspack file IS generated perfectly fine, only debugging does not work and there's NO information in the VS output window (again - all projects succeed to build).
    I tried explicitely running VS as Administrator, no change. I removed all IIS Express sites (as the ccproj has one web worker role), remapped my local TFS workspace.. nothing helped.
    As building works, deploying to Azure Cloud Service (manually and via Publish inside VS) all works -perfectly-, I am pretty sure this IS a bug and I'd LOVE to help to get this fixed. As I said, currently I cannot debug and/or run & test my work, hence
    I cannot do ANY work.

  • How to create a client console to connect to server in windows service using c#

    my code is error
    can you check the code please
    client console code
    partial class Program : ServiceBase
            public static void Main(string[] args)
                serverservice ss = new serverservice();
                ss.myserver();
                    TcpClient tcpc = new TcpClient();
                    Console.WriteLine("connecting.......");
                    tcpc.Connect("10.128.1.116", 80);
                    Console.WriteLine("connected........");
                    Console.Write("enter msg to be transimitt");
                    string str = Console.ReadLine();
                    Stream stm = tcpc.GetStream();
                    ASCIIEncoding asc = new ASCIIEncoding();
                    byte[] ba = asc.GetBytes(str);
                    Console.WriteLine("transmitting..........");
                    stm.Write(ba, 0, ba.Length);
                    byte[] bb = new byte[100];
                    int k = stm.Read(bb, 0, 100);
                    for (int i = 0; i < k; i++)
                        Console.Write(Convert.ToChar(bb[i]));
                    tcpc.Close();
                windows service for server code is
      public partial class serverservice : ServiceBase
            public serverservice()
                InitializeComponent();
            protected override void OnStart(string[] args)
                myserver();
               Thread mythread = new Thread(new ThreadStart(myserver));
                 mythread.Start();
            public void myserver()
                char d;
                IPAddress ipad1 = IPAddress.Parse("10.128.1.116");
                TcpListener tcpc = new TcpListener(ipad1, 80);
                tcpc.Start();
               // System.Diagnostics.Process.Start(@"C:\Users\PC\Documents\Visual Studio 2010\Projects\WindowsFormsApplication1\webs\webs\clientconsole\clientconsole\bin\Debug\clientconsole.exe");
                Console.WriteLine("server is running at port 80");
                Console.WriteLine("local end point is" + tcpc.LocalEndpoint);
                Console.WriteLine("waiting for connection");
              // var client=new TestExecutionEngine
                Socket s = tcpc.AcceptSocket();
                Console.WriteLine("connection is accepted from" + s.RemoteEndPoint);
                byte[] b = new byte[100];
                int k = s.Receive(b);
                Console.WriteLine("received");
                for (int i = 0; i < k; i++)
                    d = Convert.ToChar(b[i]);
              Console.WriteLine(char.ToUpper(d));
                ASCIIEncoding asc = new ASCIIEncoding();
                s.Send(asc.GetBytes("msg is recveived"));
                Console.WriteLine("\n send aknwldge");
                s.Close();
                tcpc.Stop();
               protected override void OnStop()
                EventLog.WriteEntry("stopped");

    kavya --
    You have erroneously posted this question in a user forum dedicated to questions about Project Online, an enterprise project management application.  I would recommend you repost your question in a user forum that deals with C sharp programming questions. 
    Hope this helps.
    Dale A. Howard [MVP]

  • Setting up OIM to start as a Windows Service running under Weblogic 10.3.2

    Hi,
    On recommendation from our Oracle Rep. we have begun migrating our existing OIM installation on Oracle AS to a Weblogic Application Server. As such we are looking for a way to get the OIM application to run as a service in windows - so we dont have to start it manually after a reboot and so that system monitoring can alert us if/when the application crashes for some reason.
    I have asked Oracle support - which basically said that no such howto/documentation exists and that "One needs to debug on their own when face any issue." (whatever the h*** that means).
    I was thinking that we werent the first customers trying to get the OIM webapplication to start automatically under weblogic and that someone must have figured out a way to accomplish this ?
    Any advice on how to do this will be greatly appreciated.
    Thank you in advance.
    /Jacob

    Hi Jacob,
    See this post that I answered few time ago. Re: Keeping Remote Manager running - Windows
    Our OIM is running as a Windows Service.
    REnato

  • RFC call from a Windows Service

    Hi All,
    I have created a simple windows service which is making an RFC call to R/3 system. This is not working. Whereas the same piece of code written in a windows application projects(exe) works properly. Does anyone had similer issues working with Windows services ? Is it a known issue of RFC calls from windows service ???
    Thanks & Regards
    Ganesh Datta

    Hi Juergen,
    After I put the debug statements I figured out that connection to R/3 system is unsuccessful.
    I am using the SAP .Net Connector 2.0. I wrote a windows service which is manually started. Withing my service I am using Single sign on to connect .This is what was causing the problem. If I disable Single sign on and supply userID and password then connection is successful and also subsequent RFC calls.
    I guess within windows service Single sign on does not work.
    Thanks for your reply
    Best Regards
    Ganesh Datta

  • 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.

  • PrintToPrinter() crashes windows service

    Hi,
    We have a windows service written in VB.NET using Crystal Reports 2008 SP2 (latest fix pack has also been applied).
    It is a multithreaded solution that generates and prints reports from an Oracle 10 db.
    The loading and printing of the reports are done in different threads so the interaction with the CR
    runtimes could in theory occur at the same time from 3 different threads.
    The printers that are used are network printers (from a print server) but they are added ("installed") on the server
    running the windows service.
    Our problem is that an unhandled exception (unmanaged I guess) is quite often thrown after
    calling the method PrintToPrinter() which brings the whole windows service down and leaves
    a general error message in Event Viewer:
    .NET Runtime 2.0 Error
    "Faulting application "myapp.exe", version 1.0.0.0, stamp 461c7030, faulting module ntdll.dll, version 5.1.2600.2180, stamp 41109655, debug? 0, fault address 0x00018fea."
    (The "faulting module" is not allways the same but most often ntdll)
    We haven't found any way to catch this exception. We have error handlers in all threds and we have also tried to
    add a global unhandled exception handler for UnhandledExceptions without any luck.
    I'm aware of the fact that (introduced in .NET framework 2.0) this behaviour to bring down the current app is "by design" if an unhandled exception is thrown and not caught in a thread of the current app domain.
    It seems that the application crash much more frequently when PrintToPrinter() is called at the same time from at least two of the app's threads.
    We also had problems with the same app before upgrading to CR 2008 from the version of CR that comes with VS 2005.
    The problem was exactly the same except that when calling the PrintToPrinter() method the thread hanged and never returned instead of crashing the entire app.
    I assume the exception is thrown when CR is communicating with the print drivers but how to proceed?
    Are there any logging done by the CR runtime?
    Is there anyway to debug the CR runtime?
    Anyone have experienced anything similar?
    More info:
    OS: Windows Server 2003
    .NET Framework: 2.0
    CR: Crystal Reports 2008 SP2 (latest fix pack)
    DB: Oracle 10
    Printers: Mostly HP LaserJet 4350
    /jiijiijii

    Another option would be to use RAS to print your report, seems to work better than PrintToPrinter:
                   System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
                CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
                CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new PrintOptionsClass();
                   pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;          
                   rasPROpts.PrinterName = cboCurrentPrinters.Text;               
                   rasPROpts.PaperSize = (CrPaperSizeEnum)
                        pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
                   rasPROpts.PaperSource = (CrPaperSourceEnum)
                        pDoc.PrinterSettings.PaperSources[cboDefaultPaperTrays.SelectedIndex].Kind;
                   CrystalDecisions.ReportAppServer.ReportDefModel.CrPaperSourceEnum.crPaperSourceManual;
                rasPROpts.JobTitle = "MYPrintJob";
                   rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
                   MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
    Thank you
    Don

  • DbgHelp fails in a Windows service

    I am trying to download debugging symbols from a .NET Windows service. The service calls a helper dll that does the actual calls into dbghelp.dll. I've found that the call to SymGetTypeFromNameW fails but GetLastError returns 0.  If I run the exact
    same code but in a Windows form application it works exactly as it should.  This is not a versioning issue because I load dbghelp with LoadLibrary with the exact path of the version I want to use and have verified through the debugger that it has actually
    loaded the correct version. 
    Here is the snippet of code that fails with a service but works with a form app.
     sz = sizeof(SYMBOL_INFOW) + MAX_SYM_NAME + 1;
     siw = (PSYMBOL_INFOW)malloc(sz);
     ZeroMemory(siw, sz);
     siw->SizeOfStruct = sizeof(SYMBOL_INFOW);
     siw->MaxNameLen   = MAX_SYM_NAME + 1;
     bRet = SymGetTypeFromNameW(proc, mb, sn, siw);
     if (!bRet) {
      gle = GetLastError();
      DebugBreak();
      free(siw);
      return gle;
    I have not yet stepped through the call to see where it fails but I'm wondering if anyone else has had this issue and if so knows a way to solve it.  Thanks.

    Hi DevOps26,
    Like this document:
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms679309(v=vs.85).aspx
    As my understanding, the DbgHelp would be related to the windows debugging, I help you move this case to the
    WinDbg forum for dedicated support. Thanks for your understanding.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do you create a program in Labview that can be run as a Windows Service?

    I would like to create a Labview program that can be run as a Windows service.  I have read the following Knowlegebase articles and have done what they say. 
    Creating a Windows NT Service Using LabVIEW http://www.ni.com/white-paper/3185/en 
    Running a LabVIEW Application as a Windows NT/2000/XP/Server 2008/7  User-Defined Service http://digital.ni.com/public.nsf/allkb/21BA0F671A63A60386256CB4004DF99B
    When trying to start the service I get an error that says the program didn't respond to the start in a timely manner.  I also set the "run when opened" parameter in the VI.  I am programming in Labivew 2010, proffesional version.  The server is running Windows Server 2008.  Can anyone help?  Is the ini file important in Windows Server 2008?

    I haven't looked through all those links.  But I have created Windows Services from LabVIEW executables way back when WinXP came on the market.
    The problem with services is that they have no UI.  So you can't really see what is going on.  Your EXE might be failing or hanging due to some kind of error (most liklely a security/permissions error), but you can't see the error.  So my advice is to either:
    1.  Have your EXE write lots of info to a log file.  Write info that log every step in the application.  If an error ocurrs, have it write the error info to the log file.  That is a very useful debugging tool.
    2.  Use VI Server functions to monitor the service to see what is going on. 

  • Problem creating a Windows Service to Start Weblogic Adminserver

    Hi, I'm having some trouble starting the windows service for weblogic.
    The creation happens succesfully but, when I try to start the service, it fails.
    Thanks
    Debugging service ....... beasvc bpm11g_A00ASRV304W08R2
    Command Line: ....... -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -XX:+UseSpinning -Xverify:none -classpath ....
    Current Directory: ....... D:\Oracle\Middleware1036\user_projects\domains\bpm11g
    Path: ....... D:\Oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64\;D:\Oracle\MIDDLE~2\WLSERV~1.3\server\bin;D:\Java\JDK17~1.0_0\jre\bin;D:\Java\JDK17~1.0_0\n
    Java Home: ....... D:\Java\JDK17~1.0_0
    Delay: ....... 0
    Thread created successfully!
    Unrecognized option: -client
    Error in java application .......
    The following line contains specific error details .......
    Unable to initialize the Java virtual machine!

    Hi,
    Remove the word "-client" from command line options. Try to start weblogic server from window services. If you are getting error please let me know.
    Now:
    Command Line: ....... -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -XX:UseSpinning -Xverify:none -classpath..............+
    Changed to:
    Command Line:....... -Xms32m -Xmx200m -XX:MaxPermSize=128m -XX:+UseSpinning -Xverify:none -classpath.............
    mark if this helps you.
    Regards,
    Kishore

  • Jsx as a windows service

    I wrote socket listener class in javascript/photoshopscript.
    I basically need this to be running at all times.
    Here is a dumbed down code example that basically returns what is sent to it.
    Is there anyway to get this to run as a windows service?
    Currently I start it up from extendscript
    #target photoshop
    function Server( _port ){
        this.port = _port;
        this.tcp = new Socket( )
        this.connection;
        this.start = function( callBackFunc ){
            if( this.tcp.listen( this.port ) ){
                for(;;){
                    this.connection = this.tcp.poll()
                    if( this.connection != null ){
                        var tmp = this.connection.readln()
                        callBackFunc( tmp )
        this.response = function( val ){
            this.connection.writeln( val )
    function callBackFunction( data ){
        server.response( data )
    var server = new Server( 12345 );
    server.start( callBackFunction )

    I looked at  App.scheduleTask();
    This function reminds me of the old setTimeOut actionscript function.
    How can this be thread safe?
    It
    also dawned on me that if i dump the "for(;;)" Loop and just use the
    scheduleTask() to call a script that polls the socket I could achieve
    the same effect.
    But I fail to see the benefits of doing it this way.
    One approach is
    When you script starts, open a UI script  to start, stop and monitor the script via a log window (in addition to a log file)
    Use scheduleTask to start your polling loop.This prevents the UI from locking up.
    When a request comes in to the polling loop, use scheduleTask to hand add the request
    In that thread, see if a job processing thread if exists. If not start it and add the new request/task to the queue. This thread then dies.
    In the job processing thread, see if there are any jobs to process. If not, have it wait for another X number of seconds before starting again. If there are request to process, check to see if PS is busy. If it isn't, send the request and wait for a response. Log all of this to file and to the UI. When the request has finished, move on to any outstanding requests.
    This code will be running on a dedicated machine for this job.
    with 12 core, 20something GiG ram, raided The machine specs might be overkill for it but it was a hand me down from another job.
    So I am not worried about having access to photoshop while the script is running.
    But having a UI to monitor what's going on will make your life a lot easier, especially if there are any problems. It also give you the ability to automatically restart PS periodically if it locks up and stops satisfying requests.
    All of this is about 99% done it has been up and running for a few months now.
    If there is an error I get emails too
    You can run external scripts for doing email with app.system() in Bridge.
    I looked and looked and still do not see a way to run scripts in CS4 bridge-3.0
    Or am I just misunderstanding and scripts can only be run from ESTK/Photo Shop?
    You add code to add the script to a Bridge menu. Put the script in the magic startup folder and it gets run whenever Bridge starts up.
    During development and debugging, you probably just want to launch it from ESTK.
    Alternatively, you and have a script that you launch via the File>Scripts menu (or recorded as an Action step) that sends a message to Bridge to launch the script.
    I know can sound a bit complicated, but if you need a script that runs continuously for days at a time, never fails, and keeps you updated on its progress (and failures), it does take a bit of work.
    I've used variants of these techniques in different scripts over the years, so I know they can work. I hope you find some of these ideas helpful.

  • CreateObject NovellGroupWareSession fals in Windows Service

    Hi!
    Having the following:
    Dim GWApp As GWApi.Application
    Try
    GWApp = CreateObject("NovellGroupWareSession")
    The execution fails on the last line with: "Cannot create ActiveX component"
    Tried to launch service as local system account and administrator as well.
    The same code works on the same machine, as a regular app.
    The code is not in the OnStart event, is on a timer, should it be on a
    separate thread ?
    Thank you for any clue,
    Renato

    Envronment is a Test machine, just WS2003 OS and fresh GW GW 7.0.1 installed
    No need to send any code because is too simple, more is needed to describe
    to describe it:
    - windows service, OnStart function starts a timer
    - in timer the first statement is GW Application instance creation which
    fails as described.
    - same code in the exe works.
    Will try your way to launch Object API.
    Regards,
    Renato
    "Preston Stephenson" <[email protected]> wrote in message
    news:[email protected]..
    > Sorry, I don't know enough information to help you.
    > It seems like the OS / browser can prevent launching
    > of activex controls.
    > There are other ways to launch the Object API, such as
    > GWApp = new GWApi.Application
    >
    > There is another way, but I don't remember what it is.
    > May be others remember.
    >
    > I might be able to debug the problem if you sent a
    > test app / script that shows the problem with enough
    > information on how to execute it.
    >
    > It also helps to know what environment you are in and
    > what version of GroupWise you are using.
    >
    > Preston
    >
    >>>> On Wednesday, January 21, 2009 at 2:10 AM, Renato
    > Aranghelovici<[email protected]> wrote:
    >> Hi!
    >>
    >> Having the following:
    >>
    >> Dim GWApp As GWApi.Application
    >> Try
    >> GWApp = CreateObject("NovellGroupWareSession")
    >>
    >> The execution fails on the last line with: "Cannot create ActiveX
    > component"
    >> Tried to launch service as local system account and administrator as
    > well.
    >>
    >> The same code works on the same machine, as a regular app.
    >> The code is not in the OnStart event, is on a timer, should it be on a
    >> separate thread ?
    >>
    >> Thank you for any clue,
    >> Renato

  • Starting oracle weblogic server as windows Service

    hi dear friends,
    i am working with oracle Weblogic server 10.3 and oracle Jdeveloper 11g
    i have an Ear file and deployed it on weblogic server and that work truly
    now,i want to start my server with windows Services
    for this goal i read some of the documents and created a windows service for my server
    when i started windows Service of the server just console of weblogic is start
    when i used debug mode for checking errors
    i saw bottom errors:
    java.lang.ClassNotFoundException: oracle.dms.wls.DMSStartup
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    Truncated. see log file for complete stacktrace
    >
    <Jul 26, 2009 9:09:32 AM IRDT> <Critical> <WebLogicServer> <BEA-000286> <Failed to invoke startup class "ODL-Startup", java.lang.ClassNotFoundException: oracle.core.ojdl.weblogic.ODLConfiguration
    java.lang.ClassNotFoundException: oracle.core.ojdl.weblogic.ODLConfiguration
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    Truncated. see log file for complete stacktrace
    >
    <Jul 26, 2009 9:09:32 AM IRDT> <Critical> <WebLogicServer> <BEA-000286> <Failed to invoke startup class "JPS Startup Class", java.lang.ClassNotFoundException: oracle.security.jps.wls.JpsWlsStartupClass
    java.lang.ClassNotFoundException: oracle.security.jps.wls.JpsWlsStartupClass
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    Truncated. see log file for complete stacktrace
    >
    <Jul 26, 2009 9:09:32 AM IRDT> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddi was not deployed. Error: [Deployer:149158]No application files exist at 'C:\NEWORA~1\MIDDLE~1\WLSERV~1.3\server\lib\uddi.war'.>
    <Jul 26, 2009 9:09:32 AM IRDT> <Warning> <Deployer> <BEA-149617> <Non-critical internal application uddiexplorer was not deployed. Error: [Deployer:149158]No application files exist at 'C:\NEWORA~1\MIDDLE~1\WLSERV~1.3\server\lib\uddiexplorer.war'.>
    <Jul 26, 2009 9:09:33 AM IRDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Jul 26, 2009 9:09:33 AM IRDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Jul 26, 2009 9:09:34 AM IRDT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'requestEar' due to error weblogic.management.DeploymentException: .
    weblogic.management.DeploymentException:
    at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:171)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:99)
    at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:117)
    Truncated. see log file for complete stacktrace
    java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
    Truncated. see log file for complete stacktrace
    >
    how do solve their?

    hi
    i used your recommendation and set %WL_HOME%\common\bin\*commEnv.cmd to my path
    in this case when i am starting service of my server from windows Service console
    and then checked Deployment Files on my server
    i saw my EAR File could not start and it state was failed
    when i started from weblogic console
    it had error deploying time
    that error was :
    weblogic.common.ResourceException: weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was: Locale not recognized
    how do i solve it
    regards
    aghaluie

  • Conver weblogic Admin server to a windows service

    I used the following scripts to conver weblogic Admin server to a windows service :
    SETLOCAL
    set DOMAIN_NAME=Sayesaman
    set USERDOMAIN_HOME=C:\jdev11.1.1.6\user_projects\domains\Sayesaman
    set SERVER_NAME=Sayesaman
    set WL_HOME=C:\jdev11.1.1.6\wlserver_10.3
    set WLS_USER=weblogic
    set WLS_PW=weblogic110
    set PRODUCTION_MODE=false
    set MEM_ARGS=-Xms512m –Xmx512m
    call "C:\jdev11.1.1.6\wlserver_10.3\server\bin\installSvc.cmd"
    ENDLOCAL
    after running these scripts the windows service created successfully and running properly .
    but the state of all web application is failed and even I can't deploy any web application and I get the following error :
    Class Not Found : oracle.dms.wls.DMSServletFilterr
    Please help me to conver weblogic Admin server to a windows service correctly .
    Edited by: 950222 on Aug 1, 2012 2:46 AM

    Request you to share the entire stack of error.
    Meanwhile,I would recommend that you deleet the existing service created and re-create the service by following the below steps:-
    1. Create a text file
    %MIDDLEWARE_HOME%\user_projects\domains\servers\AdminServer\security\boot.properties
    Add the following lines
    username=weblogic
    password=
    Important to Note:
    a. If this step is not performed you will see the following generic error when the Admin Server is started in " background mode " via an MS Windows Service.
    BEA-090403 Authentication for user weblogic denied
    This error occurs because, by default, startup of Admin Server interactively prompts for the weblogic username and password. If the password is not supplied the error is thrown.
    b. As soon as you start the Admin Server the username and password values in this file will be encrypted. Be sure to stop / start the Admin Server as soon as possible to ensure the credentials are not exposed for longer than necessary.
    2. Create a command script called installAdmServer_Service.cmd which has lines like
    SETLOCAL
    set DOMAIN_NAME=ClassicDomain
    set USERDOMAIN_HOME=C:\middleware\FMW11g\user_projects\domains\ClassicDomain
    set SERVER_NAME=AdminServer
    set PRODUCTION_MODE=true
    cd %USERDOMAIN_HOME%
    call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
    call "C:\middleware\FMW11g\wlserver_10.3\server\bin\installSvc.cmd"
    ENDLOCAL
    3. For troubleshooting / debugging purposes it is helpful to redirect standard out and error to a text file. Although most information is captured in the AdminServer server log files, you will not see all standard out and error when the server is started via a MS Windows Service (unlike when you start an AdminServer from the command prompt using startWebLogic.cmd). To redirect standard out to a text file, backup and edit installSvc.cmd and change the line at the bottom of the file so it include the -log parameter e.g
    "%WL_HOME%\server\bin\beasvc" -install
    -svcname:"%DOMAIN_NAME%_%SERVER_NAME%"
    -javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%"
    -extrapath:"%WL_HOME%\server\bin" -password:"%WLS_PW%"
    -cmdline:%CMDLINE%
    -log:"C:\Middleware\FMW11g\user_projects\domains\ClassicDomain\%SERVER_NAME%-stdout.txt"
    4. Now run "installAdmServer_Service.cmd". The Service should be installed, it will have a name like ""beasvc %DOMAIN_NAME%_%SERVER_NAME%" e.g
    beasvc ClassicDomain_AdminServer
    The Service "Startup Type" will be 'Automatic'. Just like any other MS Windows Service you can change the 'Startup Type' to 'Manual'.
    Start the Service. The Service will come back fairly quickly to say it is started. The actual time taken for AdminServer to start and reach a state of 'RUNNING' will be longer - perhaps two or three minutes. The state of the server can be monitored by reviewing the stdout txt file.
    Notes:
    An alternative to the boot.properties approach to specifying the Admin Server weblogic username / password is to add the following environment variables to your wrapper cmd script - installAdmServer_Service.cmd
    set WLS_USER=weblogic
    set WLS_PW=manager11g
    The beasvc utility encrypts the login credentials and stores them in the Windows registry.
    This is one of two possible methods for avoiding the username/password prompt when a server instance starts. The disadvantage to this method is that changing the username or password for the server instance requires you to delete the Windows service and set up a new one with the new username and password. Instead of this method, you can use a boot identity file. With a boot identity file, you can change the login credentials without needing to modify the Windows service.
    Create a MS Windows Service for a Managed Server e.g WLS_FORMS
    Important to Note:
    1. The ADMIN_URL value should reference the AdminServer hostname and listen port.
    2. The SERVER_NAME value is case sensitive. For example, if you are creating a MS Windows service for a different managed server such as 'wls_ods1' then the value needs to match the case of the server name otherwise the startup of the server via the MS Windows service will fail.
    3. Be careful that there are no trailing spaces after each line in the command file - trailing spaces will cause the managed server to fail at startup. For example a trailing space in the ADMIN_URL value will result in the error
    <Error> <EmbeddedLDAP> <BEA-171524> <Cannot determine the Listen address for the Admin server
    3. Now run "installAdmServer_Service.cmd". The Service should be installed, it will have a name like ""beasvc %DOMAIN_NAME%_%SERVER_NAME%" e.g
    beasvc ClassicDomain_AdmServer
    The Service "Startup Type" will be 'Automatic'. Just like any other MS Windows Service you can change the 'Startup Type' to 'Manual'.
    Start the Service. The Service will come back fairly quickly to say it is started. The actual time taken for the managed server to start and reach a state of 'RUNNING' will be longer - perhaps two or three minutes. The state of the server can be monitored by reviewing the stdout txt file.
    Hope this helps!
    -Sandeep

  • Application Restart and Recovery APIs doesn't work for windows services

    I am using the Application Restart and Recovery mechanism (provided in Windows API Code Pack for Microsoft.NET Framework) to collect some information (i.e. stack information when there's an unhandledexception)  before my windows service crash down.
    It works well for windows form applications, but the callback method wouldn't be called if the host is a windows service. 
    I have checked the article: https://msdn.microsoft.com/zh-cn/subscriptions/downloads/cc303708
    But it doesn't specify clearly whether it works for a windows service. It seems that the recovery will only be activated when the user interacts with the error dialog of Windows Error Reporting (clicking "close" on the dialog, for example).
    So I am wondering is my guess right that the Application Restart and Recovery mechanism doesn't work for windows services. Or is there a better way to meet my requirement? 

    I would suggest trying ARR if that's what you want to use.  The restart portion won't work, but it doesn't need to as if you fail out of your service, the Windows service controller will handle recovery (up to and including restarting your service).
     You configure those recovery actions either through code or one of the built in administrative tools for services such as services.msc.  
    DebugDiag/ADplus and similar tools ultimately do use built-in APIs; you don't need to add anything external to collect debugging information.  You do however have to write a good deal of code to do somethings.  It's pretty simple to use the unmanaged
    function that I pointed out before and
    MiniDumpWriteDump to write a minidump when you hit an unexpected error(the dbghelp.dll that comes installed with Windows has it so you don't need anything additional installed).  You can even write a basic debugger that literally debugs a process using
    only kernel32 functions (see
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms679301(v=vs.85).aspx if you're interested).  
    WinSDK Support Team Blog: http://blogs.msdn.com/b/winsdk/

Maybe you are looking for

  • I have sound problem in My Cq40-144TU Laptop

    Hi, I have Cq40-144tu laptop. i am't hearing sound from internal speaker but sound is hearing from headphone. I have configured my system many time. Last got to shop and they also format it and reconfigured but still this problem is showing.  But I w

  • Restore macbook air

    Hi all, can someone lemme know how to restore my macbook air to factory settings

  • Workflow steps

    Hi , Can someone pls tell the steps ( preferably detailed) to create a workflow in MDM .Here is the simple scenario : 1. User A adds a record say Product name . 2. User B approves the records and then only this record should be available in the repos

  • Photoshop Elements for Linux?

    It's probably been asked a million times before.  How about developing a Photoshop Elements package for Linux? I believe enough people would purchase a licensed version of your software. I personally own and use Bibblepro 5 and LightZone for Linux. T

  • Help with hooking up equipment

    I have a HDTV, HD DVR (6416) and a standard VCR/DVD combo that I want to hook together.  Can't find any diagrams and Verizon won't help me. Can anyone tell me how to connect the 3 pieces together?  My kids are really missing their DVDs.  It all worke