MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
support-rkalla
Post subject: [Oracle AS] How do I get auto deploy working?  PostPosted: Oct 04, 2007 - 06:25 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

As it turns out, OC4J does support automatically loaded your deployments from MyEclipse, but you need to make a slight change to your <OC4J HOME>\j2ee\home\config\server.xml file.

Open the file mentioned above, and find the root "application-server" tag and add the following entry to it:
Code:

application-auto-deploy-directory="../application-autodeploy"


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:
Code:

<application-server  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/application-server-10_1.xsd"  application-directory="../applications"
 check-for-updates="adminClientOnly"
 application-auto-deploy-directory="../applications-autodeploy"
 deployment-directory="../application-deployments"
 connector-directory="../connectors"
 ... SNIP ...


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.

Please see the OC4J Auto Deploy doc for reference.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits