Go to your Oracle Application Server Console
Select your OC4J instance
Click "Administration"
Chose "Shared Libraries"
Click "Create"
Name the library "log4j" and the version is "1.2.12"
Choose the log4j.jar file to upload
Choose "Finish"