Home

Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Tomcat debug issue in IDM 4.5.2 on Windows 2012 R2

Hybrid View

  1. #1
    cajitq NNTP User

    Tomcat debug issue in IDM 4.5.2 on Windows 2012 R2


    Hi

    We are facing a problem with writing debug messages to the tomcat log
    (catalina.log).

    Normally it's possible to write messages to the application server log
    (between forms) by using making a java call to
    Packages.java.lang.System.out.println("Debug msg");

    however this does not seem to work in IDM 4.5.2 running on Windows
    Server 2012 R2 - nothing gets written to the log?

    I've tried to restart the Tomcat service several times but with no
    luck.

    Does anyone have any experience with this matter?

    Kind Regards
    Carsten J


    --
    cajitq
    ------------------------------------------------------------------------
    cajitq's Profile: https://forums.netiq.com/member.php?userid=8679
    View this thread: https://forums.netiq.com/showthread.php?t=54952


  2. #2

    Re: Tomcat debug issue in IDM 4.5.2 on Windows 2012 R2

    Does this thread help at all?

    https://forums.netiq.com/showthread.php?53198

    In summary, document the code you're using (you did), where/when that call
    is made, if you've restarted Tomcat since installing or initially trying
    this, which IDM components are on the box, etc.

    --
    Good luck.

    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...

  3. #3
    Steven Williams NNTP User

    Re: Tomcat debug issue in IDM 4.5.2 on Windows 2012 R2

    On 12/17/15 6:44 AM, cajitq wrote:
    >
    > Hi
    >
    > We are facing a problem with writing debug messages to the tomcat log
    > (catalina.log).
    >
    > Normally it's possible to write messages to the application server log
    > (between forms) by using making a java call to
    > Packages.java.lang.System.out.println("Debug msg");
    >
    > however this does not seem to work in IDM 4.5.2 running on Windows
    > Server 2012 R2 - nothing gets written to the log?
    >
    > I've tried to restart the Tomcat service several times but with no
    > luck.
    >
    > Does anyone have any experience with this matter?
    >
    > Kind Regards
    > Carsten J
    >
    >

    Greetings,
    We are looking into this "behavior". Please try starting Tomcat
    in a terminal as compared to using the Windows Service. If this is the
    case that I am looking into, you will see your statements in the log
    file now.


    --
    Sincerely,
    Steven Williams
    Lead Software Engineer
    Micro Focus

  4. #4
    Join Date
    Feb 2008
    Location
    Stockholm, Sweden
    Posts
    716

    Re: Tomcat debug issue in IDM 4.5.2 on Windows 2012 R2


    Packages.java.lang.System.out.println is printing to the terminal and on
    widows that is cmd but tomcat is usually started as a service son
    system.out is misplaced somewhere in cyberspace.

    As Steven Wrote, try starting Tomcat from cmd. Be sure to start the cmd
    "as administrator" or it will not start properly.


    --
    joakim_ganse
    ------------------------------------------------------------------------
    joakim_ganse's Profile: https://forums.netiq.com/member.php?userid=159
    View this thread: https://forums.netiq.com/showthread.php?t=54952


  5. #5
    Nicolai Jensen NNTP User

    Re: Tomcat debug issue in IDM 4.5.2 on Windows 2012 R2

    On Fri, 18 Dec 2015 11:04:01 +0000, joakim ganse wrote:

    > Packages.java.lang.System.out.println is printing to the terminal and on
    > widows that is cmd but tomcat is usually started as a service son
    > system.out is misplaced somewhere in cyberspace.
    >
    > As Steven Wrote, try starting Tomcat from cmd. Be sure to start the cmd
    > "as administrator" or it will not start properly.


    That does indeed display the println statements.

    We are a team working on this, so it would be nice not having to fight
    over access to the console of the ua server.

    Any ideas on what we could change to redirect the cmds output to a file?
    Then we could use a share, and access the file individually

  6. #6
    Nicolai Jensen NNTP User

    Re: Tomcat debug issue in IDM 4.5.2 on Windows 2012 R2

    On Fri, 18 Dec 2015 12:36:55 +0000, Nicolai Jensen wrote:

    > On Fri, 18 Dec 2015 11:04:01 +0000, joakim ganse wrote:
    >
    >> Packages.java.lang.System.out.println is printing to the terminal and
    >> on widows that is cmd but tomcat is usually started as a service son
    >> system.out is misplaced somewhere in cyberspace.
    >>
    >> As Steven Wrote, try starting Tomcat from cmd. Be sure to start the cmd
    >> "as administrator" or it will not start properly.

    >
    > That does indeed display the println statements.
    >
    > We are a team working on this, so it would be nice not having to fight
    > over access to the console of the ua server.
    >
    > Any ideas on what we could change to redirect the cmds output to a file?
    > Then we could use a share, and access the file individually


    Just noticed that the println stuff is output to the cmd window, and the
    usual stuff is output to the catalina log.

    2 different places to look. Oh man

  7. #7
    Join Date
    Feb 2008
    Location
    Stockholm, Sweden
    Posts
    716

    Re: Tomcat debug issue in IDM 4.5.2 on Windows 2012 R2


    I expect that is what Steven ment with "we are looking into that".
    Hopefully they will find a good way to deal with this and we get that as
    a Patch.

    If it is a deal breaker open a SR for it to bring more attention to the
    problem.


    --
    joakim_ganse
    ------------------------------------------------------------------------
    joakim_ganse's Profile: https://forums.netiq.com/member.php?userid=159
    View this thread: https://forums.netiq.com/showthread.php?t=54952


  8. #8
    Steven Williams NNTP User

    Re: Tomcat debug issue in IDM 4.5.2 on Windows 2012 R2

    On 12/18/15 8:55 AM, joakim ganse wrote:
    >
    > I expect that is what Steven ment with "we are looking into that".
    > Hopefully they will find a good way to deal with this and we get that as
    > a Patch.
    >
    > If it is a deal breaker open a SR for it to bring more attention to the
    > problem.
    >
    >

    Greetings,
    From the different research that I have been doing. Some of this is
    a "known" issue with Tomcat on a Windows server when running as a
    service. I have not completed all of my investigation or exploration
    into some different options.



    --
    Sincerely,
    Steven Williams
    Lead Software Engineer
    Micro Focus

  9. #9
    Join Date
    Dec 2007
    Location
    Brooklyn, NY
    Posts
    6,213

    Re: Tomcat debug issue in IDM 4.5.2 on Windows 2012 R2


    > From the different research that I have been doing. Some of this is
    > a "known" issue with Tomcat on a Windows server when running as a
    > service. I have not completed all of my investigation or exploration
    > into some different options.


    Is the class that UA uses to write to Catalina.out available in ECMA?
    Seems like that would be the way to go.



  10. #10
    Nicolai Jensen NNTP User

    Re: Tomcat debug issue in IDM 4.5.2 on Windows 2012 R2

    On Fri, 18 Dec 2015 16:46:32 +0000, Geoffrey Carman wrote:

    >> From the different research that I have been doing. Some of this
    >> is
    >> a "known" issue with Tomcat on a Windows server when running as a
    >> service. I have not completed all of my investigation or exploration
    >> into some different options.

    >
    > Is the class that UA uses to write to Catalina.out available in ECMA?
    > Seems like that would be the way to go.


    That would be nice.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •