[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

where can we see java system logs in SAP PI server hosted on AIX servers

Posted on 2014-02-09
10
Medium Priority
?
1,511 Views
Last Modified: 2014-03-10
I have a war file hosted on Netweaver application server on AIX box.

The JSP file imports Java class and in java class I want to trace exception by printing using

System.out.println("Hello World")

Open in new window


On what path would these statement get printed on SAP PI server.

Background - I have native method in the java class and that works fine on windows but not on AIX server so need to check logs.
0
Comment
Question by:jgdvishnu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
10 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 39879419
Do you have backing shared library for native method you use on AIX?
0
 

Author Comment

by:jgdvishnu
ID: 39879479
Yes. There is a native method call that needs to happen.

But even without it there is no console or log that gets printed with or without exception
0
 
LVL 62

Expert Comment

by:gheist
ID: 39879490
ldd "that_shared_lib"
maybe something is missing.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 27

Expert Comment

by:mrcoffee365
ID: 39884329
You're looking for standard out, called stdout for the jvm which is executing your java program.  We don't have an SAP system running on ... you don't say which operating system it's running on, so I can't tell you where to look for your specific configuration.  The default location of stdout tends to be OS-specific.

It's also possible that System.out (which writes to stdout) is writing to the console.  You could look for whatever is called the console for the servlet engine which is running your jsp page.

Be warned that some web servers have the console essentially turned off, so messages to the console go nowhere.  If the system with the error has System.out basically turned into a no-op, then you're out of luck.  In that case, you'll need to explicitly write your logging message to a file.  You can actually define a file in your jsp and write to it, in which case you'll know where it is.

For this and many other reasons, most people use a logging package, like log4j.  You can actually set up log4j in your jsp and use it to write logging messages.  When you configure log4j, you'll give it a directory and filename to use for the log, so you'll know where to find it.
0
 

Accepted Solution

by:
jgdvishnu earned 0 total points
ID: 39906640
the logs were generated through request transactions.
There request log is associated via the log ID(or transaction id).
For example - The response in case of error may look like:-

<pre>"The WebApplicationException log ID is [F65915952A02B87D00000000010E0030]."</pre>

Open in new window


Now to find the trace log one can find at the given path:-
 
file name = "defaultTrace_01 8.trc"
file path = /usr/sap/<serverinstance>/<serverpath>/j2ee/cluster/server1/log
0
 
LVL 27

Expert Comment

by:mrcoffee365
ID: 39907679
It's great that you posted the location.

Just FYI:  when someone helps, it's better to reward the help than to remove all the points.  The fact that you also had to look for the specific file in your specific configuration (which no one else on the expert panel had, by the way), does not mean that we didn't help.  We did, and it meant you knew how to look and what to look for.  That is expert help.
0
 

Author Closing Comment

by:jgdvishnu
ID: 39916999
This was found after lots of search
0
 
LVL 27

Expert Comment

by:mrcoffee365
ID: 39917824
Yes indeed.  You will always have to do work on your own system, and in your case, no one else had your configuration, so you would have been the person who had to search.  Now that I know you don't award points, it isn't a problem for me, but for other experts who help you, just bear in mind that the expert help you get should be rewarded if you want further help.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question