Solved

Oracle application server log for system.out.println

Posted on 2010-08-31
9
1,317 Views
Last Modified: 2013-12-06
I found this on the web:
 few projects ago, a developer complained that his System.out statements were not being logged. For example, his JSP might include the following line:

System.out.println("hello world");

This is the problem I am having. The answer is given:

. Log in to the EM Console.
2. Navigate to the container name (e.g., home)
3. Click on Administration
4. Click on Server Properties
5. Add the following under Start-parameters: OC4J Options; for example:
-out c:\oracle\product\10.1.3\as10g\j2ee\home\log\ws_default_group_1\sysout.log
6. Restart the container

Can someone tell me the correct syntax to use for a linux box.
0
Comment
Question by:meagain0707
  • 5
  • 4
9 Comments
 

Author Comment

by:meagain0707
Comment Utility
-out c:\oracle\product\10.1.3\as10g\j2ee\home\log\ws_default_group_1\sysout.log

Correct syntax for linux please
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
Uset java service wrapper. That solves a lot of problems.

correct syntax is -out /dev/null
0
 

Author Comment

by:meagain0707
Comment Utility
My container will not start now. Is there a way of removing that option from the command line?
0
 

Author Comment

by:meagain0707
Comment Utility
I tried to remove the code from the opmn.xml and restart but my changes were not recognized. So I just redeployed.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:meagain0707
Comment Utility
I don't know what you mean by the java wrapper, but I don't want to have to redeploy each time I make a change.
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
Sorry - redeployment is required.
java service wrapper is one from wrapper.tanukisoftware.org

to fix SUN java redeployment add -XX:MaxPermSize=256m
or use j:rockit
0
 
LVL 61

Accepted Solution

by:
gheist earned 250 total points
Comment Utility
java service wrapper can restart on OOM and unhandled JDBC problems.
with MaxPerm fix for redeployment it is really quick.
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
Can you tell me what was the issue and which fix worked?
0
 

Author Comment

by:meagain0707
Comment Utility
The problem is I wanted to print comments from java using System.out.println("hello world").  I'm unable to load new software on our servers (no authority). I wanted to be able to print in the log for testing purposes. I didn't have a JDBC problem or a MaxPerm issue. I assumed the -out /dev/null is the answer to my question even though it didn't work for me I still gave you the points.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now