NOTE: MyEclipse uses the applications-autodeploy directory when deploying to OC4J. You are free to use the existing /applications directory, but then in MyEclipse you would need to use a Custom Location deployment when deploying projects.
so now the top of your file looks something like this:
Don’t forget to save the file then restart the server. After you have done that, any EAR deployed to the <OC4J HOME>\j2ee\home\applications-autodeploy directory will automatically be deployed by OC4J for you, including deployments from MyEclipse.