- This topic has 9 replies, 2 voices, and was last updated 20 years, 6 months ago by
Riyad Kalla.
-
AuthorPosts
-
knuterikMemberWhen I deploy my project as an exploded archive (as I have been doing for quite some time during development now), everything works as expected during deployment.
Now that our project is nearing release, I tried to switch deploytype to ‘packaged archive’. I then get this error message during deployment:
21:32:55,160 ERROR [MainDeployer] Could not initialise deployment: file:/C:/Java/JBoss/jboss-3.2.5/server/default/deploy/TpCal.ear org.jboss.deployment.DeploymentException: No META-INF/application.xml found at org.jboss.deployment.EARDeployer.init(EARDeployer.java:117) at org.jboss.deployment.MainDeployer.init(MainDeployer.java:700) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:635) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608) at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
If I try to unzip the .ear file with WinZip, it works as expected.
Also if I package the .ear file with an ant script instead, it works as expected.
Riyad KallaMemberWhat is most likely happening is JBoss is detecting the new WAR file and attempting to uncompress it before MyEclipse is even done writing it out. You can try and shutdown JBoss, and deploy the packaged EAR file, then start JBoss and see if it works.
knuterikMember@support-rkalla wrote:
What is most likely happening is JBoss is detecting the new WAR file and attempting to uncompress it before MyEclipse is even done writing it out. You can try and shutdown JBoss, and deploy the packaged EAR file, then start JBoss and see if it works.
Nope.
I always stop JBoss between .ear deployments, and I also did it this time.
Anyway, this problem never occurs when I deploy a .WAR file, only on .EAR files.
Riyad KallaMemberCan you unjar the EAR file using the command line JAR utility (please don’t use WinZip) and see if META-INF/application.xml is indeed there? There have been problems in the past related to this stuff and it always ends up being some super-obscure weird system setup issue or app server issue… very odd.
knuterikMember@support-rkalla wrote:
Can you unjar the EAR file using the command line JAR utility (please don’t use WinZip) and see if META-INF/application.xml is indeed there? There have been problems in the past related to this stuff and it always ends up being some super-obscure weird system setup issue or app server issue… very odd.
Well, the META-INF/application.xml file is definitely there!
knuterikMemberWhat is strange, is that if I just zip up the exploded archive, I get the same error message, so it seems like it is some kind of JBoss issue??
Riyad KallaMemberI swear we ran this problem down before and it was some really obscure XML parsing issue or something…
Riyad KallaMemberAh ha, I think this might be it, read this thread:
http://myeclipseide.com/PNphpBB2+file-viewtopic-t-3669-highlight-metainf+application+xml.htmlAnd be sure to look at the two threads I reference in there too.
knuterikMember@support-rkalla wrote:
Ah ha, I think this might be it, read this thread:
http://myeclipseide.com/PNphpBB2+file-viewtopic-t-3669-highlight-metainf+application+xml.htmlAnd be sure to look at the two threads I reference in there too.
Yup, this was it:
Resolved.
I had an empty class-path entry in the MANIFEST.MF that avoided the URLClassloader to get resources from the ear file.
I removed the class-path and everything works.Hope this can be useful for other with the same problem.
Thanks fro the support.
Umberto
Thanx a LOT for good help 😀
Riyad KallaMemberI’m glad it worked, that problem is a stinker.
-
AuthorPosts