Link to home
Start Free TrialLog in
Avatar of meagain0707
meagain0707

asked on

Oracle application server log for system.out.println

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.
Avatar of meagain0707
meagain0707

ASKER

-out c:\oracle\product\10.1.3\as10g\j2ee\home\log\ws_default_group_1\sysout.log

Correct syntax for linux please
Uset java service wrapper. That solves a lot of problems.

correct syntax is -out /dev/null
My container will not start now. Is there a way of removing that option from the command line?
I tried to remove the code from the opmn.xml and restart but my changes were not recognized. So I just redeployed.
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.
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
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you tell me what was the issue and which fix worked?
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.