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
Solved

Oracle application server log for system.out.println

Posted on 2010-08-31
9
1,325 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
ID: 33572605
-out c:\oracle\product\10.1.3\as10g\j2ee\home\log\ws_default_group_1\sysout.log

Correct syntax for linux please
0
 
LVL 62

Expert Comment

by:gheist
ID: 33575925
Uset java service wrapper. That solves a lot of problems.

correct syntax is -out /dev/null
0
 

Author Comment

by:meagain0707
ID: 33578905
My container will not start now. Is there a way of removing that option from the command line?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:meagain0707
ID: 33582151
I tried to remove the code from the opmn.xml and restart but my changes were not recognized. So I just redeployed.
0
 

Author Comment

by:meagain0707
ID: 33582160
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 62

Expert Comment

by:gheist
ID: 33584095
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 62

Accepted Solution

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

Expert Comment

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

Author Comment

by:meagain0707
ID: 33646754
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

792 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