I was finally able to install eclipse 3.2.0 and myEclipse 5.0.1 and it still happens. :-( I am not sure what else to try. :-( I ran the same test I did earlier (so I can give you a Stack trace that you can share with your developers). Here is what I did:
1. Issue the re-deploy command in Eclipse
2. Before the re-deploy is complete explore the file system and set the permissions on the application.xml file to read only
3. The following stack trace would be in the Error Log:
| Code: |
java.io.FileNotFoundException: c:\bea\user_projects\domains\m4\applications\concorde.ear\META-INF\application.xml (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at java.io.FileWriter.<init>(FileWriter.java:73)
at com.genuitec.eclipse.ast.deploy.core.EARDeployment.ā(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.EARDeployment.updateDeploymentDescriptorIfNeeded(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.EARDeployment.resyncAll(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.EARDeployment.deployAsExplodedArchive(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.redeploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.redeployProject(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.Ă(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog.access$3(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ui.dialog.DeploymentManagerDialog$6.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
|
And just to give you a recap of the issue (since it has been a while) :-) :
1. I have the following workspace
EAR project
- META-INF
---- lib
---- application.xml
- ThirdPartyFile_EJB.jar
- ThirdPartyFile.war
WAR project
-src
-WebRoot
EJB project
- src
- classes
---- META-INF
-------- ejb-jar.xml
-------- weblogic-ejb-jar.xml
JAVA project
- src
2. To deploy the ThirdPartyFile_EJB.jar and the ThirdPartyFile.war files in my EAR Project I have the following lines in the application.xml file
| Code: |
<module>
[b]<ejb>ThirdPartyFile_EJB.jar</ejb>[/b]
</module>
<module>
<web>
<web-uri>ThirdPartyFile.war</web-uri>
<context-root>/ThirdPartyWar</context-root>
</web>
</module>
|
3. After doing a re-deploy the application.xml file would get changed to the following
| Code: |
<module>
<ejb>ThirdPartyFile_EJB</ejb> <!----- NOTE THE MISSING .EJB FILE EXTENSION --->
</module>
<module>
<web>
<web-uri>ThirdPartyFile.war</web-uri>
<context-root>/ThirdPartyWar</context-root>
</web>
</module>
|
3. Problem: After the redeploy the application.xml file is missing the .JAR file extension on the ThirdPartyFile_EJB.jar file.
4. And yes I do have the following checked in my EAR project "Do not modify 'application.xml' (I will manually manage it)"
Hopefully the stack trace can help your developer figure out what is causing this.
Greatly appreciated,
Anthony |